コード例 #1
0
ファイル: TradeApi.cs プロジェクト: zhuzhenping/CTP-MATLAB
 public void CTP_RegTD()
 {
     CommApi.CTP_RegTDOnConnect(OnConnect_2);
     CommApi.CTP_RegTDOnDisconnect(OnDisconnect_2);
     CommApi.CTP_RegTDOnRspError(OnRspError_2);
     TraderApi.CTP_RegOnErrRtnOrderAction(OnErrRtnOrderAction_2);
     TraderApi.CTP_RegOnErrRtnOrderInsert(OnErrRtnOrderInsert_2);
     TraderApi.CTP_RegOnErrRtnQuoteAction(OnErrRtnQuoteAction_2);
     TraderApi.CTP_RegOnErrRtnQuoteInsert(OnErrRtnQuoteInsert_2);
     TraderApi.CTP_RegOnRspOrderAction(OnRspOrderAction_2);
     TraderApi.CTP_RegOnRspOrderInsert(OnRspOrderInsert_2);
     TraderApi.CTP_RegOnRspQuoteAction(OnRspQuoteAction_2);
     TraderApi.CTP_RegOnRspQuoteInsert(OnRspQuoteInsert_2);
     TraderApi.CTP_RegOnRspQryDepthMarketData(OnRspQryDepthMarketData_2);
     TraderApi.CTP_RegOnRspQryInstrument(OnRspQryInstrument_2);
     TraderApi.CTP_RegOnRspQryInstrumentCommissionRate(OnRspQryInstrumentCommissionRate_2);
     TraderApi.CTP_RegOnRspQryInstrumentMarginRate(OnRspQryInstrumentMarginRate_2);
     TraderApi.CTP_RegOnRspQryInvestorPosition(OnRspQryInvestorPosition_2);
     TraderApi.CTP_RegOnRspQryInvestorPositionDetail(OnRspQryInvestorPositionDetail_2);
     TraderApi.CTP_RegOnRspQryOrder(OnRspQryOrder_2);
     TraderApi.CTP_RegOnRspQryTrade(OnRspQryTrade_2);
     TraderApi.CTP_RegOnRspQrySettlementInfo(OnRspQrySettlementInfo_2);
     TraderApi.CTP_RegOnRspQryTradingAccount(OnRspQryTradingAccount_2);
     TraderApi.CTP_RegOnRtnInstrumentStatus(OnRtnInstrumentStatus_2);
     TraderApi.CTP_RegOnRtnOrder(OnRtnOrder_2);
     TraderApi.CTP_RegOnRtnQuote(OnRtnQuote_2);
     TraderApi.CTP_RegOnRtnTrade(OnRtnTrade_2);
 }