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); }
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); }
public void Connect() { MdApi.MD_Connect(); }