Documentation
¶
Index ¶
- func CreateMdApi(options ...MdOption) *mdApi
- func CreateTraderApi(options ...TraderOption) *traderApi
- type AccountregisterField
- type BaseMdSpi
- func (s *BaseMdSpi) OnFrontConnected()
- func (s *BaseMdSpi) OnFrontDisconnected(nReason int)
- func (s *BaseMdSpi) OnHeartBeatWarning(nTimeLapse int)
- func (s *BaseMdSpi) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
- func (s *BaseMdSpi) OnRspQryMulticastInstrument(pMulticastInstrument *thost.CThostFtdcMulticastInstrumentField, ...)
- func (s *BaseMdSpi) OnRspSubForQuoteRsp(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, ...)
- func (s *BaseMdSpi) OnRspSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, ...)
- func (s *BaseMdSpi) OnRspUnSubForQuoteRsp(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, ...)
- func (s *BaseMdSpi) OnRspUnSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, ...)
- func (s *BaseMdSpi) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, ...)
- func (s *BaseMdSpi) OnRspUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, ...)
- func (s *BaseMdSpi) OnRtnDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField)
- func (s *BaseMdSpi) OnRtnForQuoteRsp(pForQuoteRsp *thost.CThostFtdcForQuoteRspField)
- type BaseTraderSpi
- func (s *BaseTraderSpi) OnErrRtnBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, ...)
- func (s *BaseTraderSpi) OnErrRtnBatchOrderAction(pBatchOrderAction *thost.CThostFtdcBatchOrderActionField, ...)
- func (s *BaseTraderSpi) OnErrRtnCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, ...)
- func (s *BaseTraderSpi) OnErrRtnExecOrderAction(pExecOrderAction *thost.CThostFtdcExecOrderActionField, ...)
- func (s *BaseTraderSpi) OnErrRtnExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, ...)
- func (s *BaseTraderSpi) OnErrRtnForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, ...)
- func (s *BaseTraderSpi) OnErrRtnFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, ...)
- func (s *BaseTraderSpi) OnErrRtnOptionSelfCloseAction(pOptionSelfCloseAction *thost.CThostFtdcOptionSelfCloseActionField, ...)
- func (s *BaseTraderSpi) OnErrRtnOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, ...)
- func (s *BaseTraderSpi) OnErrRtnOrderAction(pOrderAction *thost.CThostFtdcOrderActionField, ...)
- func (s *BaseTraderSpi) OnErrRtnOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, ...)
- func (s *BaseTraderSpi) OnErrRtnQueryBankBalanceByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, ...)
- func (s *BaseTraderSpi) OnErrRtnQuoteAction(pQuoteAction *thost.CThostFtdcQuoteActionField, ...)
- func (s *BaseTraderSpi) OnErrRtnQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, ...)
- func (s *BaseTraderSpi) OnErrRtnRepealBankToFutureByFutureManual(pReqRepeal *thost.CThostFtdcReqRepealField, ...)
- func (s *BaseTraderSpi) OnErrRtnRepealFutureToBankByFutureManual(pReqRepeal *thost.CThostFtdcReqRepealField, ...)
- func (s *BaseTraderSpi) OnFrontConnected()
- func (s *BaseTraderSpi) OnFrontDisconnected(nReason int)
- func (s *BaseTraderSpi) OnHeartBeatWarning(nTimeLapse int)
- func (s *BaseTraderSpi) OnRspAuthenticate(pRspAuthenticateField *thost.CThostFtdcRspAuthenticateField, ...)
- func (s *BaseTraderSpi) OnRspBatchOrderAction(pInputBatchOrderAction *thost.CThostFtdcInputBatchOrderActionField, ...)
- func (s *BaseTraderSpi) OnRspCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, ...)
- func (s *BaseTraderSpi) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
- func (s *BaseTraderSpi) OnRspExecOrderAction(pInputExecOrderAction *thost.CThostFtdcInputExecOrderActionField, ...)
- func (s *BaseTraderSpi) OnRspExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, ...)
- func (s *BaseTraderSpi) OnRspForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, ...)
- func (s *BaseTraderSpi) OnRspFromBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, ...)
- func (s *BaseTraderSpi) OnRspFromFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, ...)
- func (s *BaseTraderSpi) OnRspGenUserCaptcha(pRspGenUserCaptcha *thost.CThostFtdcRspGenUserCaptchaField, ...)
- func (s *BaseTraderSpi) OnRspGenUserText(pRspGenUserText *thost.CThostFtdcRspGenUserTextField, ...)
- func (s *BaseTraderSpi) OnRspOptionSelfCloseAction(pInputOptionSelfCloseAction *thost.CThostFtdcInputOptionSelfCloseActionField, ...)
- func (s *BaseTraderSpi) OnRspOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, ...)
- func (s *BaseTraderSpi) OnRspOrderAction(pInputOrderAction *thost.CThostFtdcInputOrderActionField, ...)
- func (s *BaseTraderSpi) OnRspOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, ...)
- func (s *BaseTraderSpi) OnRspParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, ...)
- func (s *BaseTraderSpi) OnRspParkedOrderInsert(pParkedOrder *thost.CThostFtdcParkedOrderField, ...)
- func (s *BaseTraderSpi) OnRspQryAccountregister(pAccountregister *thost.CThostFtdcAccountregisterField, ...)
- func (s *BaseTraderSpi) OnRspQryBrokerTradingAlgos(pBrokerTradingAlgos *thost.CThostFtdcBrokerTradingAlgosField, ...)
- func (s *BaseTraderSpi) OnRspQryBrokerTradingParams(pBrokerTradingParams *thost.CThostFtdcBrokerTradingParamsField, ...)
- func (s *BaseTraderSpi) OnRspQryCFMMCTradingAccountKey(pCFMMCTradingAccountKey *thost.CThostFtdcCFMMCTradingAccountKeyField, ...)
- func (s *BaseTraderSpi) OnRspQryClassifiedInstrument(pInstrument *thost.CThostFtdcInstrumentField, ...)
- func (s *BaseTraderSpi) OnRspQryCombAction(pCombAction *thost.CThostFtdcCombActionField, ...)
- func (s *BaseTraderSpi) OnRspQryCombInstrumentGuard(pCombInstrumentGuard *thost.CThostFtdcCombInstrumentGuardField, ...)
- func (s *BaseTraderSpi) OnRspQryCombPromotionParam(pCombPromotionParam *thost.CThostFtdcCombPromotionParamField, ...)
- func (s *BaseTraderSpi) OnRspQryContractBank(pContractBank *thost.CThostFtdcContractBankField, ...)
- func (s *BaseTraderSpi) OnRspQryDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField, ...)
- func (s *BaseTraderSpi) OnRspQryEWarrantOffset(pEWarrantOffset *thost.CThostFtdcEWarrantOffsetField, ...)
- func (s *BaseTraderSpi) OnRspQryExchange(pExchange *thost.CThostFtdcExchangeField, ...)
- func (s *BaseTraderSpi) OnRspQryExchangeMarginRate(pExchangeMarginRate *thost.CThostFtdcExchangeMarginRateField, ...)
- func (s *BaseTraderSpi) OnRspQryExchangeMarginRateAdjust(pExchangeMarginRateAdjust *thost.CThostFtdcExchangeMarginRateAdjustField, ...)
- func (s *BaseTraderSpi) OnRspQryExchangeRate(pExchangeRate *thost.CThostFtdcExchangeRateField, ...)
- func (s *BaseTraderSpi) OnRspQryExecOrder(pExecOrder *thost.CThostFtdcExecOrderField, ...)
- func (s *BaseTraderSpi) OnRspQryForQuote(pForQuote *thost.CThostFtdcForQuoteField, ...)
- func (s *BaseTraderSpi) OnRspQryInstrument(pInstrument *thost.CThostFtdcInstrumentField, ...)
- func (s *BaseTraderSpi) OnRspQryInstrumentCommissionRate(pInstrumentCommissionRate *thost.CThostFtdcInstrumentCommissionRateField, ...)
- func (s *BaseTraderSpi) OnRspQryInstrumentMarginRate(pInstrumentMarginRate *thost.CThostFtdcInstrumentMarginRateField, ...)
- func (s *BaseTraderSpi) OnRspQryInstrumentOrderCommRate(pInstrumentOrderCommRate *thost.CThostFtdcInstrumentOrderCommRateField, ...)
- func (s *BaseTraderSpi) OnRspQryInvestUnit(pInvestUnit *thost.CThostFtdcInvestUnitField, ...)
- func (s *BaseTraderSpi) OnRspQryInvestor(pInvestor *thost.CThostFtdcInvestorField, ...)
- func (s *BaseTraderSpi) OnRspQryInvestorPosition(pInvestorPosition *thost.CThostFtdcInvestorPositionField, ...)
- func (s *BaseTraderSpi) OnRspQryInvestorPositionCombineDetail(...)
- func (s *BaseTraderSpi) OnRspQryInvestorPositionDetail(pInvestorPositionDetail *thost.CThostFtdcInvestorPositionDetailField, ...)
- func (s *BaseTraderSpi) OnRspQryInvestorProductGroupMargin(pInvestorProductGroupMargin *thost.CThostFtdcInvestorProductGroupMarginField, ...)
- func (s *BaseTraderSpi) OnRspQryMMInstrumentCommissionRate(pMMInstrumentCommissionRate *thost.CThostFtdcMMInstrumentCommissionRateField, ...)
- func (s *BaseTraderSpi) OnRspQryMMOptionInstrCommRate(pMMOptionInstrCommRate *thost.CThostFtdcMMOptionInstrCommRateField, ...)
- func (s *BaseTraderSpi) OnRspQryMaxOrderVolume(pQryMaxOrderVolume *thost.CThostFtdcQryMaxOrderVolumeField, ...)
- func (s *BaseTraderSpi) OnRspQryNotice(pNotice *thost.CThostFtdcNoticeField, pRspInfo *thost.CThostFtdcRspInfoField, ...)
- func (s *BaseTraderSpi) OnRspQryOptionInstrCommRate(pOptionInstrCommRate *thost.CThostFtdcOptionInstrCommRateField, ...)
- func (s *BaseTraderSpi) OnRspQryOptionInstrTradeCost(pOptionInstrTradeCost *thost.CThostFtdcOptionInstrTradeCostField, ...)
- func (s *BaseTraderSpi) OnRspQryOptionSelfClose(pOptionSelfClose *thost.CThostFtdcOptionSelfCloseField, ...)
- func (s *BaseTraderSpi) OnRspQryOrder(pOrder *thost.CThostFtdcOrderField, pRspInfo *thost.CThostFtdcRspInfoField, ...)
- func (s *BaseTraderSpi) OnRspQryParkedOrder(pParkedOrder *thost.CThostFtdcParkedOrderField, ...)
- func (s *BaseTraderSpi) OnRspQryParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, ...)
- func (s *BaseTraderSpi) OnRspQryProduct(pProduct *thost.CThostFtdcProductField, pRspInfo *thost.CThostFtdcRspInfoField, ...)
- func (s *BaseTraderSpi) OnRspQryProductExchRate(pProductExchRate *thost.CThostFtdcProductExchRateField, ...)
- func (s *BaseTraderSpi) OnRspQryProductGroup(pProductGroup *thost.CThostFtdcProductGroupField, ...)
- func (s *BaseTraderSpi) OnRspQryQuote(pQuote *thost.CThostFtdcQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, ...)
- func (s *BaseTraderSpi) OnRspQryRiskSettleInvstPosition(pRiskSettleInvstPosition *thost.CThostFtdcRiskSettleInvstPositionField, ...)
- func (s *BaseTraderSpi) OnRspQryRiskSettleProductStatus(pRiskSettleProductStatus *thost.CThostFtdcRiskSettleProductStatusField, ...)
- func (s *BaseTraderSpi) OnRspQrySecAgentACIDMap(pSecAgentACIDMap *thost.CThostFtdcSecAgentACIDMapField, ...)
- func (s *BaseTraderSpi) OnRspQrySecAgentCheckMode(pSecAgentCheckMode *thost.CThostFtdcSecAgentCheckModeField, ...)
- func (s *BaseTraderSpi) OnRspQrySecAgentTradeInfo(pSecAgentTradeInfo *thost.CThostFtdcSecAgentTradeInfoField, ...)
- func (s *BaseTraderSpi) OnRspQrySecAgentTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, ...)
- func (s *BaseTraderSpi) OnRspQrySettlementInfo(pSettlementInfo *thost.CThostFtdcSettlementInfoField, ...)
- func (s *BaseTraderSpi) OnRspQrySettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, ...)
- func (s *BaseTraderSpi) OnRspQryTrade(pTrade *thost.CThostFtdcTradeField, pRspInfo *thost.CThostFtdcRspInfoField, ...)
- func (s *BaseTraderSpi) OnRspQryTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, ...)
- func (s *BaseTraderSpi) OnRspQryTradingCode(pTradingCode *thost.CThostFtdcTradingCodeField, ...)
- func (s *BaseTraderSpi) OnRspQryTradingNotice(pTradingNotice *thost.CThostFtdcTradingNoticeField, ...)
- func (s *BaseTraderSpi) OnRspQryTransferBank(pTransferBank *thost.CThostFtdcTransferBankField, ...)
- func (s *BaseTraderSpi) OnRspQryTransferSerial(pTransferSerial *thost.CThostFtdcTransferSerialField, ...)
- func (s *BaseTraderSpi) OnRspQueryBankAccountMoneyByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, ...)
- func (s *BaseTraderSpi) OnRspQueryCFMMCTradingAccountToken(...)
- func (s *BaseTraderSpi) OnRspQuoteAction(pInputQuoteAction *thost.CThostFtdcInputQuoteActionField, ...)
- func (s *BaseTraderSpi) OnRspQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, ...)
- func (s *BaseTraderSpi) OnRspRemoveParkedOrder(pRemoveParkedOrder *thost.CThostFtdcRemoveParkedOrderField, ...)
- func (s *BaseTraderSpi) OnRspRemoveParkedOrderAction(pRemoveParkedOrderAction *thost.CThostFtdcRemoveParkedOrderActionField, ...)
- func (s *BaseTraderSpi) OnRspSettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, ...)
- func (s *BaseTraderSpi) OnRspTradingAccountPasswordUpdate(...)
- func (s *BaseTraderSpi) OnRspUserAuthMethod(pRspUserAuthMethod *thost.CThostFtdcRspUserAuthMethodField, ...)
- func (s *BaseTraderSpi) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, ...)
- func (s *BaseTraderSpi) OnRspUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, ...)
- func (s *BaseTraderSpi) OnRspUserPasswordUpdate(pUserPasswordUpdate *thost.CThostFtdcUserPasswordUpdateField, ...)
- func (s *BaseTraderSpi) OnRtnBulletin(pBulletin *thost.CThostFtdcBulletinField)
- func (s *BaseTraderSpi) OnRtnCFMMCTradingAccountToken(pCFMMCTradingAccountToken *thost.CThostFtdcCFMMCTradingAccountTokenField)
- func (s *BaseTraderSpi) OnRtnCancelAccountByBank(pCancelAccount *thost.CThostFtdcCancelAccountField)
- func (s *BaseTraderSpi) OnRtnChangeAccountByBank(pChangeAccount *thost.CThostFtdcChangeAccountField)
- func (s *BaseTraderSpi) OnRtnCombAction(pCombAction *thost.CThostFtdcCombActionField)
- func (s *BaseTraderSpi) OnRtnErrorConditionalOrder(pErrorConditionalOrder *thost.CThostFtdcErrorConditionalOrderField)
- func (s *BaseTraderSpi) OnRtnExecOrder(pExecOrder *thost.CThostFtdcExecOrderField)
- func (s *BaseTraderSpi) OnRtnForQuoteRsp(pForQuoteRsp *thost.CThostFtdcForQuoteRspField)
- func (s *BaseTraderSpi) OnRtnFromBankToFutureByBank(pRspTransfer *thost.CThostFtdcRspTransferField)
- func (s *BaseTraderSpi) OnRtnFromBankToFutureByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
- func (s *BaseTraderSpi) OnRtnFromFutureToBankByBank(pRspTransfer *thost.CThostFtdcRspTransferField)
- func (s *BaseTraderSpi) OnRtnFromFutureToBankByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
- func (s *BaseTraderSpi) OnRtnInstrumentStatus(pInstrumentStatus *thost.CThostFtdcInstrumentStatusField)
- func (s *BaseTraderSpi) OnRtnOpenAccountByBank(pOpenAccount *thost.CThostFtdcOpenAccountField)
- func (s *BaseTraderSpi) OnRtnOptionSelfClose(pOptionSelfClose *thost.CThostFtdcOptionSelfCloseField)
- func (s *BaseTraderSpi) OnRtnOrder(pOrder *thost.CThostFtdcOrderField)
- func (s *BaseTraderSpi) OnRtnQueryBankBalanceByFuture(pNotifyQueryAccount *thost.CThostFtdcNotifyQueryAccountField)
- func (s *BaseTraderSpi) OnRtnQuote(pQuote *thost.CThostFtdcQuoteField)
- func (s *BaseTraderSpi) OnRtnRepealFromBankToFutureByBank(pRspRepeal *thost.CThostFtdcRspRepealField)
- func (s *BaseTraderSpi) OnRtnRepealFromBankToFutureByFuture(pRspRepeal *thost.CThostFtdcRspRepealField)
- func (s *BaseTraderSpi) OnRtnRepealFromBankToFutureByFutureManual(pRspRepeal *thost.CThostFtdcRspRepealField)
- func (s *BaseTraderSpi) OnRtnRepealFromFutureToBankByBank(pRspRepeal *thost.CThostFtdcRspRepealField)
- func (s *BaseTraderSpi) OnRtnRepealFromFutureToBankByFuture(pRspRepeal *thost.CThostFtdcRspRepealField)
- func (s *BaseTraderSpi) OnRtnRepealFromFutureToBankByFutureManual(pRspRepeal *thost.CThostFtdcRspRepealField)
- func (s *BaseTraderSpi) OnRtnTrade(pTrade *thost.CThostFtdcTradeField)
- func (s *BaseTraderSpi) OnRtnTradingNotice(pTradingNoticeInfo *thost.CThostFtdcTradingNoticeInfoField)
- type BrokerTradingParamsField
- type ContractBankField
- type DepthMarketDataField
- type InputOrderActionField
- type InputOrderField
- type InstrumentCommissionRateField
- type InstrumentField
- type InstrumentMarginRateField
- type InstrumentStatusField
- type InvestorPositionField
- type MdApi
- type MdApiLite
- func (c MdApiLite) GetApiVersion() string
- func (c MdApiLite) GetTradingDay() string
- func (c MdApiLite) Init()
- func (c MdApiLite) Join() int
- func (c MdApiLite) RegisterFensUserInfo(pFensUserInfo *thost.CThostFtdcFensUserInfoField)
- func (c MdApiLite) RegisterFront(frontAddress string)
- func (c MdApiLite) RegisterNameServer(nsAddress string)
- func (c MdApiLite) RegisterSpi(pSpi MdSpi)
- func (c MdApiLite) Release()
- func (c MdApiLite) ReqQryMulticastInstrument(pQryMulticastInstrument *thost.CThostFtdcQryMulticastInstrumentField, ...) int
- func (t *MdApiLite) ReqUserLogin(pReqUserLoginField *ReqUserLoginField, nRequestID int) int
- func (c MdApiLite) ReqUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, nRequestID int) int
- func (c MdApiLite) SubscribeForQuoteRsp(instrumentIDs ...string) int
- func (c MdApiLite) SubscribeMarketData(instrumentIDs ...string) int
- func (c MdApiLite) UnSubscribeForQuoteRsp(instrumentIDs ...string) int
- func (c MdApiLite) UnSubscribeMarketData(instrumentIDs ...string) int
- type MdOption
- type MdSpi
- type MdSpiLite
- func (s *MdSpiLite) OnFrontConnected()
- func (s *MdSpiLite) OnFrontDisconnected(nReason int)
- func (s *MdSpiLite) OnHeartBeatWarning(nTimeLapse int)
- func (s *MdSpiLite) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
- func (s *MdSpiLite) OnRspSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, ...)
- func (s *MdSpiLite) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, ...)
- func (s *MdSpiLite) OnRtnDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField)
- func (s *MdSpiLite) SetOnFrontConnected(f func())
- func (s *MdSpiLite) SetOnFrontDisconnected(f func(int))
- func (s *MdSpiLite) SetOnHeartBeatWarning(f func(int))
- func (s *MdSpiLite) SetOnRspError(f func(*RspInfoField, int, bool))
- func (s *MdSpiLite) SetOnRspSubMarketData(f func(string, *RspInfoField, int, bool))
- func (s *MdSpiLite) SetOnRspUserLogin(f func(*RspUserLoginField, *RspInfoField, int, bool))
- func (s *MdSpiLite) SetOnRtnDepthMarketData(f func(*DepthMarketDataField))
- type OrderActionField
- type OrderField
- type QryAccountregisterField
- type QryBrokerTradingParamsField
- type QryContractBankField
- type QryDepthMarketDataField
- type QryInstrumentCommissionRateField
- type QryInstrumentField
- type QryInstrumentMarginRateField
- type QryInvestorPositionField
- type QryOrderField
- type QrySettlementInfoConfirmField
- type QrySettlementInfoField
- type QryTradeField
- type QryTradingAccountField
- type QryTransferSerialField
- type ReqAuthenticateField
- type ReqTransferField
- type ReqUserLoginField
- type RspAuthenticateField
- type RspInfoField
- type RspTransferField
- type RspUserLoginField
- type SettlementInfoConfirmField
- type SettlementInfoField
- type TradeField
- type TraderApi
- type TraderApiLite
- func (c TraderApiLite) GetApiVersion() string
- func (c TraderApiLite) GetTradingDay() string
- func (c TraderApiLite) Init()
- func (c TraderApiLite) Join() int
- func (c TraderApiLite) RegisterFensUserInfo(pFensUserInfo *thost.CThostFtdcFensUserInfoField)
- func (c TraderApiLite) RegisterFront(frontAddress string)
- func (c TraderApiLite) RegisterNameServer(nsAddress string)
- func (c TraderApiLite) RegisterSpi(pSpi TraderSpi)
- func (c TraderApiLite) RegisterUserSystemInfo(pUserSystemInfo *thost.CThostFtdcUserSystemInfoField) int
- func (c TraderApiLite) Release()
- func (t *TraderApiLite) ReqAuthenticate(pReqAuthenticateField *ReqAuthenticateField, nRequestID int) int
- func (c TraderApiLite) ReqBatchOrderAction(pInputBatchOrderAction *thost.CThostFtdcInputBatchOrderActionField, ...) int
- func (c TraderApiLite) ReqCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, nRequestID int) int
- func (c TraderApiLite) ReqExecOrderAction(pInputExecOrderAction *thost.CThostFtdcInputExecOrderActionField, ...) int
- func (c TraderApiLite) ReqExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, nRequestID int) int
- func (c TraderApiLite) ReqForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, nRequestID int) int
- func (t *TraderApiLite) ReqFromBankToFutureByFuture(pReqTransfer *ReqTransferField, nRequestID int) int
- func (t *TraderApiLite) ReqFromFutureToBankByFuture(pReqTransfer *ReqTransferField, nRequestID int) int
- func (c TraderApiLite) ReqGenUserCaptcha(pReqGenUserCaptcha *thost.CThostFtdcReqGenUserCaptchaField, nRequestID int) int
- func (c TraderApiLite) ReqGenUserText(pReqGenUserText *thost.CThostFtdcReqGenUserTextField, nRequestID int) int
- func (c TraderApiLite) ReqOptionSelfCloseAction(pInputOptionSelfCloseAction *thost.CThostFtdcInputOptionSelfCloseActionField, ...) int
- func (c TraderApiLite) ReqOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, ...) int
- func (t *TraderApiLite) ReqOrderAction(pInputOrderAction *InputOrderActionField, nRequestID int) int
- func (t *TraderApiLite) ReqOrderInsert(pInputOrder *InputOrderField, nRequestID int) int
- func (c TraderApiLite) ReqParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, nRequestID int) int
- func (c TraderApiLite) ReqParkedOrderInsert(pParkedOrder *thost.CThostFtdcParkedOrderField, nRequestID int) int
- func (t *TraderApiLite) ReqQryAccountregister(pQryAccountregister *QryAccountregisterField, nRequestID int) int
- func (c TraderApiLite) ReqQryBrokerTradingAlgos(pQryBrokerTradingAlgos *thost.CThostFtdcQryBrokerTradingAlgosField, ...) int
- func (t *TraderApiLite) ReqQryBrokerTradingParams(pQryBrokerTradingParams *QryBrokerTradingParamsField, nRequestID int) int
- func (c TraderApiLite) ReqQryCFMMCTradingAccountKey(pQryCFMMCTradingAccountKey *thost.CThostFtdcQryCFMMCTradingAccountKeyField, ...) int
- func (c TraderApiLite) ReqQryClassifiedInstrument(pQryClassifiedInstrument *thost.CThostFtdcQryClassifiedInstrumentField, ...) int
- func (c TraderApiLite) ReqQryCombAction(pQryCombAction *thost.CThostFtdcQryCombActionField, nRequestID int) int
- func (c TraderApiLite) ReqQryCombInstrumentGuard(pQryCombInstrumentGuard *thost.CThostFtdcQryCombInstrumentGuardField, ...) int
- func (c TraderApiLite) ReqQryCombPromotionParam(pQryCombPromotionParam *thost.CThostFtdcQryCombPromotionParamField, ...) int
- func (t *TraderApiLite) ReqQryContractBank(pQryContractBank *QryContractBankField, nRequestID int) int
- func (t *TraderApiLite) ReqQryDepthMarketData(pQryDepthMarketData *QryDepthMarketDataField, nRequestID int) int
- func (c TraderApiLite) ReqQryEWarrantOffset(pQryEWarrantOffset *thost.CThostFtdcQryEWarrantOffsetField, nRequestID int) int
- func (c TraderApiLite) ReqQryExchange(pQryExchange *thost.CThostFtdcQryExchangeField, nRequestID int) int
- func (c TraderApiLite) ReqQryExchangeMarginRate(pQryExchangeMarginRate *thost.CThostFtdcQryExchangeMarginRateField, ...) int
- func (c TraderApiLite) ReqQryExchangeMarginRateAdjust(pQryExchangeMarginRateAdjust *thost.CThostFtdcQryExchangeMarginRateAdjustField, ...) int
- func (c TraderApiLite) ReqQryExchangeRate(pQryExchangeRate *thost.CThostFtdcQryExchangeRateField, nRequestID int) int
- func (c TraderApiLite) ReqQryExecOrder(pQryExecOrder *thost.CThostFtdcQryExecOrderField, nRequestID int) int
- func (c TraderApiLite) ReqQryForQuote(pQryForQuote *thost.CThostFtdcQryForQuoteField, nRequestID int) int
- func (t *TraderApiLite) ReqQryInstrument(pQryInstrument *QryInstrumentField, nRequestID int) int
- func (t *TraderApiLite) ReqQryInstrumentCommissionRate(pQryInstrumentCommissionRate *QryInstrumentCommissionRateField, nRequestID int) int
- func (t *TraderApiLite) ReqQryInstrumentMarginRate(pQryInstrumentMarginRate *QryInstrumentMarginRateField, nRequestID int) int
- func (c TraderApiLite) ReqQryInstrumentOrderCommRate(pQryInstrumentOrderCommRate *thost.CThostFtdcQryInstrumentOrderCommRateField, ...) int
- func (c TraderApiLite) ReqQryInvestUnit(pQryInvestUnit *thost.CThostFtdcQryInvestUnitField, nRequestID int) int
- func (c TraderApiLite) ReqQryInvestor(pQryInvestor *thost.CThostFtdcQryInvestorField, nRequestID int) int
- func (t *TraderApiLite) ReqQryInvestorPosition(pQryInvestorPosition *QryInvestorPositionField, nRequestID int) int
- func (c TraderApiLite) ReqQryInvestorPositionCombineDetail(...) int
- func (c TraderApiLite) ReqQryInvestorPositionDetail(pQryInvestorPositionDetail *thost.CThostFtdcQryInvestorPositionDetailField, ...) int
- func (c TraderApiLite) ReqQryInvestorProductGroupMargin(...) int
- func (c TraderApiLite) ReqQryMMInstrumentCommissionRate(...) int
- func (c TraderApiLite) ReqQryMMOptionInstrCommRate(pQryMMOptionInstrCommRate *thost.CThostFtdcQryMMOptionInstrCommRateField, ...) int
- func (c TraderApiLite) ReqQryMaxOrderVolume(pQryMaxOrderVolume *thost.CThostFtdcQryMaxOrderVolumeField, nRequestID int) int
- func (c TraderApiLite) ReqQryNotice(pQryNotice *thost.CThostFtdcQryNoticeField, nRequestID int) int
- func (c TraderApiLite) ReqQryOptionInstrCommRate(pQryOptionInstrCommRate *thost.CThostFtdcQryOptionInstrCommRateField, ...) int
- func (c TraderApiLite) ReqQryOptionInstrTradeCost(pQryOptionInstrTradeCost *thost.CThostFtdcQryOptionInstrTradeCostField, ...) int
- func (c TraderApiLite) ReqQryOptionSelfClose(pQryOptionSelfClose *thost.CThostFtdcQryOptionSelfCloseField, nRequestID int) int
- func (t *TraderApiLite) ReqQryOrder(pQryOrder *QryOrderField, nRequestID int) int
- func (c TraderApiLite) ReqQryParkedOrder(pQryParkedOrder *thost.CThostFtdcQryParkedOrderField, nRequestID int) int
- func (c TraderApiLite) ReqQryParkedOrderAction(pQryParkedOrderAction *thost.CThostFtdcQryParkedOrderActionField, ...) int
- func (c TraderApiLite) ReqQryProduct(pQryProduct *thost.CThostFtdcQryProductField, nRequestID int) int
- func (c TraderApiLite) ReqQryProductExchRate(pQryProductExchRate *thost.CThostFtdcQryProductExchRateField, nRequestID int) int
- func (c TraderApiLite) ReqQryProductGroup(pQryProductGroup *thost.CThostFtdcQryProductGroupField, nRequestID int) int
- func (c TraderApiLite) ReqQryQuote(pQryQuote *thost.CThostFtdcQryQuoteField, nRequestID int) int
- func (c TraderApiLite) ReqQryRiskSettleInvstPosition(pQryRiskSettleInvstPosition *thost.CThostFtdcQryRiskSettleInvstPositionField, ...) int
- func (c TraderApiLite) ReqQryRiskSettleProductStatus(pQryRiskSettleProductStatus *thost.CThostFtdcQryRiskSettleProductStatusField, ...) int
- func (c TraderApiLite) ReqQrySecAgentACIDMap(pQrySecAgentACIDMap *thost.CThostFtdcQrySecAgentACIDMapField, nRequestID int) int
- func (c TraderApiLite) ReqQrySecAgentCheckMode(pQrySecAgentCheckMode *thost.CThostFtdcQrySecAgentCheckModeField, ...) int
- func (c TraderApiLite) ReqQrySecAgentTradeInfo(pQrySecAgentTradeInfo *thost.CThostFtdcQrySecAgentTradeInfoField, ...) int
- func (c TraderApiLite) ReqQrySecAgentTradingAccount(pQryTradingAccount *thost.CThostFtdcQryTradingAccountField, nRequestID int) int
- func (t *TraderApiLite) ReqQrySettlementInfo(pQrySettlementInfo *QrySettlementInfoField, nRequestID int) int
- func (t *TraderApiLite) ReqQrySettlementInfoConfirm(pQrySettlementInfoConfirm *QrySettlementInfoConfirmField, nRequestID int) int
- func (t *TraderApiLite) ReqQryTrade(pQryTrade *QryTradeField, nRequestID int) int
- func (t *TraderApiLite) ReqQryTradingAccount(pQryTradingAccount *QryTradingAccountField, nRequestID int) int
- func (c TraderApiLite) ReqQryTradingCode(pQryTradingCode *thost.CThostFtdcQryTradingCodeField, nRequestID int) int
- func (c TraderApiLite) ReqQryTradingNotice(pQryTradingNotice *thost.CThostFtdcQryTradingNoticeField, nRequestID int) int
- func (c TraderApiLite) ReqQryTransferBank(pQryTransferBank *thost.CThostFtdcQryTransferBankField, nRequestID int) int
- func (t *TraderApiLite) ReqQryTransferSerial(pQryTransferSerial *QryTransferSerialField, nRequestID int) int
- func (c TraderApiLite) ReqQueryBankAccountMoneyByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, nRequestID int) int
- func (c TraderApiLite) ReqQueryCFMMCTradingAccountToken(...) int
- func (c TraderApiLite) ReqQuoteAction(pInputQuoteAction *thost.CThostFtdcInputQuoteActionField, nRequestID int) int
- func (c TraderApiLite) ReqQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, nRequestID int) int
- func (c TraderApiLite) ReqRemoveParkedOrder(pRemoveParkedOrder *thost.CThostFtdcRemoveParkedOrderField, nRequestID int) int
- func (c TraderApiLite) ReqRemoveParkedOrderAction(pRemoveParkedOrderAction *thost.CThostFtdcRemoveParkedOrderActionField, ...) int
- func (t *TraderApiLite) ReqSettlementInfoConfirm(pSettlementInfoConfirm *SettlementInfoConfirmField, nRequestID int) int
- func (t *TraderApiLite) ReqTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *TradingAccountPasswordUpdateField, ...) int
- func (c TraderApiLite) ReqUserAuthMethod(pReqUserAuthMethod *thost.CThostFtdcReqUserAuthMethodField, nRequestID int) int
- func (t *TraderApiLite) ReqUserLogin(pReqUserLoginField *ReqUserLoginField, nRequestID int) int
- func (c TraderApiLite) ReqUserLoginWithCaptcha(pReqUserLoginWithCaptcha *thost.CThostFtdcReqUserLoginWithCaptchaField, ...) int
- func (c TraderApiLite) ReqUserLoginWithOTP(pReqUserLoginWithOTP *thost.CThostFtdcReqUserLoginWithOTPField, nRequestID int) int
- func (c TraderApiLite) ReqUserLoginWithText(pReqUserLoginWithText *thost.CThostFtdcReqUserLoginWithTextField, ...) int
- func (c TraderApiLite) ReqUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, nRequestID int) int
- func (t *TraderApiLite) ReqUserPasswordUpdate(pUserPasswordUpdate *UserPasswordUpdateField, nRequestID int) int
- func (c TraderApiLite) SubmitUserSystemInfo(pUserSystemInfo *thost.CThostFtdcUserSystemInfoField) int
- func (c TraderApiLite) SubscribePrivateTopic(nResumeType thost.THOST_TE_RESUME_TYPE)
- func (c TraderApiLite) SubscribePublicTopic(nResumeType thost.THOST_TE_RESUME_TYPE)
- type TraderOption
- type TraderSpi
- type TraderSpiLite
- func (s *TraderSpiLite) OnErrRtnOrderAction(pOrderAction *thost.CThostFtdcOrderActionField, ...)
- func (s *TraderSpiLite) OnErrRtnOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, ...)
- func (s *TraderSpiLite) OnFrontConnected()
- func (s *TraderSpiLite) OnFrontDisconnected(nReason int)
- func (s *TraderSpiLite) OnHeartBeatWarning(nTimeLapse int)
- func (s *TraderSpiLite) OnRspAuthenticate(pRspAuthenticateField *thost.CThostFtdcRspAuthenticateField, ...)
- func (s *TraderSpiLite) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
- func (s *TraderSpiLite) OnRspOrderAction(pInputOrderAction *thost.CThostFtdcInputOrderActionField, ...)
- func (s *TraderSpiLite) OnRspOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, ...)
- func (s *TraderSpiLite) OnRspQryAccountregister(pAccountregister *thost.CThostFtdcAccountregisterField, ...)
- func (s *TraderSpiLite) OnRspQryBrokerTradingParams(pBrokerTradingParams *thost.CThostFtdcBrokerTradingParamsField, ...)
- func (s *TraderSpiLite) OnRspQryContractBank(pContractBank *thost.CThostFtdcContractBankField, ...)
- func (s *TraderSpiLite) OnRspQryDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField, ...)
- func (s *TraderSpiLite) OnRspQryInstrument(pInstrument *thost.CThostFtdcInstrumentField, ...)
- func (s *TraderSpiLite) OnRspQryInstrumentCommissionRate(pInstrumentCommissionRate *thost.CThostFtdcInstrumentCommissionRateField, ...)
- func (s *TraderSpiLite) OnRspQryInstrumentMarginRate(pInstrumentMarginRate *thost.CThostFtdcInstrumentMarginRateField, ...)
- func (s *TraderSpiLite) OnRspQryInvestorPosition(pInvestorPosition *thost.CThostFtdcInvestorPositionField, ...)
- func (s *TraderSpiLite) OnRspQryOrder(pOrder *thost.CThostFtdcOrderField, pRspInfo *thost.CThostFtdcRspInfoField, ...)
- func (s *TraderSpiLite) OnRspQrySettlementInfo(pSettlementInfo *thost.CThostFtdcSettlementInfoField, ...)
- func (s *TraderSpiLite) OnRspQryTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, ...)
- func (s *TraderSpiLite) OnRspQryTransferSerial(pTransferSerial *thost.CThostFtdcTransferSerialField, ...)
- func (s *TraderSpiLite) OnRspSettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, ...)
- func (s *TraderSpiLite) OnRspTradingAccountPasswordUpdate(...)
- func (s *TraderSpiLite) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, ...)
- func (s *TraderSpiLite) OnRspUserPasswordUpdate(pUserPasswordUpdate *thost.CThostFtdcUserPasswordUpdateField, ...)
- func (s *TraderSpiLite) OnRtnFromBankToFutureByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
- func (s *TraderSpiLite) OnRtnFromFutureToBankByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
- func (s *TraderSpiLite) OnRtnInstrumentStatus(pInstrumentStatus *thost.CThostFtdcInstrumentStatusField)
- func (s *TraderSpiLite) OnRtnOrder(pOrder *thost.CThostFtdcOrderField)
- func (s *TraderSpiLite) OnRtnTrade(pTrade *thost.CThostFtdcTradeField)
- func (s *TraderSpiLite) OnRtnTradingNotice(pTradingNoticeInfo *thost.CThostFtdcTradingNoticeInfoField)
- func (s *TraderSpiLite) SetOnErrRtnOrderAction(f func(*OrderActionField, *RspInfoField))
- func (s *TraderSpiLite) SetOnErrRtnOrderInsert(f func(*InputOrderField, *RspInfoField))
- func (s *TraderSpiLite) SetOnFrontConnected(f func())
- func (s *TraderSpiLite) SetOnFrontDisconnected(f func(int))
- func (s *TraderSpiLite) SetOnHeartBeatWarning(f func(int))
- func (s *TraderSpiLite) SetOnRspAuthenticate(f func(*RspAuthenticateField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspError(f func(*RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspOrderAction(f func(*InputOrderActionField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspOrderInsert(f func(*InputOrderField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryAccountregister(f func(*AccountregisterField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryBrokerTradingParams(f func(*BrokerTradingParamsField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryContractBank(f func(*ContractBankField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryDepthMarketData(f func(*DepthMarketDataField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryInstrument(f func(*InstrumentField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryInstrumentCommissionRate(f func(*InstrumentCommissionRateField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryInstrumentMarginRate(f func(*InstrumentMarginRateField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryInvestorPosition(f func(*InvestorPositionField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryOrder(f func(*OrderField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQrySettlementInfo(f func(*SettlementInfoField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryTradingAccount(f func(*TradingAccountField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspQryTransferSerial(f func(*TransferSerialField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspSettlementInfoConfirm(f func(*SettlementInfoConfirmField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspTradingAccountPasswordUpdate(f func(*TradingAccountPasswordUpdateField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspUserLogin(f func(*RspUserLoginField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRspUserPasswordUpdate(f func(*UserPasswordUpdateField, *RspInfoField, int, bool))
- func (s *TraderSpiLite) SetOnRtnFromBankToFutureByFuture(f func(*RspTransferField))
- func (s *TraderSpiLite) SetOnRtnFromFutureToBankByFuture(f func(*RspTransferField))
- func (s *TraderSpiLite) SetOnRtnInstrumentStatus(f func(*InstrumentStatusField))
- func (s *TraderSpiLite) SetOnRtnOrder(f func(*OrderField))
- func (s *TraderSpiLite) SetOnRtnTrade(f func(*TradeField))
- func (s *TraderSpiLite) SetOnRtnTradingNotice(f func(*TradingNoticeInfoField))
- type TradingAccountField
- type TradingAccountPasswordUpdateField
- type TradingNoticeInfoField
- type TransferSerialField
- type UserPasswordUpdateField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMdApi ¶
func CreateMdApi(options ...MdOption) *mdApi
func CreateTraderApi ¶
func CreateTraderApi(options ...TraderOption) *traderApi
Types ¶
type AccountregisterField ¶
type AccountregisterField struct {
///交易日期
TradeDay string
///银行编码
BankID string
///银行分支机构编码
BankBranchID string
///银行帐号
BankAccount string
///期货公司编码
BrokerID string
///期货公司分支机构编码
BrokerBranchID string
///投资者帐号
AccountID string
///证件类型
IdCardType byte
///证件号码
IdentifiedCardNo string
///客户姓名
CustomerName string
///币种代码
CurrencyID string
///开销户类别
OpenOrDestroy byte
///签约日期
RegDate string
///解约日期
OutDate string
///交易ID
TID int
///客户类型
CustType byte
///银行帐号类型
BankAccType byte
///长客户姓名
LongCustomerName string
}
客户开销户信息表
type BaseMdSpi ¶
type BaseMdSpi struct {
// 当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
OnFrontConnectedCallback func()
// 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
///@param nReason 错误原因
/// 0x1001 网络读失败
/// 0x1002 网络写失败
/// 0x2001 接收心跳超时
/// 0x2002 发送心跳失败
/// 0x2003 收到错误报文
OnFrontDisconnectedCallback func(int)
// 心跳超时警告。当长时间未收到报文时,该方法被调用。
///@param nTimeLapse 距离上次接收报文的时间
OnHeartBeatWarningCallback func(int)
// 登录请求响应
OnRspUserLoginCallback func(*thost.CThostFtdcRspUserLoginField, *thost.CThostFtdcRspInfoField, int, bool)
// 登出请求响应
OnRspUserLogoutCallback func(*thost.CThostFtdcUserLogoutField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询组播合约响应
OnRspQryMulticastInstrumentCallback func(*thost.CThostFtdcMulticastInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 错误应答
OnRspErrorCallback func(*thost.CThostFtdcRspInfoField, int, bool)
// 订阅行情应答
OnRspSubMarketDataCallback func(*thost.CThostFtdcSpecificInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 取消订阅行情应答
OnRspUnSubMarketDataCallback func(*thost.CThostFtdcSpecificInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 订阅询价应答
OnRspSubForQuoteRspCallback func(*thost.CThostFtdcSpecificInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 取消订阅询价应答
OnRspUnSubForQuoteRspCallback func(*thost.CThostFtdcSpecificInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 深度行情通知
OnRtnDepthMarketDataCallback func(*thost.CThostFtdcDepthMarketDataField)
// 询价通知
OnRtnForQuoteRspCallback func(*thost.CThostFtdcForQuoteRspField)
}
func (*BaseMdSpi) OnFrontConnected ¶
func (s *BaseMdSpi) OnFrontConnected()
当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
func (*BaseMdSpi) OnFrontDisconnected ¶
当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 /@param nReason 错误原因 / 0x1001 网络读失败 / 0x1002 网络写失败 / 0x2001 接收心跳超时 / 0x2002 发送心跳失败 / 0x2003 收到错误报文
func (*BaseMdSpi) OnHeartBeatWarning ¶
心跳超时警告。当长时间未收到报文时,该方法被调用。 /@param nTimeLapse 距离上次接收报文的时间
func (*BaseMdSpi) OnRspError ¶
func (s *BaseMdSpi) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
错误应答
func (*BaseMdSpi) OnRspQryMulticastInstrument ¶
func (s *BaseMdSpi) OnRspQryMulticastInstrument(pMulticastInstrument *thost.CThostFtdcMulticastInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询组播合约响应
func (*BaseMdSpi) OnRspSubForQuoteRsp ¶
func (s *BaseMdSpi) OnRspSubForQuoteRsp(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
订阅询价应答
func (*BaseMdSpi) OnRspSubMarketData ¶
func (s *BaseMdSpi) OnRspSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
订阅行情应答
func (*BaseMdSpi) OnRspUnSubForQuoteRsp ¶
func (s *BaseMdSpi) OnRspUnSubForQuoteRsp(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
取消订阅询价应答
func (*BaseMdSpi) OnRspUnSubMarketData ¶
func (s *BaseMdSpi) OnRspUnSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
取消订阅行情应答
func (*BaseMdSpi) OnRspUserLogin ¶
func (s *BaseMdSpi) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
登录请求响应
func (*BaseMdSpi) OnRspUserLogout ¶
func (s *BaseMdSpi) OnRspUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
登出请求响应
func (*BaseMdSpi) OnRtnDepthMarketData ¶
func (s *BaseMdSpi) OnRtnDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField)
深度行情通知
func (*BaseMdSpi) OnRtnForQuoteRsp ¶
func (s *BaseMdSpi) OnRtnForQuoteRsp(pForQuoteRsp *thost.CThostFtdcForQuoteRspField)
询价通知
type BaseTraderSpi ¶
type BaseTraderSpi struct {
// 当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
OnFrontConnectedCallback func()
// 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
///@param nReason 错误原因
/// 0x1001 网络读失败
/// 0x1002 网络写失败
/// 0x2001 接收心跳超时
/// 0x2002 发送心跳失败
/// 0x2003 收到错误报文
OnFrontDisconnectedCallback func(int)
// 心跳超时警告。当长时间未收到报文时,该方法被调用。
///@param nTimeLapse 距离上次接收报文的时间
OnHeartBeatWarningCallback func(int)
// 客户端认证响应
OnRspAuthenticateCallback func(*thost.CThostFtdcRspAuthenticateField, *thost.CThostFtdcRspInfoField, int, bool)
// 登录请求响应
OnRspUserLoginCallback func(*thost.CThostFtdcRspUserLoginField, *thost.CThostFtdcRspInfoField, int, bool)
// 登出请求响应
OnRspUserLogoutCallback func(*thost.CThostFtdcUserLogoutField, *thost.CThostFtdcRspInfoField, int, bool)
// 用户口令更新请求响应
OnRspUserPasswordUpdateCallback func(*thost.CThostFtdcUserPasswordUpdateField, *thost.CThostFtdcRspInfoField, int, bool)
// 资金账户口令更新请求响应
OnRspTradingAccountPasswordUpdateCallback func(*thost.CThostFtdcTradingAccountPasswordUpdateField, *thost.CThostFtdcRspInfoField, int, bool)
// 查询用户当前支持的认证模式的回复
OnRspUserAuthMethodCallback func(*thost.CThostFtdcRspUserAuthMethodField, *thost.CThostFtdcRspInfoField, int, bool)
// 获取图形验证码请求的回复
OnRspGenUserCaptchaCallback func(*thost.CThostFtdcRspGenUserCaptchaField, *thost.CThostFtdcRspInfoField, int, bool)
// 获取短信验证码请求的回复
OnRspGenUserTextCallback func(*thost.CThostFtdcRspGenUserTextField, *thost.CThostFtdcRspInfoField, int, bool)
// 报单录入请求响应
OnRspOrderInsertCallback func(*thost.CThostFtdcInputOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 预埋单录入请求响应
OnRspParkedOrderInsertCallback func(*thost.CThostFtdcParkedOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 预埋撤单录入请求响应
OnRspParkedOrderActionCallback func(*thost.CThostFtdcParkedOrderActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 报单操作请求响应
OnRspOrderActionCallback func(*thost.CThostFtdcInputOrderActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 查询最大报单数量响应
OnRspQryMaxOrderVolumeCallback func(*thost.CThostFtdcQryMaxOrderVolumeField, *thost.CThostFtdcRspInfoField, int, bool)
// 投资者结算结果确认响应
OnRspSettlementInfoConfirmCallback func(*thost.CThostFtdcSettlementInfoConfirmField, *thost.CThostFtdcRspInfoField, int, bool)
// 删除预埋单响应
OnRspRemoveParkedOrderCallback func(*thost.CThostFtdcRemoveParkedOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 删除预埋撤单响应
OnRspRemoveParkedOrderActionCallback func(*thost.CThostFtdcRemoveParkedOrderActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 执行宣告录入请求响应
OnRspExecOrderInsertCallback func(*thost.CThostFtdcInputExecOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 执行宣告操作请求响应
OnRspExecOrderActionCallback func(*thost.CThostFtdcInputExecOrderActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 询价录入请求响应
OnRspForQuoteInsertCallback func(*thost.CThostFtdcInputForQuoteField, *thost.CThostFtdcRspInfoField, int, bool)
// 报价录入请求响应
OnRspQuoteInsertCallback func(*thost.CThostFtdcInputQuoteField, *thost.CThostFtdcRspInfoField, int, bool)
// 报价操作请求响应
OnRspQuoteActionCallback func(*thost.CThostFtdcInputQuoteActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 批量报单操作请求响应
OnRspBatchOrderActionCallback func(*thost.CThostFtdcInputBatchOrderActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 期权自对冲录入请求响应
OnRspOptionSelfCloseInsertCallback func(*thost.CThostFtdcInputOptionSelfCloseField, *thost.CThostFtdcRspInfoField, int, bool)
// 期权自对冲操作请求响应
OnRspOptionSelfCloseActionCallback func(*thost.CThostFtdcInputOptionSelfCloseActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 申请组合录入请求响应
OnRspCombActionInsertCallback func(*thost.CThostFtdcInputCombActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询报单响应
OnRspQryOrderCallback func(*thost.CThostFtdcOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询成交响应
OnRspQryTradeCallback func(*thost.CThostFtdcTradeField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资者持仓响应
OnRspQryInvestorPositionCallback func(*thost.CThostFtdcInvestorPositionField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询资金账户响应
OnRspQryTradingAccountCallback func(*thost.CThostFtdcTradingAccountField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资者响应
OnRspQryInvestorCallback func(*thost.CThostFtdcInvestorField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询交易编码响应
OnRspQryTradingCodeCallback func(*thost.CThostFtdcTradingCodeField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询合约保证金率响应
OnRspQryInstrumentMarginRateCallback func(*thost.CThostFtdcInstrumentMarginRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询合约手续费率响应
OnRspQryInstrumentCommissionRateCallback func(*thost.CThostFtdcInstrumentCommissionRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询交易所响应
OnRspQryExchangeCallback func(*thost.CThostFtdcExchangeField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询产品响应
OnRspQryProductCallback func(*thost.CThostFtdcProductField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询合约响应
OnRspQryInstrumentCallback func(*thost.CThostFtdcInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询行情响应
OnRspQryDepthMarketDataCallback func(*thost.CThostFtdcDepthMarketDataField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资者结算结果响应
OnRspQrySettlementInfoCallback func(*thost.CThostFtdcSettlementInfoField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询转帐银行响应
OnRspQryTransferBankCallback func(*thost.CThostFtdcTransferBankField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资者持仓明细响应
OnRspQryInvestorPositionDetailCallback func(*thost.CThostFtdcInvestorPositionDetailField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询客户通知响应
OnRspQryNoticeCallback func(*thost.CThostFtdcNoticeField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询结算信息确认响应
OnRspQrySettlementInfoConfirmCallback func(*thost.CThostFtdcSettlementInfoConfirmField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资者持仓明细响应
OnRspQryInvestorPositionCombineDetailCallback func(*thost.CThostFtdcInvestorPositionCombineDetailField, *thost.CThostFtdcRspInfoField, int, bool)
// 查询保证金监管系统经纪公司资金账户密钥响应
OnRspQryCFMMCTradingAccountKeyCallback func(*thost.CThostFtdcCFMMCTradingAccountKeyField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询仓单折抵信息响应
OnRspQryEWarrantOffsetCallback func(*thost.CThostFtdcEWarrantOffsetField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资者品种/跨品种保证金响应
OnRspQryInvestorProductGroupMarginCallback func(*thost.CThostFtdcInvestorProductGroupMarginField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询交易所保证金率响应
OnRspQryExchangeMarginRateCallback func(*thost.CThostFtdcExchangeMarginRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询交易所调整保证金率响应
OnRspQryExchangeMarginRateAdjustCallback func(*thost.CThostFtdcExchangeMarginRateAdjustField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询汇率响应
OnRspQryExchangeRateCallback func(*thost.CThostFtdcExchangeRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询二级代理操作员银期权限响应
OnRspQrySecAgentACIDMapCallback func(*thost.CThostFtdcSecAgentACIDMapField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询产品报价汇率
OnRspQryProductExchRateCallback func(*thost.CThostFtdcProductExchRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询产品组
OnRspQryProductGroupCallback func(*thost.CThostFtdcProductGroupField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询做市商合约手续费率响应
OnRspQryMMInstrumentCommissionRateCallback func(*thost.CThostFtdcMMInstrumentCommissionRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询做市商期权合约手续费响应
OnRspQryMMOptionInstrCommRateCallback func(*thost.CThostFtdcMMOptionInstrCommRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询报单手续费响应
OnRspQryInstrumentOrderCommRateCallback func(*thost.CThostFtdcInstrumentOrderCommRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询资金账户响应
OnRspQrySecAgentTradingAccountCallback func(*thost.CThostFtdcTradingAccountField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询二级代理商资金校验模式响应
OnRspQrySecAgentCheckModeCallback func(*thost.CThostFtdcSecAgentCheckModeField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询二级代理商信息响应
OnRspQrySecAgentTradeInfoCallback func(*thost.CThostFtdcSecAgentTradeInfoField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询期权交易成本响应
OnRspQryOptionInstrTradeCostCallback func(*thost.CThostFtdcOptionInstrTradeCostField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询期权合约手续费响应
OnRspQryOptionInstrCommRateCallback func(*thost.CThostFtdcOptionInstrCommRateField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询执行宣告响应
OnRspQryExecOrderCallback func(*thost.CThostFtdcExecOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询询价响应
OnRspQryForQuoteCallback func(*thost.CThostFtdcForQuoteField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询报价响应
OnRspQryQuoteCallback func(*thost.CThostFtdcQuoteField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询期权自对冲响应
OnRspQryOptionSelfCloseCallback func(*thost.CThostFtdcOptionSelfCloseField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询投资单元响应
OnRspQryInvestUnitCallback func(*thost.CThostFtdcInvestUnitField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询组合合约安全系数响应
OnRspQryCombInstrumentGuardCallback func(*thost.CThostFtdcCombInstrumentGuardField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询申请组合响应
OnRspQryCombActionCallback func(*thost.CThostFtdcCombActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询转帐流水响应
OnRspQryTransferSerialCallback func(*thost.CThostFtdcTransferSerialField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询银期签约关系响应
OnRspQryAccountregisterCallback func(*thost.CThostFtdcAccountregisterField, *thost.CThostFtdcRspInfoField, int, bool)
// 错误应答
OnRspErrorCallback func(*thost.CThostFtdcRspInfoField, int, bool)
// 报单通知
OnRtnOrderCallback func(*thost.CThostFtdcOrderField)
// 成交通知
OnRtnTradeCallback func(*thost.CThostFtdcTradeField)
// 报单录入错误回报
OnErrRtnOrderInsertCallback func(*thost.CThostFtdcInputOrderField, *thost.CThostFtdcRspInfoField)
// 报单操作错误回报
OnErrRtnOrderActionCallback func(*thost.CThostFtdcOrderActionField, *thost.CThostFtdcRspInfoField)
// 合约交易状态通知
OnRtnInstrumentStatusCallback func(*thost.CThostFtdcInstrumentStatusField)
// 交易所公告通知
OnRtnBulletinCallback func(*thost.CThostFtdcBulletinField)
// 交易通知
OnRtnTradingNoticeCallback func(*thost.CThostFtdcTradingNoticeInfoField)
// 提示条件单校验错误
OnRtnErrorConditionalOrderCallback func(*thost.CThostFtdcErrorConditionalOrderField)
// 执行宣告通知
OnRtnExecOrderCallback func(*thost.CThostFtdcExecOrderField)
// 执行宣告录入错误回报
OnErrRtnExecOrderInsertCallback func(*thost.CThostFtdcInputExecOrderField, *thost.CThostFtdcRspInfoField)
// 执行宣告操作错误回报
OnErrRtnExecOrderActionCallback func(*thost.CThostFtdcExecOrderActionField, *thost.CThostFtdcRspInfoField)
// 询价录入错误回报
OnErrRtnForQuoteInsertCallback func(*thost.CThostFtdcInputForQuoteField, *thost.CThostFtdcRspInfoField)
// 报价通知
OnRtnQuoteCallback func(*thost.CThostFtdcQuoteField)
// 报价录入错误回报
OnErrRtnQuoteInsertCallback func(*thost.CThostFtdcInputQuoteField, *thost.CThostFtdcRspInfoField)
// 报价操作错误回报
OnErrRtnQuoteActionCallback func(*thost.CThostFtdcQuoteActionField, *thost.CThostFtdcRspInfoField)
// 询价通知
OnRtnForQuoteRspCallback func(*thost.CThostFtdcForQuoteRspField)
// 保证金监控中心用户令牌
OnRtnCFMMCTradingAccountTokenCallback func(*thost.CThostFtdcCFMMCTradingAccountTokenField)
// 批量报单操作错误回报
OnErrRtnBatchOrderActionCallback func(*thost.CThostFtdcBatchOrderActionField, *thost.CThostFtdcRspInfoField)
// 期权自对冲通知
OnRtnOptionSelfCloseCallback func(*thost.CThostFtdcOptionSelfCloseField)
// 期权自对冲录入错误回报
OnErrRtnOptionSelfCloseInsertCallback func(*thost.CThostFtdcInputOptionSelfCloseField, *thost.CThostFtdcRspInfoField)
// 期权自对冲操作错误回报
OnErrRtnOptionSelfCloseActionCallback func(*thost.CThostFtdcOptionSelfCloseActionField, *thost.CThostFtdcRspInfoField)
// 申请组合通知
OnRtnCombActionCallback func(*thost.CThostFtdcCombActionField)
// 申请组合录入错误回报
OnErrRtnCombActionInsertCallback func(*thost.CThostFtdcInputCombActionField, *thost.CThostFtdcRspInfoField)
// 请求查询签约银行响应
OnRspQryContractBankCallback func(*thost.CThostFtdcContractBankField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询预埋单响应
OnRspQryParkedOrderCallback func(*thost.CThostFtdcParkedOrderField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询预埋撤单响应
OnRspQryParkedOrderActionCallback func(*thost.CThostFtdcParkedOrderActionField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询交易通知响应
OnRspQryTradingNoticeCallback func(*thost.CThostFtdcTradingNoticeField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询经纪公司交易参数响应
OnRspQryBrokerTradingParamsCallback func(*thost.CThostFtdcBrokerTradingParamsField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询经纪公司交易算法响应
OnRspQryBrokerTradingAlgosCallback func(*thost.CThostFtdcBrokerTradingAlgosField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求查询监控中心用户令牌
OnRspQueryCFMMCTradingAccountTokenCallback func(*thost.CThostFtdcQueryCFMMCTradingAccountTokenField, *thost.CThostFtdcRspInfoField, int, bool)
// 银行发起银行资金转期货通知
OnRtnFromBankToFutureByBankCallback func(*thost.CThostFtdcRspTransferField)
// 银行发起期货资金转银行通知
OnRtnFromFutureToBankByBankCallback func(*thost.CThostFtdcRspTransferField)
// 银行发起冲正银行转期货通知
OnRtnRepealFromBankToFutureByBankCallback func(*thost.CThostFtdcRspRepealField)
// 银行发起冲正期货转银行通知
OnRtnRepealFromFutureToBankByBankCallback func(*thost.CThostFtdcRspRepealField)
// 期货发起银行资金转期货通知
OnRtnFromBankToFutureByFutureCallback func(*thost.CThostFtdcRspTransferField)
// 期货发起期货资金转银行通知
OnRtnFromFutureToBankByFutureCallback func(*thost.CThostFtdcRspTransferField)
// 系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromBankToFutureByFutureManualCallback func(*thost.CThostFtdcRspRepealField)
// 系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromFutureToBankByFutureManualCallback func(*thost.CThostFtdcRspRepealField)
// 期货发起查询银行余额通知
OnRtnQueryBankBalanceByFutureCallback func(*thost.CThostFtdcNotifyQueryAccountField)
// 期货发起银行资金转期货错误回报
OnErrRtnBankToFutureByFutureCallback func(*thost.CThostFtdcReqTransferField, *thost.CThostFtdcRspInfoField)
// 期货发起期货资金转银行错误回报
OnErrRtnFutureToBankByFutureCallback func(*thost.CThostFtdcReqTransferField, *thost.CThostFtdcRspInfoField)
// 系统运行时期货端手工发起冲正银行转期货错误回报
OnErrRtnRepealBankToFutureByFutureManualCallback func(*thost.CThostFtdcReqRepealField, *thost.CThostFtdcRspInfoField)
// 系统运行时期货端手工发起冲正期货转银行错误回报
OnErrRtnRepealFutureToBankByFutureManualCallback func(*thost.CThostFtdcReqRepealField, *thost.CThostFtdcRspInfoField)
// 期货发起查询银行余额错误回报
OnErrRtnQueryBankBalanceByFutureCallback func(*thost.CThostFtdcReqQueryAccountField, *thost.CThostFtdcRspInfoField)
// 期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromBankToFutureByFutureCallback func(*thost.CThostFtdcRspRepealField)
// 期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromFutureToBankByFutureCallback func(*thost.CThostFtdcRspRepealField)
// 期货发起银行资金转期货应答
OnRspFromBankToFutureByFutureCallback func(*thost.CThostFtdcReqTransferField, *thost.CThostFtdcRspInfoField, int, bool)
// 期货发起期货资金转银行应答
OnRspFromFutureToBankByFutureCallback func(*thost.CThostFtdcReqTransferField, *thost.CThostFtdcRspInfoField, int, bool)
// 期货发起查询银行余额应答
OnRspQueryBankAccountMoneyByFutureCallback func(*thost.CThostFtdcReqQueryAccountField, *thost.CThostFtdcRspInfoField, int, bool)
// 银行发起银期开户通知
OnRtnOpenAccountByBankCallback func(*thost.CThostFtdcOpenAccountField)
// 银行发起银期销户通知
OnRtnCancelAccountByBankCallback func(*thost.CThostFtdcCancelAccountField)
// 银行发起变更银行账号通知
OnRtnChangeAccountByBankCallback func(*thost.CThostFtdcChangeAccountField)
// 请求查询分类合约响应
OnRspQryClassifiedInstrumentCallback func(*thost.CThostFtdcInstrumentField, *thost.CThostFtdcRspInfoField, int, bool)
// 请求组合优惠比例响应
OnRspQryCombPromotionParamCallback func(*thost.CThostFtdcCombPromotionParamField, *thost.CThostFtdcRspInfoField, int, bool)
// 投资者风险结算持仓查询响应
OnRspQryRiskSettleInvstPositionCallback func(*thost.CThostFtdcRiskSettleInvstPositionField, *thost.CThostFtdcRspInfoField, int, bool)
// 风险结算产品查询响应
OnRspQryRiskSettleProductStatusCallback func(*thost.CThostFtdcRiskSettleProductStatusField, *thost.CThostFtdcRspInfoField, int, bool)
}
func (*BaseTraderSpi) OnErrRtnBankToFutureByFuture ¶
func (s *BaseTraderSpi) OnErrRtnBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField)
期货发起银行资金转期货错误回报
func (*BaseTraderSpi) OnErrRtnBatchOrderAction ¶
func (s *BaseTraderSpi) OnErrRtnBatchOrderAction(pBatchOrderAction *thost.CThostFtdcBatchOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
批量报单操作错误回报
func (*BaseTraderSpi) OnErrRtnCombActionInsert ¶
func (s *BaseTraderSpi) OnErrRtnCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, pRspInfo *thost.CThostFtdcRspInfoField)
申请组合录入错误回报
func (*BaseTraderSpi) OnErrRtnExecOrderAction ¶
func (s *BaseTraderSpi) OnErrRtnExecOrderAction(pExecOrderAction *thost.CThostFtdcExecOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
执行宣告操作错误回报
func (*BaseTraderSpi) OnErrRtnExecOrderInsert ¶
func (s *BaseTraderSpi) OnErrRtnExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, pRspInfo *thost.CThostFtdcRspInfoField)
执行宣告录入错误回报
func (*BaseTraderSpi) OnErrRtnForQuoteInsert ¶
func (s *BaseTraderSpi) OnErrRtnForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, pRspInfo *thost.CThostFtdcRspInfoField)
询价录入错误回报
func (*BaseTraderSpi) OnErrRtnFutureToBankByFuture ¶
func (s *BaseTraderSpi) OnErrRtnFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField)
期货发起期货资金转银行错误回报
func (*BaseTraderSpi) OnErrRtnOptionSelfCloseAction ¶
func (s *BaseTraderSpi) OnErrRtnOptionSelfCloseAction(pOptionSelfCloseAction *thost.CThostFtdcOptionSelfCloseActionField, pRspInfo *thost.CThostFtdcRspInfoField)
期权自对冲操作错误回报
func (*BaseTraderSpi) OnErrRtnOptionSelfCloseInsert ¶
func (s *BaseTraderSpi) OnErrRtnOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, pRspInfo *thost.CThostFtdcRspInfoField)
期权自对冲录入错误回报
func (*BaseTraderSpi) OnErrRtnOrderAction ¶
func (s *BaseTraderSpi) OnErrRtnOrderAction(pOrderAction *thost.CThostFtdcOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
报单操作错误回报
func (*BaseTraderSpi) OnErrRtnOrderInsert ¶
func (s *BaseTraderSpi) OnErrRtnOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, pRspInfo *thost.CThostFtdcRspInfoField)
报单录入错误回报
func (*BaseTraderSpi) OnErrRtnQueryBankBalanceByFuture ¶
func (s *BaseTraderSpi) OnErrRtnQueryBankBalanceByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, pRspInfo *thost.CThostFtdcRspInfoField)
期货发起查询银行余额错误回报
func (*BaseTraderSpi) OnErrRtnQuoteAction ¶
func (s *BaseTraderSpi) OnErrRtnQuoteAction(pQuoteAction *thost.CThostFtdcQuoteActionField, pRspInfo *thost.CThostFtdcRspInfoField)
报价操作错误回报
func (*BaseTraderSpi) OnErrRtnQuoteInsert ¶
func (s *BaseTraderSpi) OnErrRtnQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, pRspInfo *thost.CThostFtdcRspInfoField)
报价录入错误回报
func (*BaseTraderSpi) OnErrRtnRepealBankToFutureByFutureManual ¶
func (s *BaseTraderSpi) OnErrRtnRepealBankToFutureByFutureManual(pReqRepeal *thost.CThostFtdcReqRepealField, pRspInfo *thost.CThostFtdcRspInfoField)
系统运行时期货端手工发起冲正银行转期货错误回报
func (*BaseTraderSpi) OnErrRtnRepealFutureToBankByFutureManual ¶
func (s *BaseTraderSpi) OnErrRtnRepealFutureToBankByFutureManual(pReqRepeal *thost.CThostFtdcReqRepealField, pRspInfo *thost.CThostFtdcRspInfoField)
系统运行时期货端手工发起冲正期货转银行错误回报
func (*BaseTraderSpi) OnFrontConnected ¶
func (s *BaseTraderSpi) OnFrontConnected()
当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
func (*BaseTraderSpi) OnFrontDisconnected ¶
func (s *BaseTraderSpi) OnFrontDisconnected(nReason int)
当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 /@param nReason 错误原因 / 0x1001 网络读失败 / 0x1002 网络写失败 / 0x2001 接收心跳超时 / 0x2002 发送心跳失败 / 0x2003 收到错误报文
func (*BaseTraderSpi) OnHeartBeatWarning ¶
func (s *BaseTraderSpi) OnHeartBeatWarning(nTimeLapse int)
心跳超时警告。当长时间未收到报文时,该方法被调用。 /@param nTimeLapse 距离上次接收报文的时间
func (*BaseTraderSpi) OnRspAuthenticate ¶
func (s *BaseTraderSpi) OnRspAuthenticate(pRspAuthenticateField *thost.CThostFtdcRspAuthenticateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
客户端认证响应
func (*BaseTraderSpi) OnRspBatchOrderAction ¶
func (s *BaseTraderSpi) OnRspBatchOrderAction(pInputBatchOrderAction *thost.CThostFtdcInputBatchOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
批量报单操作请求响应
func (*BaseTraderSpi) OnRspCombActionInsert ¶
func (s *BaseTraderSpi) OnRspCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
申请组合录入请求响应
func (*BaseTraderSpi) OnRspError ¶
func (s *BaseTraderSpi) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
错误应答
func (*BaseTraderSpi) OnRspExecOrderAction ¶
func (s *BaseTraderSpi) OnRspExecOrderAction(pInputExecOrderAction *thost.CThostFtdcInputExecOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
执行宣告操作请求响应
func (*BaseTraderSpi) OnRspExecOrderInsert ¶
func (s *BaseTraderSpi) OnRspExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
执行宣告录入请求响应
func (*BaseTraderSpi) OnRspForQuoteInsert ¶
func (s *BaseTraderSpi) OnRspForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
询价录入请求响应
func (*BaseTraderSpi) OnRspFromBankToFutureByFuture ¶
func (s *BaseTraderSpi) OnRspFromBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
期货发起银行资金转期货应答
func (*BaseTraderSpi) OnRspFromFutureToBankByFuture ¶
func (s *BaseTraderSpi) OnRspFromFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
期货发起期货资金转银行应答
func (*BaseTraderSpi) OnRspGenUserCaptcha ¶
func (s *BaseTraderSpi) OnRspGenUserCaptcha(pRspGenUserCaptcha *thost.CThostFtdcRspGenUserCaptchaField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
获取图形验证码请求的回复
func (*BaseTraderSpi) OnRspGenUserText ¶
func (s *BaseTraderSpi) OnRspGenUserText(pRspGenUserText *thost.CThostFtdcRspGenUserTextField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
获取短信验证码请求的回复
func (*BaseTraderSpi) OnRspOptionSelfCloseAction ¶
func (s *BaseTraderSpi) OnRspOptionSelfCloseAction(pInputOptionSelfCloseAction *thost.CThostFtdcInputOptionSelfCloseActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
期权自对冲操作请求响应
func (*BaseTraderSpi) OnRspOptionSelfCloseInsert ¶
func (s *BaseTraderSpi) OnRspOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
期权自对冲录入请求响应
func (*BaseTraderSpi) OnRspOrderAction ¶
func (s *BaseTraderSpi) OnRspOrderAction(pInputOrderAction *thost.CThostFtdcInputOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
报单操作请求响应
func (*BaseTraderSpi) OnRspOrderInsert ¶
func (s *BaseTraderSpi) OnRspOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
报单录入请求响应
func (*BaseTraderSpi) OnRspParkedOrderAction ¶
func (s *BaseTraderSpi) OnRspParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
预埋撤单录入请求响应
func (*BaseTraderSpi) OnRspParkedOrderInsert ¶
func (s *BaseTraderSpi) OnRspParkedOrderInsert(pParkedOrder *thost.CThostFtdcParkedOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
预埋单录入请求响应
func (*BaseTraderSpi) OnRspQryAccountregister ¶
func (s *BaseTraderSpi) OnRspQryAccountregister(pAccountregister *thost.CThostFtdcAccountregisterField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询银期签约关系响应
func (*BaseTraderSpi) OnRspQryBrokerTradingAlgos ¶
func (s *BaseTraderSpi) OnRspQryBrokerTradingAlgos(pBrokerTradingAlgos *thost.CThostFtdcBrokerTradingAlgosField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询经纪公司交易算法响应
func (*BaseTraderSpi) OnRspQryBrokerTradingParams ¶
func (s *BaseTraderSpi) OnRspQryBrokerTradingParams(pBrokerTradingParams *thost.CThostFtdcBrokerTradingParamsField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询经纪公司交易参数响应
func (*BaseTraderSpi) OnRspQryCFMMCTradingAccountKey ¶
func (s *BaseTraderSpi) OnRspQryCFMMCTradingAccountKey(pCFMMCTradingAccountKey *thost.CThostFtdcCFMMCTradingAccountKeyField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
查询保证金监管系统经纪公司资金账户密钥响应
func (*BaseTraderSpi) OnRspQryClassifiedInstrument ¶
func (s *BaseTraderSpi) OnRspQryClassifiedInstrument(pInstrument *thost.CThostFtdcInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询分类合约响应
func (*BaseTraderSpi) OnRspQryCombAction ¶
func (s *BaseTraderSpi) OnRspQryCombAction(pCombAction *thost.CThostFtdcCombActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询申请组合响应
func (*BaseTraderSpi) OnRspQryCombInstrumentGuard ¶
func (s *BaseTraderSpi) OnRspQryCombInstrumentGuard(pCombInstrumentGuard *thost.CThostFtdcCombInstrumentGuardField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询组合合约安全系数响应
func (*BaseTraderSpi) OnRspQryCombPromotionParam ¶
func (s *BaseTraderSpi) OnRspQryCombPromotionParam(pCombPromotionParam *thost.CThostFtdcCombPromotionParamField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求组合优惠比例响应
func (*BaseTraderSpi) OnRspQryContractBank ¶
func (s *BaseTraderSpi) OnRspQryContractBank(pContractBank *thost.CThostFtdcContractBankField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询签约银行响应
func (*BaseTraderSpi) OnRspQryDepthMarketData ¶
func (s *BaseTraderSpi) OnRspQryDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询行情响应
func (*BaseTraderSpi) OnRspQryEWarrantOffset ¶
func (s *BaseTraderSpi) OnRspQryEWarrantOffset(pEWarrantOffset *thost.CThostFtdcEWarrantOffsetField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询仓单折抵信息响应
func (*BaseTraderSpi) OnRspQryExchange ¶
func (s *BaseTraderSpi) OnRspQryExchange(pExchange *thost.CThostFtdcExchangeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询交易所响应
func (*BaseTraderSpi) OnRspQryExchangeMarginRate ¶
func (s *BaseTraderSpi) OnRspQryExchangeMarginRate(pExchangeMarginRate *thost.CThostFtdcExchangeMarginRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询交易所保证金率响应
func (*BaseTraderSpi) OnRspQryExchangeMarginRateAdjust ¶
func (s *BaseTraderSpi) OnRspQryExchangeMarginRateAdjust(pExchangeMarginRateAdjust *thost.CThostFtdcExchangeMarginRateAdjustField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询交易所调整保证金率响应
func (*BaseTraderSpi) OnRspQryExchangeRate ¶
func (s *BaseTraderSpi) OnRspQryExchangeRate(pExchangeRate *thost.CThostFtdcExchangeRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询汇率响应
func (*BaseTraderSpi) OnRspQryExecOrder ¶
func (s *BaseTraderSpi) OnRspQryExecOrder(pExecOrder *thost.CThostFtdcExecOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询执行宣告响应
func (*BaseTraderSpi) OnRspQryForQuote ¶
func (s *BaseTraderSpi) OnRspQryForQuote(pForQuote *thost.CThostFtdcForQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询询价响应
func (*BaseTraderSpi) OnRspQryInstrument ¶
func (s *BaseTraderSpi) OnRspQryInstrument(pInstrument *thost.CThostFtdcInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询合约响应
func (*BaseTraderSpi) OnRspQryInstrumentCommissionRate ¶
func (s *BaseTraderSpi) OnRspQryInstrumentCommissionRate(pInstrumentCommissionRate *thost.CThostFtdcInstrumentCommissionRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询合约手续费率响应
func (*BaseTraderSpi) OnRspQryInstrumentMarginRate ¶
func (s *BaseTraderSpi) OnRspQryInstrumentMarginRate(pInstrumentMarginRate *thost.CThostFtdcInstrumentMarginRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询合约保证金率响应
func (*BaseTraderSpi) OnRspQryInstrumentOrderCommRate ¶
func (s *BaseTraderSpi) OnRspQryInstrumentOrderCommRate(pInstrumentOrderCommRate *thost.CThostFtdcInstrumentOrderCommRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询报单手续费响应
func (*BaseTraderSpi) OnRspQryInvestUnit ¶
func (s *BaseTraderSpi) OnRspQryInvestUnit(pInvestUnit *thost.CThostFtdcInvestUnitField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资单元响应
func (*BaseTraderSpi) OnRspQryInvestor ¶
func (s *BaseTraderSpi) OnRspQryInvestor(pInvestor *thost.CThostFtdcInvestorField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者响应
func (*BaseTraderSpi) OnRspQryInvestorPosition ¶
func (s *BaseTraderSpi) OnRspQryInvestorPosition(pInvestorPosition *thost.CThostFtdcInvestorPositionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者持仓响应
func (*BaseTraderSpi) OnRspQryInvestorPositionCombineDetail ¶
func (s *BaseTraderSpi) OnRspQryInvestorPositionCombineDetail(pInvestorPositionCombineDetail *thost.CThostFtdcInvestorPositionCombineDetailField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者持仓明细响应
func (*BaseTraderSpi) OnRspQryInvestorPositionDetail ¶
func (s *BaseTraderSpi) OnRspQryInvestorPositionDetail(pInvestorPositionDetail *thost.CThostFtdcInvestorPositionDetailField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者持仓明细响应
func (*BaseTraderSpi) OnRspQryInvestorProductGroupMargin ¶
func (s *BaseTraderSpi) OnRspQryInvestorProductGroupMargin(pInvestorProductGroupMargin *thost.CThostFtdcInvestorProductGroupMarginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者品种/跨品种保证金响应
func (*BaseTraderSpi) OnRspQryMMInstrumentCommissionRate ¶
func (s *BaseTraderSpi) OnRspQryMMInstrumentCommissionRate(pMMInstrumentCommissionRate *thost.CThostFtdcMMInstrumentCommissionRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询做市商合约手续费率响应
func (*BaseTraderSpi) OnRspQryMMOptionInstrCommRate ¶
func (s *BaseTraderSpi) OnRspQryMMOptionInstrCommRate(pMMOptionInstrCommRate *thost.CThostFtdcMMOptionInstrCommRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询做市商期权合约手续费响应
func (*BaseTraderSpi) OnRspQryMaxOrderVolume ¶
func (s *BaseTraderSpi) OnRspQryMaxOrderVolume(pQryMaxOrderVolume *thost.CThostFtdcQryMaxOrderVolumeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
查询最大报单数量响应
func (*BaseTraderSpi) OnRspQryNotice ¶
func (s *BaseTraderSpi) OnRspQryNotice(pNotice *thost.CThostFtdcNoticeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询客户通知响应
func (*BaseTraderSpi) OnRspQryOptionInstrCommRate ¶
func (s *BaseTraderSpi) OnRspQryOptionInstrCommRate(pOptionInstrCommRate *thost.CThostFtdcOptionInstrCommRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询期权合约手续费响应
func (*BaseTraderSpi) OnRspQryOptionInstrTradeCost ¶
func (s *BaseTraderSpi) OnRspQryOptionInstrTradeCost(pOptionInstrTradeCost *thost.CThostFtdcOptionInstrTradeCostField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询期权交易成本响应
func (*BaseTraderSpi) OnRspQryOptionSelfClose ¶
func (s *BaseTraderSpi) OnRspQryOptionSelfClose(pOptionSelfClose *thost.CThostFtdcOptionSelfCloseField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询期权自对冲响应
func (*BaseTraderSpi) OnRspQryOrder ¶
func (s *BaseTraderSpi) OnRspQryOrder(pOrder *thost.CThostFtdcOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询报单响应
func (*BaseTraderSpi) OnRspQryParkedOrder ¶
func (s *BaseTraderSpi) OnRspQryParkedOrder(pParkedOrder *thost.CThostFtdcParkedOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询预埋单响应
func (*BaseTraderSpi) OnRspQryParkedOrderAction ¶
func (s *BaseTraderSpi) OnRspQryParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询预埋撤单响应
func (*BaseTraderSpi) OnRspQryProduct ¶
func (s *BaseTraderSpi) OnRspQryProduct(pProduct *thost.CThostFtdcProductField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询产品响应
func (*BaseTraderSpi) OnRspQryProductExchRate ¶
func (s *BaseTraderSpi) OnRspQryProductExchRate(pProductExchRate *thost.CThostFtdcProductExchRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询产品报价汇率
func (*BaseTraderSpi) OnRspQryProductGroup ¶
func (s *BaseTraderSpi) OnRspQryProductGroup(pProductGroup *thost.CThostFtdcProductGroupField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询产品组
func (*BaseTraderSpi) OnRspQryQuote ¶
func (s *BaseTraderSpi) OnRspQryQuote(pQuote *thost.CThostFtdcQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询报价响应
func (*BaseTraderSpi) OnRspQryRiskSettleInvstPosition ¶
func (s *BaseTraderSpi) OnRspQryRiskSettleInvstPosition(pRiskSettleInvstPosition *thost.CThostFtdcRiskSettleInvstPositionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
投资者风险结算持仓查询响应
func (*BaseTraderSpi) OnRspQryRiskSettleProductStatus ¶
func (s *BaseTraderSpi) OnRspQryRiskSettleProductStatus(pRiskSettleProductStatus *thost.CThostFtdcRiskSettleProductStatusField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
风险结算产品查询响应
func (*BaseTraderSpi) OnRspQrySecAgentACIDMap ¶
func (s *BaseTraderSpi) OnRspQrySecAgentACIDMap(pSecAgentACIDMap *thost.CThostFtdcSecAgentACIDMapField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询二级代理操作员银期权限响应
func (*BaseTraderSpi) OnRspQrySecAgentCheckMode ¶
func (s *BaseTraderSpi) OnRspQrySecAgentCheckMode(pSecAgentCheckMode *thost.CThostFtdcSecAgentCheckModeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询二级代理商资金校验模式响应
func (*BaseTraderSpi) OnRspQrySecAgentTradeInfo ¶
func (s *BaseTraderSpi) OnRspQrySecAgentTradeInfo(pSecAgentTradeInfo *thost.CThostFtdcSecAgentTradeInfoField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询二级代理商信息响应
func (*BaseTraderSpi) OnRspQrySecAgentTradingAccount ¶
func (s *BaseTraderSpi) OnRspQrySecAgentTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询资金账户响应
func (*BaseTraderSpi) OnRspQrySettlementInfo ¶
func (s *BaseTraderSpi) OnRspQrySettlementInfo(pSettlementInfo *thost.CThostFtdcSettlementInfoField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者结算结果响应
func (*BaseTraderSpi) OnRspQrySettlementInfoConfirm ¶
func (s *BaseTraderSpi) OnRspQrySettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询结算信息确认响应
func (*BaseTraderSpi) OnRspQryTrade ¶
func (s *BaseTraderSpi) OnRspQryTrade(pTrade *thost.CThostFtdcTradeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询成交响应
func (*BaseTraderSpi) OnRspQryTradingAccount ¶
func (s *BaseTraderSpi) OnRspQryTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询资金账户响应
func (*BaseTraderSpi) OnRspQryTradingCode ¶
func (s *BaseTraderSpi) OnRspQryTradingCode(pTradingCode *thost.CThostFtdcTradingCodeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询交易编码响应
func (*BaseTraderSpi) OnRspQryTradingNotice ¶
func (s *BaseTraderSpi) OnRspQryTradingNotice(pTradingNotice *thost.CThostFtdcTradingNoticeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询交易通知响应
func (*BaseTraderSpi) OnRspQryTransferBank ¶
func (s *BaseTraderSpi) OnRspQryTransferBank(pTransferBank *thost.CThostFtdcTransferBankField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询转帐银行响应
func (*BaseTraderSpi) OnRspQryTransferSerial ¶
func (s *BaseTraderSpi) OnRspQryTransferSerial(pTransferSerial *thost.CThostFtdcTransferSerialField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询转帐流水响应
func (*BaseTraderSpi) OnRspQueryBankAccountMoneyByFuture ¶
func (s *BaseTraderSpi) OnRspQueryBankAccountMoneyByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
期货发起查询银行余额应答
func (*BaseTraderSpi) OnRspQueryCFMMCTradingAccountToken ¶
func (s *BaseTraderSpi) OnRspQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken *thost.CThostFtdcQueryCFMMCTradingAccountTokenField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询监控中心用户令牌
func (*BaseTraderSpi) OnRspQuoteAction ¶
func (s *BaseTraderSpi) OnRspQuoteAction(pInputQuoteAction *thost.CThostFtdcInputQuoteActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
报价操作请求响应
func (*BaseTraderSpi) OnRspQuoteInsert ¶
func (s *BaseTraderSpi) OnRspQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
报价录入请求响应
func (*BaseTraderSpi) OnRspRemoveParkedOrder ¶
func (s *BaseTraderSpi) OnRspRemoveParkedOrder(pRemoveParkedOrder *thost.CThostFtdcRemoveParkedOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
删除预埋单响应
func (*BaseTraderSpi) OnRspRemoveParkedOrderAction ¶
func (s *BaseTraderSpi) OnRspRemoveParkedOrderAction(pRemoveParkedOrderAction *thost.CThostFtdcRemoveParkedOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
删除预埋撤单响应
func (*BaseTraderSpi) OnRspSettlementInfoConfirm ¶
func (s *BaseTraderSpi) OnRspSettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
投资者结算结果确认响应
func (*BaseTraderSpi) OnRspTradingAccountPasswordUpdate ¶
func (s *BaseTraderSpi) OnRspTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *thost.CThostFtdcTradingAccountPasswordUpdateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
资金账户口令更新请求响应
func (*BaseTraderSpi) OnRspUserAuthMethod ¶
func (s *BaseTraderSpi) OnRspUserAuthMethod(pRspUserAuthMethod *thost.CThostFtdcRspUserAuthMethodField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
查询用户当前支持的认证模式的回复
func (*BaseTraderSpi) OnRspUserLogin ¶
func (s *BaseTraderSpi) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
登录请求响应
func (*BaseTraderSpi) OnRspUserLogout ¶
func (s *BaseTraderSpi) OnRspUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
登出请求响应
func (*BaseTraderSpi) OnRspUserPasswordUpdate ¶
func (s *BaseTraderSpi) OnRspUserPasswordUpdate(pUserPasswordUpdate *thost.CThostFtdcUserPasswordUpdateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
用户口令更新请求响应
func (*BaseTraderSpi) OnRtnBulletin ¶
func (s *BaseTraderSpi) OnRtnBulletin(pBulletin *thost.CThostFtdcBulletinField)
交易所公告通知
func (*BaseTraderSpi) OnRtnCFMMCTradingAccountToken ¶
func (s *BaseTraderSpi) OnRtnCFMMCTradingAccountToken(pCFMMCTradingAccountToken *thost.CThostFtdcCFMMCTradingAccountTokenField)
保证金监控中心用户令牌
func (*BaseTraderSpi) OnRtnCancelAccountByBank ¶
func (s *BaseTraderSpi) OnRtnCancelAccountByBank(pCancelAccount *thost.CThostFtdcCancelAccountField)
银行发起银期销户通知
func (*BaseTraderSpi) OnRtnChangeAccountByBank ¶
func (s *BaseTraderSpi) OnRtnChangeAccountByBank(pChangeAccount *thost.CThostFtdcChangeAccountField)
银行发起变更银行账号通知
func (*BaseTraderSpi) OnRtnCombAction ¶
func (s *BaseTraderSpi) OnRtnCombAction(pCombAction *thost.CThostFtdcCombActionField)
申请组合通知
func (*BaseTraderSpi) OnRtnErrorConditionalOrder ¶
func (s *BaseTraderSpi) OnRtnErrorConditionalOrder(pErrorConditionalOrder *thost.CThostFtdcErrorConditionalOrderField)
提示条件单校验错误
func (*BaseTraderSpi) OnRtnExecOrder ¶
func (s *BaseTraderSpi) OnRtnExecOrder(pExecOrder *thost.CThostFtdcExecOrderField)
执行宣告通知
func (*BaseTraderSpi) OnRtnForQuoteRsp ¶
func (s *BaseTraderSpi) OnRtnForQuoteRsp(pForQuoteRsp *thost.CThostFtdcForQuoteRspField)
询价通知
func (*BaseTraderSpi) OnRtnFromBankToFutureByBank ¶
func (s *BaseTraderSpi) OnRtnFromBankToFutureByBank(pRspTransfer *thost.CThostFtdcRspTransferField)
银行发起银行资金转期货通知
func (*BaseTraderSpi) OnRtnFromBankToFutureByFuture ¶
func (s *BaseTraderSpi) OnRtnFromBankToFutureByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
期货发起银行资金转期货通知
func (*BaseTraderSpi) OnRtnFromFutureToBankByBank ¶
func (s *BaseTraderSpi) OnRtnFromFutureToBankByBank(pRspTransfer *thost.CThostFtdcRspTransferField)
银行发起期货资金转银行通知
func (*BaseTraderSpi) OnRtnFromFutureToBankByFuture ¶
func (s *BaseTraderSpi) OnRtnFromFutureToBankByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
期货发起期货资金转银行通知
func (*BaseTraderSpi) OnRtnInstrumentStatus ¶
func (s *BaseTraderSpi) OnRtnInstrumentStatus(pInstrumentStatus *thost.CThostFtdcInstrumentStatusField)
合约交易状态通知
func (*BaseTraderSpi) OnRtnOpenAccountByBank ¶
func (s *BaseTraderSpi) OnRtnOpenAccountByBank(pOpenAccount *thost.CThostFtdcOpenAccountField)
银行发起银期开户通知
func (*BaseTraderSpi) OnRtnOptionSelfClose ¶
func (s *BaseTraderSpi) OnRtnOptionSelfClose(pOptionSelfClose *thost.CThostFtdcOptionSelfCloseField)
期权自对冲通知
func (*BaseTraderSpi) OnRtnOrder ¶
func (s *BaseTraderSpi) OnRtnOrder(pOrder *thost.CThostFtdcOrderField)
报单通知
func (*BaseTraderSpi) OnRtnQueryBankBalanceByFuture ¶
func (s *BaseTraderSpi) OnRtnQueryBankBalanceByFuture(pNotifyQueryAccount *thost.CThostFtdcNotifyQueryAccountField)
期货发起查询银行余额通知
func (*BaseTraderSpi) OnRtnQuote ¶
func (s *BaseTraderSpi) OnRtnQuote(pQuote *thost.CThostFtdcQuoteField)
报价通知
func (*BaseTraderSpi) OnRtnRepealFromBankToFutureByBank ¶
func (s *BaseTraderSpi) OnRtnRepealFromBankToFutureByBank(pRspRepeal *thost.CThostFtdcRspRepealField)
银行发起冲正银行转期货通知
func (*BaseTraderSpi) OnRtnRepealFromBankToFutureByFuture ¶
func (s *BaseTraderSpi) OnRtnRepealFromBankToFutureByFuture(pRspRepeal *thost.CThostFtdcRspRepealField)
期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
func (*BaseTraderSpi) OnRtnRepealFromBankToFutureByFutureManual ¶
func (s *BaseTraderSpi) OnRtnRepealFromBankToFutureByFutureManual(pRspRepeal *thost.CThostFtdcRspRepealField)
系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
func (*BaseTraderSpi) OnRtnRepealFromFutureToBankByBank ¶
func (s *BaseTraderSpi) OnRtnRepealFromFutureToBankByBank(pRspRepeal *thost.CThostFtdcRspRepealField)
银行发起冲正期货转银行通知
func (*BaseTraderSpi) OnRtnRepealFromFutureToBankByFuture ¶
func (s *BaseTraderSpi) OnRtnRepealFromFutureToBankByFuture(pRspRepeal *thost.CThostFtdcRspRepealField)
期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
func (*BaseTraderSpi) OnRtnRepealFromFutureToBankByFutureManual ¶
func (s *BaseTraderSpi) OnRtnRepealFromFutureToBankByFutureManual(pRspRepeal *thost.CThostFtdcRspRepealField)
系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
func (*BaseTraderSpi) OnRtnTrade ¶
func (s *BaseTraderSpi) OnRtnTrade(pTrade *thost.CThostFtdcTradeField)
成交通知
func (*BaseTraderSpi) OnRtnTradingNotice ¶
func (s *BaseTraderSpi) OnRtnTradingNotice(pTradingNoticeInfo *thost.CThostFtdcTradingNoticeInfoField)
交易通知
type BrokerTradingParamsField ¶
type BrokerTradingParamsField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///保证金价格类型
MarginPriceType byte
///盈亏算法
Algorithm byte
///可用是否包含平仓盈利
AvailIncludeCloseProfit byte
///币种代码
CurrencyID string
///期权权利金价格类型
OptionRoyaltyPriceType byte
///投资者帐号
AccountID string
}
经纪公司交易参数
type ContractBankField ¶
type ContractBankField struct {
///经纪公司代码
BrokerID string
///银行代码
BankID string
///银行分中心代码
BankBrchID string
///银行名称
BankName string
}
查询签约银行响应
type DepthMarketDataField ¶
type DepthMarketDataField struct {
///交易日
TradingDay string
///交易所代码
ExchangeID string
///最新价
LastPrice float64
///上次结算价
PreSettlementPrice float64
///昨收盘
PreClosePrice float64
///昨持仓量
PreOpenInterest float64
///今开盘
OpenPrice float64
///最高价
HighestPrice float64
///最低价
LowestPrice float64
///数量
Volume int
///成交金额
Turnover float64
///持仓量
OpenInterest float64
///今收盘
ClosePrice float64
///本次结算价
SettlementPrice float64
///涨停板价
UpperLimitPrice float64
///跌停板价
LowerLimitPrice float64
///昨虚实度
PreDelta float64
///今虚实度
CurrDelta float64
///最后修改时间
UpdateTime string
///最后修改毫秒
UpdateMillisec int
///申买价一
BidPrice1 float64
///申买量一
BidVolume1 int
///申卖价一
AskPrice1 float64
///申卖量一
AskVolume1 int
///申买价二
BidPrice2 float64
///申买量二
BidVolume2 int
///申卖价二
AskPrice2 float64
///申卖量二
AskVolume2 int
///申买价三
BidPrice3 float64
///申买量三
BidVolume3 int
///申卖价三
AskPrice3 float64
///申卖量三
AskVolume3 int
///申买价四
BidPrice4 float64
///申买量四
BidVolume4 int
///申卖价四
AskPrice4 float64
///申卖量四
AskVolume4 int
///申买价五
BidPrice5 float64
///申买量五
BidVolume5 int
///申卖价五
AskPrice5 float64
///申卖量五
AskVolume5 int
///当日均价
AveragePrice float64
///业务日期
ActionDay string
///合约代码
InstrumentID string
///合约在交易所的代码
ExchangeInstID string
///上带价
BandingUpperPrice float64
///下带价
BandingLowerPrice float64
// contains filtered or unexported fields
}
深度行情
type InputOrderActionField ¶
type InputOrderActionField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///报单操作引用
OrderActionRef int
///报单引用
OrderRef string
///请求编号
RequestID int
///前置编号
FrontID int
///会话编号
SessionID int
///交易所代码
ExchangeID string
///报单编号
OrderSysID string
///操作标志
ActionFlag byte
///价格
LimitPrice float64
///数量变化
VolumeChange int
///用户代码
UserID string
///投资单元代码
InvestUnitID string
///Mac地址
MacAddress string
///合约代码
InstrumentID string
///IP地址
IPAddress string
// contains filtered or unexported fields
}
输入报单操作
type InputOrderField ¶
type InputOrderField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///报单引用
OrderRef string
///用户代码
UserID string
///报单价格条件
OrderPriceType byte
///买卖方向
Direction byte
///组合开平标志
CombOffsetFlag string
///组合投机套保标志
CombHedgeFlag string
///价格
LimitPrice float64
///数量
VolumeTotalOriginal int
///有效期类型
TimeCondition byte
///GTD日期
GTDDate string
///成交量类型
VolumeCondition byte
///最小成交量
MinVolume int
///触发条件
ContingentCondition byte
///止损价
StopPrice float64
///强平原因
ForceCloseReason byte
///自动挂起标志
IsAutoSuspend int
///业务单元
BusinessUnit string
///请求编号
RequestID int
///用户强评标志
UserForceClose int
///互换单标志
IsSwapOrder int
///交易所代码
ExchangeID string
///投资单元代码
InvestUnitID string
///资金账号
AccountID string
///币种代码
CurrencyID string
///交易编码
ClientID string
///Mac地址
MacAddress string
///合约代码
InstrumentID string
///IP地址
IPAddress string
// contains filtered or unexported fields
}
输入报单
type InstrumentCommissionRateField ¶
type InstrumentCommissionRateField struct {
///投资者范围
InvestorRange byte
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///开仓手续费率
OpenRatioByMoney float64
///开仓手续费
OpenRatioByVolume float64
///平仓手续费率
CloseRatioByMoney float64
///平仓手续费
CloseRatioByVolume float64
///平今手续费率
CloseTodayRatioByMoney float64
///平今手续费
CloseTodayRatioByVolume float64
///交易所代码
ExchangeID string
///业务类型
BizType byte
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
合约手续费率
type InstrumentField ¶
type InstrumentField struct {
///交易所代码
ExchangeID string
///合约名称
InstrumentName string
///产品类型
ProductClass byte
///交割年份
DeliveryYear int
///交割月
DeliveryMonth int
///市价单最大下单量
MaxMarketOrderVolume int
///市价单最小下单量
MinMarketOrderVolume int
///限价单最大下单量
MaxLimitOrderVolume int
///限价单最小下单量
MinLimitOrderVolume int
///合约数量乘数
VolumeMultiple int
///最小变动价位
PriceTick float64
///创建日
CreateDate string
///上市日
OpenDate string
///到期日
ExpireDate string
///开始交割日
StartDelivDate string
///结束交割日
EndDelivDate string
///合约生命周期状态
InstLifePhase byte
///当前是否交易
IsTrading int
///持仓类型
PositionType byte
///持仓日期类型
PositionDateType byte
///多头保证金率
LongMarginRatio float64
///空头保证金率
ShortMarginRatio float64
///是否使用大额单边保证金算法
MaxMarginSideAlgorithm byte
///执行价
StrikePrice float64
///期权类型
OptionsType byte
///合约基础商品乘数
UnderlyingMultiple float64
///组合类型
CombinationType byte
///合约代码
InstrumentID string
///合约在交易所的代码
ExchangeInstID string
///产品代码
ProductID string
///基础商品代码
UnderlyingInstrID string
// contains filtered or unexported fields
}
合约
type InstrumentMarginRateField ¶
type InstrumentMarginRateField struct {
///投资者范围
InvestorRange byte
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///投机套保标志
HedgeFlag byte
///多头保证金率
LongMarginRatioByMoney float64
///多头保证金费
LongMarginRatioByVolume float64
///空头保证金率
ShortMarginRatioByMoney float64
///空头保证金费
ShortMarginRatioByVolume float64
///是否相对交易所收取
IsRelative int
///交易所代码
ExchangeID string
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
合约保证金率
type InstrumentStatusField ¶
type InstrumentStatusField struct {
///交易所代码
ExchangeID string
///结算组代码
SettlementGroupID string
///合约交易状态
InstrumentStatus byte
///交易阶段编号
TradingSegmentSN int
///进入本状态时间
EnterTime string
///进入本状态原因
EnterReason byte
///合约在交易所的代码
ExchangeInstID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
合约状态
type InvestorPositionField ¶
type InvestorPositionField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///持仓多空方向
PosiDirection byte
///投机套保标志
HedgeFlag byte
///持仓日期
PositionDate byte
///上日持仓
YdPosition int
///今日持仓
Position int
///多头冻结
LongFrozen int
///空头冻结
ShortFrozen int
///开仓冻结金额
LongFrozenAmount float64
///开仓冻结金额
ShortFrozenAmount float64
///开仓量
OpenVolume int
///平仓量
CloseVolume int
///开仓金额
OpenAmount float64
///平仓金额
CloseAmount float64
///持仓成本
PositionCost float64
///上次占用的保证金
PreMargin float64
///占用的保证金
UseMargin float64
///冻结的保证金
FrozenMargin float64
///冻结的资金
FrozenCash float64
///冻结的手续费
FrozenCommission float64
///资金差额
CashIn float64
///手续费
Commission float64
///平仓盈亏
CloseProfit float64
///持仓盈亏
PositionProfit float64
///上次结算价
PreSettlementPrice float64
///本次结算价
SettlementPrice float64
///交易日
TradingDay string
///结算编号
SettlementID int
///开仓成本
OpenCost float64
///交易所保证金
ExchangeMargin float64
///组合成交形成的持仓
CombPosition int
///组合多头冻结
CombLongFrozen int
///组合空头冻结
CombShortFrozen int
///逐日盯市平仓盈亏
CloseProfitByDate float64
///逐笔对冲平仓盈亏
CloseProfitByTrade float64
///今日持仓
TodayPosition int
///保证金率
MarginRateByMoney float64
///保证金率(按手数)
MarginRateByVolume float64
///执行冻结
StrikeFrozen int
///执行冻结金额
StrikeFrozenAmount float64
///放弃执行冻结
AbandonFrozen int
///交易所代码
ExchangeID string
///执行冻结的昨仓
YdStrikeFrozen int
///投资单元代码
InvestUnitID string
///大商所持仓成本差值,只有大商所使用
PositionCostOffset float64
///tas持仓手数
TasPosition int
///tas持仓成本
TasPositionCost float64
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
投资者持仓
type MdApi ¶
type MdApi interface {
///获取API的版本信息
///@retrun 获取到的版本号
GetApiVersion() string
///删除接口对象本身
///@remark 不再使用本接口对象时,调用该函数删除接口对象
Release()
///初始化
///@remark 初始化运行环境,只有调用后,接口才开始工作
Init()
///等待接口线程结束运行
///@return 线程退出代码
Join() int
///获取当前交易日
///@retrun 获取到的交易日
///@remark 只有登录成功后,才能得到正确的交易日
GetTradingDay() string
///注册前置机网络地址
///@param pszFrontAddress:前置机网络地址。
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。
///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。
RegisterFront(frontAddress string)
///注册名字服务器网络地址
///@param pszNsAddress:名字服务器网络地址。
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。
///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。
///@remark RegisterNameServer优先于RegisterFront
RegisterNameServer(nsAddress string)
///注册名字服务器用户信息
///@param pFensUserInfo:用户信息。
RegisterFensUserInfo(pFensUserInfo *thost.CThostFtdcFensUserInfoField)
///注册回调接口
///@param pSpi 派生自回调接口类的实例
RegisterSpi(pSpi MdSpi)
///订阅行情。
///@param ppInstrumentID 合约ID
///@param nCount 要订阅/退订行情的合约个数
///@remark
SubscribeMarketData(instrumentIDs ...string) int
///退订行情。
///@param ppInstrumentID 合约ID
///@param nCount 要订阅/退订行情的合约个数
///@remark
UnSubscribeMarketData(instrumentIDs ...string) int
///订阅询价。
///@param ppInstrumentID 合约ID
///@param nCount 要订阅/退订行情的合约个数
///@remark
SubscribeForQuoteRsp(instrumentIDs ...string) int
///退订询价。
///@param ppInstrumentID 合约ID
///@param nCount 要订阅/退订行情的合约个数
///@remark
UnSubscribeForQuoteRsp(instrumentIDs ...string) int
///用户登录请求
ReqUserLogin(pReqUserLoginField *thost.CThostFtdcReqUserLoginField, nRequestID int) int
///登出请求
ReqUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, nRequestID int) int
///请求查询组播合约
ReqQryMulticastInstrument(pQryMulticastInstrument *thost.CThostFtdcQryMulticastInstrumentField, nRequestID int) int
}
type MdApiLite ¶
type MdApiLite struct {
// contains filtered or unexported fields
}
func CreateMdApiLite ¶
func (MdApiLite) GetApiVersion ¶
func (c MdApiLite) GetApiVersion() string
/获取API的版本信息 /@retrun 获取到的版本号
func (MdApiLite) GetTradingDay ¶
func (c MdApiLite) GetTradingDay() string
/获取当前交易日 /@retrun 获取到的交易日 /@remark 只有登录成功后,才能得到正确的交易日
func (MdApiLite) RegisterFensUserInfo ¶
func (c MdApiLite) RegisterFensUserInfo(pFensUserInfo *thost.CThostFtdcFensUserInfoField)
/@param pFensUserInfo:用户信息。
func (MdApiLite) RegisterFront ¶
func (c MdApiLite) RegisterFront(frontAddress string)
func (MdApiLite) RegisterNameServer ¶
func (c MdApiLite) RegisterNameServer(nsAddress string)
注册名字服务器用户信息
func (MdApiLite) RegisterSpi ¶
func (c MdApiLite) RegisterSpi(pSpi MdSpi)
注册回调接口 /@param pSpi 派生自回调接口类的实例
func (MdApiLite) ReqQryMulticastInstrument ¶
func (c MdApiLite) ReqQryMulticastInstrument(pQryMulticastInstrument *thost.CThostFtdcQryMulticastInstrumentField, nRequestID int) int
请求查询组播合约
func (*MdApiLite) ReqUserLogin ¶
func (t *MdApiLite) ReqUserLogin(pReqUserLoginField *ReqUserLoginField, nRequestID int) int
用户登录请求
func (MdApiLite) ReqUserLogout ¶
func (c MdApiLite) ReqUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, nRequestID int) int
登出请求
func (MdApiLite) SubscribeForQuoteRsp ¶
/订阅询价。 /@param ppInstrumentID 合约ID /@param nCount 要订阅/退订行情的合约个数 /@remark
func (MdApiLite) SubscribeMarketData ¶
/订阅行情。 /@param ppInstrumentID 合约ID /@param nCount 要订阅/退订行情的合约个数 /@remark
func (MdApiLite) UnSubscribeForQuoteRsp ¶
/退订询价。 /@param ppInstrumentID 合约ID /@param nCount 要订阅/退订行情的合约个数 /@remark
func (MdApiLite) UnSubscribeMarketData ¶
/退订行情。 /@param ppInstrumentID 合约ID /@param nCount 要订阅/退订行情的合约个数 /@remark
type MdOption ¶
type MdOption func(api *mdApi)
func MdFlowPath ¶
-----------------------------------------------------
func MdMultiCast ¶
func MdUsingUDP ¶
type MdSpi ¶
type MdSpi interface {
///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
OnFrontConnected()
///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
///@param nReason 错误原因
/// 0x1001 网络读失败
/// 0x1002 网络写失败
/// 0x2001 接收心跳超时
/// 0x2002 发送心跳失败
/// 0x2003 收到错误报文
OnFrontDisconnected(nReason int)
///心跳超时警告。当长时间未收到报文时,该方法被调用。
///@param nTimeLapse 距离上次接收报文的时间
OnHeartBeatWarning(nTimeLapse int)
///登录请求响应
OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///登出请求响应
OnRspUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询组播合约响应
OnRspQryMulticastInstrument(pMulticastInstrument *thost.CThostFtdcMulticastInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///错误应答
OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///订阅行情应答
OnRspSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///取消订阅行情应答
OnRspUnSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///订阅询价应答
OnRspSubForQuoteRsp(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///取消订阅询价应答
OnRspUnSubForQuoteRsp(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///深度行情通知
OnRtnDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField)
///询价通知
OnRtnForQuoteRsp(pForQuoteRsp *thost.CThostFtdcForQuoteRspField)
}
type MdSpiLite ¶
type MdSpiLite struct {
BaseMdSpi
//当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
OnFrontConnectedCallback func()
//当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
///@param nReason 错误原因
/// 0x1001 网络读失败
/// 0x1002 网络写失败
/// 0x2001 接收心跳超时
/// 0x2002 发送心跳失败
/// 0x2003 收到错误报文
OnFrontDisconnectedCallback func(nReason int)
//心跳超时警告。当长时间未收到报文时,该方法被调用。
///@param nTimeLapse 距离上次接收报文的时间
OnHeartBeatWarningCallback func(nTimeLapse int)
//登录请求响应
OnRspUserLoginCallback func(pRspUserLogin *RspUserLoginField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//错误应答
OnRspErrorCallback func(pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//深度行情通知
OnRtnDepthMarketDataCallback func(pDepthMarketData *DepthMarketDataField)
// 订阅行情应答
OnRspSubMarketDataCallback func(specificInstrument string, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
}
func (*MdSpiLite) OnFrontConnected ¶
func (s *MdSpiLite) OnFrontConnected()
当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
func (*MdSpiLite) OnFrontDisconnected ¶
当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 /@param nReason 错误原因 / 0x1001 网络读失败 / 0x1002 网络写失败 / 0x2001 接收心跳超时 / 0x2002 发送心跳失败 / 0x2003 收到错误报文
func (*MdSpiLite) OnHeartBeatWarning ¶
心跳超时警告。当长时间未收到报文时,该方法被调用。 /@param nTimeLapse 距离上次接收报文的时间
func (*MdSpiLite) OnRspError ¶
func (s *MdSpiLite) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
错误应答
func (*MdSpiLite) OnRspSubMarketData ¶
func (s *MdSpiLite) OnRspSubMarketData(pSpecificInstrument *thost.CThostFtdcSpecificInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
深度行情通知
func (*MdSpiLite) OnRspUserLogin ¶
func (s *MdSpiLite) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
登录请求响应
func (*MdSpiLite) OnRtnDepthMarketData ¶
func (s *MdSpiLite) OnRtnDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField)
深度行情通知
func (*MdSpiLite) SetOnFrontConnected ¶
func (s *MdSpiLite) SetOnFrontConnected(f func())
func (*MdSpiLite) SetOnFrontDisconnected ¶
func (*MdSpiLite) SetOnHeartBeatWarning ¶
func (*MdSpiLite) SetOnRspError ¶
func (s *MdSpiLite) SetOnRspError(f func(*RspInfoField, int, bool))
func (*MdSpiLite) SetOnRspSubMarketData ¶
func (s *MdSpiLite) SetOnRspSubMarketData(f func(string, *RspInfoField, int, bool))
func (*MdSpiLite) SetOnRspUserLogin ¶
func (s *MdSpiLite) SetOnRspUserLogin(f func(*RspUserLoginField, *RspInfoField, int, bool))
func (*MdSpiLite) SetOnRtnDepthMarketData ¶
func (s *MdSpiLite) SetOnRtnDepthMarketData(f func(*DepthMarketDataField))
type OrderActionField ¶
type OrderActionField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///报单操作引用
OrderActionRef int
///报单引用
OrderRef string
///请求编号
RequestID int
///前置编号
FrontID int
///会话编号
SessionID int
///交易所代码
ExchangeID string
///报单编号
OrderSysID string
///操作标志
ActionFlag byte
///价格
LimitPrice float64
///数量变化
VolumeChange int
///操作日期
ActionDate string
///操作时间
ActionTime string
///交易所交易员代码
TraderID string
///安装编号
InstallID int
///本地报单编号
OrderLocalID string
///操作本地编号
ActionLocalID string
///会员代码
ParticipantID string
///客户代码
ClientID string
///业务单元
BusinessUnit string
///报单操作状态
OrderActionStatus byte
///用户代码
UserID string
///状态信息
StatusMsg string
///营业部编号
BranchID string
///投资单元代码
InvestUnitID string
///Mac地址
MacAddress string
///合约代码
InstrumentID string
///IP地址
IPAddress string
// contains filtered or unexported fields
}
报单操作
type OrderField ¶
type OrderField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///报单引用
OrderRef string
///用户代码
UserID string
///报单价格条件
OrderPriceType byte
///买卖方向
Direction byte
///组合开平标志
CombOffsetFlag string
///组合投机套保标志
CombHedgeFlag string
///价格
LimitPrice float64
///数量
VolumeTotalOriginal int
///有效期类型
TimeCondition byte
///GTD日期
GTDDate string
///成交量类型
VolumeCondition byte
///最小成交量
MinVolume int
///触发条件
ContingentCondition byte
///止损价
StopPrice float64
///强平原因
ForceCloseReason byte
///自动挂起标志
IsAutoSuspend int
///业务单元
BusinessUnit string
///请求编号
RequestID int
///本地报单编号
OrderLocalID string
///交易所代码
ExchangeID string
///会员代码
ParticipantID string
///客户代码
ClientID string
///交易所交易员代码
TraderID string
///安装编号
InstallID int
///报单提交状态
OrderSubmitStatus byte
///报单提示序号
NotifySequence int
///交易日
TradingDay string
///结算编号
SettlementID int
///报单编号
OrderSysID string
///报单来源
OrderSource byte
///报单状态
OrderStatus byte
///报单类型
OrderType byte
///今成交数量
VolumeTraded int
///剩余数量
VolumeTotal int
///报单日期
InsertDate string
///委托时间
InsertTime string
///激活时间
ActiveTime string
///挂起时间
SuspendTime string
///最后修改时间
UpdateTime string
///撤销时间
CancelTime string
///最后修改交易所交易员代码
ActiveTraderID string
///结算会员编号
ClearingPartID string
///序号
SequenceNo int
///前置编号
FrontID int
///会话编号
SessionID int
///用户端产品信息
UserProductInfo string
///状态信息
StatusMsg string
///用户强评标志
UserForceClose int
///操作用户代码
ActiveUserID string
///经纪公司报单编号
BrokerOrderSeq int
///相关报单
RelativeOrderSysID string
///郑商所成交数量
ZCETotalTradedVolume int
///互换单标志
IsSwapOrder int
///营业部编号
BranchID string
///投资单元代码
InvestUnitID string
///资金账号
AccountID string
///币种代码
CurrencyID string
///Mac地址
MacAddress string
///合约代码
InstrumentID string
///合约在交易所的代码
ExchangeInstID string
///IP地址
IPAddress string
// contains filtered or unexported fields
}
报单
type QryAccountregisterField ¶
type QryAccountregisterField struct {
///经纪公司代码
BrokerID string
///投资者帐号
AccountID string
///银行编码
BankID string
///银行分支机构编码
BankBranchID string
///币种代码
CurrencyID string
}
请求查询银期签约关系
type QryBrokerTradingParamsField ¶
type QryBrokerTradingParamsField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///币种代码
CurrencyID string
///投资者帐号
AccountID string
}
查询经纪公司交易参数
type QryContractBankField ¶
type QryContractBankField struct {
///经纪公司代码
BrokerID string
///银行代码
BankID string
///银行分中心代码
BankBrchID string
}
查询签约银行请求
type QryDepthMarketDataField ¶
type QryDepthMarketDataField struct {
///交易所代码
ExchangeID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
查询行情
type QryInstrumentCommissionRateField ¶
type QryInstrumentCommissionRateField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///交易所代码
ExchangeID string
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
查询手续费率
type QryInstrumentField ¶
type QryInstrumentField struct {
///交易所代码
ExchangeID string
///合约代码
InstrumentID string
///合约在交易所的代码
ExchangeInstID string
///产品代码
ProductID string
// contains filtered or unexported fields
}
查询合约
type QryInstrumentMarginRateField ¶
type QryInstrumentMarginRateField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///投机套保标志
HedgeFlag byte
///交易所代码
ExchangeID string
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
查询合约保证金率
type QryInvestorPositionField ¶
type QryInvestorPositionField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///交易所代码
ExchangeID string
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
查询投资者持仓
type QryOrderField ¶
type QryOrderField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///交易所代码
ExchangeID string
///报单编号
OrderSysID string
///开始时间
InsertTimeStart string
///结束时间
InsertTimeEnd string
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
查询报单
type QrySettlementInfoConfirmField ¶
type QrySettlementInfoConfirmField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///投资者帐号
AccountID string
///币种代码
CurrencyID string
}
查询结算信息确认域
type QrySettlementInfoField ¶
type QrySettlementInfoField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///交易日
TradingDay string
///投资者帐号
AccountID string
///币种代码
CurrencyID string
}
查询投资者结算结果
type QryTradeField ¶
type QryTradeField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///交易所代码
ExchangeID string
///成交编号
TradeID string
///开始时间
TradeTimeStart string
///结束时间
TradeTimeEnd string
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
// contains filtered or unexported fields
}
查询成交
type QryTradingAccountField ¶
type QryTradingAccountField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///币种代码
CurrencyID string
///业务类型
BizType byte
///投资者帐号
AccountID string
}
查询资金账户
type QryTransferSerialField ¶
type QryTransferSerialField struct {
///经纪公司代码
BrokerID string
///投资者帐号
AccountID string
///银行编码
BankID string
///币种代码
CurrencyID string
}
请求查询转帐流水
type ReqAuthenticateField ¶
type ReqAuthenticateField struct {
///经纪公司代码
BrokerID string
///用户代码
UserID string
///用户端产品信息
UserProductInfo string
///认证码
AuthCode string
///App代码
AppID string
}
客户端认证请求
type ReqTransferField ¶
type ReqTransferField struct {
///业务功能码
TradeCode string
///银行代码
BankID string
///银行分支机构代码
BankBranchID string
///期商代码
BrokerID string
///期商分支机构代码
BrokerBranchID string
///交易日期
TradeDate string
///交易时间
TradeTime string
///银行流水号
BankSerial string
///交易系统日期
TradingDay string
///银期平台消息流水号
PlateSerial int
///最后分片标志
LastFragment byte
///会话号
SessionID int
///客户姓名
CustomerName string
///证件类型
IdCardType byte
///证件号码
IdentifiedCardNo string
///客户类型
CustType byte
///银行帐号
BankAccount string
///银行密码
BankPassWord string
///投资者帐号
AccountID string
///期货密码
Password string
///安装编号
InstallID int
///期货公司流水号
FutureSerial int
///用户标识
UserID string
///验证客户证件号码标志
VerifyCertNoFlag byte
///币种代码
CurrencyID string
///转帐金额
TradeAmount float64
///期货可取金额
FutureFetchAmount float64
///费用支付标志
FeePayFlag byte
///应收客户费用
CustFee float64
///应收期货公司费用
BrokerFee float64
///发送方给接收方的消息
Message string
///摘要
Digest string
///银行帐号类型
BankAccType byte
///渠道标志
DeviceID string
///期货单位帐号类型
BankSecuAccType byte
///期货公司银行编码
BrokerIDByBank string
///期货单位帐号
BankSecuAcc string
///银行密码标志
BankPwdFlag byte
///期货资金密码核对标志
SecuPwdFlag byte
///交易柜员
OperNo string
///请求编号
RequestID int
///交易ID
TID int
///转账交易状态
TransferStatus byte
///长客户姓名
LongCustomerName string
}
转账请求
type ReqUserLoginField ¶
type ReqUserLoginField struct {
///交易日
TradingDay string
///经纪公司代码
BrokerID string
///用户代码
UserID string
///密码
Password string
///用户端产品信息
UserProductInfo string
///接口端产品信息
InterfaceProductInfo string
///协议信息
ProtocolInfo string
///Mac地址
MacAddress string
///动态密码
OneTimePassword string
///登录备注
LoginRemark string
///终端IP端口
ClientIPPort int
///终端IP地址
ClientIPAddress string
// contains filtered or unexported fields
}
用户登录请求
type RspAuthenticateField ¶
type RspAuthenticateField struct {
///经纪公司代码
BrokerID string
///用户代码
UserID string
///用户端产品信息
UserProductInfo string
///App代码
AppID string
///App类型
AppType byte
}
客户端认证响应
type RspTransferField ¶
type RspTransferField struct {
///业务功能码
TradeCode string
///银行代码
BankID string
///银行分支机构代码
BankBranchID string
///期商代码
BrokerID string
///期商分支机构代码
BrokerBranchID string
///交易日期
TradeDate string
///交易时间
TradeTime string
///银行流水号
BankSerial string
///交易系统日期
TradingDay string
///银期平台消息流水号
PlateSerial int
///最后分片标志
LastFragment byte
///会话号
SessionID int
///客户姓名
CustomerName string
///证件类型
IdCardType byte
///证件号码
IdentifiedCardNo string
///客户类型
CustType byte
///银行帐号
BankAccount string
///银行密码
BankPassWord string
///投资者帐号
AccountID string
///期货密码
Password string
///安装编号
InstallID int
///期货公司流水号
FutureSerial int
///用户标识
UserID string
///验证客户证件号码标志
VerifyCertNoFlag byte
///币种代码
CurrencyID string
///转帐金额
TradeAmount float64
///期货可取金额
FutureFetchAmount float64
///费用支付标志
FeePayFlag byte
///应收客户费用
CustFee float64
///应收期货公司费用
BrokerFee float64
///发送方给接收方的消息
Message string
///摘要
Digest string
///银行帐号类型
BankAccType byte
///渠道标志
DeviceID string
///期货单位帐号类型
BankSecuAccType byte
///期货公司银行编码
BrokerIDByBank string
///期货单位帐号
BankSecuAcc string
///银行密码标志
BankPwdFlag byte
///期货资金密码核对标志
SecuPwdFlag byte
///交易柜员
OperNo string
///请求编号
RequestID int
///交易ID
TID int
///转账交易状态
TransferStatus byte
///错误代码
ErrorID int
///错误信息
ErrorMsg string
///长客户姓名
LongCustomerName string
}
银行发起银行资金转期货响应
type RspUserLoginField ¶
type RspUserLoginField struct {
///交易日
TradingDay string
///登录成功时间
LoginTime string
///经纪公司代码
BrokerID string
///用户代码
UserID string
///交易系统名称
SystemName string
///前置编号
FrontID int
///会话编号
SessionID int
///最大报单引用
MaxOrderRef string
///上期所时间
SHFETime string
///大商所时间
DCETime string
///郑商所时间
CZCETime string
///中金所时间
FFEXTime string
///能源中心时间
INETime string
}
用户登录应答
type SettlementInfoConfirmField ¶
type SettlementInfoConfirmField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///确认日期
ConfirmDate string
///确认时间
ConfirmTime string
///结算编号
SettlementID int
///投资者帐号
AccountID string
///币种代码
CurrencyID string
}
投资者结算结果确认信息
type SettlementInfoField ¶
type SettlementInfoField struct {
///交易日
TradingDay string
///结算编号
SettlementID int
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///序号
SequenceNo int
///消息正文
Content string
///投资者帐号
AccountID string
///币种代码
CurrencyID string
}
投资者结算结果
type TradeField ¶
type TradeField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///报单引用
OrderRef string
///用户代码
UserID string
///交易所代码
ExchangeID string
///成交编号
TradeID string
///买卖方向
Direction byte
///报单编号
OrderSysID string
///会员代码
ParticipantID string
///客户代码
ClientID string
///交易角色
TradingRole byte
///开平标志
OffsetFlag byte
///投机套保标志
HedgeFlag byte
///价格
Price float64
///数量
Volume int
///成交时期
TradeDate string
///成交时间
TradeTime string
///成交类型
TradeType byte
///成交价来源
PriceSource byte
///交易所交易员代码
TraderID string
///本地报单编号
OrderLocalID string
///结算会员编号
ClearingPartID string
///业务单元
BusinessUnit string
///序号
SequenceNo int
///交易日
TradingDay string
///结算编号
SettlementID int
///经纪公司报单编号
BrokerOrderSeq int
///成交来源
TradeSource byte
///投资单元代码
InvestUnitID string
///合约代码
InstrumentID string
///合约在交易所的代码
ExchangeInstID string
// contains filtered or unexported fields
}
成交
type TraderApi ¶
type TraderApi interface {
///获取API的版本信息
///@retrun 获取到的版本号
GetApiVersion() string
///删除接口对象本身
///@remark 不再使用本接口对象时,调用该函数删除接口对象
Release()
///初始化
///@remark 初始化运行环境,只有调用后,接口才开始工作
Init()
///等待接口线程结束运行
///@return 线程退出代码
Join() int
///获取当前交易日
///@retrun 获取到的交易日
///@remark 只有登录成功后,才能得到正确的交易日
GetTradingDay() string
///注册前置机网络地址
///@param pszFrontAddress:前置机网络地址。
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:17001”。
///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”17001”代表服务器端口号。
RegisterFront(frontAddress string)
///注册名字服务器网络地址
///@param pszNsAddress:名字服务器网络地址。
///@remark 网络地址的格式为:“protocol://ipaddress:port”,如:”tcp://127.0.0.1:12001”。
///@remark “tcp”代表传输协议,“127.0.0.1”代表服务器地址。”12001”代表服务器端口号。
///@remark RegisterNameServer优先于RegisterFront
RegisterNameServer(nsAddress string)
///注册名字服务器用户信息
///@param pFensUserInfo:用户信息。
RegisterFensUserInfo(pFensUserInfo *thost.CThostFtdcFensUserInfoField)
///注册回调接口
///@param pSpi 派生自回调接口类的实例
RegisterSpi(spi TraderSpi)
///订阅私有流。
///@param nResumeType 私有流重传方式
/// THOST_TERT_RESTART:从本交易日开始重传
/// THOST_TERT_RESUME:从上次收到的续传
/// THOST_TERT_QUICK:只传送登录后私有流的内容
///@remark 该方法要在Init方法前调用。若不调用则不会收到私有流的数据。
SubscribePrivateTopic(nResumeType thost.THOST_TE_RESUME_TYPE)
///订阅公共流。
///@param nResumeType 公共流重传方式
/// THOST_TERT_RESTART:从本交易日开始重传
/// THOST_TERT_RESUME:从上次收到的续传
/// THOST_TERT_QUICK:只传送登录后公共流的内容
/// THOST_TERT_NONE:取消订阅公共流
///@remark 该方法要在Init方法前调用。若不调用则不会收到公共流的数据。
SubscribePublicTopic(nResumeType thost.THOST_TE_RESUME_TYPE)
///客户端认证请求
ReqAuthenticate(pReqAuthenticateField *thost.CThostFtdcReqAuthenticateField, nRequestID int) int
///注册用户终端信息,用于中继服务器多连接模式
///需要在终端认证成功后,用户登录前调用该接口
RegisterUserSystemInfo(pUserSystemInfo *thost.CThostFtdcUserSystemInfoField) int
///上报用户终端信息,用于中继服务器操作员登录模式
///操作员登录后,可以多次调用该接口上报客户信息
SubmitUserSystemInfo(pUserSystemInfo *thost.CThostFtdcUserSystemInfoField) int
///用户登录请求
ReqUserLogin(pReqUserLoginField *thost.CThostFtdcReqUserLoginField, nRequestID int) int
///登出请求
ReqUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, nRequestID int) int
///用户口令更新请求
ReqUserPasswordUpdate(pUserPasswordUpdate *thost.CThostFtdcUserPasswordUpdateField, nRequestID int) int
///资金账户口令更新请求
ReqTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *thost.CThostFtdcTradingAccountPasswordUpdateField, nRequestID int) int
///查询用户当前支持的认证模式
ReqUserAuthMethod(pReqUserAuthMethod *thost.CThostFtdcReqUserAuthMethodField, nRequestID int) int
///用户发出获取图形验证码请求
ReqGenUserCaptcha(pReqGenUserCaptcha *thost.CThostFtdcReqGenUserCaptchaField, nRequestID int) int
///用户发出获取短信验证码请求
ReqGenUserText(pReqGenUserText *thost.CThostFtdcReqGenUserTextField, nRequestID int) int
///用户发出带有图片验证码的登陆请求
ReqUserLoginWithCaptcha(pReqUserLoginWithCaptcha *thost.CThostFtdcReqUserLoginWithCaptchaField, nRequestID int) int
///用户发出带有短信验证码的登陆请求
ReqUserLoginWithText(pReqUserLoginWithText *thost.CThostFtdcReqUserLoginWithTextField, nRequestID int) int
///用户发出带有动态口令的登陆请求
ReqUserLoginWithOTP(pReqUserLoginWithOTP *thost.CThostFtdcReqUserLoginWithOTPField, nRequestID int) int
///报单录入请求
ReqOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, nRequestID int) int
///预埋单录入请求
ReqParkedOrderInsert(pParkedOrder *thost.CThostFtdcParkedOrderField, nRequestID int) int
///预埋撤单录入请求
ReqParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, nRequestID int) int
///报单操作请求
ReqOrderAction(pInputOrderAction *thost.CThostFtdcInputOrderActionField, nRequestID int) int
///查询最大报单数量请求
ReqQryMaxOrderVolume(pQryMaxOrderVolume *thost.CThostFtdcQryMaxOrderVolumeField, nRequestID int) int
///投资者结算结果确认
ReqSettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, nRequestID int) int
///请求删除预埋单
ReqRemoveParkedOrder(pRemoveParkedOrder *thost.CThostFtdcRemoveParkedOrderField, nRequestID int) int
///请求删除预埋撤单
ReqRemoveParkedOrderAction(pRemoveParkedOrderAction *thost.CThostFtdcRemoveParkedOrderActionField, nRequestID int) int
///执行宣告录入请求
ReqExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, nRequestID int) int
///执行宣告操作请求
ReqExecOrderAction(pInputExecOrderAction *thost.CThostFtdcInputExecOrderActionField, nRequestID int) int
///询价录入请求
ReqForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, nRequestID int) int
///报价录入请求
ReqQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, nRequestID int) int
///报价操作请求
ReqQuoteAction(pInputQuoteAction *thost.CThostFtdcInputQuoteActionField, nRequestID int) int
///批量报单操作请求
ReqBatchOrderAction(pInputBatchOrderAction *thost.CThostFtdcInputBatchOrderActionField, nRequestID int) int
///期权自对冲录入请求
ReqOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, nRequestID int) int
///期权自对冲操作请求
ReqOptionSelfCloseAction(pInputOptionSelfCloseAction *thost.CThostFtdcInputOptionSelfCloseActionField, nRequestID int) int
///申请组合录入请求
ReqCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, nRequestID int) int
///请求查询报单
ReqQryOrder(pQryOrder *thost.CThostFtdcQryOrderField, nRequestID int) int
///请求查询成交
ReqQryTrade(pQryTrade *thost.CThostFtdcQryTradeField, nRequestID int) int
///请求查询投资者持仓
ReqQryInvestorPosition(pQryInvestorPosition *thost.CThostFtdcQryInvestorPositionField, nRequestID int) int
///请求查询资金账户
ReqQryTradingAccount(pQryTradingAccount *thost.CThostFtdcQryTradingAccountField, nRequestID int) int
///请求查询投资者
ReqQryInvestor(pQryInvestor *thost.CThostFtdcQryInvestorField, nRequestID int) int
///请求查询交易编码
ReqQryTradingCode(pQryTradingCode *thost.CThostFtdcQryTradingCodeField, nRequestID int) int
///请求查询合约保证金率
ReqQryInstrumentMarginRate(pQryInstrumentMarginRate *thost.CThostFtdcQryInstrumentMarginRateField, nRequestID int) int
///请求查询合约手续费率
ReqQryInstrumentCommissionRate(pQryInstrumentCommissionRate *thost.CThostFtdcQryInstrumentCommissionRateField, nRequestID int) int
///请求查询交易所
ReqQryExchange(pQryExchange *thost.CThostFtdcQryExchangeField, nRequestID int) int
///请求查询产品
ReqQryProduct(pQryProduct *thost.CThostFtdcQryProductField, nRequestID int) int
///请求查询合约
ReqQryInstrument(pQryInstrument *thost.CThostFtdcQryInstrumentField, nRequestID int) int
///请求查询行情
ReqQryDepthMarketData(pQryDepthMarketData *thost.CThostFtdcQryDepthMarketDataField, nRequestID int) int
///请求查询投资者结算结果
ReqQrySettlementInfo(pQrySettlementInfo *thost.CThostFtdcQrySettlementInfoField, nRequestID int) int
///请求查询转帐银行
ReqQryTransferBank(pQryTransferBank *thost.CThostFtdcQryTransferBankField, nRequestID int) int
///请求查询投资者持仓明细
ReqQryInvestorPositionDetail(pQryInvestorPositionDetail *thost.CThostFtdcQryInvestorPositionDetailField, nRequestID int) int
///请求查询客户通知
ReqQryNotice(pQryNotice *thost.CThostFtdcQryNoticeField, nRequestID int) int
///请求查询结算信息确认
ReqQrySettlementInfoConfirm(pQrySettlementInfoConfirm *thost.CThostFtdcQrySettlementInfoConfirmField, nRequestID int) int
///请求查询投资者持仓明细
ReqQryInvestorPositionCombineDetail(pQryInvestorPositionCombineDetail *thost.CThostFtdcQryInvestorPositionCombineDetailField, nRequestID int) int
///请求查询保证金监管系统经纪公司资金账户密钥
ReqQryCFMMCTradingAccountKey(pQryCFMMCTradingAccountKey *thost.CThostFtdcQryCFMMCTradingAccountKeyField, nRequestID int) int
///请求查询仓单折抵信息
ReqQryEWarrantOffset(pQryEWarrantOffset *thost.CThostFtdcQryEWarrantOffsetField, nRequestID int) int
///请求查询投资者品种/跨品种保证金
ReqQryInvestorProductGroupMargin(pQryInvestorProductGroupMargin *thost.CThostFtdcQryInvestorProductGroupMarginField, nRequestID int) int
///请求查询交易所保证金率
ReqQryExchangeMarginRate(pQryExchangeMarginRate *thost.CThostFtdcQryExchangeMarginRateField, nRequestID int) int
///请求查询交易所调整保证金率
ReqQryExchangeMarginRateAdjust(pQryExchangeMarginRateAdjust *thost.CThostFtdcQryExchangeMarginRateAdjustField, nRequestID int) int
///请求查询汇率
ReqQryExchangeRate(pQryExchangeRate *thost.CThostFtdcQryExchangeRateField, nRequestID int) int
///请求查询二级代理操作员银期权限
ReqQrySecAgentACIDMap(pQrySecAgentACIDMap *thost.CThostFtdcQrySecAgentACIDMapField, nRequestID int) int
///请求查询产品报价汇率
ReqQryProductExchRate(pQryProductExchRate *thost.CThostFtdcQryProductExchRateField, nRequestID int) int
///请求查询产品组
ReqQryProductGroup(pQryProductGroup *thost.CThostFtdcQryProductGroupField, nRequestID int) int
///请求查询做市商合约手续费率
ReqQryMMInstrumentCommissionRate(pQryMMInstrumentCommissionRate *thost.CThostFtdcQryMMInstrumentCommissionRateField, nRequestID int) int
///请求查询做市商期权合约手续费
ReqQryMMOptionInstrCommRate(pQryMMOptionInstrCommRate *thost.CThostFtdcQryMMOptionInstrCommRateField, nRequestID int) int
///请求查询报单手续费
ReqQryInstrumentOrderCommRate(pQryInstrumentOrderCommRate *thost.CThostFtdcQryInstrumentOrderCommRateField, nRequestID int) int
///请求查询资金账户
ReqQrySecAgentTradingAccount(pQryTradingAccount *thost.CThostFtdcQryTradingAccountField, nRequestID int) int
///请求查询二级代理商资金校验模式
ReqQrySecAgentCheckMode(pQrySecAgentCheckMode *thost.CThostFtdcQrySecAgentCheckModeField, nRequestID int) int
///请求查询二级代理商信息
ReqQrySecAgentTradeInfo(pQrySecAgentTradeInfo *thost.CThostFtdcQrySecAgentTradeInfoField, nRequestID int) int
///请求查询期权交易成本
ReqQryOptionInstrTradeCost(pQryOptionInstrTradeCost *thost.CThostFtdcQryOptionInstrTradeCostField, nRequestID int) int
///请求查询期权合约手续费
ReqQryOptionInstrCommRate(pQryOptionInstrCommRate *thost.CThostFtdcQryOptionInstrCommRateField, nRequestID int) int
///请求查询执行宣告
ReqQryExecOrder(pQryExecOrder *thost.CThostFtdcQryExecOrderField, nRequestID int) int
///请求查询询价
ReqQryForQuote(pQryForQuote *thost.CThostFtdcQryForQuoteField, nRequestID int) int
///请求查询报价
ReqQryQuote(pQryQuote *thost.CThostFtdcQryQuoteField, nRequestID int) int
///请求查询期权自对冲
ReqQryOptionSelfClose(pQryOptionSelfClose *thost.CThostFtdcQryOptionSelfCloseField, nRequestID int) int
///请求查询投资单元
ReqQryInvestUnit(pQryInvestUnit *thost.CThostFtdcQryInvestUnitField, nRequestID int) int
///请求查询组合合约安全系数
ReqQryCombInstrumentGuard(pQryCombInstrumentGuard *thost.CThostFtdcQryCombInstrumentGuardField, nRequestID int) int
///请求查询申请组合
ReqQryCombAction(pQryCombAction *thost.CThostFtdcQryCombActionField, nRequestID int) int
///请求查询转帐流水
ReqQryTransferSerial(pQryTransferSerial *thost.CThostFtdcQryTransferSerialField, nRequestID int) int
///请求查询银期签约关系
ReqQryAccountregister(pQryAccountregister *thost.CThostFtdcQryAccountregisterField, nRequestID int) int
///请求查询签约银行
ReqQryContractBank(pQryContractBank *thost.CThostFtdcQryContractBankField, nRequestID int) int
///请求查询预埋单
ReqQryParkedOrder(pQryParkedOrder *thost.CThostFtdcQryParkedOrderField, nRequestID int) int
///请求查询预埋撤单
ReqQryParkedOrderAction(pQryParkedOrderAction *thost.CThostFtdcQryParkedOrderActionField, nRequestID int) int
///请求查询交易通知
ReqQryTradingNotice(pQryTradingNotice *thost.CThostFtdcQryTradingNoticeField, nRequestID int) int
///请求查询经纪公司交易参数
ReqQryBrokerTradingParams(pQryBrokerTradingParams *thost.CThostFtdcQryBrokerTradingParamsField, nRequestID int) int
///请求查询经纪公司交易算法
ReqQryBrokerTradingAlgos(pQryBrokerTradingAlgos *thost.CThostFtdcQryBrokerTradingAlgosField, nRequestID int) int
///请求查询监控中心用户令牌
ReqQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken *thost.CThostFtdcQueryCFMMCTradingAccountTokenField, nRequestID int) int
///期货发起银行资金转期货请求
ReqFromBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, nRequestID int) int
///期货发起期货资金转银行请求
ReqFromFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, nRequestID int) int
///期货发起查询银行余额请求
ReqQueryBankAccountMoneyByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, nRequestID int) int
///请求查询分类合约
ReqQryClassifiedInstrument(pQryClassifiedInstrument *thost.CThostFtdcQryClassifiedInstrumentField, nRequestID int) int
///请求组合优惠比例
ReqQryCombPromotionParam(pQryCombPromotionParam *thost.CThostFtdcQryCombPromotionParamField, nRequestID int) int
///投资者风险结算持仓查询
ReqQryRiskSettleInvstPosition(pQryRiskSettleInvstPosition *thost.CThostFtdcQryRiskSettleInvstPositionField, nRequestID int) int
///风险结算产品查询
ReqQryRiskSettleProductStatus(pQryRiskSettleProductStatus *thost.CThostFtdcQryRiskSettleProductStatusField, nRequestID int) int
}
type TraderApiLite ¶
type TraderApiLite struct {
// contains filtered or unexported fields
}
func CreateTraderApiLite ¶
func CreateTraderApiLite(options ...TraderOption) *TraderApiLite
func (TraderApiLite) GetApiVersion ¶
func (c TraderApiLite) GetApiVersion() string
/获取API的版本信息 /@retrun 获取到的版本号
func (TraderApiLite) GetTradingDay ¶
func (c TraderApiLite) GetTradingDay() string
/获取当前交易日 /@retrun 获取到的交易日 /@remark 只有登录成功后,才能得到正确的交易日
func (TraderApiLite) RegisterFensUserInfo ¶
func (c TraderApiLite) RegisterFensUserInfo(pFensUserInfo *thost.CThostFtdcFensUserInfoField)
注册名字服务器用户信息 /@param pFensUserInfo:用户信息。
func (TraderApiLite) RegisterFront ¶
func (c TraderApiLite) RegisterFront(frontAddress string)
func (TraderApiLite) RegisterNameServer ¶
func (c TraderApiLite) RegisterNameServer(nsAddress string)
func (TraderApiLite) RegisterSpi ¶
func (c TraderApiLite) RegisterSpi(pSpi TraderSpi)
注册回调接口 /@param pSpi 派生自回调接口类的实例
func (TraderApiLite) RegisterUserSystemInfo ¶
func (c TraderApiLite) RegisterUserSystemInfo(pUserSystemInfo *thost.CThostFtdcUserSystemInfoField) int
注册用户终端信息,用于中继服务器多连接模式 /需要在终端认证成功后,用户登录前调用该接口
func (TraderApiLite) Release ¶
func (c TraderApiLite) Release()
删除接口对象本身 /@remark 不再使用本接口对象时,调用该函数删除接口对象
func (*TraderApiLite) ReqAuthenticate ¶
func (t *TraderApiLite) ReqAuthenticate(pReqAuthenticateField *ReqAuthenticateField, nRequestID int) int
客户端认证请求
func (TraderApiLite) ReqBatchOrderAction ¶
func (c TraderApiLite) ReqBatchOrderAction(pInputBatchOrderAction *thost.CThostFtdcInputBatchOrderActionField, nRequestID int) int
批量报单操作请求
func (TraderApiLite) ReqCombActionInsert ¶
func (c TraderApiLite) ReqCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, nRequestID int) int
申请组合录入请求
func (TraderApiLite) ReqExecOrderAction ¶
func (c TraderApiLite) ReqExecOrderAction(pInputExecOrderAction *thost.CThostFtdcInputExecOrderActionField, nRequestID int) int
执行宣告操作请求
func (TraderApiLite) ReqExecOrderInsert ¶
func (c TraderApiLite) ReqExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, nRequestID int) int
执行宣告录入请求
func (TraderApiLite) ReqForQuoteInsert ¶
func (c TraderApiLite) ReqForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, nRequestID int) int
询价录入请求
func (*TraderApiLite) ReqFromBankToFutureByFuture ¶
func (t *TraderApiLite) ReqFromBankToFutureByFuture(pReqTransfer *ReqTransferField, nRequestID int) int
期货发起银行资金转期货请求
func (*TraderApiLite) ReqFromFutureToBankByFuture ¶
func (t *TraderApiLite) ReqFromFutureToBankByFuture(pReqTransfer *ReqTransferField, nRequestID int) int
期货发起期货资金转银行请求
func (TraderApiLite) ReqGenUserCaptcha ¶
func (c TraderApiLite) ReqGenUserCaptcha(pReqGenUserCaptcha *thost.CThostFtdcReqGenUserCaptchaField, nRequestID int) int
用户发出获取图形验证码请求
func (TraderApiLite) ReqGenUserText ¶
func (c TraderApiLite) ReqGenUserText(pReqGenUserText *thost.CThostFtdcReqGenUserTextField, nRequestID int) int
用户发出获取短信验证码请求
func (TraderApiLite) ReqOptionSelfCloseAction ¶
func (c TraderApiLite) ReqOptionSelfCloseAction(pInputOptionSelfCloseAction *thost.CThostFtdcInputOptionSelfCloseActionField, nRequestID int) int
期权自对冲操作请求
func (TraderApiLite) ReqOptionSelfCloseInsert ¶
func (c TraderApiLite) ReqOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, nRequestID int) int
期权自对冲录入请求
func (*TraderApiLite) ReqOrderAction ¶
func (t *TraderApiLite) ReqOrderAction(pInputOrderAction *InputOrderActionField, nRequestID int) int
报单操作请求
func (*TraderApiLite) ReqOrderInsert ¶
func (t *TraderApiLite) ReqOrderInsert(pInputOrder *InputOrderField, nRequestID int) int
报单录入请求
func (TraderApiLite) ReqParkedOrderAction ¶
func (c TraderApiLite) ReqParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, nRequestID int) int
预埋撤单录入请求
func (TraderApiLite) ReqParkedOrderInsert ¶
func (c TraderApiLite) ReqParkedOrderInsert(pParkedOrder *thost.CThostFtdcParkedOrderField, nRequestID int) int
预埋单录入请求
func (*TraderApiLite) ReqQryAccountregister ¶
func (t *TraderApiLite) ReqQryAccountregister(pQryAccountregister *QryAccountregisterField, nRequestID int) int
请求查询银期签约关系
func (TraderApiLite) ReqQryBrokerTradingAlgos ¶
func (c TraderApiLite) ReqQryBrokerTradingAlgos(pQryBrokerTradingAlgos *thost.CThostFtdcQryBrokerTradingAlgosField, nRequestID int) int
请求查询经纪公司交易算法
func (*TraderApiLite) ReqQryBrokerTradingParams ¶
func (t *TraderApiLite) ReqQryBrokerTradingParams(pQryBrokerTradingParams *QryBrokerTradingParamsField, nRequestID int) int
请求查询经纪公司交易参数
func (TraderApiLite) ReqQryCFMMCTradingAccountKey ¶
func (c TraderApiLite) ReqQryCFMMCTradingAccountKey(pQryCFMMCTradingAccountKey *thost.CThostFtdcQryCFMMCTradingAccountKeyField, nRequestID int) int
请求查询保证金监管系统经纪公司资金账户密钥
func (TraderApiLite) ReqQryClassifiedInstrument ¶
func (c TraderApiLite) ReqQryClassifiedInstrument(pQryClassifiedInstrument *thost.CThostFtdcQryClassifiedInstrumentField, nRequestID int) int
请求查询分类合约
func (TraderApiLite) ReqQryCombAction ¶
func (c TraderApiLite) ReqQryCombAction(pQryCombAction *thost.CThostFtdcQryCombActionField, nRequestID int) int
请求查询申请组合
func (TraderApiLite) ReqQryCombInstrumentGuard ¶
func (c TraderApiLite) ReqQryCombInstrumentGuard(pQryCombInstrumentGuard *thost.CThostFtdcQryCombInstrumentGuardField, nRequestID int) int
请求查询组合合约安全系数
func (TraderApiLite) ReqQryCombPromotionParam ¶
func (c TraderApiLite) ReqQryCombPromotionParam(pQryCombPromotionParam *thost.CThostFtdcQryCombPromotionParamField, nRequestID int) int
请求组合优惠比例
func (*TraderApiLite) ReqQryContractBank ¶
func (t *TraderApiLite) ReqQryContractBank(pQryContractBank *QryContractBankField, nRequestID int) int
请求查询签约银行
func (*TraderApiLite) ReqQryDepthMarketData ¶
func (t *TraderApiLite) ReqQryDepthMarketData(pQryDepthMarketData *QryDepthMarketDataField, nRequestID int) int
请求查询行情
func (TraderApiLite) ReqQryEWarrantOffset ¶
func (c TraderApiLite) ReqQryEWarrantOffset(pQryEWarrantOffset *thost.CThostFtdcQryEWarrantOffsetField, nRequestID int) int
请求查询仓单折抵信息
func (TraderApiLite) ReqQryExchange ¶
func (c TraderApiLite) ReqQryExchange(pQryExchange *thost.CThostFtdcQryExchangeField, nRequestID int) int
请求查询交易所
func (TraderApiLite) ReqQryExchangeMarginRate ¶
func (c TraderApiLite) ReqQryExchangeMarginRate(pQryExchangeMarginRate *thost.CThostFtdcQryExchangeMarginRateField, nRequestID int) int
请求查询交易所保证金率
func (TraderApiLite) ReqQryExchangeMarginRateAdjust ¶
func (c TraderApiLite) ReqQryExchangeMarginRateAdjust(pQryExchangeMarginRateAdjust *thost.CThostFtdcQryExchangeMarginRateAdjustField, nRequestID int) int
请求查询交易所调整保证金率
func (TraderApiLite) ReqQryExchangeRate ¶
func (c TraderApiLite) ReqQryExchangeRate(pQryExchangeRate *thost.CThostFtdcQryExchangeRateField, nRequestID int) int
请求查询汇率
func (TraderApiLite) ReqQryExecOrder ¶
func (c TraderApiLite) ReqQryExecOrder(pQryExecOrder *thost.CThostFtdcQryExecOrderField, nRequestID int) int
请求查询执行宣告
func (TraderApiLite) ReqQryForQuote ¶
func (c TraderApiLite) ReqQryForQuote(pQryForQuote *thost.CThostFtdcQryForQuoteField, nRequestID int) int
请求查询询价
func (*TraderApiLite) ReqQryInstrument ¶
func (t *TraderApiLite) ReqQryInstrument(pQryInstrument *QryInstrumentField, nRequestID int) int
请求查询合约
func (*TraderApiLite) ReqQryInstrumentCommissionRate ¶
func (t *TraderApiLite) ReqQryInstrumentCommissionRate(pQryInstrumentCommissionRate *QryInstrumentCommissionRateField, nRequestID int) int
请求查询合约手续费率
func (*TraderApiLite) ReqQryInstrumentMarginRate ¶
func (t *TraderApiLite) ReqQryInstrumentMarginRate(pQryInstrumentMarginRate *QryInstrumentMarginRateField, nRequestID int) int
请求查询合约保证金率
func (TraderApiLite) ReqQryInstrumentOrderCommRate ¶
func (c TraderApiLite) ReqQryInstrumentOrderCommRate(pQryInstrumentOrderCommRate *thost.CThostFtdcQryInstrumentOrderCommRateField, nRequestID int) int
请求查询报单手续费
func (TraderApiLite) ReqQryInvestUnit ¶
func (c TraderApiLite) ReqQryInvestUnit(pQryInvestUnit *thost.CThostFtdcQryInvestUnitField, nRequestID int) int
请求查询投资单元
func (TraderApiLite) ReqQryInvestor ¶
func (c TraderApiLite) ReqQryInvestor(pQryInvestor *thost.CThostFtdcQryInvestorField, nRequestID int) int
请求查询投资者
func (*TraderApiLite) ReqQryInvestorPosition ¶
func (t *TraderApiLite) ReqQryInvestorPosition(pQryInvestorPosition *QryInvestorPositionField, nRequestID int) int
请求查询投资者持仓
func (TraderApiLite) ReqQryInvestorPositionCombineDetail ¶
func (c TraderApiLite) ReqQryInvestorPositionCombineDetail(pQryInvestorPositionCombineDetail *thost.CThostFtdcQryInvestorPositionCombineDetailField, nRequestID int) int
请求查询投资者持仓明细
func (TraderApiLite) ReqQryInvestorPositionDetail ¶
func (c TraderApiLite) ReqQryInvestorPositionDetail(pQryInvestorPositionDetail *thost.CThostFtdcQryInvestorPositionDetailField, nRequestID int) int
请求查询投资者持仓明细
func (TraderApiLite) ReqQryInvestorProductGroupMargin ¶
func (c TraderApiLite) ReqQryInvestorProductGroupMargin(pQryInvestorProductGroupMargin *thost.CThostFtdcQryInvestorProductGroupMarginField, nRequestID int) int
请求查询投资者品种/跨品种保证金
func (TraderApiLite) ReqQryMMInstrumentCommissionRate ¶
func (c TraderApiLite) ReqQryMMInstrumentCommissionRate(pQryMMInstrumentCommissionRate *thost.CThostFtdcQryMMInstrumentCommissionRateField, nRequestID int) int
请求查询做市商合约手续费率
func (TraderApiLite) ReqQryMMOptionInstrCommRate ¶
func (c TraderApiLite) ReqQryMMOptionInstrCommRate(pQryMMOptionInstrCommRate *thost.CThostFtdcQryMMOptionInstrCommRateField, nRequestID int) int
请求查询做市商期权合约手续费
func (TraderApiLite) ReqQryMaxOrderVolume ¶
func (c TraderApiLite) ReqQryMaxOrderVolume(pQryMaxOrderVolume *thost.CThostFtdcQryMaxOrderVolumeField, nRequestID int) int
查询最大报单数量请求
func (TraderApiLite) ReqQryNotice ¶
func (c TraderApiLite) ReqQryNotice(pQryNotice *thost.CThostFtdcQryNoticeField, nRequestID int) int
请求查询客户通知
func (TraderApiLite) ReqQryOptionInstrCommRate ¶
func (c TraderApiLite) ReqQryOptionInstrCommRate(pQryOptionInstrCommRate *thost.CThostFtdcQryOptionInstrCommRateField, nRequestID int) int
请求查询期权合约手续费
func (TraderApiLite) ReqQryOptionInstrTradeCost ¶
func (c TraderApiLite) ReqQryOptionInstrTradeCost(pQryOptionInstrTradeCost *thost.CThostFtdcQryOptionInstrTradeCostField, nRequestID int) int
请求查询期权交易成本
func (TraderApiLite) ReqQryOptionSelfClose ¶
func (c TraderApiLite) ReqQryOptionSelfClose(pQryOptionSelfClose *thost.CThostFtdcQryOptionSelfCloseField, nRequestID int) int
请求查询期权自对冲
func (*TraderApiLite) ReqQryOrder ¶
func (t *TraderApiLite) ReqQryOrder(pQryOrder *QryOrderField, nRequestID int) int
请求查询报单
func (TraderApiLite) ReqQryParkedOrder ¶
func (c TraderApiLite) ReqQryParkedOrder(pQryParkedOrder *thost.CThostFtdcQryParkedOrderField, nRequestID int) int
请求查询预埋单
func (TraderApiLite) ReqQryParkedOrderAction ¶
func (c TraderApiLite) ReqQryParkedOrderAction(pQryParkedOrderAction *thost.CThostFtdcQryParkedOrderActionField, nRequestID int) int
请求查询预埋撤单
func (TraderApiLite) ReqQryProduct ¶
func (c TraderApiLite) ReqQryProduct(pQryProduct *thost.CThostFtdcQryProductField, nRequestID int) int
请求查询产品
func (TraderApiLite) ReqQryProductExchRate ¶
func (c TraderApiLite) ReqQryProductExchRate(pQryProductExchRate *thost.CThostFtdcQryProductExchRateField, nRequestID int) int
请求查询产品报价汇率
func (TraderApiLite) ReqQryProductGroup ¶
func (c TraderApiLite) ReqQryProductGroup(pQryProductGroup *thost.CThostFtdcQryProductGroupField, nRequestID int) int
请求查询产品组
func (TraderApiLite) ReqQryQuote ¶
func (c TraderApiLite) ReqQryQuote(pQryQuote *thost.CThostFtdcQryQuoteField, nRequestID int) int
请求查询报价
func (TraderApiLite) ReqQryRiskSettleInvstPosition ¶
func (c TraderApiLite) ReqQryRiskSettleInvstPosition(pQryRiskSettleInvstPosition *thost.CThostFtdcQryRiskSettleInvstPositionField, nRequestID int) int
投资者风险结算持仓查询
func (TraderApiLite) ReqQryRiskSettleProductStatus ¶
func (c TraderApiLite) ReqQryRiskSettleProductStatus(pQryRiskSettleProductStatus *thost.CThostFtdcQryRiskSettleProductStatusField, nRequestID int) int
风险结算产品查询
func (TraderApiLite) ReqQrySecAgentACIDMap ¶
func (c TraderApiLite) ReqQrySecAgentACIDMap(pQrySecAgentACIDMap *thost.CThostFtdcQrySecAgentACIDMapField, nRequestID int) int
请求查询二级代理操作员银期权限
func (TraderApiLite) ReqQrySecAgentCheckMode ¶
func (c TraderApiLite) ReqQrySecAgentCheckMode(pQrySecAgentCheckMode *thost.CThostFtdcQrySecAgentCheckModeField, nRequestID int) int
请求查询二级代理商资金校验模式
func (TraderApiLite) ReqQrySecAgentTradeInfo ¶
func (c TraderApiLite) ReqQrySecAgentTradeInfo(pQrySecAgentTradeInfo *thost.CThostFtdcQrySecAgentTradeInfoField, nRequestID int) int
请求查询二级代理商信息
func (TraderApiLite) ReqQrySecAgentTradingAccount ¶
func (c TraderApiLite) ReqQrySecAgentTradingAccount(pQryTradingAccount *thost.CThostFtdcQryTradingAccountField, nRequestID int) int
请求查询资金账户
func (*TraderApiLite) ReqQrySettlementInfo ¶
func (t *TraderApiLite) ReqQrySettlementInfo(pQrySettlementInfo *QrySettlementInfoField, nRequestID int) int
请求查询投资者结算结果
func (*TraderApiLite) ReqQrySettlementInfoConfirm ¶
func (t *TraderApiLite) ReqQrySettlementInfoConfirm(pQrySettlementInfoConfirm *QrySettlementInfoConfirmField, nRequestID int) int
请求查询结算信息确认
func (*TraderApiLite) ReqQryTrade ¶
func (t *TraderApiLite) ReqQryTrade(pQryTrade *QryTradeField, nRequestID int) int
请求查询成交
func (*TraderApiLite) ReqQryTradingAccount ¶
func (t *TraderApiLite) ReqQryTradingAccount(pQryTradingAccount *QryTradingAccountField, nRequestID int) int
请求查询资金账户
func (TraderApiLite) ReqQryTradingCode ¶
func (c TraderApiLite) ReqQryTradingCode(pQryTradingCode *thost.CThostFtdcQryTradingCodeField, nRequestID int) int
请求查询交易编码
func (TraderApiLite) ReqQryTradingNotice ¶
func (c TraderApiLite) ReqQryTradingNotice(pQryTradingNotice *thost.CThostFtdcQryTradingNoticeField, nRequestID int) int
请求查询交易通知
func (TraderApiLite) ReqQryTransferBank ¶
func (c TraderApiLite) ReqQryTransferBank(pQryTransferBank *thost.CThostFtdcQryTransferBankField, nRequestID int) int
请求查询转帐银行
func (*TraderApiLite) ReqQryTransferSerial ¶
func (t *TraderApiLite) ReqQryTransferSerial(pQryTransferSerial *QryTransferSerialField, nRequestID int) int
请求查询转帐流水
func (TraderApiLite) ReqQueryBankAccountMoneyByFuture ¶
func (c TraderApiLite) ReqQueryBankAccountMoneyByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, nRequestID int) int
期货发起查询银行余额请求
func (TraderApiLite) ReqQueryCFMMCTradingAccountToken ¶
func (c TraderApiLite) ReqQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken *thost.CThostFtdcQueryCFMMCTradingAccountTokenField, nRequestID int) int
请求查询监控中心用户令牌
func (TraderApiLite) ReqQuoteAction ¶
func (c TraderApiLite) ReqQuoteAction(pInputQuoteAction *thost.CThostFtdcInputQuoteActionField, nRequestID int) int
报价操作请求
func (TraderApiLite) ReqQuoteInsert ¶
func (c TraderApiLite) ReqQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, nRequestID int) int
报价录入请求
func (TraderApiLite) ReqRemoveParkedOrder ¶
func (c TraderApiLite) ReqRemoveParkedOrder(pRemoveParkedOrder *thost.CThostFtdcRemoveParkedOrderField, nRequestID int) int
请求删除预埋单
func (TraderApiLite) ReqRemoveParkedOrderAction ¶
func (c TraderApiLite) ReqRemoveParkedOrderAction(pRemoveParkedOrderAction *thost.CThostFtdcRemoveParkedOrderActionField, nRequestID int) int
请求删除预埋撤单
func (*TraderApiLite) ReqSettlementInfoConfirm ¶
func (t *TraderApiLite) ReqSettlementInfoConfirm(pSettlementInfoConfirm *SettlementInfoConfirmField, nRequestID int) int
投资者结算结果确认
func (*TraderApiLite) ReqTradingAccountPasswordUpdate ¶
func (t *TraderApiLite) ReqTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *TradingAccountPasswordUpdateField, nRequestID int) int
资金账户口令更新请求
func (TraderApiLite) ReqUserAuthMethod ¶
func (c TraderApiLite) ReqUserAuthMethod(pReqUserAuthMethod *thost.CThostFtdcReqUserAuthMethodField, nRequestID int) int
查询用户当前支持的认证模式
func (*TraderApiLite) ReqUserLogin ¶
func (t *TraderApiLite) ReqUserLogin(pReqUserLoginField *ReqUserLoginField, nRequestID int) int
用户登录请求
func (TraderApiLite) ReqUserLoginWithCaptcha ¶
func (c TraderApiLite) ReqUserLoginWithCaptcha(pReqUserLoginWithCaptcha *thost.CThostFtdcReqUserLoginWithCaptchaField, nRequestID int) int
用户发出带有图片验证码的登陆请求
func (TraderApiLite) ReqUserLoginWithOTP ¶
func (c TraderApiLite) ReqUserLoginWithOTP(pReqUserLoginWithOTP *thost.CThostFtdcReqUserLoginWithOTPField, nRequestID int) int
用户发出带有动态口令的登陆请求
func (TraderApiLite) ReqUserLoginWithText ¶
func (c TraderApiLite) ReqUserLoginWithText(pReqUserLoginWithText *thost.CThostFtdcReqUserLoginWithTextField, nRequestID int) int
用户发出带有短信验证码的登陆请求
func (TraderApiLite) ReqUserLogout ¶
func (c TraderApiLite) ReqUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, nRequestID int) int
登出请求
func (*TraderApiLite) ReqUserPasswordUpdate ¶
func (t *TraderApiLite) ReqUserPasswordUpdate(pUserPasswordUpdate *UserPasswordUpdateField, nRequestID int) int
用户口令更新请求
func (TraderApiLite) SubmitUserSystemInfo ¶
func (c TraderApiLite) SubmitUserSystemInfo(pUserSystemInfo *thost.CThostFtdcUserSystemInfoField) int
上报用户终端信息,用于中继服务器操作员登录模式 /操作员登录后,可以多次调用该接口上报客户信息
func (TraderApiLite) SubscribePrivateTopic ¶
func (c TraderApiLite) SubscribePrivateTopic(nResumeType thost.THOST_TE_RESUME_TYPE)
订阅私有流。 /@param nResumeType 私有流重传方式 / THOST_TERT_RESTART:从本交易日开始重传 / THOST_TERT_RESUME:从上次收到的续传 / THOST_TERT_QUICK:只传送登录后私有流的内容 /@remark 该方法要在Init方法前调用。若不调用则不会收到私有流的数据。
func (TraderApiLite) SubscribePublicTopic ¶
func (c TraderApiLite) SubscribePublicTopic(nResumeType thost.THOST_TE_RESUME_TYPE)
订阅公共流。 /@param nResumeType 公共流重传方式 / THOST_TERT_RESTART:从本交易日开始重传 / THOST_TERT_RESUME:从上次收到的续传 / THOST_TERT_QUICK:只传送登录后公共流的内容 / THOST_TERT_NONE:取消订阅公共流 /@remark 该方法要在Init方法前调用。若不调用则不会收到公共流的数据。
type TraderOption ¶
type TraderOption func(api *traderApi)
func TraderFlowPath ¶
func TraderFlowPath(path string) TraderOption
func TraderSystemInfo ¶
func TraderSystemInfo(systemInfo []byte, length int) TraderOption
type TraderSpi ¶
type TraderSpi interface {
///当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
OnFrontConnected()
///当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
///@param nReason 错误原因
/// 0x1001 网络读失败
/// 0x1002 网络写失败
/// 0x2001 接收心跳超时
/// 0x2002 发送心跳失败
/// 0x2003 收到错误报文
OnFrontDisconnected(nReason int)
///心跳超时警告。当长时间未收到报文时,该方法被调用。
///@param nTimeLapse 距离上次接收报文的时间
OnHeartBeatWarning(nTimeLapse int)
///客户端认证响应
OnRspAuthenticate(pRspAuthenticateField *thost.CThostFtdcRspAuthenticateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///登录请求响应
OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///登出请求响应
OnRspUserLogout(pUserLogout *thost.CThostFtdcUserLogoutField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///用户口令更新请求响应
OnRspUserPasswordUpdate(pUserPasswordUpdate *thost.CThostFtdcUserPasswordUpdateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///资金账户口令更新请求响应
OnRspTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *thost.CThostFtdcTradingAccountPasswordUpdateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///查询用户当前支持的认证模式的回复
OnRspUserAuthMethod(pRspUserAuthMethod *thost.CThostFtdcRspUserAuthMethodField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///获取图形验证码请求的回复
OnRspGenUserCaptcha(pRspGenUserCaptcha *thost.CThostFtdcRspGenUserCaptchaField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///获取短信验证码请求的回复
OnRspGenUserText(pRspGenUserText *thost.CThostFtdcRspGenUserTextField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///报单录入请求响应
OnRspOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///预埋单录入请求响应
OnRspParkedOrderInsert(pParkedOrder *thost.CThostFtdcParkedOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///预埋撤单录入请求响应
OnRspParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///报单操作请求响应
OnRspOrderAction(pInputOrderAction *thost.CThostFtdcInputOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///查询最大报单数量响应
OnRspQryMaxOrderVolume(pQryMaxOrderVolume *thost.CThostFtdcQryMaxOrderVolumeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///投资者结算结果确认响应
OnRspSettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///删除预埋单响应
OnRspRemoveParkedOrder(pRemoveParkedOrder *thost.CThostFtdcRemoveParkedOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///删除预埋撤单响应
OnRspRemoveParkedOrderAction(pRemoveParkedOrderAction *thost.CThostFtdcRemoveParkedOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///执行宣告录入请求响应
OnRspExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///执行宣告操作请求响应
OnRspExecOrderAction(pInputExecOrderAction *thost.CThostFtdcInputExecOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///询价录入请求响应
OnRspForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///报价录入请求响应
OnRspQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///报价操作请求响应
OnRspQuoteAction(pInputQuoteAction *thost.CThostFtdcInputQuoteActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///批量报单操作请求响应
OnRspBatchOrderAction(pInputBatchOrderAction *thost.CThostFtdcInputBatchOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///期权自对冲录入请求响应
OnRspOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///期权自对冲操作请求响应
OnRspOptionSelfCloseAction(pInputOptionSelfCloseAction *thost.CThostFtdcInputOptionSelfCloseActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///申请组合录入请求响应
OnRspCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询报单响应
OnRspQryOrder(pOrder *thost.CThostFtdcOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询成交响应
OnRspQryTrade(pTrade *thost.CThostFtdcTradeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资者持仓响应
OnRspQryInvestorPosition(pInvestorPosition *thost.CThostFtdcInvestorPositionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询资金账户响应
OnRspQryTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资者响应
OnRspQryInvestor(pInvestor *thost.CThostFtdcInvestorField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询交易编码响应
OnRspQryTradingCode(pTradingCode *thost.CThostFtdcTradingCodeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询合约保证金率响应
OnRspQryInstrumentMarginRate(pInstrumentMarginRate *thost.CThostFtdcInstrumentMarginRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询合约手续费率响应
OnRspQryInstrumentCommissionRate(pInstrumentCommissionRate *thost.CThostFtdcInstrumentCommissionRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询交易所响应
OnRspQryExchange(pExchange *thost.CThostFtdcExchangeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询产品响应
OnRspQryProduct(pProduct *thost.CThostFtdcProductField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询合约响应
OnRspQryInstrument(pInstrument *thost.CThostFtdcInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询行情响应
OnRspQryDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资者结算结果响应
OnRspQrySettlementInfo(pSettlementInfo *thost.CThostFtdcSettlementInfoField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询转帐银行响应
OnRspQryTransferBank(pTransferBank *thost.CThostFtdcTransferBankField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资者持仓明细响应
OnRspQryInvestorPositionDetail(pInvestorPositionDetail *thost.CThostFtdcInvestorPositionDetailField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询客户通知响应
OnRspQryNotice(pNotice *thost.CThostFtdcNoticeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询结算信息确认响应
OnRspQrySettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资者持仓明细响应
OnRspQryInvestorPositionCombineDetail(pInvestorPositionCombineDetail *thost.CThostFtdcInvestorPositionCombineDetailField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///查询保证金监管系统经纪公司资金账户密钥响应
OnRspQryCFMMCTradingAccountKey(pCFMMCTradingAccountKey *thost.CThostFtdcCFMMCTradingAccountKeyField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询仓单折抵信息响应
OnRspQryEWarrantOffset(pEWarrantOffset *thost.CThostFtdcEWarrantOffsetField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资者品种/跨品种保证金响应
OnRspQryInvestorProductGroupMargin(pInvestorProductGroupMargin *thost.CThostFtdcInvestorProductGroupMarginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询交易所保证金率响应
OnRspQryExchangeMarginRate(pExchangeMarginRate *thost.CThostFtdcExchangeMarginRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询交易所调整保证金率响应
OnRspQryExchangeMarginRateAdjust(pExchangeMarginRateAdjust *thost.CThostFtdcExchangeMarginRateAdjustField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询汇率响应
OnRspQryExchangeRate(pExchangeRate *thost.CThostFtdcExchangeRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询二级代理操作员银期权限响应
OnRspQrySecAgentACIDMap(pSecAgentACIDMap *thost.CThostFtdcSecAgentACIDMapField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询产品报价汇率
OnRspQryProductExchRate(pProductExchRate *thost.CThostFtdcProductExchRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询产品组
OnRspQryProductGroup(pProductGroup *thost.CThostFtdcProductGroupField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询做市商合约手续费率响应
OnRspQryMMInstrumentCommissionRate(pMMInstrumentCommissionRate *thost.CThostFtdcMMInstrumentCommissionRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询做市商期权合约手续费响应
OnRspQryMMOptionInstrCommRate(pMMOptionInstrCommRate *thost.CThostFtdcMMOptionInstrCommRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询报单手续费响应
OnRspQryInstrumentOrderCommRate(pInstrumentOrderCommRate *thost.CThostFtdcInstrumentOrderCommRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询资金账户响应
OnRspQrySecAgentTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询二级代理商资金校验模式响应
OnRspQrySecAgentCheckMode(pSecAgentCheckMode *thost.CThostFtdcSecAgentCheckModeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询二级代理商信息响应
OnRspQrySecAgentTradeInfo(pSecAgentTradeInfo *thost.CThostFtdcSecAgentTradeInfoField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询期权交易成本响应
OnRspQryOptionInstrTradeCost(pOptionInstrTradeCost *thost.CThostFtdcOptionInstrTradeCostField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询期权合约手续费响应
OnRspQryOptionInstrCommRate(pOptionInstrCommRate *thost.CThostFtdcOptionInstrCommRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询执行宣告响应
OnRspQryExecOrder(pExecOrder *thost.CThostFtdcExecOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询询价响应
OnRspQryForQuote(pForQuote *thost.CThostFtdcForQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询报价响应
OnRspQryQuote(pQuote *thost.CThostFtdcQuoteField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询期权自对冲响应
OnRspQryOptionSelfClose(pOptionSelfClose *thost.CThostFtdcOptionSelfCloseField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询投资单元响应
OnRspQryInvestUnit(pInvestUnit *thost.CThostFtdcInvestUnitField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询组合合约安全系数响应
OnRspQryCombInstrumentGuard(pCombInstrumentGuard *thost.CThostFtdcCombInstrumentGuardField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询申请组合响应
OnRspQryCombAction(pCombAction *thost.CThostFtdcCombActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询转帐流水响应
OnRspQryTransferSerial(pTransferSerial *thost.CThostFtdcTransferSerialField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询银期签约关系响应
OnRspQryAccountregister(pAccountregister *thost.CThostFtdcAccountregisterField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///错误应答
OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///报单通知
OnRtnOrder(pOrder *thost.CThostFtdcOrderField)
///成交通知
OnRtnTrade(pTrade *thost.CThostFtdcTradeField)
///报单录入错误回报
OnErrRtnOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, pRspInfo *thost.CThostFtdcRspInfoField)
///报单操作错误回报
OnErrRtnOrderAction(pOrderAction *thost.CThostFtdcOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
///合约交易状态通知
OnRtnInstrumentStatus(pInstrumentStatus *thost.CThostFtdcInstrumentStatusField)
///交易所公告通知
OnRtnBulletin(pBulletin *thost.CThostFtdcBulletinField)
///交易通知
OnRtnTradingNotice(pTradingNoticeInfo *thost.CThostFtdcTradingNoticeInfoField)
///提示条件单校验错误
OnRtnErrorConditionalOrder(pErrorConditionalOrder *thost.CThostFtdcErrorConditionalOrderField)
///执行宣告通知
OnRtnExecOrder(pExecOrder *thost.CThostFtdcExecOrderField)
///执行宣告录入错误回报
OnErrRtnExecOrderInsert(pInputExecOrder *thost.CThostFtdcInputExecOrderField, pRspInfo *thost.CThostFtdcRspInfoField)
///执行宣告操作错误回报
OnErrRtnExecOrderAction(pExecOrderAction *thost.CThostFtdcExecOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
///询价录入错误回报
OnErrRtnForQuoteInsert(pInputForQuote *thost.CThostFtdcInputForQuoteField, pRspInfo *thost.CThostFtdcRspInfoField)
///报价通知
OnRtnQuote(pQuote *thost.CThostFtdcQuoteField)
///报价录入错误回报
OnErrRtnQuoteInsert(pInputQuote *thost.CThostFtdcInputQuoteField, pRspInfo *thost.CThostFtdcRspInfoField)
///报价操作错误回报
OnErrRtnQuoteAction(pQuoteAction *thost.CThostFtdcQuoteActionField, pRspInfo *thost.CThostFtdcRspInfoField)
///询价通知
OnRtnForQuoteRsp(pForQuoteRsp *thost.CThostFtdcForQuoteRspField)
///保证金监控中心用户令牌
OnRtnCFMMCTradingAccountToken(pCFMMCTradingAccountToken *thost.CThostFtdcCFMMCTradingAccountTokenField)
///批量报单操作错误回报
OnErrRtnBatchOrderAction(pBatchOrderAction *thost.CThostFtdcBatchOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
///期权自对冲通知
OnRtnOptionSelfClose(pOptionSelfClose *thost.CThostFtdcOptionSelfCloseField)
///期权自对冲录入错误回报
OnErrRtnOptionSelfCloseInsert(pInputOptionSelfClose *thost.CThostFtdcInputOptionSelfCloseField, pRspInfo *thost.CThostFtdcRspInfoField)
///期权自对冲操作错误回报
OnErrRtnOptionSelfCloseAction(pOptionSelfCloseAction *thost.CThostFtdcOptionSelfCloseActionField, pRspInfo *thost.CThostFtdcRspInfoField)
///申请组合通知
OnRtnCombAction(pCombAction *thost.CThostFtdcCombActionField)
///申请组合录入错误回报
OnErrRtnCombActionInsert(pInputCombAction *thost.CThostFtdcInputCombActionField, pRspInfo *thost.CThostFtdcRspInfoField)
///请求查询签约银行响应
OnRspQryContractBank(pContractBank *thost.CThostFtdcContractBankField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询预埋单响应
OnRspQryParkedOrder(pParkedOrder *thost.CThostFtdcParkedOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询预埋撤单响应
OnRspQryParkedOrderAction(pParkedOrderAction *thost.CThostFtdcParkedOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询交易通知响应
OnRspQryTradingNotice(pTradingNotice *thost.CThostFtdcTradingNoticeField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询经纪公司交易参数响应
OnRspQryBrokerTradingParams(pBrokerTradingParams *thost.CThostFtdcBrokerTradingParamsField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询经纪公司交易算法响应
OnRspQryBrokerTradingAlgos(pBrokerTradingAlgos *thost.CThostFtdcBrokerTradingAlgosField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求查询监控中心用户令牌
OnRspQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken *thost.CThostFtdcQueryCFMMCTradingAccountTokenField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///银行发起银行资金转期货通知
OnRtnFromBankToFutureByBank(pRspTransfer *thost.CThostFtdcRspTransferField)
///银行发起期货资金转银行通知
OnRtnFromFutureToBankByBank(pRspTransfer *thost.CThostFtdcRspTransferField)
///银行发起冲正银行转期货通知
OnRtnRepealFromBankToFutureByBank(pRspRepeal *thost.CThostFtdcRspRepealField)
///银行发起冲正期货转银行通知
OnRtnRepealFromFutureToBankByBank(pRspRepeal *thost.CThostFtdcRspRepealField)
///期货发起银行资金转期货通知
OnRtnFromBankToFutureByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
///期货发起期货资金转银行通知
OnRtnFromFutureToBankByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
///系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromBankToFutureByFutureManual(pRspRepeal *thost.CThostFtdcRspRepealField)
///系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromFutureToBankByFutureManual(pRspRepeal *thost.CThostFtdcRspRepealField)
///期货发起查询银行余额通知
OnRtnQueryBankBalanceByFuture(pNotifyQueryAccount *thost.CThostFtdcNotifyQueryAccountField)
///期货发起银行资金转期货错误回报
OnErrRtnBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField)
///期货发起期货资金转银行错误回报
OnErrRtnFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField)
///系统运行时期货端手工发起冲正银行转期货错误回报
OnErrRtnRepealBankToFutureByFutureManual(pReqRepeal *thost.CThostFtdcReqRepealField, pRspInfo *thost.CThostFtdcRspInfoField)
///系统运行时期货端手工发起冲正期货转银行错误回报
OnErrRtnRepealFutureToBankByFutureManual(pReqRepeal *thost.CThostFtdcReqRepealField, pRspInfo *thost.CThostFtdcRspInfoField)
///期货发起查询银行余额错误回报
OnErrRtnQueryBankBalanceByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, pRspInfo *thost.CThostFtdcRspInfoField)
///期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromBankToFutureByFuture(pRspRepeal *thost.CThostFtdcRspRepealField)
///期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
OnRtnRepealFromFutureToBankByFuture(pRspRepeal *thost.CThostFtdcRspRepealField)
///期货发起银行资金转期货应答
OnRspFromBankToFutureByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///期货发起期货资金转银行应答
OnRspFromFutureToBankByFuture(pReqTransfer *thost.CThostFtdcReqTransferField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///期货发起查询银行余额应答
OnRspQueryBankAccountMoneyByFuture(pReqQueryAccount *thost.CThostFtdcReqQueryAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///银行发起银期开户通知
OnRtnOpenAccountByBank(pOpenAccount *thost.CThostFtdcOpenAccountField)
///银行发起银期销户通知
OnRtnCancelAccountByBank(pCancelAccount *thost.CThostFtdcCancelAccountField)
///银行发起变更银行账号通知
OnRtnChangeAccountByBank(pChangeAccount *thost.CThostFtdcChangeAccountField)
///请求查询分类合约响应
OnRspQryClassifiedInstrument(pInstrument *thost.CThostFtdcInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///请求组合优惠比例响应
OnRspQryCombPromotionParam(pCombPromotionParam *thost.CThostFtdcCombPromotionParamField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///投资者风险结算持仓查询响应
OnRspQryRiskSettleInvstPosition(pRiskSettleInvstPosition *thost.CThostFtdcRiskSettleInvstPositionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
///风险结算产品查询响应
OnRspQryRiskSettleProductStatus(pRiskSettleProductStatus *thost.CThostFtdcRiskSettleProductStatusField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
}
type TraderSpiLite ¶
type TraderSpiLite struct {
BaseTraderSpi
//当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
OnFrontConnectedCallback func()
//当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
///@param nReason 错误原因
/// 0x1001 网络读失败
/// 0x1002 网络写失败
/// 0x2001 接收心跳超时
/// 0x2002 发送心跳失败
/// 0x2003 收到错误报文
OnFrontDisconnectedCallback func(nReason int)
//心跳超时警告。当长时间未收到报文时,该方法被调用。
///@param nTimeLapse 距离上次接收报文的时间
OnHeartBeatWarningCallback func(nTimeLapse int)
//客户端认证响应
OnRspAuthenticateCallback func(pRspAuthenticateField *RspAuthenticateField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//登录请求响应
OnRspUserLoginCallback func(pRspUserLogin *RspUserLoginField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//用户口令更新请求响应
OnRspUserPasswordUpdateCallback func(pUserPasswordUpdate *UserPasswordUpdateField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//资金账户口令更新请求响应
OnRspTradingAccountPasswordUpdateCallback func(pTradingAccountPasswordUpdate *TradingAccountPasswordUpdateField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//报单录入请求响应
OnRspOrderInsertCallback func(pInputOrder *InputOrderField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//报单操作请求响应
OnRspOrderActionCallback func(pInputOrderAction *InputOrderActionField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//投资者结算结果确认响应
OnRspSettlementInfoConfirmCallback func(pSettlementInfoConfirm *SettlementInfoConfirmField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询报单响应
OnRspQryOrderCallback func(pOrder *OrderField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询投资者持仓响应
OnRspQryInvestorPositionCallback func(pInvestorPosition *InvestorPositionField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询资金账户响应
OnRspQryTradingAccountCallback func(pTradingAccount *TradingAccountField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询合约保证金率响应
OnRspQryInstrumentMarginRateCallback func(pInstrumentMarginRate *InstrumentMarginRateField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询合约手续费率响应
OnRspQryInstrumentCommissionRateCallback func(pInstrumentCommissionRate *InstrumentCommissionRateField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询合约响应
OnRspQryInstrumentCallback func(pInstrument *InstrumentField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询行情响应
OnRspQryDepthMarketDataCallback func(pDepthMarketData *DepthMarketDataField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询投资者结算结果响应
OnRspQrySettlementInfoCallback func(pSettlementInfo *SettlementInfoField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询转帐流水响应
OnRspQryTransferSerialCallback func(pTransferSerial *TransferSerialField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询银期签约关系响应
OnRspQryAccountregisterCallback func(pAccountregister *AccountregisterField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//错误应答
OnRspErrorCallback func(pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//报单通知
OnRtnOrderCallback func(pOrder *OrderField)
//成交通知
OnRtnTradeCallback func(pTrade *TradeField)
//报单录入错误回报
OnErrRtnOrderInsertCallback func(pInputOrder *InputOrderField, pRspInfo *RspInfoField)
//报单操作错误回报
OnErrRtnOrderActionCallback func(pOrderAction *OrderActionField, pRspInfo *RspInfoField)
//合约交易状态通知
OnRtnInstrumentStatusCallback func(pInstrumentStatus *InstrumentStatusField)
//交易通知
OnRtnTradingNoticeCallback func(pTradingNoticeInfo *TradingNoticeInfoField)
//请求查询签约银行响应
OnRspQryContractBankCallback func(pContractBank *ContractBankField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//请求查询经纪公司交易参数响应
OnRspQryBrokerTradingParamsCallback func(pBrokerTradingParams *BrokerTradingParamsField, pRspInfo *RspInfoField, nRequestID int, bIsLast bool)
//期货发起银行资金转期货通知
OnRtnFromBankToFutureByFutureCallback func(pRspTransfer *RspTransferField)
//期货发起期货资金转银行通知
OnRtnFromFutureToBankByFutureCallback func(pRspTransfer *RspTransferField)
}
func (*TraderSpiLite) OnErrRtnOrderAction ¶
func (s *TraderSpiLite) OnErrRtnOrderAction(pOrderAction *thost.CThostFtdcOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField)
报单操作错误回报
func (*TraderSpiLite) OnErrRtnOrderInsert ¶
func (s *TraderSpiLite) OnErrRtnOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, pRspInfo *thost.CThostFtdcRspInfoField)
报单录入错误回报
func (*TraderSpiLite) OnFrontConnected ¶
func (s *TraderSpiLite) OnFrontConnected()
当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用。
func (*TraderSpiLite) OnFrontDisconnected ¶
func (s *TraderSpiLite) OnFrontDisconnected(nReason int)
当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。 /@param nReason 错误原因 / 0x1001 网络读失败 / 0x1002 网络写失败 / 0x2001 接收心跳超时 / 0x2002 发送心跳失败 / 0x2003 收到错误报文
func (*TraderSpiLite) OnHeartBeatWarning ¶
func (s *TraderSpiLite) OnHeartBeatWarning(nTimeLapse int)
心跳超时警告。当长时间未收到报文时,该方法被调用。 /@param nTimeLapse 距离上次接收报文的时间
func (*TraderSpiLite) OnRspAuthenticate ¶
func (s *TraderSpiLite) OnRspAuthenticate(pRspAuthenticateField *thost.CThostFtdcRspAuthenticateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
客户端认证响应
func (*TraderSpiLite) OnRspError ¶
func (s *TraderSpiLite) OnRspError(pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
错误应答
func (*TraderSpiLite) OnRspOrderAction ¶
func (s *TraderSpiLite) OnRspOrderAction(pInputOrderAction *thost.CThostFtdcInputOrderActionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
报单操作请求响应
func (*TraderSpiLite) OnRspOrderInsert ¶
func (s *TraderSpiLite) OnRspOrderInsert(pInputOrder *thost.CThostFtdcInputOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
报单录入请求响应
func (*TraderSpiLite) OnRspQryAccountregister ¶
func (s *TraderSpiLite) OnRspQryAccountregister(pAccountregister *thost.CThostFtdcAccountregisterField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询银期签约关系响应
func (*TraderSpiLite) OnRspQryBrokerTradingParams ¶
func (s *TraderSpiLite) OnRspQryBrokerTradingParams(pBrokerTradingParams *thost.CThostFtdcBrokerTradingParamsField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询经纪公司交易参数响应
func (*TraderSpiLite) OnRspQryContractBank ¶
func (s *TraderSpiLite) OnRspQryContractBank(pContractBank *thost.CThostFtdcContractBankField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询签约银行响应
func (*TraderSpiLite) OnRspQryDepthMarketData ¶
func (s *TraderSpiLite) OnRspQryDepthMarketData(pDepthMarketData *thost.CThostFtdcDepthMarketDataField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询行情响应
func (*TraderSpiLite) OnRspQryInstrument ¶
func (s *TraderSpiLite) OnRspQryInstrument(pInstrument *thost.CThostFtdcInstrumentField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询合约响应
func (*TraderSpiLite) OnRspQryInstrumentCommissionRate ¶
func (s *TraderSpiLite) OnRspQryInstrumentCommissionRate(pInstrumentCommissionRate *thost.CThostFtdcInstrumentCommissionRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询合约手续费率响应
func (*TraderSpiLite) OnRspQryInstrumentMarginRate ¶
func (s *TraderSpiLite) OnRspQryInstrumentMarginRate(pInstrumentMarginRate *thost.CThostFtdcInstrumentMarginRateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询合约保证金率响应
func (*TraderSpiLite) OnRspQryInvestorPosition ¶
func (s *TraderSpiLite) OnRspQryInvestorPosition(pInvestorPosition *thost.CThostFtdcInvestorPositionField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者持仓响应
func (*TraderSpiLite) OnRspQryOrder ¶
func (s *TraderSpiLite) OnRspQryOrder(pOrder *thost.CThostFtdcOrderField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询报单响应
func (*TraderSpiLite) OnRspQrySettlementInfo ¶
func (s *TraderSpiLite) OnRspQrySettlementInfo(pSettlementInfo *thost.CThostFtdcSettlementInfoField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询投资者结算结果响应
func (*TraderSpiLite) OnRspQryTradingAccount ¶
func (s *TraderSpiLite) OnRspQryTradingAccount(pTradingAccount *thost.CThostFtdcTradingAccountField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询资金账户响应
func (*TraderSpiLite) OnRspQryTransferSerial ¶
func (s *TraderSpiLite) OnRspQryTransferSerial(pTransferSerial *thost.CThostFtdcTransferSerialField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
请求查询转帐流水响应
func (*TraderSpiLite) OnRspSettlementInfoConfirm ¶
func (s *TraderSpiLite) OnRspSettlementInfoConfirm(pSettlementInfoConfirm *thost.CThostFtdcSettlementInfoConfirmField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
投资者结算结果确认响应
func (*TraderSpiLite) OnRspTradingAccountPasswordUpdate ¶
func (s *TraderSpiLite) OnRspTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *thost.CThostFtdcTradingAccountPasswordUpdateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
资金账户口令更新请求响应
func (*TraderSpiLite) OnRspUserLogin ¶
func (s *TraderSpiLite) OnRspUserLogin(pRspUserLogin *thost.CThostFtdcRspUserLoginField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
登录请求响应
func (*TraderSpiLite) OnRspUserPasswordUpdate ¶
func (s *TraderSpiLite) OnRspUserPasswordUpdate(pUserPasswordUpdate *thost.CThostFtdcUserPasswordUpdateField, pRspInfo *thost.CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
用户口令更新请求响应
func (*TraderSpiLite) OnRtnFromBankToFutureByFuture ¶
func (s *TraderSpiLite) OnRtnFromBankToFutureByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
期货发起银行资金转期货通知
func (*TraderSpiLite) OnRtnFromFutureToBankByFuture ¶
func (s *TraderSpiLite) OnRtnFromFutureToBankByFuture(pRspTransfer *thost.CThostFtdcRspTransferField)
期货发起期货资金转银行通知
func (*TraderSpiLite) OnRtnInstrumentStatus ¶
func (s *TraderSpiLite) OnRtnInstrumentStatus(pInstrumentStatus *thost.CThostFtdcInstrumentStatusField)
合约交易状态通知
func (*TraderSpiLite) OnRtnOrder ¶
func (s *TraderSpiLite) OnRtnOrder(pOrder *thost.CThostFtdcOrderField)
报单通知
func (*TraderSpiLite) OnRtnTrade ¶
func (s *TraderSpiLite) OnRtnTrade(pTrade *thost.CThostFtdcTradeField)
成交通知
func (*TraderSpiLite) OnRtnTradingNotice ¶
func (s *TraderSpiLite) OnRtnTradingNotice(pTradingNoticeInfo *thost.CThostFtdcTradingNoticeInfoField)
交易通知
func (*TraderSpiLite) SetOnErrRtnOrderAction ¶
func (s *TraderSpiLite) SetOnErrRtnOrderAction(f func(*OrderActionField, *RspInfoField))
func (*TraderSpiLite) SetOnErrRtnOrderInsert ¶
func (s *TraderSpiLite) SetOnErrRtnOrderInsert(f func(*InputOrderField, *RspInfoField))
func (*TraderSpiLite) SetOnFrontConnected ¶
func (s *TraderSpiLite) SetOnFrontConnected(f func())
func (*TraderSpiLite) SetOnFrontDisconnected ¶
func (s *TraderSpiLite) SetOnFrontDisconnected(f func(int))
func (*TraderSpiLite) SetOnHeartBeatWarning ¶
func (s *TraderSpiLite) SetOnHeartBeatWarning(f func(int))
func (*TraderSpiLite) SetOnRspAuthenticate ¶
func (s *TraderSpiLite) SetOnRspAuthenticate(f func(*RspAuthenticateField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspError ¶
func (s *TraderSpiLite) SetOnRspError(f func(*RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspOrderAction ¶
func (s *TraderSpiLite) SetOnRspOrderAction(f func(*InputOrderActionField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspOrderInsert ¶
func (s *TraderSpiLite) SetOnRspOrderInsert(f func(*InputOrderField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryAccountregister ¶
func (s *TraderSpiLite) SetOnRspQryAccountregister(f func(*AccountregisterField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryBrokerTradingParams ¶
func (s *TraderSpiLite) SetOnRspQryBrokerTradingParams(f func(*BrokerTradingParamsField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryContractBank ¶
func (s *TraderSpiLite) SetOnRspQryContractBank(f func(*ContractBankField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryDepthMarketData ¶
func (s *TraderSpiLite) SetOnRspQryDepthMarketData(f func(*DepthMarketDataField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryInstrument ¶
func (s *TraderSpiLite) SetOnRspQryInstrument(f func(*InstrumentField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryInstrumentCommissionRate ¶
func (s *TraderSpiLite) SetOnRspQryInstrumentCommissionRate(f func(*InstrumentCommissionRateField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryInstrumentMarginRate ¶
func (s *TraderSpiLite) SetOnRspQryInstrumentMarginRate(f func(*InstrumentMarginRateField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryInvestorPosition ¶
func (s *TraderSpiLite) SetOnRspQryInvestorPosition(f func(*InvestorPositionField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryOrder ¶
func (s *TraderSpiLite) SetOnRspQryOrder(f func(*OrderField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQrySettlementInfo ¶
func (s *TraderSpiLite) SetOnRspQrySettlementInfo(f func(*SettlementInfoField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryTradingAccount ¶
func (s *TraderSpiLite) SetOnRspQryTradingAccount(f func(*TradingAccountField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspQryTransferSerial ¶
func (s *TraderSpiLite) SetOnRspQryTransferSerial(f func(*TransferSerialField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspSettlementInfoConfirm ¶
func (s *TraderSpiLite) SetOnRspSettlementInfoConfirm(f func(*SettlementInfoConfirmField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspTradingAccountPasswordUpdate ¶
func (s *TraderSpiLite) SetOnRspTradingAccountPasswordUpdate(f func(*TradingAccountPasswordUpdateField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspUserLogin ¶
func (s *TraderSpiLite) SetOnRspUserLogin(f func(*RspUserLoginField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRspUserPasswordUpdate ¶
func (s *TraderSpiLite) SetOnRspUserPasswordUpdate(f func(*UserPasswordUpdateField, *RspInfoField, int, bool))
func (*TraderSpiLite) SetOnRtnFromBankToFutureByFuture ¶
func (s *TraderSpiLite) SetOnRtnFromBankToFutureByFuture(f func(*RspTransferField))
func (*TraderSpiLite) SetOnRtnFromFutureToBankByFuture ¶
func (s *TraderSpiLite) SetOnRtnFromFutureToBankByFuture(f func(*RspTransferField))
func (*TraderSpiLite) SetOnRtnInstrumentStatus ¶
func (s *TraderSpiLite) SetOnRtnInstrumentStatus(f func(*InstrumentStatusField))
func (*TraderSpiLite) SetOnRtnOrder ¶
func (s *TraderSpiLite) SetOnRtnOrder(f func(*OrderField))
func (*TraderSpiLite) SetOnRtnTrade ¶
func (s *TraderSpiLite) SetOnRtnTrade(f func(*TradeField))
func (*TraderSpiLite) SetOnRtnTradingNotice ¶
func (s *TraderSpiLite) SetOnRtnTradingNotice(f func(*TradingNoticeInfoField))
type TradingAccountField ¶
type TradingAccountField struct {
///经纪公司代码
BrokerID string
///投资者帐号
AccountID string
///上次质押金额
PreMortgage float64
///上次信用额度
PreCredit float64
///上次存款额
PreDeposit float64
///上次结算准备金
PreBalance float64
///上次占用的保证金
PreMargin float64
///利息基数
InterestBase float64
///利息收入
Interest float64
///入金金额
Deposit float64
///出金金额
Withdraw float64
///冻结的保证金
FrozenMargin float64
///冻结的资金
FrozenCash float64
///冻结的手续费
FrozenCommission float64
///当前保证金总额
CurrMargin float64
///资金差额
CashIn float64
///手续费
Commission float64
///平仓盈亏
CloseProfit float64
///持仓盈亏
PositionProfit float64
///期货结算准备金
Balance float64
///可用资金
Available float64
///可取资金
WithdrawQuota float64
///基本准备金
Reserve float64
///交易日
TradingDay string
///结算编号
SettlementID int
///信用额度
Credit float64
///质押金额
Mortgage float64
///交易所保证金
ExchangeMargin float64
///投资者交割保证金
DeliveryMargin float64
///交易所交割保证金
ExchangeDeliveryMargin float64
///保底期货结算准备金
ReserveBalance float64
///币种代码
CurrencyID string
///上次货币质入金额
PreFundMortgageIn float64
///上次货币质出金额
PreFundMortgageOut float64
///货币质入金额
FundMortgageIn float64
///货币质出金额
FundMortgageOut float64
///货币质押余额
FundMortgageAvailable float64
///可质押货币金额
MortgageableFund float64
///特殊产品占用保证金
SpecProductMargin float64
///特殊产品冻结保证金
SpecProductFrozenMargin float64
///特殊产品手续费
SpecProductCommission float64
///特殊产品冻结手续费
SpecProductFrozenCommission float64
///特殊产品持仓盈亏
SpecProductPositionProfit float64
///特殊产品平仓盈亏
SpecProductCloseProfit float64
///根据持仓盈亏算法计算的特殊产品持仓盈亏
SpecProductPositionProfitByAlg float64
///特殊产品交易所保证金
SpecProductExchangeMargin float64
///业务类型
BizType byte
///延时换汇冻结金额
FrozenSwap float64
///剩余换汇额度
RemainSwap float64
}
资金账户
type TradingAccountPasswordUpdateField ¶
type TradingAccountPasswordUpdateField struct {
///经纪公司代码
BrokerID string
///投资者帐号
AccountID string
///原来的口令
OldPassword string
///新的口令
NewPassword string
///币种代码
CurrencyID string
}
资金账户口令变更域
type TradingNoticeInfoField ¶
type TradingNoticeInfoField struct {
///经纪公司代码
BrokerID string
///投资者代码
InvestorID string
///发送时间
SendTime string
///消息正文
FieldContent string
///序列系列号
SequenceSeries int16
///序列号
SequenceNo int
///投资单元代码
InvestUnitID string
}
用户事件通知信息
type TransferSerialField ¶
type TransferSerialField struct {
///平台流水号
PlateSerial int
///交易发起方日期
TradeDate string
///交易日期
TradingDay string
///交易时间
TradeTime string
///交易代码
TradeCode string
///会话编号
SessionID int
///银行编码
BankID string
///银行分支机构编码
BankBranchID string
///银行帐号类型
BankAccType byte
///银行帐号
BankAccount string
///银行流水号
BankSerial string
///期货公司编码
BrokerID string
///期商分支机构代码
BrokerBranchID string
///期货公司帐号类型
FutureAccType byte
///投资者帐号
AccountID string
///投资者代码
InvestorID string
///期货公司流水号
FutureSerial int
///证件类型
IdCardType byte
///证件号码
IdentifiedCardNo string
///币种代码
CurrencyID string
///交易金额
TradeAmount float64
///应收客户费用
CustFee float64
///应收期货公司费用
BrokerFee float64
///有效标志
AvailabilityFlag byte
///操作员
OperatorCode string
///新银行帐号
BankNewAccount string
///错误代码
ErrorID int
///错误信息
ErrorMsg string
}
银期转账交易流水表