Beispiel #1
0
        void SetCallBack()
        {
            _q.SetOnFrontConnected((DeleOnFrontConnected)AddDele(new DeleOnFrontConnected(CTPOnFrontConnected)));
            _q.SetOnRspUserLogin((DeleOnRspUserLogin)AddDele(new DeleOnRspUserLogin(CTPOnRspUserLogin)));
            _q.SetOnFrontDisconnected((DeleOnFrontDisconnected)AddDele(new DeleOnFrontDisconnected(CTPOnFrontDisconnected)));
            _q.SetOnRspSubMarketData((DeleOnRspSubMarketData)AddDele(new DeleOnRspSubMarketData(CTPOnRspSubMarketData)));
            _q.SetOnRtnDepthMarketData((DeleOnRtnDepthMarketData)AddDele(new DeleOnRtnDepthMarketData(CTPOnRtnDepthMarketData)));
            _q.SetOnRspError((DeleOnRspError)AddDele(new DeleOnRspError(CTPOnRspError)));

            _q.SetOnRtnForQuoteRsp((DeleOnRtnForQuoteRsp)AddDele(new DeleOnRtnForQuoteRsp(CTPOnRtnForQuoteRsp)));
            _q.SetOnRspSubForQuoteRsp((DeleOnRspSubForQuoteRsp)AddDele(new DeleOnRspSubForQuoteRsp(CTPOnRspSubForQuoteRsp)));
        }