Example #1
0
        public TestQuote()
        {
            _q = new CtpQuote();

            _q.OnFrontConnected += _q_OnFrontConnected;
            _q.OnRspUserLogin   += _q_OnRspUserLogin;
            _q.OnRspUserLogout  += _q_OnRspUserLogout;
            _q.OnRtnTick        += _q_OnRtnTick;
            _q.OnRtnError       += _q_OnRtnError;
        }
Example #2
0
        static void Main(string[] args)
        {
            var       quote = new CtpQuote();
            TestTrade tt    = new TestTrade();

            tt.Run();
            Console.WriteLine("Press any key to continue . . . ");
            Console.Read();
            tt.ShowInfo();
            Console.Read();

            TestQuote tq = new TestQuote();

            tq.Run();
            Console.WriteLine("Press any key to continue . . . ");
            Console.Read();

            tt.Release();
            tq.Release();
            Console.Read();
            Console.ReadKey();
        }