コード例 #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);
 }
コード例 #2
0
ファイル: MdWrapper.cs プロジェクト: zhuzhenping/CTP-MATLAB
        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);
        }