예제 #1
0
 public void CTP_RegTD()
 {
     TdApi.CTP_RegTDOnConnect(OnConnect_2);
     TdApi.CTP_RegTDOnDisconnect(OnDisconnect_2);
     TdApi.CTP_RegTDOnRspError(OnRspError_2);
     TdApi.CTP_RegOnErrRtnOrderAction(OnErrRtnOrderAction_2);
     TdApi.CTP_RegOnErrRtnOrderInsert(OnErrRtnOrderInsert_2);
     TdApi.CTP_RegOnErrRtnQuoteAction(OnErrRtnQuoteAction_2);
     TdApi.CTP_RegOnErrRtnQuoteInsert(OnErrRtnQuoteInsert_2);
     TdApi.CTP_RegOnRspOrderAction(OnRspOrderAction_2);
     TdApi.CTP_RegOnRspOrderInsert(OnRspOrderInsert_2);
     TdApi.CTP_RegOnRspQuoteAction(OnRspQuoteAction_2);
     TdApi.CTP_RegOnRspQuoteInsert(OnRspQuoteInsert_2);
     TdApi.CTP_RegOnRspQryDepthMarketData(OnRspQryDepthMarketData_2);
     TdApi.CTP_RegOnRspQryInstrument(OnRspQryInstrument_2);
     TdApi.CTP_RegOnRspQryInstrumentCommissionRate(OnRspQryInstrumentCommissionRate_2);
     TdApi.CTP_RegOnRspQryInstrumentMarginRate(OnRspQryInstrumentMarginRate_2);
     TdApi.CTP_RegOnRspQryInvestorPosition(OnRspQryInvestorPosition_2);
     TdApi.CTP_RegOnRspQryInvestorPositionDetail(OnRspQryInvestorPositionDetail_2);
     TdApi.CTP_RegOnRspQryOrder(OnRspQryOrder_2);
     TdApi.CTP_RegOnRspQryTrade(OnRspQryTrade_2);
     TdApi.CTP_RegOnRspQrySettlementInfo(OnRspQrySettlementInfo_2);
     TdApi.CTP_RegOnRspQryTradingAccount(OnRspQryTradingAccount_2);
     TdApi.CTP_RegOnRtnInstrumentStatus(OnRtnInstrumentStatus_2);
     TdApi.CTP_RegOnRtnOrder(OnRtnOrder_2);
     TdApi.CTP_RegOnRtnQuote(OnRtnQuote_2);
     TdApi.CTP_RegOnRtnTrade(OnRtnTrade_2);
 }