Example #1
0
 public void CTP_RegMD()
 {
     MdApi.CTP_RegMDOnConnect(OnConnect_1);
     MdApi.CTP_RegMDOnDisconnect(OnDisconnect_1);
     MdApi.CTP_RegMDOnRspError(OnRspError_1);
     MdApi.CTP_RegOnRtnDepthMarketData_Tick(OnRtnDepthMarketData_Tick_1);
     MdApi.CTP_RegOnRtnDepthMarketData_KLine(OnRtnDepthMarketData_KLine_1);
     MdApi.CTP_RegOnHistory_Tick(OnHistoryTick_1);
     MdApi.CTP_RegOnHistory_KLine(OnHistoryKLine_1);
 }
Example #2
0
        public MdWrapper()
        {
            MdApi.CTP_RegOnRtnDepthMarketData_Tick(OnRtnDepthMarketData_Tick);
            MdApi.CTP_RegOnRtnDepthMarketData_KLine(OnRtnDepthMarketData_KLine);
            MdApi.CTP_RegOnHistory_Tick(OnHistoryTick);
            MdApi.CTP_RegOnHistory_KLine(OnHistoryKLine);

            MdApi.CTP_RegMDOnConnect(OnMdConnect);
            MdApi.CTP_RegMDOnDisconnect(OnMdDisconnect);
            MdApi.CTP_RegMDOnRspError(OnMdRspError);
        }
Example #3
0
 public void Connect()
 {
     MdApi.MD_Connect();
 }