Beispiel #1
0
        static void DoAPISameple()
        {
            WindAPI w = new WindAPI();
            w.start();

            //wset取沪深300指数成分
            //WindData wd = w.wset("IndexConstituent", "date=20141215;windcode=000300.SH");
            //OutputWindData(wd, "wset");

            WindData wd = w.wsd("600000.SH,600004.SH", "open", "2014-10-16", "2014-12-16", "");
            OutputWindData(wd, "wsd");

            w.stop();
        }
Beispiel #2
0
        private static void Main(string[] args)
        {
            WindAPI w = new WindAPI();

            // Custom test block for live DLL integration
            Console.WriteLine();
            Console.WriteLine(WindTest.Test());
            Console.WriteLine("Press enter to continue...");
            Console.ReadLine();
            // End test block

            w.start();

            WindData wd = w.wsd("600000.SH", "MACD", "ED-1M", "2014-12-16", "MACD_L=26;MACD_S=12;MACD_N=9;MACD_IO=1;Fill=Previous");

            string str = WindDataMethod.WindDataToString(wd, "wsd");
            Console.Write(str);
            Console.Read();

            w.stop();
        }