goctp

package module
v2.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

starstar

介绍

CTP golang 封装, 封装分三个层次:

  • 基础封装 Trade
    • trade
    • 函数用法与官方一致
  • 简易封装 TradeExt
    • trade_ext
    • 常用请求函数参数由 struct 变为基础数据类型
  • 易用封装 TradePro
    • TradePro
    • 登录过程,包括基础数据查询
    • 委托与成交业务处理
    • 多种委托类型: 限价,市价,FOK,FAK
    • 权益与持仓查询
    • 出入金&改密码
    • 交易员模式(UserID 交易员, InvestorID 投资者)
  • 多帐号测试

TradePro

登录过程中查询的信息

// 投资者 key:InvestorID
Investors map[string]CThostFtdcInvestorField
// 合约 key: InstrumentID
Instruments map[string]CThostFtdcInstrumentField
// 委托 key: OrderLocalID
Orders map[string]CThostFtdcOrderField
// 成交 key: OrderLocalID
Trades map[string][]CThostFtdcTradeField
// 银行开户信息
AccountRegisters map[string]CThostFtdcAccountregisterField

函数

  • Start 登录
  • ReqQryPosition 查持仓
  • ReqQryPositionDetail 查持仓明细
  • ReqQryTradingAccount 查持仓
  • ReqFromBankToFutureByFuture 入金
  • ReqFromFutureToBankByFuture 出金
委托
  • ReqOrderInsertLimit 限价
  • ReqOrderInsertFAK 部成或撤单
  • ReqOrderInsertFOK 全成或撤单
  • ReqOrderInsertMarket 市价单

交易员模式

普通模式中 InvestorID 与 UserID 相同 交易员模式中 UserID 作为交易员帐号登录后,可处理多个 InvestorID 投资者帐号的业务

接口升级

  1. 复制新版接口
  2. 生成封装代码
cd generater
# 修改 api 路径
go run main.go
sh make_lib.sh
cd ..
  1. 测试
go run demo/main.go

Documentation

Overview

封装成 golang 更易使用的接口

Index

Constants

This section is empty.

Variables

View Source
var Quotes = make(map[unsafe.Pointer]*Quote)
View Source
var Trades = make(map[unsafe.Pointer]*Trade)

Functions

func OnErrRtnBankToFutureByFuture

func OnErrRtnBankToFutureByFuture(spi unsafe.Pointer, pReqTransfer *C.struct_CThostFtdcReqTransferField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnBatchOrderAction

func OnErrRtnBatchOrderAction(spi unsafe.Pointer, pBatchOrderAction *C.struct_CThostFtdcBatchOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnCombActionInsert

func OnErrRtnCombActionInsert(spi unsafe.Pointer, pInputCombAction *C.struct_CThostFtdcInputCombActionField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnExecOrderAction

func OnErrRtnExecOrderAction(spi unsafe.Pointer, pExecOrderAction *C.struct_CThostFtdcExecOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnExecOrderInsert

func OnErrRtnExecOrderInsert(spi unsafe.Pointer, pInputExecOrder *C.struct_CThostFtdcInputExecOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnForQuoteInsert

func OnErrRtnForQuoteInsert(spi unsafe.Pointer, pInputForQuote *C.struct_CThostFtdcInputForQuoteField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnFutureToBankByFuture

func OnErrRtnFutureToBankByFuture(spi unsafe.Pointer, pReqTransfer *C.struct_CThostFtdcReqTransferField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnOptionSelfCloseAction

func OnErrRtnOptionSelfCloseAction(spi unsafe.Pointer, pOptionSelfCloseAction *C.struct_CThostFtdcOptionSelfCloseActionField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnOptionSelfCloseInsert

func OnErrRtnOptionSelfCloseInsert(spi unsafe.Pointer, pInputOptionSelfClose *C.struct_CThostFtdcInputOptionSelfCloseField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnOrderAction

func OnErrRtnOrderAction(spi unsafe.Pointer, pOrderAction *C.struct_CThostFtdcOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnOrderInsert

func OnErrRtnOrderInsert(spi unsafe.Pointer, pInputOrder *C.struct_CThostFtdcInputOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnQueryBankBalanceByFuture

func OnErrRtnQueryBankBalanceByFuture(spi unsafe.Pointer, pReqQueryAccount *C.struct_CThostFtdcReqQueryAccountField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnQuoteAction

func OnErrRtnQuoteAction(spi unsafe.Pointer, pQuoteAction *C.struct_CThostFtdcQuoteActionField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnQuoteInsert

func OnErrRtnQuoteInsert(spi unsafe.Pointer, pInputQuote *C.struct_CThostFtdcInputQuoteField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnRepealBankToFutureByFutureManual

func OnErrRtnRepealBankToFutureByFutureManual(spi unsafe.Pointer, pReqRepeal *C.struct_CThostFtdcReqRepealField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnErrRtnRepealFutureToBankByFutureManual

func OnErrRtnRepealFutureToBankByFutureManual(spi unsafe.Pointer, pReqRepeal *C.struct_CThostFtdcReqRepealField, pRspInfo *C.struct_CThostFtdcRspInfoField)

func OnFrontConnected

func OnFrontConnected(spi unsafe.Pointer)

func OnFrontDisconnected

func OnFrontDisconnected(spi unsafe.Pointer, nReason C.int)

func OnHeartBeatWarning

func OnHeartBeatWarning(spi unsafe.Pointer, nTimeLapse C.int)

func OnRspAuthenticate

func OnRspAuthenticate(spi unsafe.Pointer, pRspAuthenticateField *C.struct_CThostFtdcRspAuthenticateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspBatchOrderAction

func OnRspBatchOrderAction(spi unsafe.Pointer, pInputBatchOrderAction *C.struct_CThostFtdcInputBatchOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspCombActionInsert

func OnRspCombActionInsert(spi unsafe.Pointer, pInputCombAction *C.struct_CThostFtdcInputCombActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspError

func OnRspError(spi unsafe.Pointer, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspExecOrderAction

func OnRspExecOrderAction(spi unsafe.Pointer, pInputExecOrderAction *C.struct_CThostFtdcInputExecOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspExecOrderInsert

func OnRspExecOrderInsert(spi unsafe.Pointer, pInputExecOrder *C.struct_CThostFtdcInputExecOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspForQuoteInsert

func OnRspForQuoteInsert(spi unsafe.Pointer, pInputForQuote *C.struct_CThostFtdcInputForQuoteField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspFromBankToFutureByFuture

func OnRspFromBankToFutureByFuture(spi unsafe.Pointer, pReqTransfer *C.struct_CThostFtdcReqTransferField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspFromFutureToBankByFuture

func OnRspFromFutureToBankByFuture(spi unsafe.Pointer, pReqTransfer *C.struct_CThostFtdcReqTransferField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspGenUserCaptcha

func OnRspGenUserCaptcha(spi unsafe.Pointer, pRspGenUserCaptcha *C.struct_CThostFtdcRspGenUserCaptchaField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspGenUserText

func OnRspGenUserText(spi unsafe.Pointer, pRspGenUserText *C.struct_CThostFtdcRspGenUserTextField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspOptionSelfCloseAction

func OnRspOptionSelfCloseAction(spi unsafe.Pointer, pInputOptionSelfCloseAction *C.struct_CThostFtdcInputOptionSelfCloseActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspOptionSelfCloseInsert

func OnRspOptionSelfCloseInsert(spi unsafe.Pointer, pInputOptionSelfClose *C.struct_CThostFtdcInputOptionSelfCloseField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspOrderAction

func OnRspOrderAction(spi unsafe.Pointer, pInputOrderAction *C.struct_CThostFtdcInputOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspOrderInsert

func OnRspOrderInsert(spi unsafe.Pointer, pInputOrder *C.struct_CThostFtdcInputOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspParkedOrderAction

func OnRspParkedOrderAction(spi unsafe.Pointer, pParkedOrderAction *C.struct_CThostFtdcParkedOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspParkedOrderInsert

func OnRspParkedOrderInsert(spi unsafe.Pointer, pParkedOrder *C.struct_CThostFtdcParkedOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryAccountregister

func OnRspQryAccountregister(spi unsafe.Pointer, pAccountregister *C.struct_CThostFtdcAccountregisterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryBrokerTradingAlgos

func OnRspQryBrokerTradingAlgos(spi unsafe.Pointer, pBrokerTradingAlgos *C.struct_CThostFtdcBrokerTradingAlgosField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryBrokerTradingParams

func OnRspQryBrokerTradingParams(spi unsafe.Pointer, pBrokerTradingParams *C.struct_CThostFtdcBrokerTradingParamsField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryCFMMCTradingAccountKey

func OnRspQryCFMMCTradingAccountKey(spi unsafe.Pointer, pCFMMCTradingAccountKey *C.struct_CThostFtdcCFMMCTradingAccountKeyField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryClassifiedInstrument

func OnRspQryClassifiedInstrument(spi unsafe.Pointer, pInstrument *C.struct_CThostFtdcInstrumentField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryCombAction

func OnRspQryCombAction(spi unsafe.Pointer, pCombAction *C.struct_CThostFtdcCombActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryCombInstrumentGuard

func OnRspQryCombInstrumentGuard(spi unsafe.Pointer, pCombInstrumentGuard *C.struct_CThostFtdcCombInstrumentGuardField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryCombPromotionParam

func OnRspQryCombPromotionParam(spi unsafe.Pointer, pCombPromotionParam *C.struct_CThostFtdcCombPromotionParamField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryContractBank

func OnRspQryContractBank(spi unsafe.Pointer, pContractBank *C.struct_CThostFtdcContractBankField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryDepthMarketData

func OnRspQryDepthMarketData(spi unsafe.Pointer, pDepthMarketData *C.struct_CThostFtdcDepthMarketDataField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryEWarrantOffset

func OnRspQryEWarrantOffset(spi unsafe.Pointer, pEWarrantOffset *C.struct_CThostFtdcEWarrantOffsetField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryExchange

func OnRspQryExchange(spi unsafe.Pointer, pExchange *C.struct_CThostFtdcExchangeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryExchangeMarginRate

func OnRspQryExchangeMarginRate(spi unsafe.Pointer, pExchangeMarginRate *C.struct_CThostFtdcExchangeMarginRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryExchangeMarginRateAdjust

func OnRspQryExchangeMarginRateAdjust(spi unsafe.Pointer, pExchangeMarginRateAdjust *C.struct_CThostFtdcExchangeMarginRateAdjustField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryExchangeRate

func OnRspQryExchangeRate(spi unsafe.Pointer, pExchangeRate *C.struct_CThostFtdcExchangeRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryExecOrder

func OnRspQryExecOrder(spi unsafe.Pointer, pExecOrder *C.struct_CThostFtdcExecOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryForQuote

func OnRspQryForQuote(spi unsafe.Pointer, pForQuote *C.struct_CThostFtdcForQuoteField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInstrument

func OnRspQryInstrument(spi unsafe.Pointer, pInstrument *C.struct_CThostFtdcInstrumentField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInstrumentCommissionRate

func OnRspQryInstrumentCommissionRate(spi unsafe.Pointer, pInstrumentCommissionRate *C.struct_CThostFtdcInstrumentCommissionRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInstrumentMarginRate

func OnRspQryInstrumentMarginRate(spi unsafe.Pointer, pInstrumentMarginRate *C.struct_CThostFtdcInstrumentMarginRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInstrumentOrderCommRate

func OnRspQryInstrumentOrderCommRate(spi unsafe.Pointer, pInstrumentOrderCommRate *C.struct_CThostFtdcInstrumentOrderCommRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestUnit

func OnRspQryInvestUnit(spi unsafe.Pointer, pInvestUnit *C.struct_CThostFtdcInvestUnitField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestor

func OnRspQryInvestor(spi unsafe.Pointer, pInvestor *C.struct_CThostFtdcInvestorField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorCommodityGroupSPMMMargin added in v2.0.8

func OnRspQryInvestorCommodityGroupSPMMMargin(spi unsafe.Pointer, pInvestorCommodityGroupSPMMMargin *C.struct_CThostFtdcInvestorCommodityGroupSPMMMarginField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorCommoditySPMMMargin added in v2.0.8

func OnRspQryInvestorCommoditySPMMMargin(spi unsafe.Pointer, pInvestorCommoditySPMMMargin *C.struct_CThostFtdcInvestorCommoditySPMMMarginField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorPortfMarginRatio

func OnRspQryInvestorPortfMarginRatio(spi unsafe.Pointer, pInvestorPortfMarginRatio *C.struct_CThostFtdcInvestorPortfMarginRatioField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorPosition

func OnRspQryInvestorPosition(spi unsafe.Pointer, pInvestorPosition *C.struct_CThostFtdcInvestorPositionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorPositionCombineDetail

func OnRspQryInvestorPositionCombineDetail(spi unsafe.Pointer, pInvestorPositionCombineDetail *C.struct_CThostFtdcInvestorPositionCombineDetailField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorPositionDetail

func OnRspQryInvestorPositionDetail(spi unsafe.Pointer, pInvestorPositionDetail *C.struct_CThostFtdcInvestorPositionDetailField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorProdRCAMSMargin added in v2.0.8

func OnRspQryInvestorProdRCAMSMargin(spi unsafe.Pointer, pInvestorProdRCAMSMargin *C.struct_CThostFtdcInvestorProdRCAMSMarginField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorProdRULEMargin added in v2.0.8

func OnRspQryInvestorProdRULEMargin(spi unsafe.Pointer, pInvestorProdRULEMargin *C.struct_CThostFtdcInvestorProdRULEMarginField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorProdSPBMDetail

func OnRspQryInvestorProdSPBMDetail(spi unsafe.Pointer, pInvestorProdSPBMDetail *C.struct_CThostFtdcInvestorProdSPBMDetailField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryInvestorProductGroupMargin

func OnRspQryInvestorProductGroupMargin(spi unsafe.Pointer, pInvestorProductGroupMargin *C.struct_CThostFtdcInvestorProductGroupMarginField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryMMInstrumentCommissionRate

func OnRspQryMMInstrumentCommissionRate(spi unsafe.Pointer, pMMInstrumentCommissionRate *C.struct_CThostFtdcMMInstrumentCommissionRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryMMOptionInstrCommRate

func OnRspQryMMOptionInstrCommRate(spi unsafe.Pointer, pMMOptionInstrCommRate *C.struct_CThostFtdcMMOptionInstrCommRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryMaxOrderVolume

func OnRspQryMaxOrderVolume(spi unsafe.Pointer, pQryMaxOrderVolume *C.struct_CThostFtdcQryMaxOrderVolumeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryNotice

func OnRspQryNotice(spi unsafe.Pointer, pNotice *C.struct_CThostFtdcNoticeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryOptionInstrCommRate

func OnRspQryOptionInstrCommRate(spi unsafe.Pointer, pOptionInstrCommRate *C.struct_CThostFtdcOptionInstrCommRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryOptionInstrTradeCost

func OnRspQryOptionInstrTradeCost(spi unsafe.Pointer, pOptionInstrTradeCost *C.struct_CThostFtdcOptionInstrTradeCostField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryOptionSelfClose

func OnRspQryOptionSelfClose(spi unsafe.Pointer, pOptionSelfClose *C.struct_CThostFtdcOptionSelfCloseField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryOrder

func OnRspQryOrder(spi unsafe.Pointer, pOrder *C.struct_CThostFtdcOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryParkedOrder

func OnRspQryParkedOrder(spi unsafe.Pointer, pParkedOrder *C.struct_CThostFtdcParkedOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryParkedOrderAction

func OnRspQryParkedOrderAction(spi unsafe.Pointer, pParkedOrderAction *C.struct_CThostFtdcParkedOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryProduct

func OnRspQryProduct(spi unsafe.Pointer, pProduct *C.struct_CThostFtdcProductField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryProductExchRate

func OnRspQryProductExchRate(spi unsafe.Pointer, pProductExchRate *C.struct_CThostFtdcProductExchRateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryProductGroup

func OnRspQryProductGroup(spi unsafe.Pointer, pProductGroup *C.struct_CThostFtdcProductGroupField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryQuote

func OnRspQryQuote(spi unsafe.Pointer, pQuote *C.struct_CThostFtdcQuoteField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRCAMSCombProductInfo added in v2.0.8

func OnRspQryRCAMSCombProductInfo(spi unsafe.Pointer, pRCAMSCombProductInfo *C.struct_CThostFtdcRCAMSCombProductInfoField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRCAMSInstrParameter added in v2.0.8

func OnRspQryRCAMSInstrParameter(spi unsafe.Pointer, pRCAMSInstrParameter *C.struct_CThostFtdcRCAMSInstrParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRCAMSInterParameter added in v2.0.8

func OnRspQryRCAMSInterParameter(spi unsafe.Pointer, pRCAMSInterParameter *C.struct_CThostFtdcRCAMSInterParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRCAMSIntraParameter added in v2.0.8

func OnRspQryRCAMSIntraParameter(spi unsafe.Pointer, pRCAMSIntraParameter *C.struct_CThostFtdcRCAMSIntraParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRCAMSInvestorCombPosition added in v2.0.8

func OnRspQryRCAMSInvestorCombPosition(spi unsafe.Pointer, pRCAMSInvestorCombPosition *C.struct_CThostFtdcRCAMSInvestorCombPositionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRCAMSShortOptAdjustParam added in v2.0.8

func OnRspQryRCAMSShortOptAdjustParam(spi unsafe.Pointer, pRCAMSShortOptAdjustParam *C.struct_CThostFtdcRCAMSShortOptAdjustParamField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRULEInstrParameter added in v2.0.8

func OnRspQryRULEInstrParameter(spi unsafe.Pointer, pRULEInstrParameter *C.struct_CThostFtdcRULEInstrParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRULEInterParameter added in v2.0.8

func OnRspQryRULEInterParameter(spi unsafe.Pointer, pRULEInterParameter *C.struct_CThostFtdcRULEInterParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRULEIntraParameter added in v2.0.8

func OnRspQryRULEIntraParameter(spi unsafe.Pointer, pRULEIntraParameter *C.struct_CThostFtdcRULEIntraParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRiskSettleInvstPosition

func OnRspQryRiskSettleInvstPosition(spi unsafe.Pointer, pRiskSettleInvstPosition *C.struct_CThostFtdcRiskSettleInvstPositionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryRiskSettleProductStatus

func OnRspQryRiskSettleProductStatus(spi unsafe.Pointer, pRiskSettleProductStatus *C.struct_CThostFtdcRiskSettleProductStatusField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMAddOnInterParameter added in v2.0.8

func OnRspQrySPBMAddOnInterParameter(spi unsafe.Pointer, pSPBMAddOnInterParameter *C.struct_CThostFtdcSPBMAddOnInterParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMFutureParameter

func OnRspQrySPBMFutureParameter(spi unsafe.Pointer, pSPBMFutureParameter *C.struct_CThostFtdcSPBMFutureParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMInterParameter

func OnRspQrySPBMInterParameter(spi unsafe.Pointer, pSPBMInterParameter *C.struct_CThostFtdcSPBMInterParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMIntraParameter

func OnRspQrySPBMIntraParameter(spi unsafe.Pointer, pSPBMIntraParameter *C.struct_CThostFtdcSPBMIntraParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMInvestorPortfDef

func OnRspQrySPBMInvestorPortfDef(spi unsafe.Pointer, pSPBMInvestorPortfDef *C.struct_CThostFtdcSPBMInvestorPortfDefField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMOptionParameter

func OnRspQrySPBMOptionParameter(spi unsafe.Pointer, pSPBMOptionParameter *C.struct_CThostFtdcSPBMOptionParameterField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPBMPortfDefinition

func OnRspQrySPBMPortfDefinition(spi unsafe.Pointer, pSPBMPortfDefinition *C.struct_CThostFtdcSPBMPortfDefinitionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPMMInstParam added in v2.0.8

func OnRspQrySPMMInstParam(spi unsafe.Pointer, pSPMMInstParam *C.struct_CThostFtdcSPMMInstParamField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySPMMProductParam added in v2.0.8

func OnRspQrySPMMProductParam(spi unsafe.Pointer, pSPMMProductParam *C.struct_CThostFtdcSPMMProductParamField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySecAgentACIDMap

func OnRspQrySecAgentACIDMap(spi unsafe.Pointer, pSecAgentACIDMap *C.struct_CThostFtdcSecAgentACIDMapField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySecAgentCheckMode

func OnRspQrySecAgentCheckMode(spi unsafe.Pointer, pSecAgentCheckMode *C.struct_CThostFtdcSecAgentCheckModeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySecAgentTradeInfo

func OnRspQrySecAgentTradeInfo(spi unsafe.Pointer, pSecAgentTradeInfo *C.struct_CThostFtdcSecAgentTradeInfoField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySecAgentTradingAccount

func OnRspQrySecAgentTradingAccount(spi unsafe.Pointer, pTradingAccount *C.struct_CThostFtdcTradingAccountField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySettlementInfo

func OnRspQrySettlementInfo(spi unsafe.Pointer, pSettlementInfo *C.struct_CThostFtdcSettlementInfoField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQrySettlementInfoConfirm

func OnRspQrySettlementInfoConfirm(spi unsafe.Pointer, pSettlementInfoConfirm *C.struct_CThostFtdcSettlementInfoConfirmField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTrade

func OnRspQryTrade(spi unsafe.Pointer, pTrade *C.struct_CThostFtdcTradeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTraderOffer

func OnRspQryTraderOffer(spi unsafe.Pointer, pTraderOffer *C.struct_CThostFtdcTraderOfferField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTradingAccount

func OnRspQryTradingAccount(spi unsafe.Pointer, pTradingAccount *C.struct_CThostFtdcTradingAccountField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTradingCode

func OnRspQryTradingCode(spi unsafe.Pointer, pTradingCode *C.struct_CThostFtdcTradingCodeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTradingNotice

func OnRspQryTradingNotice(spi unsafe.Pointer, pTradingNotice *C.struct_CThostFtdcTradingNoticeField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTransferBank

func OnRspQryTransferBank(spi unsafe.Pointer, pTransferBank *C.struct_CThostFtdcTransferBankField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQryTransferSerial

func OnRspQryTransferSerial(spi unsafe.Pointer, pTransferSerial *C.struct_CThostFtdcTransferSerialField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQueryBankAccountMoneyByFuture

func OnRspQueryBankAccountMoneyByFuture(spi unsafe.Pointer, pReqQueryAccount *C.struct_CThostFtdcReqQueryAccountField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQueryCFMMCTradingAccountToken

func OnRspQueryCFMMCTradingAccountToken(spi unsafe.Pointer, pQueryCFMMCTradingAccountToken *C.struct_CThostFtdcQueryCFMMCTradingAccountTokenField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQuoteAction

func OnRspQuoteAction(spi unsafe.Pointer, pInputQuoteAction *C.struct_CThostFtdcInputQuoteActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspQuoteInsert

func OnRspQuoteInsert(spi unsafe.Pointer, pInputQuote *C.struct_CThostFtdcInputQuoteField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspRemoveParkedOrder

func OnRspRemoveParkedOrder(spi unsafe.Pointer, pRemoveParkedOrder *C.struct_CThostFtdcRemoveParkedOrderField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspRemoveParkedOrderAction

func OnRspRemoveParkedOrderAction(spi unsafe.Pointer, pRemoveParkedOrderAction *C.struct_CThostFtdcRemoveParkedOrderActionField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspSettlementInfoConfirm

func OnRspSettlementInfoConfirm(spi unsafe.Pointer, pSettlementInfoConfirm *C.struct_CThostFtdcSettlementInfoConfirmField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspTradingAccountPasswordUpdate

func OnRspTradingAccountPasswordUpdate(spi unsafe.Pointer, pTradingAccountPasswordUpdate *C.struct_CThostFtdcTradingAccountPasswordUpdateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspUserAuthMethod

func OnRspUserAuthMethod(spi unsafe.Pointer, pRspUserAuthMethod *C.struct_CThostFtdcRspUserAuthMethodField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspUserLogin

func OnRspUserLogin(spi unsafe.Pointer, pRspUserLogin *C.struct_CThostFtdcRspUserLoginField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspUserLogout

func OnRspUserLogout(spi unsafe.Pointer, pUserLogout *C.struct_CThostFtdcUserLogoutField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRspUserPasswordUpdate

func OnRspUserPasswordUpdate(spi unsafe.Pointer, pUserPasswordUpdate *C.struct_CThostFtdcUserPasswordUpdateField, pRspInfo *C.struct_CThostFtdcRspInfoField, nRequestID C.int, bIsLast C._Bool)

func OnRtnBulletin

func OnRtnBulletin(spi unsafe.Pointer, pBulletin *C.struct_CThostFtdcBulletinField)

func OnRtnCFMMCTradingAccountToken

func OnRtnCFMMCTradingAccountToken(spi unsafe.Pointer, pCFMMCTradingAccountToken *C.struct_CThostFtdcCFMMCTradingAccountTokenField)

func OnRtnCancelAccountByBank

func OnRtnCancelAccountByBank(spi unsafe.Pointer, pCancelAccount *C.struct_CThostFtdcCancelAccountField)

func OnRtnChangeAccountByBank

func OnRtnChangeAccountByBank(spi unsafe.Pointer, pChangeAccount *C.struct_CThostFtdcChangeAccountField)

func OnRtnCombAction

func OnRtnCombAction(spi unsafe.Pointer, pCombAction *C.struct_CThostFtdcCombActionField)

func OnRtnErrorConditionalOrder

func OnRtnErrorConditionalOrder(spi unsafe.Pointer, pErrorConditionalOrder *C.struct_CThostFtdcErrorConditionalOrderField)

func OnRtnExecOrder

func OnRtnExecOrder(spi unsafe.Pointer, pExecOrder *C.struct_CThostFtdcExecOrderField)

func OnRtnForQuoteRsp

func OnRtnForQuoteRsp(spi unsafe.Pointer, pForQuoteRsp *C.struct_CThostFtdcForQuoteRspField)

func OnRtnFromBankToFutureByBank

func OnRtnFromBankToFutureByBank(spi unsafe.Pointer, pRspTransfer *C.struct_CThostFtdcRspTransferField)

func OnRtnFromBankToFutureByFuture

func OnRtnFromBankToFutureByFuture(spi unsafe.Pointer, pRspTransfer *C.struct_CThostFtdcRspTransferField)

func OnRtnFromFutureToBankByBank

func OnRtnFromFutureToBankByBank(spi unsafe.Pointer, pRspTransfer *C.struct_CThostFtdcRspTransferField)

func OnRtnFromFutureToBankByFuture

func OnRtnFromFutureToBankByFuture(spi unsafe.Pointer, pRspTransfer *C.struct_CThostFtdcRspTransferField)

func OnRtnInstrumentStatus

func OnRtnInstrumentStatus(spi unsafe.Pointer, pInstrumentStatus *C.struct_CThostFtdcInstrumentStatusField)

func OnRtnOpenAccountByBank

func OnRtnOpenAccountByBank(spi unsafe.Pointer, pOpenAccount *C.struct_CThostFtdcOpenAccountField)

func OnRtnOptionSelfClose

func OnRtnOptionSelfClose(spi unsafe.Pointer, pOptionSelfClose *C.struct_CThostFtdcOptionSelfCloseField)

func OnRtnOrder

func OnRtnOrder(spi unsafe.Pointer, pOrder *C.struct_CThostFtdcOrderField)

func OnRtnQueryBankBalanceByFuture

func OnRtnQueryBankBalanceByFuture(spi unsafe.Pointer, pNotifyQueryAccount *C.struct_CThostFtdcNotifyQueryAccountField)

func OnRtnQuote

func OnRtnQuote(spi unsafe.Pointer, pQuote *C.struct_CThostFtdcQuoteField)

func OnRtnRepealFromBankToFutureByBank

func OnRtnRepealFromBankToFutureByBank(spi unsafe.Pointer, pRspRepeal *C.struct_CThostFtdcRspRepealField)

func OnRtnRepealFromBankToFutureByFuture

func OnRtnRepealFromBankToFutureByFuture(spi unsafe.Pointer, pRspRepeal *C.struct_CThostFtdcRspRepealField)

func OnRtnRepealFromBankToFutureByFutureManual

func OnRtnRepealFromBankToFutureByFutureManual(spi unsafe.Pointer, pRspRepeal *C.struct_CThostFtdcRspRepealField)

func OnRtnRepealFromFutureToBankByBank

func OnRtnRepealFromFutureToBankByBank(spi unsafe.Pointer, pRspRepeal *C.struct_CThostFtdcRspRepealField)

func OnRtnRepealFromFutureToBankByFuture

func OnRtnRepealFromFutureToBankByFuture(spi unsafe.Pointer, pRspRepeal *C.struct_CThostFtdcRspRepealField)

func OnRtnRepealFromFutureToBankByFutureManual

func OnRtnRepealFromFutureToBankByFutureManual(spi unsafe.Pointer, pRspRepeal *C.struct_CThostFtdcRspRepealField)

func OnRtnTrade

func OnRtnTrade(spi unsafe.Pointer, pTrade *C.struct_CThostFtdcTradeField)

func OnRtnTradingNotice

func OnRtnTradingNotice(spi unsafe.Pointer, pTradingNoticeInfo *C.struct_CThostFtdcTradingNoticeInfoField)

Types

type CThostFtdcAccountPropertyField

type CThostFtdcAccountPropertyField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 银行统一标识类型
	BankID TThostFtdcBankIDType
	// 银行账户
	BankAccount TThostFtdcBankAccountType
	// 银行账户的开户人名称
	OpenName TThostFtdcInvestorFullNameType
	// 银行账户的开户行
	OpenBank TThostFtdcOpenBankType
	// 是否活跃
	IsActive TThostFtdcBoolType
	// 账户来源
	AccountSourceType TThostFtdcAccountSourceTypeType
	// 开户日期
	OpenDate TThostFtdcDateType
	// 注销日期
	CancelDate TThostFtdcDateType
	// 录入员代码
	OperatorID TThostFtdcOperatorIDType
	// 录入日期
	OperateDate TThostFtdcDateType
	// 录入时间
	OperateTime TThostFtdcTimeType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

银行账户属性

type CThostFtdcAccountregisterField

type CThostFtdcAccountregisterField struct {
	// 交易日期
	TradeDay TThostFtdcTradeDateType
	// 银行编码
	BankID TThostFtdcBankIDType
	// 银行分支机构编码
	BankBranchID TThostFtdcBankBrchIDType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 期货公司编码
	BrokerID TThostFtdcBrokerIDType
	// 期货公司分支机构编码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 开销户类别
	OpenOrDestroy TThostFtdcOpenOrDestroyType
	// 签约日期
	RegDate TThostFtdcTradeDateType
	// 解约日期
	OutDate TThostFtdcTradeDateType
	// 交易ID
	TID TThostFtdcTIDType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

客户开销户信息表

type CThostFtdcAppIDAuthAssignField

type CThostFtdcAppIDAuthAssignField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// App代码
	AppID TThostFtdcAppIDType
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
}

App客户端权限分配

type CThostFtdcAuthForbiddenIPField

type CThostFtdcAuthForbiddenIPField struct {
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

禁止认证IP

type CThostFtdcAuthIPField

type CThostFtdcAuthIPField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// App代码
	AppID TThostFtdcAppIDType
	// 用户代码
	IPAddress TThostFtdcIPAddressType
}

用户IP绑定信息

type CThostFtdcAuthUserIDField

type CThostFtdcAuthUserIDField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// App代码
	AppID TThostFtdcAppIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 校验类型
	AuthType TThostFtdcAuthTypeType
}

终端用户绑定信息

type CThostFtdcAuthenticationInfoField

type CThostFtdcAuthenticationInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 认证信息
	AuthInfo TThostFtdcAuthInfoType
	// 是否为认证结果
	IsResult TThostFtdcBoolType
	// App代码
	AppID TThostFtdcAppIDType
	// App类型
	AppType TThostFtdcAppTypeType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 终端IP地址
	ClientIPAddress TThostFtdcIPAddressType
}

客户端认证信息

type CThostFtdcBatchOrderActionField

type CThostFtdcBatchOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报单操作引用
	OrderActionRef TThostFtdcOrderActionRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

批量报单操作

type CThostFtdcBrokerDepositField

type CThostFtdcBrokerDepositField struct {
	// 交易日期
	TradingDay TThostFtdcTradeDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 上次结算准备金
	PreBalance TThostFtdcMoneyType
	// 当前保证金总额
	CurrMargin TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 期货结算准备金
	Balance TThostFtdcMoneyType
	// 入金金额
	Deposit TThostFtdcMoneyType
	// 出金金额
	Withdraw TThostFtdcMoneyType
	// 可提资金
	Available TThostFtdcMoneyType
	// 基本准备金
	Reserve TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
}

经纪公司资金

type CThostFtdcBrokerField

type CThostFtdcBrokerField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 经纪公司简称
	BrokerAbbr TThostFtdcBrokerAbbrType
	// 经纪公司名称
	BrokerName TThostFtdcBrokerNameType
	// 是否活跃
	IsActive TThostFtdcBoolType
}

经纪公司

type CThostFtdcBrokerSyncField

type CThostFtdcBrokerSyncField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
}

经纪公司同步

type CThostFtdcBrokerTradingAlgosField

type CThostFtdcBrokerTradingAlgosField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 持仓处理算法编号
	HandlePositionAlgoID TThostFtdcHandlePositionAlgoIDType
	// 寻找保证金率算法编号
	FindMarginRateAlgoID TThostFtdcFindMarginRateAlgoIDType
	// 资金处理算法编号
	HandleTradingAccountAlgoID TThostFtdcHandleTradingAccountAlgoIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

经纪公司交易算法

type CThostFtdcBrokerTradingParamsField

type CThostFtdcBrokerTradingParamsField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保证金价格类型
	MarginPriceType TThostFtdcMarginPriceTypeType
	// 盈亏算法
	Algorithm TThostFtdcAlgorithmType
	// 可用是否包含平仓盈利
	AvailIncludeCloseProfit TThostFtdcIncludeCloseProfitType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 期权权利金价格类型
	OptionRoyaltyPriceType TThostFtdcOptionRoyaltyPriceTypeType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
}

经纪公司交易参数

type CThostFtdcBrokerUserEventField

type CThostFtdcBrokerUserEventField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户事件类型
	UserEventType TThostFtdcUserEventTypeType
	// 用户事件序号
	EventSequenceNo TThostFtdcSequenceNoType
	// 事件发生日期
	EventDate TThostFtdcDateType
	// 事件发生时间
	EventTime TThostFtdcTimeType
	// 用户事件信息
	UserEventInfo TThostFtdcUserEventInfoType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
	// 交易日
	TradingDay TThostFtdcDateType
}

查询经纪公司用户事件

type CThostFtdcBrokerUserField

type CThostFtdcBrokerUserField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户名称
	UserName TThostFtdcUserNameType
	// 用户类型
	UserType TThostFtdcUserTypeType
	// 是否活跃
	IsActive TThostFtdcBoolType
	// 是否使用令牌
	IsUsingOTP TThostFtdcBoolType
	// 是否强制终端认证
	IsAuthForce TThostFtdcBoolType
}

经纪公司用户

type CThostFtdcBrokerUserFunctionField

type CThostFtdcBrokerUserFunctionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 经纪公司功能代码
	BrokerFunctionCode TThostFtdcBrokerFunctionCodeType
}

经纪公司用户功能权限

type CThostFtdcBrokerUserOTPParamField

type CThostFtdcBrokerUserOTPParamField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 动态令牌提供商
	OTPVendorsID TThostFtdcOTPVendorsIDType
	// 动态令牌序列号
	SerialNumber TThostFtdcSerialNumberType
	// 令牌密钥
	AuthKey TThostFtdcAuthKeyType
	// 漂移值
	LastDrift TThostFtdcLastDriftType
	// 成功值
	LastSuccess TThostFtdcLastSuccessType
	// 动态令牌类型
	OTPType TThostFtdcOTPTypeType
}

用户动态令牌参数

type CThostFtdcBrokerUserPasswordField

type CThostFtdcBrokerUserPasswordField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 密码
	Password TThostFtdcPasswordType
	// 上次修改时间
	LastUpdateTime TThostFtdcDateTimeType
	// 上次登陆时间
	LastLoginTime TThostFtdcDateTimeType
	// 密码过期时间
	ExpireDate TThostFtdcDateType
	// 弱密码过期时间
	WeakExpireDate TThostFtdcDateType
}

经纪公司用户口令

type CThostFtdcBrokerUserRightAssignField

type CThostFtdcBrokerUserRightAssignField struct {
	// 应用单元代码
	BrokerID TThostFtdcBrokerIDType
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
	// 能否交易
	Tradeable TThostFtdcBoolType
}

经济公司是否有在本标示的交易权限

type CThostFtdcBrokerWithdrawAlgorithmField

type CThostFtdcBrokerWithdrawAlgorithmField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 可提资金算法
	WithdrawAlgorithm TThostFtdcAlgorithmType
	// 资金使用率
	UsingRatio TThostFtdcRatioType
	// 可提是否包含平仓盈利
	IncludeCloseProfit TThostFtdcIncludeCloseProfitType
	// 本日无仓且无成交客户是否受可提比例限制
	AllWithoutTrade TThostFtdcAllWithoutTradeType
	// 可用是否包含平仓盈利
	AvailIncludeCloseProfit TThostFtdcIncludeCloseProfitType
	// 是否启用用户事件
	IsBrokerUserEvent TThostFtdcBoolType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 货币质押比率
	FundMortgageRatio TThostFtdcRatioType
	// 权益算法
	BalanceAlgorithm TThostFtdcBalanceAlgorithmType
}

经纪公司可提资金算法表

type CThostFtdcBulletinField

type CThostFtdcBulletinField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易日
	TradingDay TThostFtdcDateType
	// 公告编号
	BulletinID TThostFtdcBulletinIDType
	// 序列号
	SequenceNo TThostFtdcSequenceNoType
	// 公告类型
	NewsType TThostFtdcNewsTypeType
	// 紧急程度
	NewsUrgency TThostFtdcNewsUrgencyType
	// 发送时间
	SendTime TThostFtdcTimeType
	// 消息摘要
	Abstract TThostFtdcAbstractType
	// 消息来源
	ComeFrom TThostFtdcComeFromType
	// 消息正文
	Content TThostFtdcContentType
	// WEB地址
	URLLink TThostFtdcURLLinkType
	// 市场代码
	MarketID TThostFtdcMarketIDType
}

交易所公告

type CThostFtdcCFMMCBrokerKeyField

type CThostFtdcCFMMCBrokerKeyField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 经纪公司统一编码
	ParticipantID TThostFtdcParticipantIDType
	// 密钥生成日期
	CreateDate TThostFtdcDateType
	// 密钥生成时间
	CreateTime TThostFtdcTimeType
	// 密钥编号
	KeyID TThostFtdcSequenceNoType
	// 动态密钥
	CurrentKey TThostFtdcCFMMCKeyType
	// 动态密钥类型
	KeyKind TThostFtdcCFMMCKeyKindType
}

保证金监管系统经纪公司密钥

type CThostFtdcCFMMCTradingAccountKeyField

type CThostFtdcCFMMCTradingAccountKeyField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 经纪公司统一编码
	ParticipantID TThostFtdcParticipantIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 密钥编号
	KeyID TThostFtdcSequenceNoType
	// 动态密钥
	CurrentKey TThostFtdcCFMMCKeyType
}

保证金监管系统经纪公司资金账户密钥

type CThostFtdcCFMMCTradingAccountTokenField

type CThostFtdcCFMMCTradingAccountTokenField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 经纪公司统一编码
	ParticipantID TThostFtdcParticipantIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 密钥编号
	KeyID TThostFtdcSequenceNoType
	// 动态令牌
	Token TThostFtdcCFMMCTokenType
}

监控中心用户令牌

type CThostFtdcCancelAccountField

type CThostFtdcCancelAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 汇钞标志
	CashExchangeCode TThostFtdcCashExchangeCodeType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 交易ID
	TID TThostFtdcTIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

银期销户信息

type CThostFtdcChangeAccountField

type CThostFtdcChangeAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 新银行帐号
	NewBankAccount TThostFtdcBankAccountType
	// 新银行密码
	NewBankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易ID
	TID TThostFtdcTIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

银期变更银行账号信息

type CThostFtdcCombActionField

type CThostFtdcCombActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 组合引用
	CombActionRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 数量
	Volume TThostFtdcVolumeType
	// 组合指令方向
	CombDirection TThostFtdcCombDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 本地申请组合编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 组合状态
	ActionStatus TThostFtdcOrderActionStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 组合编号
	ComTradeID TThostFtdcTradeIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

申请组合

type CThostFtdcCombInstrumentGuardField

type CThostFtdcCombInstrumentGuardField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	//
	GuarantRatio TThostFtdcRatioType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

组合合约安全系数

type CThostFtdcCombPromotionParamField

type CThostFtdcCombPromotionParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 期权组合保证金比例
	Xparameter TThostFtdcDiscountRatioType
}

组合优惠比例

type CThostFtdcCombinationLegField

type CThostFtdcCombinationLegField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 单腿乘数
	LegMultiple TThostFtdcLegMultipleType
	// 派生层数
	ImplyLevel TThostFtdcImplyLevelType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
	// 单腿合约代码
	LegInstrumentID TThostFtdcInstrumentIDType
}

组合交易合约的单腿

type CThostFtdcCommPhaseField

type CThostFtdcCommPhaseField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 通讯时段编号
	CommPhaseNo TThostFtdcCommPhaseNoType
	// 系统编号
	SystemID TThostFtdcSystemIDType
}

通讯阶段

type CThostFtdcCommRateModelField

type CThostFtdcCommRateModelField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 手续费率模板代码
	CommModelID TThostFtdcInvestorIDType
	// 模板名称
	CommModelName TThostFtdcCommModelNameType
}

投资者手续费率模板

type CThostFtdcContractBankField

type CThostFtdcContractBankField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分中心代码
	BankBrchID TThostFtdcBankBrchIDType
	// 银行名称
	BankName TThostFtdcBankNameType
}

查询签约银行响应

type CThostFtdcCurrDRIdentityField

type CThostFtdcCurrDRIdentityField struct {
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
}

当前交易中心

type CThostFtdcCurrTransferIdentityField

type CThostFtdcCurrTransferIdentityField struct {
	// 交易中心代码
	IdentityID TThostFtdcDRIdentityIDType
}

当前银期所属交易中心

type CThostFtdcCurrentTimeField

type CThostFtdcCurrentTimeField struct {
	// 当前交易日
	CurrDate TThostFtdcDateType
	// 当前时间
	CurrTime TThostFtdcTimeType
	// 当前时间(毫秒)
	CurrMillisec TThostFtdcMillisecType
	// 自然日期
	ActionDay TThostFtdcDateType
}

当前时间

type CThostFtdcDRTransferField

type CThostFtdcDRTransferField struct {
	// 原交易中心代码
	OrigDRIdentityID TThostFtdcDRIdentityIDType
	// 目标交易中心代码
	DestDRIdentityID TThostFtdcDRIdentityIDType
	// 原应用单元代码
	OrigBrokerID TThostFtdcBrokerIDType
	// 目标易用单元代码
	DestBrokerID TThostFtdcBrokerIDType
}

灾备交易转换报文

type CThostFtdcDepartmentUserField

type CThostFtdcDepartmentUserField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 投资者范围
	InvestorRange TThostFtdcDepartmentRangeType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

操作员组织架构关系

type CThostFtdcDepositResultInformField

type CThostFtdcDepositResultInformField struct {
	// 出入金流水号,该流水号为银期报盘返回的流水号
	DepositSeqNo TThostFtdcDepositSeqNoType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 入金金额
	Deposit TThostFtdcMoneyType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 返回代码
	ReturnCode TThostFtdcReturnCodeType
	// 返回码描述
	DescrInfoForReturnCode TThostFtdcDescrInfoForReturnCodeType
}

验证期货资金密码和客户信息

type CThostFtdcDepthMarketDataField

type CThostFtdcDepthMarketDataField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 最新价
	LastPrice TThostFtdcPriceType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 昨收盘
	PreClosePrice TThostFtdcPriceType
	// 昨持仓量
	PreOpenInterest TThostFtdcLargeVolumeType
	// 今开盘
	OpenPrice TThostFtdcPriceType
	// 最高价
	HighestPrice TThostFtdcPriceType
	// 最低价
	LowestPrice TThostFtdcPriceType
	// 数量
	Volume TThostFtdcVolumeType
	// 成交金额
	Turnover TThostFtdcMoneyType
	// 持仓量
	OpenInterest TThostFtdcLargeVolumeType
	// 今收盘
	ClosePrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 涨停板价
	UpperLimitPrice TThostFtdcPriceType
	// 跌停板价
	LowerLimitPrice TThostFtdcPriceType
	// 昨虚实度
	PreDelta TThostFtdcRatioType
	// 今虚实度
	CurrDelta TThostFtdcRatioType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 最后修改毫秒
	UpdateMillisec TThostFtdcMillisecType
	// 申买价一
	BidPrice1 TThostFtdcPriceType
	// 申买量一
	BidVolume1 TThostFtdcVolumeType
	// 申卖价一
	AskPrice1 TThostFtdcPriceType
	// 申卖量一
	AskVolume1 TThostFtdcVolumeType
	// 申买价二
	BidPrice2 TThostFtdcPriceType
	// 申买量二
	BidVolume2 TThostFtdcVolumeType
	// 申卖价二
	AskPrice2 TThostFtdcPriceType
	// 申卖量二
	AskVolume2 TThostFtdcVolumeType
	// 申买价三
	BidPrice3 TThostFtdcPriceType
	// 申买量三
	BidVolume3 TThostFtdcVolumeType
	// 申卖价三
	AskPrice3 TThostFtdcPriceType
	// 申卖量三
	AskVolume3 TThostFtdcVolumeType
	// 申买价四
	BidPrice4 TThostFtdcPriceType
	// 申买量四
	BidVolume4 TThostFtdcVolumeType
	// 申卖价四
	AskPrice4 TThostFtdcPriceType
	// 申卖量四
	AskVolume4 TThostFtdcVolumeType
	// 申买价五
	BidPrice5 TThostFtdcPriceType
	// 申买量五
	BidVolume5 TThostFtdcVolumeType
	// 申卖价五
	AskPrice5 TThostFtdcPriceType
	// 申卖量五
	AskVolume5 TThostFtdcVolumeType
	// 当日均价
	AveragePrice TThostFtdcPriceType
	// 业务日期
	ActionDay TThostFtdcDateType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 上带价
	BandingUpperPrice TThostFtdcPriceType
	// 下带价
	BandingLowerPrice TThostFtdcPriceType
}

深度行情

type CThostFtdcDiscountField

type CThostFtdcDiscountField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 资金折扣比例
	Discount TThostFtdcRatioType
}

会员资金折扣

type CThostFtdcDisseminationField

type CThostFtdcDisseminationField struct {
	// 序列系列号
	SequenceSeries TThostFtdcSequenceSeriesType
	// 序列号
	SequenceNo TThostFtdcSequenceNoType
}

信息分发

type CThostFtdcEWarrantOffsetField

type CThostFtdcEWarrantOffsetField struct {
	// 交易日期
	TradingDay TThostFtdcTradeDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 数量
	Volume TThostFtdcVolumeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

仓单折抵信息

type CThostFtdcErrExecOrderActionField

type CThostFtdcErrExecOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 执行宣告操作引用
	ExecOrderActionRef TThostFtdcOrderActionRefType
	// 执行宣告引用
	ExecOrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行宣告操作编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

错误执行宣告操作

type CThostFtdcErrExecOrderField

type CThostFtdcErrExecOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 执行宣告引用
	ExecOrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 执行类型
	ActionType TThostFtdcActionTypeType
	// 保留头寸申请的持仓方向
	PosiDirection TThostFtdcPosiDirectionType
	// 期权行权后是否保留期货头寸的标记,该字段已废弃
	ReservePositionFlag TThostFtdcExecOrderPositionFlagType
	// 期权行权后生成的头寸是否自动平仓
	CloseFlag TThostFtdcExecOrderCloseFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

错误执行宣告

type CThostFtdcErrOrderActionField

type CThostFtdcErrOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报单操作引用
	OrderActionRef TThostFtdcOrderActionRefType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量变化
	VolumeChange TThostFtdcVolumeType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

错误报单操作

type CThostFtdcErrOrderField

type CThostFtdcErrOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 报单价格条件
	OrderPriceType TThostFtdcOrderPriceTypeType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 组合开平标志
	CombOffsetFlag TThostFtdcCombOffsetFlagType
	// 组合投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量
	VolumeTotalOriginal TThostFtdcVolumeType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
	// GTD日期
	GTDDate TThostFtdcDateType
	// 成交量类型
	VolumeCondition TThostFtdcVolumeConditionType
	// 最小成交量
	MinVolume TThostFtdcVolumeType
	// 触发条件
	ContingentCondition TThostFtdcContingentConditionType
	// 止损价
	StopPrice TThostFtdcPriceType
	// 强平原因
	ForceCloseReason TThostFtdcForceCloseReasonType
	// 自动挂起标志
	IsAutoSuspend TThostFtdcBoolType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 用户强评标志
	UserForceClose TThostFtdcBoolType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 互换单标志
	IsSwapOrder TThostFtdcBoolType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

错误报单

type CThostFtdcErrorConditionalOrderField

type CThostFtdcErrorConditionalOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 报单价格条件
	OrderPriceType TThostFtdcOrderPriceTypeType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 组合开平标志
	CombOffsetFlag TThostFtdcCombOffsetFlagType
	// 组合投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量
	VolumeTotalOriginal TThostFtdcVolumeType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
	// GTD日期
	GTDDate TThostFtdcDateType
	// 成交量类型
	VolumeCondition TThostFtdcVolumeConditionType
	// 最小成交量
	MinVolume TThostFtdcVolumeType
	// 触发条件
	ContingentCondition TThostFtdcContingentConditionType
	// 止损价
	StopPrice TThostFtdcPriceType
	// 强平原因
	ForceCloseReason TThostFtdcForceCloseReasonType
	// 自动挂起标志
	IsAutoSuspend TThostFtdcBoolType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报单提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 报单来源
	OrderSource TThostFtdcOrderSourceType
	// 报单状态
	OrderStatus TThostFtdcOrderStatusType
	// 报单类型
	OrderType TThostFtdcOrderTypeType
	// 今成交数量
	VolumeTraded TThostFtdcVolumeType
	// 剩余数量
	VolumeTotal TThostFtdcVolumeType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 委托时间
	InsertTime TThostFtdcTimeType
	// 激活时间
	ActiveTime TThostFtdcTimeType
	// 挂起时间
	SuspendTime TThostFtdcTimeType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 最后修改交易所交易员代码
	ActiveTraderID TThostFtdcTraderIDType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 用户强评标志
	UserForceClose TThostFtdcBoolType
	// 操作用户代码
	ActiveUserID TThostFtdcUserIDType
	// 经纪公司报单编号
	BrokerOrderSeq TThostFtdcSequenceNoType
	// 相关报单
	RelativeOrderSysID TThostFtdcOrderSysIDType
	// 郑商所成交数量
	ZCETotalTradedVolume TThostFtdcVolumeType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 互换单标志
	IsSwapOrder TThostFtdcBoolType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

查询错误报单操作

type CThostFtdcExchangeBatchOrderActionField

type CThostFtdcExchangeBatchOrderActionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所批量报单操作

type CThostFtdcExchangeCombActionField

type CThostFtdcExchangeCombActionField struct {
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 数量
	Volume TThostFtdcVolumeType
	// 组合指令方向
	CombDirection TThostFtdcCombDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 本地申请组合编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 组合状态
	ActionStatus TThostFtdcOrderActionStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 组合编号
	ComTradeID TThostFtdcTradeIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所申请组合信息

type CThostFtdcExchangeExecOrderActionField

type CThostFtdcExchangeExecOrderActionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行宣告操作编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地执行宣告编号
	ExecOrderLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 执行类型
	ActionType TThostFtdcActionTypeType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 数量
	Volume TThostFtdcVolumeType
	// IP地址
	IPAddress TThostFtdcIPAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所执行宣告操作

type CThostFtdcExchangeExecOrderField

type CThostFtdcExchangeExecOrderField struct {
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 执行类型
	ActionType TThostFtdcActionTypeType
	// 保留头寸申请的持仓方向
	PosiDirection TThostFtdcPosiDirectionType
	// 期权行权后是否保留期货头寸的标记,该字段已废弃
	ReservePositionFlag TThostFtdcExecOrderPositionFlagType
	// 期权行权后生成的头寸是否自动平仓
	CloseFlag TThostFtdcExecOrderCloseFlagType
	// 本地执行宣告编号
	ExecOrderLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 执行宣告提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 执行宣告编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 执行结果
	ExecResult TThostFtdcExecResultType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所执行宣告信息

type CThostFtdcExchangeField

type CThostFtdcExchangeField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所名称
	ExchangeName TThostFtdcExchangeNameType
	// 交易所属性
	ExchangeProperty TThostFtdcExchangePropertyType
}

交易所

type CThostFtdcExchangeForQuoteField

type CThostFtdcExchangeForQuoteField struct {
	// 本地询价编号
	ForQuoteLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 询价状态
	ForQuoteStatus TThostFtdcForQuoteStatusType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所询价信息

type CThostFtdcExchangeMarginRateAdjustField

type CThostFtdcExchangeMarginRateAdjustField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 跟随交易所投资者多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 跟随交易所投资者多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 跟随交易所投资者空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 跟随交易所投资者空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 交易所多头保证金率
	ExchLongMarginRatioByMoney TThostFtdcRatioType
	// 交易所多头保证金费
	ExchLongMarginRatioByVolume TThostFtdcMoneyType
	// 交易所空头保证金率
	ExchShortMarginRatioByMoney TThostFtdcRatioType
	// 交易所空头保证金费
	ExchShortMarginRatioByVolume TThostFtdcMoneyType
	// 不跟随交易所投资者多头保证金率
	NoLongMarginRatioByMoney TThostFtdcRatioType
	// 不跟随交易所投资者多头保证金费
	NoLongMarginRatioByVolume TThostFtdcMoneyType
	// 不跟随交易所投资者空头保证金率
	NoShortMarginRatioByMoney TThostFtdcRatioType
	// 不跟随交易所投资者空头保证金费
	NoShortMarginRatioByVolume TThostFtdcMoneyType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

交易所保证金率调整

type CThostFtdcExchangeMarginRateField

type CThostFtdcExchangeMarginRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

交易所保证金率

type CThostFtdcExchangeOptionSelfCloseActionField

type CThostFtdcExchangeOptionSelfCloseActionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 期权自对冲操作编号
	OptionSelfCloseSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地期权自对冲编号
	OptionSelfCloseLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 期权行权的头寸是否自对冲
	OptSelfCloseFlag TThostFtdcOptSelfCloseFlagType
	// IP地址
	IPAddress TThostFtdcIPAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所期权自对冲操作

type CThostFtdcExchangeOptionSelfCloseField

type CThostFtdcExchangeOptionSelfCloseField struct {
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 期权行权的头寸是否自对冲
	OptSelfCloseFlag TThostFtdcOptSelfCloseFlagType
	// 本地期权自对冲编号
	OptionSelfCloseLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 期权自对冲提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 期权自对冲编号
	OptionSelfCloseSysID TThostFtdcOrderSysIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 自对冲结果
	ExecResult TThostFtdcExecResultType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所期权自对冲信息

type CThostFtdcExchangeOrderActionErrorField

type CThostFtdcExchangeOrderActionErrorField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

交易所报单操作失败

type CThostFtdcExchangeOrderActionField

type CThostFtdcExchangeOrderActionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量变化
	VolumeChange TThostFtdcVolumeType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所报单操作

type CThostFtdcExchangeOrderField

type CThostFtdcExchangeOrderField struct {
	// 报单价格条件
	OrderPriceType TThostFtdcOrderPriceTypeType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 组合开平标志
	CombOffsetFlag TThostFtdcCombOffsetFlagType
	// 组合投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量
	VolumeTotalOriginal TThostFtdcVolumeType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
	// GTD日期
	GTDDate TThostFtdcDateType
	// 成交量类型
	VolumeCondition TThostFtdcVolumeConditionType
	// 最小成交量
	MinVolume TThostFtdcVolumeType
	// 触发条件
	ContingentCondition TThostFtdcContingentConditionType
	// 止损价
	StopPrice TThostFtdcPriceType
	// 强平原因
	ForceCloseReason TThostFtdcForceCloseReasonType
	// 自动挂起标志
	IsAutoSuspend TThostFtdcBoolType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报单提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 报单来源
	OrderSource TThostFtdcOrderSourceType
	// 报单状态
	OrderStatus TThostFtdcOrderStatusType
	// 报单类型
	OrderType TThostFtdcOrderTypeType
	// 今成交数量
	VolumeTraded TThostFtdcVolumeType
	// 剩余数量
	VolumeTotal TThostFtdcVolumeType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 委托时间
	InsertTime TThostFtdcTimeType
	// 激活时间
	ActiveTime TThostFtdcTimeType
	// 挂起时间
	SuspendTime TThostFtdcTimeType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 最后修改交易所交易员代码
	ActiveTraderID TThostFtdcTraderIDType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所报单

type CThostFtdcExchangeOrderInsertErrorField

type CThostFtdcExchangeOrderInsertErrorField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

交易所报单插入失败

type CThostFtdcExchangeQuoteActionField

type CThostFtdcExchangeQuoteActionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报价操作编号
	QuoteSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报价编号
	QuoteLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

交易所报价操作

type CThostFtdcExchangeQuoteField

type CThostFtdcExchangeQuoteField struct {
	// 卖价格
	AskPrice TThostFtdcPriceType
	// 买价格
	BidPrice TThostFtdcPriceType
	// 卖数量
	AskVolume TThostFtdcVolumeType
	// 买数量
	BidVolume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 卖开平标志
	AskOffsetFlag TThostFtdcOffsetFlagType
	// 买开平标志
	BidOffsetFlag TThostFtdcOffsetFlagType
	// 卖投机套保标志
	AskHedgeFlag TThostFtdcHedgeFlagType
	// 买投机套保标志
	BidHedgeFlag TThostFtdcHedgeFlagType
	// 本地报价编号
	QuoteLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报价提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 报价提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 报价编号
	QuoteSysID TThostFtdcOrderSysIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 报价状态
	QuoteStatus TThostFtdcOrderStatusType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 卖方报单编号
	AskOrderSysID TThostFtdcOrderSysIDType
	// 买方报单编号
	BidOrderSysID TThostFtdcOrderSysIDType
	// 应价编号
	ForQuoteSysID TThostFtdcOrderSysIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
}

交易所报价信息

type CThostFtdcExchangeRateField

type CThostFtdcExchangeRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 源币种
	FromCurrencyID TThostFtdcCurrencyIDType
	// 源币种单位数量
	FromCurrencyUnit TThostFtdcCurrencyUnitType
	// 目标币种
	ToCurrencyID TThostFtdcCurrencyIDType
	// 汇率
	ExchangeRate TThostFtdcExchangeRateType
}

汇率

type CThostFtdcExchangeSequenceField

type CThostFtdcExchangeSequenceField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 合约交易状态
	MarketStatus TThostFtdcInstrumentStatusType
}

交易所状态

type CThostFtdcExchangeTradeField

type CThostFtdcExchangeTradeField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 成交编号
	TradeID TThostFtdcTradeIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 交易角色
	TradingRole TThostFtdcTradingRoleType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 价格
	Price TThostFtdcPriceType
	// 数量
	Volume TThostFtdcVolumeType
	// 成交时期
	TradeDate TThostFtdcDateType
	// 成交时间
	TradeTime TThostFtdcTimeType
	// 成交类型
	TradeType TThostFtdcTradeTypeType
	// 成交价来源
	PriceSource TThostFtdcPriceSourceType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 成交来源
	TradeSource TThostFtdcTradeSourceType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所成交

type CThostFtdcExecOrderActionField

type CThostFtdcExecOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 执行宣告操作引用
	ExecOrderActionRef TThostFtdcOrderActionRefType
	// 执行宣告引用
	ExecOrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行宣告操作编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地执行宣告编号
	ExecOrderLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 执行类型
	ActionType TThostFtdcActionTypeType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

执行宣告操作

type CThostFtdcExecOrderField

type CThostFtdcExecOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 执行宣告引用
	ExecOrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 执行类型
	ActionType TThostFtdcActionTypeType
	// 保留头寸申请的持仓方向
	PosiDirection TThostFtdcPosiDirectionType
	// 期权行权后是否保留期货头寸的标记,该字段已废弃
	ReservePositionFlag TThostFtdcExecOrderPositionFlagType
	// 期权行权后生成的头寸是否自动平仓
	CloseFlag TThostFtdcExecOrderCloseFlagType
	// 本地执行宣告编号
	ExecOrderLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 执行宣告提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 执行宣告编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 执行结果
	ExecResult TThostFtdcExecResultType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 操作用户代码
	ActiveUserID TThostFtdcUserIDType
	// 经纪公司报单编号
	BrokerExecOrderSeq TThostFtdcSequenceNoType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

执行宣告

type CThostFtdcFensUserInfoField

type CThostFtdcFensUserInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 登录模式
	LoginMode TThostFtdcLoginModeType
}

Fens用户信息

type CThostFtdcForQuoteField

type CThostFtdcForQuoteField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 询价引用
	ForQuoteRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 本地询价编号
	ForQuoteLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 询价状态
	ForQuoteStatus TThostFtdcForQuoteStatusType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 操作用户代码
	ActiveUserID TThostFtdcUserIDType
	// 经纪公司询价编号
	BrokerForQutoSeq TThostFtdcSequenceNoType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

询价

type CThostFtdcForQuoteParamField

type CThostFtdcForQuoteParamField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 最新价
	LastPrice TThostFtdcPriceType
	// 价差
	PriceInterval TThostFtdcPriceType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

询价价差参数

type CThostFtdcForQuoteRspField

type CThostFtdcForQuoteRspField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 询价编号
	ForQuoteSysID TThostFtdcOrderSysIDType
	// 询价时间
	ForQuoteTime TThostFtdcTimeType
	// 业务日期
	ActionDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

发给做市商的询价请求

type CThostFtdcForceUserLogoutField

type CThostFtdcForceUserLogoutField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

强制交易员退出

type CThostFtdcFrontStatusField

type CThostFtdcFrontStatusField struct {
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 上次报告日期
	LastReportDate TThostFtdcDateType
	// 上次报告时间
	LastReportTime TThostFtdcTimeType
	// 是否活跃
	IsActive TThostFtdcBoolType
}

前置状态

type CThostFtdcFutureLimitPosiParamField

type CThostFtdcFutureLimitPosiParamField struct {
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 当日投机开仓数量限制
	SpecOpenVolume TThostFtdcVolumeType
	// 当日套利开仓数量限制
	ArbiOpenVolume TThostFtdcVolumeType
	// 当日投机+套利开仓数量限制
	OpenVolume TThostFtdcVolumeType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

期货持仓限制参数

type CThostFtdcFutureSignIOField

type CThostFtdcFutureSignIOField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
}

期商签到签退

type CThostFtdcIPListField

type CThostFtdcIPListField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 是否白名单
	IsWhite TThostFtdcBoolType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

IP列表

type CThostFtdcIndexPriceField

type CThostFtdcIndexPriceField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 指数现货收盘价
	ClosePrice TThostFtdcPriceType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

股指现货指数

type CThostFtdcInputBatchOrderActionField

type CThostFtdcInputBatchOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报单操作引用
	OrderActionRef TThostFtdcOrderActionRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入批量报单操作

type CThostFtdcInputCombActionField

type CThostFtdcInputCombActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 组合引用
	CombActionRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 数量
	Volume TThostFtdcVolumeType
	// 组合指令方向
	CombDirection TThostFtdcCombDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入的申请组合

type CThostFtdcInputExecOrderActionField

type CThostFtdcInputExecOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 执行宣告操作引用
	ExecOrderActionRef TThostFtdcOrderActionRefType
	// 执行宣告引用
	ExecOrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行宣告操作编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入执行宣告操作

type CThostFtdcInputExecOrderField

type CThostFtdcInputExecOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 执行宣告引用
	ExecOrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 执行类型
	ActionType TThostFtdcActionTypeType
	// 保留头寸申请的持仓方向
	PosiDirection TThostFtdcPosiDirectionType
	// 期权行权后是否保留期货头寸的标记,该字段已废弃
	ReservePositionFlag TThostFtdcExecOrderPositionFlagType
	// 期权行权后生成的头寸是否自动平仓
	CloseFlag TThostFtdcExecOrderCloseFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入的执行宣告

type CThostFtdcInputForQuoteField

type CThostFtdcInputForQuoteField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 询价引用
	ForQuoteRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入的询价

type CThostFtdcInputOptionSelfCloseActionField

type CThostFtdcInputOptionSelfCloseActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 期权自对冲操作引用
	OptionSelfCloseActionRef TThostFtdcOrderActionRefType
	// 期权自对冲引用
	OptionSelfCloseRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 期权自对冲操作编号
	OptionSelfCloseSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入期权自对冲操作

type CThostFtdcInputOptionSelfCloseField

type CThostFtdcInputOptionSelfCloseField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 期权自对冲引用
	OptionSelfCloseRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 期权行权的头寸是否自对冲
	OptSelfCloseFlag TThostFtdcOptSelfCloseFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入的期权自对冲

type CThostFtdcInputOrderActionField

type CThostFtdcInputOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报单操作引用
	OrderActionRef TThostFtdcOrderActionRefType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量变化
	VolumeChange TThostFtdcVolumeType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入报单操作

type CThostFtdcInputOrderField

type CThostFtdcInputOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 报单价格条件
	OrderPriceType TThostFtdcOrderPriceTypeType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 组合开平标志
	CombOffsetFlag TThostFtdcCombOffsetFlagType
	// 组合投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量
	VolumeTotalOriginal TThostFtdcVolumeType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
	// GTD日期
	GTDDate TThostFtdcDateType
	// 成交量类型
	VolumeCondition TThostFtdcVolumeConditionType
	// 最小成交量
	MinVolume TThostFtdcVolumeType
	// 触发条件
	ContingentCondition TThostFtdcContingentConditionType
	// 止损价
	StopPrice TThostFtdcPriceType
	// 强平原因
	ForceCloseReason TThostFtdcForceCloseReasonType
	// 自动挂起标志
	IsAutoSuspend TThostFtdcBoolType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 用户强评标志
	UserForceClose TThostFtdcBoolType
	// 互换单标志
	IsSwapOrder TThostFtdcBoolType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入报单

type CThostFtdcInputQuoteActionField

type CThostFtdcInputQuoteActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报价操作引用
	QuoteActionRef TThostFtdcOrderActionRefType
	// 报价引用
	QuoteRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报价操作编号
	QuoteSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入报价操作

type CThostFtdcInputQuoteField

type CThostFtdcInputQuoteField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报价引用
	QuoteRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 卖价格
	AskPrice TThostFtdcPriceType
	// 买价格
	BidPrice TThostFtdcPriceType
	// 卖数量
	AskVolume TThostFtdcVolumeType
	// 买数量
	BidVolume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 卖开平标志
	AskOffsetFlag TThostFtdcOffsetFlagType
	// 买开平标志
	BidOffsetFlag TThostFtdcOffsetFlagType
	// 卖投机套保标志
	AskHedgeFlag TThostFtdcHedgeFlagType
	// 买投机套保标志
	BidHedgeFlag TThostFtdcHedgeFlagType
	// 衍生卖报单引用
	AskOrderRef TThostFtdcOrderRefType
	// 衍生买报单引用
	BidOrderRef TThostFtdcOrderRefType
	// 应价编号
	ForQuoteSysID TThostFtdcOrderSysIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
	// 被顶单编号
	ReplaceSysID TThostFtdcOrderSysIDType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
}

输入的报价

type CThostFtdcInstrumentCommissionRateField

type CThostFtdcInstrumentCommissionRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 业务类型
	BizType TThostFtdcBizTypeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

合约手续费率

type CThostFtdcInstrumentField

type CThostFtdcInstrumentField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约名称
	InstrumentName TThostFtdcInstrumentNameType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldInstrumentIDType
	// 产品类型
	ProductClass TThostFtdcProductClassType
	// 交割年份
	DeliveryYear TThostFtdcYearType
	// 交割月
	DeliveryMonth TThostFtdcMonthType
	// 市价单最大下单量
	MaxMarketOrderVolume TThostFtdcVolumeType
	// 市价单最小下单量
	MinMarketOrderVolume TThostFtdcVolumeType
	// 限价单最大下单量
	MaxLimitOrderVolume TThostFtdcVolumeType
	// 限价单最小下单量
	MinLimitOrderVolume TThostFtdcVolumeType
	// 合约数量乘数
	VolumeMultiple TThostFtdcVolumeMultipleType
	// 最小变动价位
	PriceTick TThostFtdcPriceType
	// 创建日
	CreateDate TThostFtdcDateType
	// 上市日
	OpenDate TThostFtdcDateType
	// 到期日
	ExpireDate TThostFtdcDateType
	// 开始交割日
	StartDelivDate TThostFtdcDateType
	// 结束交割日
	EndDelivDate TThostFtdcDateType
	// 合约生命周期状态
	InstLifePhase TThostFtdcInstLifePhaseType
	// 当前是否交易
	IsTrading TThostFtdcBoolType
	// 持仓类型
	PositionType TThostFtdcPositionTypeType
	// 持仓日期类型
	PositionDateType TThostFtdcPositionDateTypeType
	// 多头保证金率
	LongMarginRatio TThostFtdcRatioType
	// 空头保证金率
	ShortMarginRatio TThostFtdcRatioType
	// 是否使用大额单边保证金算法
	MaxMarginSideAlgorithm TThostFtdcMaxMarginSideAlgorithmType
	// 保留的无效字段
	Reserve4 TThostFtdcOldInstrumentIDType
	// 执行价
	StrikePrice TThostFtdcPriceType
	// 期权类型
	OptionsType TThostFtdcOptionsTypeType
	// 合约基础商品乘数
	UnderlyingMultiple TThostFtdcUnderlyingMultipleType
	// 组合类型
	CombinationType TThostFtdcCombinationTypeType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 基础商品代码
	UnderlyingInstrID TThostFtdcInstrumentIDType
}

合约

type CThostFtdcInstrumentMarginRateAdjustField

type CThostFtdcInstrumentMarginRateAdjustField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 是否相对交易所收取
	IsRelative TThostFtdcBoolType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

合约保证金率调整

type CThostFtdcInstrumentMarginRateField

type CThostFtdcInstrumentMarginRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 是否相对交易所收取
	IsRelative TThostFtdcBoolType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

合约保证金率

type CThostFtdcInstrumentMarginRateULField

type CThostFtdcInstrumentMarginRateULField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

合约保证金率调整

type CThostFtdcInstrumentOrderCommRateField

type CThostFtdcInstrumentOrderCommRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 报单手续费
	OrderCommByVolume TThostFtdcRatioType
	// 撤单手续费
	OrderActionCommByVolume TThostFtdcRatioType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 报单手续费
	OrderCommByTrade TThostFtdcRatioType
	// 撤单手续费
	OrderActionCommByTrade TThostFtdcRatioType
}

当前报单手续费的详细内容

type CThostFtdcInstrumentStatusField

type CThostFtdcInstrumentStatusField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 结算组代码
	SettlementGroupID TThostFtdcSettlementGroupIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 合约交易状态
	InstrumentStatus TThostFtdcInstrumentStatusType
	// 交易阶段编号
	TradingSegmentSN TThostFtdcTradingSegmentSNType
	// 进入本状态时间
	EnterTime TThostFtdcTimeType
	// 进入本状态原因
	EnterReason TThostFtdcInstStatusEnterReasonType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

合约状态

type CThostFtdcInstrumentTradingRightField

type CThostFtdcInstrumentTradingRightField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易权限
	TradingRight TThostFtdcTradingRightType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

投资者合约交易权限

type CThostFtdcInvestUnitField

type CThostFtdcInvestUnitField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 投资者单元名称
	InvestorUnitName TThostFtdcPartyNameType
	// 投资者分组代码
	InvestorGroupID TThostFtdcInvestorIDType
	// 手续费率模板代码
	CommModelID TThostFtdcInvestorIDType
	// 保证金率模板代码
	MarginModelID TThostFtdcInvestorIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

投资单元

type CThostFtdcInvestorAccountField

type CThostFtdcInvestorAccountField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

投资者账户

type CThostFtdcInvestorCommodityGroupSPMMMarginField added in v2.0.8

type CThostFtdcInvestorCommodityGroupSPMMMarginField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
	// 优惠仓位应收保证金
	MarginBeforeDiscount TThostFtdcMoneyType
	// 不优惠仓位应收保证金
	MarginNoDiscount TThostFtdcMoneyType
	// 多头风险
	LongRisk TThostFtdcMoneyType
	// 空头风险
	ShortRisk TThostFtdcMoneyType
	// 商品群平仓冻结保证金
	CloseFrozenMargin TThostFtdcMoneyType
	// SPMM跨品种优惠系数
	InterCommodityRate TThostFtdcSPMMDiscountRatioType
	// 商品群最小保证金比例
	MiniMarginRatio TThostFtdcSPMMDiscountRatioType
	// 投资者保证金和交易所保证金的比例
	AdjustRatio TThostFtdcRatioType
	// SPMM品种内优惠汇总
	IntraCommodityDiscount TThostFtdcMoneyType
	// SPMM跨品种优惠
	InterCommodityDiscount TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 投资者保证金
	InvestorMargin TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 行权冻结资金
	StrikeFrozenMargin TThostFtdcMoneyType
}

投资者商品群SPMM记录

type CThostFtdcInvestorCommoditySPMMMarginField added in v2.0.8

type CThostFtdcInvestorCommoditySPMMMarginField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 商品组代码
	CommodityID TThostFtdcSPMMProductIDType
	// 优惠仓位应收保证金
	MarginBeforeDiscount TThostFtdcMoneyType
	// 不优惠仓位应收保证金
	MarginNoDiscount TThostFtdcMoneyType
	// 多头实仓风险
	LongPosRisk TThostFtdcMoneyType
	// 多头开仓冻结风险
	LongOpenFrozenRisk TThostFtdcMoneyType
	// 多头被平冻结风险
	LongCloseFrozenRisk TThostFtdcMoneyType
	// 空头实仓风险
	ShortPosRisk TThostFtdcMoneyType
	// 空头开仓冻结风险
	ShortOpenFrozenRisk TThostFtdcMoneyType
	// 空头被平冻结风险
	ShortCloseFrozenRisk TThostFtdcMoneyType
	// SPMM品种内跨期优惠系数
	IntraCommodityRate TThostFtdcSPMMDiscountRatioType
	// SPMM期权优惠系数
	OptionDiscountRate TThostFtdcSPMMDiscountRatioType
	// 实仓对冲优惠金额
	PosDiscount TThostFtdcMoneyType
	// 开仓报单对冲优惠金额
	OpenFrozenDiscount TThostFtdcMoneyType
	// 品种风险净头
	NetRisk TThostFtdcMoneyType
	// 平仓冻结保证金
	CloseFrozenMargin TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 行权冻结资金
	StrikeFrozenMargin TThostFtdcMoneyType
}

投资者商品组SPMM记录

type CThostFtdcInvestorField

type CThostFtdcInvestorField struct {
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者分组代码
	InvestorGroupID TThostFtdcInvestorIDType
	// 投资者名称
	InvestorName TThostFtdcPartyNameType
	// 证件类型
	IdentifiedCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 是否活跃
	IsActive TThostFtdcBoolType
	// 联系电话
	Telephone TThostFtdcTelephoneType
	// 通讯地址
	Address TThostFtdcAddressType
	// 开户日期
	OpenDate TThostFtdcDateType
	// 手机
	Mobile TThostFtdcMobileType
	// 手续费率模板代码
	CommModelID TThostFtdcInvestorIDType
	// 保证金率模板代码
	MarginModelID TThostFtdcInvestorIDType
	// 是否频率控制
	IsOrderFreq TThostFtdcEnumBoolType
	// 是否开仓限制
	IsOpenVolLimit TThostFtdcEnumBoolType
}

投资者

type CThostFtdcInvestorGroupField

type CThostFtdcInvestorGroupField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者分组代码
	InvestorGroupID TThostFtdcInvestorIDType
	// 投资者分组名称
	InvestorGroupName TThostFtdcInvestorGroupNameType
}

投资者组

type CThostFtdcInvestorInfoCntSettingField added in v2.0.8

type CThostFtdcInvestorInfoCntSettingField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 商品代码
	ProductID TThostFtdcProductIDType
	// 是否收取申报费
	IsCalInfoComm TThostFtdcBoolType
	// 是否限制信息量
	IsLimitInfoMax TThostFtdcBoolType
	// 信息量限制笔数
	InfoMaxLimit TThostFtdcVolumeType
}

投资者申报费阶梯收取设置

type CThostFtdcInvestorPortfMarginRatioField

type CThostFtdcInvestorPortfMarginRatioField struct {
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员对投资者收取的保证金和交易所对投资者收取的保证金的比例
	MarginRatio TThostFtdcRatioType
}

投资者新型组合保证金系数

type CThostFtdcInvestorPositionCombineDetailField

type CThostFtdcInvestorPositionCombineDetailField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 开仓日期
	OpenDate TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 组合编号
	ComTradeID TThostFtdcTradeIDType
	// 撮合编号
	TradeID TThostFtdcTradeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 买卖
	Direction TThostFtdcDirectionType
	// 持仓量
	TotalAmt TThostFtdcVolumeType
	// 投资者保证金
	Margin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 单腿乘数
	LegMultiple TThostFtdcLegMultipleType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 成交组号
	TradeGroupID TThostFtdcTradeGroupIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 组合持仓合约编码
	CombInstrumentID TThostFtdcInstrumentIDType
}

投资者组合持仓明细

type CThostFtdcInvestorPositionDetailField

type CThostFtdcInvestorPositionDetailField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 买卖
	Direction TThostFtdcDirectionType
	// 开仓日期
	OpenDate TThostFtdcDateType
	// 成交编号
	TradeID TThostFtdcTradeIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 开仓价
	OpenPrice TThostFtdcPriceType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 成交类型
	TradeType TThostFtdcTradeTypeType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 逐日盯市平仓盈亏
	CloseProfitByDate TThostFtdcMoneyType
	// 逐笔对冲平仓盈亏
	CloseProfitByTrade TThostFtdcMoneyType
	// 逐日盯市持仓盈亏
	PositionProfitByDate TThostFtdcMoneyType
	// 逐笔对冲持仓盈亏
	PositionProfitByTrade TThostFtdcMoneyType
	// 投资者保证金
	Margin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 昨结算价
	LastSettlementPrice TThostFtdcPriceType
	// 结算价
	SettlementPrice TThostFtdcPriceType
	// 平仓量
	CloseVolume TThostFtdcVolumeType
	// 平仓金额
	CloseAmount TThostFtdcMoneyType
	// 先开先平剩余数量
	TimeFirstVolume TThostFtdcVolumeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 特殊持仓标志
	SpecPosiType TThostFtdcSpecPosiTypeType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
}

投资者持仓明细

type CThostFtdcInvestorPositionField

type CThostFtdcInvestorPositionField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 持仓多空方向
	PosiDirection TThostFtdcPosiDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 持仓日期
	PositionDate TThostFtdcPositionDateType
	// 上日持仓
	YdPosition TThostFtdcVolumeType
	// 今日持仓
	Position TThostFtdcVolumeType
	// 多头冻结
	LongFrozen TThostFtdcVolumeType
	// 空头冻结
	ShortFrozen TThostFtdcVolumeType
	// 开仓冻结金额
	LongFrozenAmount TThostFtdcMoneyType
	// 开仓冻结金额
	ShortFrozenAmount TThostFtdcMoneyType
	// 开仓量
	OpenVolume TThostFtdcVolumeType
	// 平仓量
	CloseVolume TThostFtdcVolumeType
	// 开仓金额
	OpenAmount TThostFtdcMoneyType
	// 平仓金额
	CloseAmount TThostFtdcMoneyType
	// 持仓成本
	PositionCost TThostFtdcMoneyType
	// 上次占用的保证金
	PreMargin TThostFtdcMoneyType
	// 占用的保证金
	UseMargin TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 开仓成本
	OpenCost TThostFtdcMoneyType
	// 交易所保证金
	ExchangeMargin TThostFtdcMoneyType
	// 组合成交形成的持仓
	CombPosition TThostFtdcVolumeType
	// 组合多头冻结
	CombLongFrozen TThostFtdcVolumeType
	// 组合空头冻结
	CombShortFrozen TThostFtdcVolumeType
	// 逐日盯市平仓盈亏
	CloseProfitByDate TThostFtdcMoneyType
	// 逐笔对冲平仓盈亏
	CloseProfitByTrade TThostFtdcMoneyType
	// 今日持仓
	TodayPosition TThostFtdcVolumeType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 执行冻结
	StrikeFrozen TThostFtdcVolumeType
	// 执行冻结金额
	StrikeFrozenAmount TThostFtdcMoneyType
	// 放弃执行冻结
	AbandonFrozen TThostFtdcVolumeType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行冻结的昨仓
	YdStrikeFrozen TThostFtdcVolumeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 持仓成本差值
	PositionCostOffset TThostFtdcMoneyType
	// tas持仓手数
	TasPosition TThostFtdcVolumeType
	// tas持仓成本
	TasPositionCost TThostFtdcMoneyType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

投资者持仓

type CThostFtdcInvestorProdRCAMSMarginField added in v2.0.8

type CThostFtdcInvestorProdRCAMSMarginField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
	// 投套标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
	// 品种组合前风险
	RiskBeforeDiscount TThostFtdcMoneyType
	// 同合约对冲风险
	IntraInstrRisk TThostFtdcMoneyType
	// 品种买持仓风险
	BPosRisk TThostFtdcMoneyType
	// 品种卖持仓风险
	SPosRisk TThostFtdcMoneyType
	// 品种内对冲风险
	IntraProdRisk TThostFtdcMoneyType
	// 品种净持仓风险
	NetRisk TThostFtdcMoneyType
	// 品种间对冲风险
	InterProdRisk TThostFtdcMoneyType
	// 空头期权风险调整
	ShortOptRiskAdj TThostFtdcMoneyType
	// 空头期权权利金
	OptionRoyalty TThostFtdcMoneyType
	// 大边组合平仓冻结保证金
	MMSACloseFrozenMargin TThostFtdcMoneyType
	// 平策略组合冻结保证金
	CloseCombFrozenMargin TThostFtdcMoneyType
	// 平仓冻结保证金
	CloseFrozenMargin TThostFtdcMoneyType
	// 大边组合开仓冻结保证金
	MMSAOpenFrozenMargin TThostFtdcMoneyType
	// 交割月期货开仓冻结保证金
	DeliveryOpenFrozenMargin TThostFtdcMoneyType
	// 开仓冻结保证金
	OpenFrozenMargin TThostFtdcMoneyType
	// 投资者冻结保证金
	UseFrozenMargin TThostFtdcMoneyType
	// 大边组合交易所持仓保证金
	MMSAExchMargin TThostFtdcMoneyType
	// 交割月期货交易所持仓保证金
	DeliveryExchMargin TThostFtdcMoneyType
	// 策略组合交易所保证金
	CombExchMargin TThostFtdcMoneyType
	// 交易所持仓保证金
	ExchMargin TThostFtdcMoneyType
	// 投资者持仓保证金
	UseMargin TThostFtdcMoneyType
}

投资者品种RCAMS保证金

type CThostFtdcInvestorProdRULEMarginField added in v2.0.8

type CThostFtdcInvestorProdRULEMarginField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 合约类型
	InstrumentClass TThostFtdcInstrumentClassType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
	// 买标准持仓
	BStdPosition TThostFtdcStdPositionType
	// 卖标准持仓
	SStdPosition TThostFtdcStdPositionType
	// 买标准开仓冻结
	BStdOpenFrozen TThostFtdcStdPositionType
	// 卖标准开仓冻结
	SStdOpenFrozen TThostFtdcStdPositionType
	// 买标准平仓冻结
	BStdCloseFrozen TThostFtdcStdPositionType
	// 卖标准平仓冻结
	SStdCloseFrozen TThostFtdcStdPositionType
	// 品种内对冲标准持仓
	IntraProdStdPosition TThostFtdcStdPositionType
	// 品种内单腿标准持仓
	NetStdPosition TThostFtdcStdPositionType
	// 品种间对冲标准持仓
	InterProdStdPosition TThostFtdcStdPositionType
	// 单腿标准持仓
	SingleStdPosition TThostFtdcStdPositionType
	// 品种内对锁保证金
	IntraProdMargin TThostFtdcMoneyType
	// 品种间对锁保证金
	InterProdMargin TThostFtdcMoneyType
	// 跨品种单腿保证金
	SingleMargin TThostFtdcMoneyType
	// 非组合合约保证金
	NonCombMargin TThostFtdcMoneyType
	// 附加保证金
	AddOnMargin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 附加冻结保证金
	AddOnFrozenMargin TThostFtdcMoneyType
	// 开仓冻结保证金
	OpenFrozenMargin TThostFtdcMoneyType
	// 平仓冻结保证金
	CloseFrozenMargin TThostFtdcMoneyType
	// 品种保证金
	Margin TThostFtdcMoneyType
	// 冻结保证金
	FrozenMargin TThostFtdcMoneyType
}

投资者产品RULE保证金

type CThostFtdcInvestorProdSPBMDetailField

type CThostFtdcInvestorProdSPBMDetailField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 合约内对锁保证金
	IntraInstrMargin TThostFtdcMoneyType
	// 买归集保证金
	BCollectingMargin TThostFtdcMoneyType
	// 卖归集保证金
	SCollectingMargin TThostFtdcMoneyType
	// 品种内合约间对锁保证金
	IntraProdMargin TThostFtdcMoneyType
	// 净保证金
	NetMargin TThostFtdcMoneyType
	// 产品间对锁保证金
	InterProdMargin TThostFtdcMoneyType
	// 裸保证金
	SingleMargin TThostFtdcMoneyType
	// 附加保证金
	AddOnMargin TThostFtdcMoneyType
	// 交割月保证金
	DeliveryMargin TThostFtdcMoneyType
	// 看涨期权最低风险
	CallOptionMinRisk TThostFtdcMoneyType
	// 看跌期权最低风险
	PutOptionMinRisk TThostFtdcMoneyType
	// 卖方期权最低风险
	OptionMinRisk TThostFtdcMoneyType
	// 买方期权冲抵价值
	OptionValueOffset TThostFtdcMoneyType
	// 卖方期权权利金
	OptionRoyalty TThostFtdcMoneyType
	// 价值冲抵
	RealOptionValueOffset TThostFtdcMoneyType
	// 保证金
	Margin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
}

投资者产品SPBM明细

type CThostFtdcInvestorProductGroupMarginField

type CThostFtdcInvestorProductGroupMarginField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 多头冻结的保证金
	LongFrozenMargin TThostFtdcMoneyType
	// 空头冻结的保证金
	ShortFrozenMargin TThostFtdcMoneyType
	// 占用的保证金
	UseMargin TThostFtdcMoneyType
	// 多头保证金
	LongUseMargin TThostFtdcMoneyType
	// 空头保证金
	ShortUseMargin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 交易所多头保证金
	LongExchMargin TThostFtdcMoneyType
	// 交易所空头保证金
	ShortExchMargin TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 折抵总金额
	OffsetAmount TThostFtdcMoneyType
	// 多头折抵总金额
	LongOffsetAmount TThostFtdcMoneyType
	// 空头折抵总金额
	ShortOffsetAmount TThostFtdcMoneyType
	// 交易所折抵总金额
	ExchOffsetAmount TThostFtdcMoneyType
	// 交易所多头折抵总金额
	LongExchOffsetAmount TThostFtdcMoneyType
	// 交易所空头折抵总金额
	ShortExchOffsetAmount TThostFtdcMoneyType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 品种/跨品种标示
	ProductGroupID TThostFtdcInstrumentIDType
}

投资者品种/跨品种保证金

type CThostFtdcInvestorTradingRightField added in v2.0.8

type CThostFtdcInvestorTradingRightField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易权限
	InvstTradingRight TThostFtdcInvstTradingRightType
}

投资者交易权限设置

type CThostFtdcInvestorWithdrawAlgorithmField

type CThostFtdcInvestorWithdrawAlgorithmField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 可提资金比例
	UsingRatio TThostFtdcRatioType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 货币质押比率
	FundMortgageRatio TThostFtdcRatioType
}

经纪公司可提资金算法表

type CThostFtdcLinkManField

type CThostFtdcLinkManField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 联系人类型
	PersonType TThostFtdcPersonTypeType
	// 证件类型
	IdentifiedCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 名称
	PersonName TThostFtdcPartyNameType
	// 联系电话
	Telephone TThostFtdcTelephoneType
	// 通讯地址
	Address TThostFtdcAddressType
	// 邮政编码
	ZipCode TThostFtdcZipCodeType
	// 优先级
	Priority TThostFtdcPriorityType
	// 开户邮政编码
	UOAZipCode TThostFtdcUOAZipCodeType
	// 全称
	PersonFullName TThostFtdcInvestorFullNameType
}

联系人

type CThostFtdcLoadSettlementInfoField

type CThostFtdcLoadSettlementInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
}

装载结算信息

type CThostFtdcLoginForbiddenIPField

type CThostFtdcLoginForbiddenIPField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

禁止登录IP

type CThostFtdcLoginForbiddenUserField

type CThostFtdcLoginForbiddenUserField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

禁止登录用户

type CThostFtdcLoginInfoField

type CThostFtdcLoginInfoField struct {
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 登录日期
	LoginDate TThostFtdcDateType
	// 登录时间
	LoginTime TThostFtdcTimeType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// 系统名称
	SystemName TThostFtdcSystemNameType
	// 密码,已弃用
	PasswordDeprecated TThostFtdcPasswordType
	// 最大报单引用
	MaxOrderRef TThostFtdcOrderRefType
	// 上期所时间
	SHFETime TThostFtdcTimeType
	// 大商所时间
	DCETime TThostFtdcTimeType
	// 郑商所时间
	CZCETime TThostFtdcTimeType
	// 中金所时间
	FFEXTime TThostFtdcTimeType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 动态密码
	OneTimePassword TThostFtdcPasswordType
	// 能源中心时间
	INETime TThostFtdcTimeType
	// 查询时是否需要流控
	IsQryControl TThostFtdcBoolType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// 密码
	Password TThostFtdcPasswordType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

登录信息

type CThostFtdcLogoutAllField

type CThostFtdcLogoutAllField struct {
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 系统名称
	SystemName TThostFtdcSystemNameType
}

登录信息

type CThostFtdcMDTraderOfferField

type CThostFtdcMDTraderOfferField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 交易所交易员连接状态
	TraderConnectStatus TThostFtdcTraderConnectStatusType
	// 发出连接请求的日期
	ConnectRequestDate TThostFtdcDateType
	// 发出连接请求的时间
	ConnectRequestTime TThostFtdcTimeType
	// 上次报告日期
	LastReportDate TThostFtdcDateType
	// 上次报告时间
	LastReportTime TThostFtdcTimeType
	// 完成连接日期
	ConnectDate TThostFtdcDateType
	// 完成连接时间
	ConnectTime TThostFtdcTimeType
	// 启动日期
	StartDate TThostFtdcDateType
	// 启动时间
	StartTime TThostFtdcTimeType
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 本席位最大成交编号
	MaxTradeID TThostFtdcTradeIDType
	// 本席位最大报单备拷
	MaxOrderMessageReference TThostFtdcReturnCodeType
	// 撤单时选择席位算法
	OrderCancelAlg TThostFtdcOrderCancelAlgType
}

交易所行情报盘机

type CThostFtdcMMInstrumentCommissionRateField

type CThostFtdcMMInstrumentCommissionRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

做市商合约手续费率

type CThostFtdcMMOptionInstrCommRateField

type CThostFtdcMMOptionInstrCommRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 执行手续费率
	StrikeRatioByMoney TThostFtdcRatioType
	// 执行手续费
	StrikeRatioByVolume TThostFtdcRatioType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

当前做市商期权合约手续费的详细内容

type CThostFtdcManualSyncBrokerUserOTPField

type CThostFtdcManualSyncBrokerUserOTPField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 动态令牌类型
	OTPType TThostFtdcOTPTypeType
	// 第一个动态密码
	FirstOTP TThostFtdcPasswordType
	// 第二个动态密码
	SecondOTP TThostFtdcPasswordType
}

手工同步用户动态令牌

type CThostFtdcMarginModelField

type CThostFtdcMarginModelField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保证金率模板代码
	MarginModelID TThostFtdcInvestorIDType
	// 模板名称
	MarginModelName TThostFtdcCommModelNameType
}

投资者保证金率模板

type CThostFtdcMarketDataAsk23Field

type CThostFtdcMarketDataAsk23Field struct {
	// 申卖价二
	AskPrice2 TThostFtdcPriceType
	// 申卖量二
	AskVolume2 TThostFtdcVolumeType
	// 申卖价三
	AskPrice3 TThostFtdcPriceType
	// 申卖量三
	AskVolume3 TThostFtdcVolumeType
}

行情申卖二、三属性

type CThostFtdcMarketDataAsk45Field

type CThostFtdcMarketDataAsk45Field struct {
	// 申卖价四
	AskPrice4 TThostFtdcPriceType
	// 申卖量四
	AskVolume4 TThostFtdcVolumeType
	// 申卖价五
	AskPrice5 TThostFtdcPriceType
	// 申卖量五
	AskVolume5 TThostFtdcVolumeType
}

行情申卖四、五属性

type CThostFtdcMarketDataAveragePriceField

type CThostFtdcMarketDataAveragePriceField struct {
	// 当日均价
	AveragePrice TThostFtdcPriceType
}

成交均价

type CThostFtdcMarketDataBandingPriceField

type CThostFtdcMarketDataBandingPriceField struct {
	// 上带价
	BandingUpperPrice TThostFtdcPriceType
	// 下带价
	BandingLowerPrice TThostFtdcPriceType
}

行情上下带价

type CThostFtdcMarketDataBaseField

type CThostFtdcMarketDataBaseField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 昨收盘
	PreClosePrice TThostFtdcPriceType
	// 昨持仓量
	PreOpenInterest TThostFtdcLargeVolumeType
	// 昨虚实度
	PreDelta TThostFtdcRatioType
}

行情基础属性

type CThostFtdcMarketDataBestPriceField

type CThostFtdcMarketDataBestPriceField struct {
	// 申买价一
	BidPrice1 TThostFtdcPriceType
	// 申买量一
	BidVolume1 TThostFtdcVolumeType
	// 申卖价一
	AskPrice1 TThostFtdcPriceType
	// 申卖量一
	AskVolume1 TThostFtdcVolumeType
}

行情最优价属性

type CThostFtdcMarketDataBid23Field

type CThostFtdcMarketDataBid23Field struct {
	// 申买价二
	BidPrice2 TThostFtdcPriceType
	// 申买量二
	BidVolume2 TThostFtdcVolumeType
	// 申买价三
	BidPrice3 TThostFtdcPriceType
	// 申买量三
	BidVolume3 TThostFtdcVolumeType
}

行情申买二、三属性

type CThostFtdcMarketDataBid45Field

type CThostFtdcMarketDataBid45Field struct {
	// 申买价四
	BidPrice4 TThostFtdcPriceType
	// 申买量四
	BidVolume4 TThostFtdcVolumeType
	// 申买价五
	BidPrice5 TThostFtdcPriceType
	// 申买量五
	BidVolume5 TThostFtdcVolumeType
}

行情申买四、五属性

type CThostFtdcMarketDataExchangeField

type CThostFtdcMarketDataExchangeField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

行情交易所代码属性

type CThostFtdcMarketDataField

type CThostFtdcMarketDataField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 最新价
	LastPrice TThostFtdcPriceType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 昨收盘
	PreClosePrice TThostFtdcPriceType
	// 昨持仓量
	PreOpenInterest TThostFtdcLargeVolumeType
	// 今开盘
	OpenPrice TThostFtdcPriceType
	// 最高价
	HighestPrice TThostFtdcPriceType
	// 最低价
	LowestPrice TThostFtdcPriceType
	// 数量
	Volume TThostFtdcVolumeType
	// 成交金额
	Turnover TThostFtdcMoneyType
	// 持仓量
	OpenInterest TThostFtdcLargeVolumeType
	// 今收盘
	ClosePrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 涨停板价
	UpperLimitPrice TThostFtdcPriceType
	// 跌停板价
	LowerLimitPrice TThostFtdcPriceType
	// 昨虚实度
	PreDelta TThostFtdcRatioType
	// 今虚实度
	CurrDelta TThostFtdcRatioType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 最后修改毫秒
	UpdateMillisec TThostFtdcMillisecType
	// 业务日期
	ActionDay TThostFtdcDateType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

市场行情

type CThostFtdcMarketDataLastMatchField

type CThostFtdcMarketDataLastMatchField struct {
	// 最新价
	LastPrice TThostFtdcPriceType
	// 数量
	Volume TThostFtdcVolumeType
	// 成交金额
	Turnover TThostFtdcMoneyType
	// 持仓量
	OpenInterest TThostFtdcLargeVolumeType
}

行情最新成交属性

type CThostFtdcMarketDataStaticField

type CThostFtdcMarketDataStaticField struct {
	// 今开盘
	OpenPrice TThostFtdcPriceType
	// 最高价
	HighestPrice TThostFtdcPriceType
	// 最低价
	LowestPrice TThostFtdcPriceType
	// 今收盘
	ClosePrice TThostFtdcPriceType
	// 涨停板价
	UpperLimitPrice TThostFtdcPriceType
	// 跌停板价
	LowerLimitPrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 今虚实度
	CurrDelta TThostFtdcRatioType
}

行情静态属性

type CThostFtdcMarketDataUpdateTimeField

type CThostFtdcMarketDataUpdateTimeField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 最后修改毫秒
	UpdateMillisec TThostFtdcMillisecType
	// 业务日期
	ActionDay TThostFtdcDateType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

行情更新时间属性

type CThostFtdcMortgageParamField added in v2.0.8

type CThostFtdcMortgageParamField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 质押配比系数
	MortgageBalance TThostFtdcRatioType
	// 开仓是否验证质押配比
	CheckMortgageRatio TThostFtdcBoolType
}

质押配比参数

type CThostFtdcMulticastInstrumentField

type CThostFtdcMulticastInstrumentField struct {
	// 主题号
	TopicID TThostFtdcInstallIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约编号
	InstrumentNo TThostFtdcInstallIDType
	// 基准价
	CodePrice TThostFtdcPriceType
	// 合约数量乘数
	VolumeMultiple TThostFtdcVolumeMultipleType
	// 最小变动价位
	PriceTick TThostFtdcPriceType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

MulticastInstrument

type CThostFtdcNoticeField

type CThostFtdcNoticeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 消息正文
	Content TThostFtdcContentType
	// 经纪公司通知内容序列号
	SequenceLabel TThostFtdcSequenceLabelType
}

客户通知

type CThostFtdcNotifyFutureSignInField

type CThostFtdcNotifyFutureSignInField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// PIN密钥
	PinKey TThostFtdcPasswordKeyType
	// MAC密钥
	MacKey TThostFtdcPasswordKeyType
}

期商签到通知

type CThostFtdcNotifyFutureSignOutField

type CThostFtdcNotifyFutureSignOutField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

期商签退通知

type CThostFtdcNotifyQueryAccountField

type CThostFtdcNotifyQueryAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 银行可用金额
	BankUseAmount TThostFtdcTradeAmountType
	// 银行可取金额
	BankFetchAmount TThostFtdcTradeAmountType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

查询账户信息通知

type CThostFtdcNotifySyncKeyField

type CThostFtdcNotifySyncKeyField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 交易核心给银期报盘的消息
	Message TThostFtdcAddInfoType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

交易核心向银期报盘发出密钥同步处理结果的通知

type CThostFtdcOpenAccountField

type CThostFtdcOpenAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 汇钞标志
	CashExchangeCode TThostFtdcCashExchangeCodeType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 交易ID
	TID TThostFtdcTIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

银期开户信息

type CThostFtdcOptionInstrCommRateField

type CThostFtdcOptionInstrCommRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 执行手续费率
	StrikeRatioByMoney TThostFtdcRatioType
	// 执行手续费
	StrikeRatioByVolume TThostFtdcRatioType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

当前期权合约手续费的详细内容

type CThostFtdcOptionInstrDeltaField

type CThostFtdcOptionInstrDeltaField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// Delta值
	Delta TThostFtdcRatioType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

期权合约delta值

type CThostFtdcOptionInstrMarginAdjustField

type CThostFtdcOptionInstrMarginAdjustField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机空头保证金调整系数
	SShortMarginRatioByMoney TThostFtdcRatioType
	// 投机空头保证金调整系数
	SShortMarginRatioByVolume TThostFtdcMoneyType
	// 保值空头保证金调整系数
	HShortMarginRatioByMoney TThostFtdcRatioType
	// 保值空头保证金调整系数
	HShortMarginRatioByVolume TThostFtdcMoneyType
	// 套利空头保证金调整系数
	AShortMarginRatioByMoney TThostFtdcRatioType
	// 套利空头保证金调整系数
	AShortMarginRatioByVolume TThostFtdcMoneyType
	// 是否跟随交易所收取
	IsRelative TThostFtdcBoolType
	// 做市商空头保证金调整系数
	MShortMarginRatioByMoney TThostFtdcRatioType
	// 做市商空头保证金调整系数
	MShortMarginRatioByVolume TThostFtdcMoneyType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

当前期权合约保证金调整系数

type CThostFtdcOptionInstrMiniMarginField

type CThostFtdcOptionInstrMiniMarginField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 单位(手)期权合约最小保证金
	MinMargin TThostFtdcMoneyType
	// 取值方式
	ValueMethod TThostFtdcValueMethodType
	// 是否跟随交易所收取
	IsRelative TThostFtdcBoolType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

当前期权合约最小保证金

type CThostFtdcOptionInstrTradeCostField

type CThostFtdcOptionInstrTradeCostField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 期权合约保证金不变部分
	FixedMargin TThostFtdcMoneyType
	// 期权合约最小保证金
	MiniMargin TThostFtdcMoneyType
	// 期权合约权利金
	Royalty TThostFtdcMoneyType
	// 交易所期权合约保证金不变部分
	ExchFixedMargin TThostFtdcMoneyType
	// 交易所期权合约最小保证金
	ExchMiniMargin TThostFtdcMoneyType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

期权交易成本

type CThostFtdcOptionInstrTradingRightField

type CThostFtdcOptionInstrTradingRightField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 交易权限
	TradingRight TThostFtdcTradingRightType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

投资者期权合约交易权限

type CThostFtdcOptionSelfCloseActionField

type CThostFtdcOptionSelfCloseActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 期权自对冲操作引用
	OptionSelfCloseActionRef TThostFtdcOrderActionRefType
	// 期权自对冲引用
	OptionSelfCloseRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 期权自对冲操作编号
	OptionSelfCloseSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地期权自对冲编号
	OptionSelfCloseLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

期权自对冲操作

type CThostFtdcOptionSelfCloseField

type CThostFtdcOptionSelfCloseField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 期权自对冲引用
	OptionSelfCloseRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 期权行权的头寸是否自对冲
	OptSelfCloseFlag TThostFtdcOptSelfCloseFlagType
	// 本地期权自对冲编号
	OptionSelfCloseLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 期权自对冲提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 期权自对冲编号
	OptionSelfCloseSysID TThostFtdcOrderSysIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 自对冲结果
	ExecResult TThostFtdcExecResultType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 操作用户代码
	ActiveUserID TThostFtdcUserIDType
	// 经纪公司报单编号
	BrokerOptionSelfCloseSeq TThostFtdcSequenceNoType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

期权自对冲

type CThostFtdcOrderActionField

type CThostFtdcOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报单操作引用
	OrderActionRef TThostFtdcOrderActionRefType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量变化
	VolumeChange TThostFtdcVolumeType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

报单操作

type CThostFtdcOrderField

type CThostFtdcOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 报单价格条件
	OrderPriceType TThostFtdcOrderPriceTypeType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 组合开平标志
	CombOffsetFlag TThostFtdcCombOffsetFlagType
	// 组合投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量
	VolumeTotalOriginal TThostFtdcVolumeType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
	// GTD日期
	GTDDate TThostFtdcDateType
	// 成交量类型
	VolumeCondition TThostFtdcVolumeConditionType
	// 最小成交量
	MinVolume TThostFtdcVolumeType
	// 触发条件
	ContingentCondition TThostFtdcContingentConditionType
	// 止损价
	StopPrice TThostFtdcPriceType
	// 强平原因
	ForceCloseReason TThostFtdcForceCloseReasonType
	// 自动挂起标志
	IsAutoSuspend TThostFtdcBoolType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报单提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 报单提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 报单来源
	OrderSource TThostFtdcOrderSourceType
	// 报单状态
	OrderStatus TThostFtdcOrderStatusType
	// 报单类型
	OrderType TThostFtdcOrderTypeType
	// 今成交数量
	VolumeTraded TThostFtdcVolumeType
	// 剩余数量
	VolumeTotal TThostFtdcVolumeType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 委托时间
	InsertTime TThostFtdcTimeType
	// 激活时间
	ActiveTime TThostFtdcTimeType
	// 挂起时间
	SuspendTime TThostFtdcTimeType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 最后修改交易所交易员代码
	ActiveTraderID TThostFtdcTraderIDType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 用户强评标志
	UserForceClose TThostFtdcBoolType
	// 操作用户代码
	ActiveUserID TThostFtdcUserIDType
	// 经纪公司报单编号
	BrokerOrderSeq TThostFtdcSequenceNoType
	// 相关报单
	RelativeOrderSysID TThostFtdcOrderSysIDType
	// 郑商所成交数量
	ZCETotalTradedVolume TThostFtdcVolumeType
	// 互换单标志
	IsSwapOrder TThostFtdcBoolType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

报单

type CThostFtdcParkedOrderActionField

type CThostFtdcParkedOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报单操作引用
	OrderActionRef TThostFtdcOrderActionRefType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量变化
	VolumeChange TThostFtdcVolumeType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 预埋撤单单编号
	ParkedOrderActionID TThostFtdcParkedOrderActionIDType
	// 用户类型
	UserType TThostFtdcUserTypeType
	// 预埋撤单状态
	Status TThostFtdcParkedOrderStatusType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

输入预埋单操作

type CThostFtdcParkedOrderField

type CThostFtdcParkedOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 报单价格条件
	OrderPriceType TThostFtdcOrderPriceTypeType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 组合开平标志
	CombOffsetFlag TThostFtdcCombOffsetFlagType
	// 组合投机套保标志
	CombHedgeFlag TThostFtdcCombHedgeFlagType
	// 价格
	LimitPrice TThostFtdcPriceType
	// 数量
	VolumeTotalOriginal TThostFtdcVolumeType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
	// GTD日期
	GTDDate TThostFtdcDateType
	// 成交量类型
	VolumeCondition TThostFtdcVolumeConditionType
	// 最小成交量
	MinVolume TThostFtdcVolumeType
	// 触发条件
	ContingentCondition TThostFtdcContingentConditionType
	// 止损价
	StopPrice TThostFtdcPriceType
	// 强平原因
	ForceCloseReason TThostFtdcForceCloseReasonType
	// 自动挂起标志
	IsAutoSuspend TThostFtdcBoolType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 用户强评标志
	UserForceClose TThostFtdcBoolType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 预埋报单编号
	ParkedOrderID TThostFtdcParkedOrderIDType
	// 用户类型
	UserType TThostFtdcUserTypeType
	// 预埋单状态
	Status TThostFtdcParkedOrderStatusType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 互换单标志
	IsSwapOrder TThostFtdcBoolType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易编码
	ClientID TThostFtdcClientIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

预埋单

type CThostFtdcPartBrokerField

type CThostFtdcPartBrokerField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 是否活跃
	IsActive TThostFtdcBoolType
}

会员编码和经纪公司编码对照表

type CThostFtdcPortfTradeParamSettingField

type CThostFtdcPortfTradeParamSettingField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 新型组保算法
	Portfolio TThostFtdcPortfolioType
	// 撤单是否验资
	IsActionVerify TThostFtdcBoolType
	// 平仓是否验资
	IsCloseVerify TThostFtdcBoolType
}

组保交易参数设置

type CThostFtdcPositionProfitAlgorithmField

type CThostFtdcPositionProfitAlgorithmField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 盈亏算法
	Algorithm TThostFtdcAlgorithmType
	// 备注
	Memo TThostFtdcMemoType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

浮动盈亏算法

type CThostFtdcProductExchRateField

type CThostFtdcProductExchRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报价币种类型
	QuoteCurrencyID TThostFtdcCurrencyIDType
	// 汇率
	ExchangeRate TThostFtdcExchangeRateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

产品报价汇率

type CThostFtdcProductField

type CThostFtdcProductField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 产品名称
	ProductName TThostFtdcProductNameType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品类型
	ProductClass TThostFtdcProductClassType
	// 合约数量乘数
	VolumeMultiple TThostFtdcVolumeMultipleType
	// 最小变动价位
	PriceTick TThostFtdcPriceType
	// 市价单最大下单量
	MaxMarketOrderVolume TThostFtdcVolumeType
	// 市价单最小下单量
	MinMarketOrderVolume TThostFtdcVolumeType
	// 限价单最大下单量
	MaxLimitOrderVolume TThostFtdcVolumeType
	// 限价单最小下单量
	MinLimitOrderVolume TThostFtdcVolumeType
	// 持仓类型
	PositionType TThostFtdcPositionTypeType
	// 持仓日期类型
	PositionDateType TThostFtdcPositionDateTypeType
	// 平仓处理类型
	CloseDealType TThostFtdcCloseDealTypeType
	// 交易币种类型
	TradeCurrencyID TThostFtdcCurrencyIDType
	// 质押资金可用范围
	MortgageFundUseRange TThostFtdcMortgageFundUseRangeType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 合约基础商品乘数
	UnderlyingMultiple TThostFtdcUnderlyingMultipleType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 交易所产品代码
	ExchangeProductID TThostFtdcInstrumentIDType
	// 开仓量限制粒度
	OpenLimitControlLevel TThostFtdcOpenLimitControlLevelType
	// 报单频率控制粒度
	OrderFreqControlLevel TThostFtdcOrderFreqControlLevelType
}

产品

type CThostFtdcProductGroupField

type CThostFtdcProductGroupField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 产品组代码
	ProductGroupID TThostFtdcInstrumentIDType
}

投资者品种/跨品种保证金产品组

type CThostFtdcQryAccountregisterField

type CThostFtdcQryAccountregisterField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 银行编码
	BankID TThostFtdcBankIDType
	// 银行分支机构编码
	BankBranchID TThostFtdcBankBrchIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

请求查询银期签约关系

type CThostFtdcQryAuthForbiddenIPField

type CThostFtdcQryAuthForbiddenIPField struct {
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

查询禁止认证IP

type CThostFtdcQryBatchOrderActionField

type CThostFtdcQryBatchOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

查询批量报单操作

type CThostFtdcQryBrokerField

type CThostFtdcQryBrokerField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
}

查询经纪公司

type CThostFtdcQryBrokerTradingAlgosField

type CThostFtdcQryBrokerTradingAlgosField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询经纪公司交易算法

type CThostFtdcQryBrokerTradingParamsField

type CThostFtdcQryBrokerTradingParamsField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
}

查询经纪公司交易参数

type CThostFtdcQryBrokerUserEventField

type CThostFtdcQryBrokerUserEventField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户事件类型
	UserEventType TThostFtdcUserEventTypeType
}

查询经纪公司用户事件

type CThostFtdcQryBrokerUserField

type CThostFtdcQryBrokerUserField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询经纪公司用户

type CThostFtdcQryBrokerUserFunctionField

type CThostFtdcQryBrokerUserFunctionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询经纪公司用户权限

type CThostFtdcQryBulletinField

type CThostFtdcQryBulletinField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 公告编号
	BulletinID TThostFtdcBulletinIDType
	// 序列号
	SequenceNo TThostFtdcSequenceNoType
	// 公告类型
	NewsType TThostFtdcNewsTypeType
	// 紧急程度
	NewsUrgency TThostFtdcNewsUrgencyType
}

查询交易所公告

type CThostFtdcQryCFMMCBrokerKeyField

type CThostFtdcQryCFMMCBrokerKeyField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
}

查询保证金监管系统经纪公司密钥

type CThostFtdcQryCFMMCTradingAccountKeyField

type CThostFtdcQryCFMMCTradingAccountKeyField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

请求查询保证金监管系统经纪公司资金账户密钥

type CThostFtdcQryClassifiedInstrumentField

type CThostFtdcQryClassifiedInstrumentField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 合约交易状态
	TradingType TThostFtdcTradingTypeType
	// 合约分类类型
	ClassType TThostFtdcClassTypeType
}

查询分类合约

type CThostFtdcQryCombActionField

type CThostFtdcQryCombActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

申请组合查询

type CThostFtdcQryCombInstrumentGuardField

type CThostFtdcQryCombInstrumentGuardField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

组合合约安全系数查询

type CThostFtdcQryCombPromotionParamField

type CThostFtdcQryCombPromotionParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询组合优惠比例

type CThostFtdcQryCombinationLegField

type CThostFtdcQryCombinationLegField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldInstrumentIDType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
	// 单腿合约代码
	LegInstrumentID TThostFtdcInstrumentIDType
}

查询组合合约分腿

type CThostFtdcQryCommRateModelField

type CThostFtdcQryCommRateModelField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 手续费率模板代码
	CommModelID TThostFtdcInvestorIDType
}

请求查询投资者手续费率模板

type CThostFtdcQryContractBankField

type CThostFtdcQryContractBankField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分中心代码
	BankBrchID TThostFtdcBankBrchIDType
}

查询签约银行请求

type CThostFtdcQryCurrDRIdentityField

type CThostFtdcQryCurrDRIdentityField struct {
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
}

查询当前交易中心

type CThostFtdcQryDepthMarketDataField

type CThostFtdcQryDepthMarketDataField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询行情

type CThostFtdcQryEWarrantOffsetField

type CThostFtdcQryEWarrantOffsetField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询仓单折抵信息

type CThostFtdcQryErrExecOrderActionField

type CThostFtdcQryErrExecOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询错误执行宣告操作

type CThostFtdcQryErrExecOrderField

type CThostFtdcQryErrExecOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询错误执行宣告

type CThostFtdcQryErrOrderActionField

type CThostFtdcQryErrOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询错误报单操作

type CThostFtdcQryErrOrderField

type CThostFtdcQryErrOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询错误报单

type CThostFtdcQryExchangeCombActionField

type CThostFtdcQryExchangeCombActionField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所申请组合查询

type CThostFtdcQryExchangeExecOrderActionField

type CThostFtdcQryExchangeExecOrderActionField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
}

交易所执行宣告操作查询

type CThostFtdcQryExchangeExecOrderField

type CThostFtdcQryExchangeExecOrderField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所执行宣告查询

type CThostFtdcQryExchangeField

type CThostFtdcQryExchangeField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

查询交易所

type CThostFtdcQryExchangeForQuoteField

type CThostFtdcQryExchangeForQuoteField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所询价查询

type CThostFtdcQryExchangeMarginRateAdjustField

type CThostFtdcQryExchangeMarginRateAdjustField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询交易所调整保证金率

type CThostFtdcQryExchangeMarginRateField

type CThostFtdcQryExchangeMarginRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询交易所保证金率

type CThostFtdcQryExchangeOrderActionField

type CThostFtdcQryExchangeOrderActionField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
}

查询交易所报单操作

type CThostFtdcQryExchangeOrderField

type CThostFtdcQryExchangeOrderField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

查询交易所报单

type CThostFtdcQryExchangeQuoteActionField

type CThostFtdcQryExchangeQuoteActionField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
}

交易所报价操作查询

type CThostFtdcQryExchangeQuoteField

type CThostFtdcQryExchangeQuoteField struct {
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

交易所报价查询

type CThostFtdcQryExchangeRateField

type CThostFtdcQryExchangeRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 源币种
	FromCurrencyID TThostFtdcCurrencyIDType
	// 目标币种
	ToCurrencyID TThostFtdcCurrencyIDType
}

查询汇率

type CThostFtdcQryExchangeSequenceField

type CThostFtdcQryExchangeSequenceField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

查询交易所状态

type CThostFtdcQryExecOrderActionField

type CThostFtdcQryExecOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

执行宣告操作查询

type CThostFtdcQryExecOrderField

type CThostFtdcQryExecOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行宣告编号
	ExecOrderSysID TThostFtdcExecOrderSysIDType
	// 开始时间
	InsertTimeStart TThostFtdcTimeType
	// 结束时间
	InsertTimeEnd TThostFtdcTimeType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

执行宣告查询

type CThostFtdcQryForQuoteField

type CThostFtdcQryForQuoteField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 开始时间
	InsertTimeStart TThostFtdcTimeType
	// 结束时间
	InsertTimeEnd TThostFtdcTimeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

询价查询

type CThostFtdcQryForQuoteParamField

type CThostFtdcQryForQuoteParamField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询询价价差参数

type CThostFtdcQryFrontStatusField

type CThostFtdcQryFrontStatusField struct {
	// 前置编号
	FrontID TThostFtdcFrontIDType
}

查询前置状态

type CThostFtdcQryHisOrderField

type CThostFtdcQryHisOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 开始时间
	InsertTimeStart TThostFtdcTimeType
	// 结束时间
	InsertTimeEnd TThostFtdcTimeType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询报单

type CThostFtdcQryIPListField

type CThostFtdcQryIPListField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

查询IP列表

type CThostFtdcQryInstrumentCommissionRateField

type CThostFtdcQryInstrumentCommissionRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询手续费率

type CThostFtdcQryInstrumentField

type CThostFtdcQryInstrumentField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

查询合约

type CThostFtdcQryInstrumentMarginRateField

type CThostFtdcQryInstrumentMarginRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询合约保证金率

type CThostFtdcQryInstrumentOrderCommRateField

type CThostFtdcQryInstrumentOrderCommRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

报单手续费率查询

type CThostFtdcQryInstrumentStatusField

type CThostFtdcQryInstrumentStatusField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldExchangeInstIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

查询合约状态

type CThostFtdcQryInstrumentTradingRightField

type CThostFtdcQryInstrumentTradingRightField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询合约交易权限

type CThostFtdcQryInvestUnitField

type CThostFtdcQryInvestUnitField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

查询投资单元

type CThostFtdcQryInvestorCommodityGroupSPMMMarginField added in v2.0.8

type CThostFtdcQryInvestorCommodityGroupSPMMMarginField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
}

投资者商品群SPMM记录查询

type CThostFtdcQryInvestorCommoditySPMMMarginField added in v2.0.8

type CThostFtdcQryInvestorCommoditySPMMMarginField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 商品组代码
	CommodityID TThostFtdcSPMMProductIDType
}

投资者商品组SPMM记录查询

type CThostFtdcQryInvestorField

type CThostFtdcQryInvestorField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询投资者

type CThostFtdcQryInvestorGroupField

type CThostFtdcQryInvestorGroupField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
}

查询投资者组

type CThostFtdcQryInvestorPortfMarginRatioField

type CThostFtdcQryInvestorPortfMarginRatioField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

投资者新型组合保证金系数查询

type CThostFtdcQryInvestorPositionCombineDetailField

type CThostFtdcQryInvestorPositionCombineDetailField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 组合持仓合约编码
	CombInstrumentID TThostFtdcInstrumentIDType
}

查询组合持仓明细

type CThostFtdcQryInvestorPositionDetailField

type CThostFtdcQryInvestorPositionDetailField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询投资者持仓明细

type CThostFtdcQryInvestorPositionField

type CThostFtdcQryInvestorPositionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询投资者持仓

type CThostFtdcQryInvestorProdRCAMSMarginField added in v2.0.8

type CThostFtdcQryInvestorProdRCAMSMarginField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
}

投资者品种RCAMS保证金查询

type CThostFtdcQryInvestorProdRULEMarginField added in v2.0.8

type CThostFtdcQryInvestorProdRULEMarginField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
}

投资者产品RULE保证金查询

type CThostFtdcQryInvestorProdSPBMDetailField

type CThostFtdcQryInvestorProdSPBMDetailField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
}

投资者产品SPBM明细查询

type CThostFtdcQryInvestorProductGroupMarginField

type CThostFtdcQryInvestorProductGroupMarginField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 品种/跨品种标示
	ProductGroupID TThostFtdcInstrumentIDType
}

查询投资者品种/跨品种保证金

type CThostFtdcQryLinkManField

type CThostFtdcQryLinkManField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询联系人

type CThostFtdcQryLoginForbiddenIPField

type CThostFtdcQryLoginForbiddenIPField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

查询禁止登录IP

type CThostFtdcQryLoginForbiddenUserField

type CThostFtdcQryLoginForbiddenUserField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询禁止登录用户

type CThostFtdcQryMDTraderOfferField

type CThostFtdcQryMDTraderOfferField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
}

查询行情报盘机

type CThostFtdcQryMMInstrumentCommissionRateField

type CThostFtdcQryMMInstrumentCommissionRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询做市商合约手续费率

type CThostFtdcQryMMOptionInstrCommRateField

type CThostFtdcQryMMOptionInstrCommRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

做市商期权手续费率查询

type CThostFtdcQryMarginModelField

type CThostFtdcQryMarginModelField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 保证金率模板代码
	MarginModelID TThostFtdcInvestorIDType
}

请求查询投资者保证金率模板

type CThostFtdcQryMaxOrderVolumeField

type CThostFtdcQryMaxOrderVolumeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 最大允许报单数量
	MaxVolume TThostFtdcVolumeType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询最大报单数量

type CThostFtdcQryMaxOrderVolumeWithPriceField

type CThostFtdcQryMaxOrderVolumeWithPriceField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 最大允许报单数量
	MaxVolume TThostFtdcVolumeType
	// 报单价格
	Price TThostFtdcPriceType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

根据价格查询最大报单数量

type CThostFtdcQryMulticastInstrumentField

type CThostFtdcQryMulticastInstrumentField struct {
	// 主题号
	TopicID TThostFtdcInstallIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

QryMulticastInstrument

type CThostFtdcQryNoticeField

type CThostFtdcQryNoticeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
}

查询客户通知

type CThostFtdcQryOptionInstrCommRateField

type CThostFtdcQryOptionInstrCommRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

期权手续费率查询

type CThostFtdcQryOptionInstrTradeCostField

type CThostFtdcQryOptionInstrTradeCostField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 期权合约报价
	InputPrice TThostFtdcPriceType
	// 标的价格,填0则用昨结算价
	UnderlyingPrice TThostFtdcPriceType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

期权交易成本查询

type CThostFtdcQryOptionInstrTradingRightField

type CThostFtdcQryOptionInstrTradingRightField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询期权合约交易权限

type CThostFtdcQryOptionSelfCloseActionField

type CThostFtdcQryOptionSelfCloseActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

期权自对冲操作查询

type CThostFtdcQryOptionSelfCloseField

type CThostFtdcQryOptionSelfCloseField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 期权自对冲编号
	OptionSelfCloseSysID TThostFtdcOrderSysIDType
	// 开始时间
	InsertTimeStart TThostFtdcTimeType
	// 结束时间
	InsertTimeEnd TThostFtdcTimeType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

期权自对冲查询

type CThostFtdcQryOrderActionField

type CThostFtdcQryOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

查询报单操作

type CThostFtdcQryOrderField

type CThostFtdcQryOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 开始时间
	InsertTimeStart TThostFtdcTimeType
	// 结束时间
	InsertTimeEnd TThostFtdcTimeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询报单

type CThostFtdcQryParkedOrderActionField

type CThostFtdcQryParkedOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询预埋撤单

type CThostFtdcQryParkedOrderField

type CThostFtdcQryParkedOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询预埋单

type CThostFtdcQryPartBrokerField

type CThostFtdcQryPartBrokerField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
}

查询经纪公司会员代码

type CThostFtdcQryProductExchRateField

type CThostFtdcQryProductExchRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

产品报价汇率查询

type CThostFtdcQryProductField

type CThostFtdcQryProductField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 产品类型
	ProductClass TThostFtdcProductClassType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

查询产品

type CThostFtdcQryProductGroupField

type CThostFtdcQryProductGroupField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

查询产品组

type CThostFtdcQryQuoteActionField

type CThostFtdcQryQuoteActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

报价操作查询

type CThostFtdcQryQuoteField

type CThostFtdcQryQuoteField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报价编号
	QuoteSysID TThostFtdcOrderSysIDType
	// 开始时间
	InsertTimeStart TThostFtdcTimeType
	// 结束时间
	InsertTimeEnd TThostFtdcTimeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

报价查询

type CThostFtdcQryRCAMSCombProductInfoField added in v2.0.8

type CThostFtdcQryRCAMSCombProductInfoField struct {
	// 产品代码
	ProductID TThostFtdcProductIDType
	// 商品组代码
	CombProductID TThostFtdcProductIDType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
}

RCAMS产品组合信息查询

type CThostFtdcQryRCAMSInstrParameterField added in v2.0.8

type CThostFtdcQryRCAMSInstrParameterField struct {
	// 产品代码
	ProductID TThostFtdcProductIDType
}

RCAMS同合约风险对冲参数查询

type CThostFtdcQryRCAMSInterParameterField added in v2.0.8

type CThostFtdcQryRCAMSInterParameterField struct {
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
	// 产品组合代码1
	CombProduct1 TThostFtdcProductIDType
	// 产品组合代码2
	CombProduct2 TThostFtdcProductIDType
}

RCAMS跨品种风险折抵参数查询

type CThostFtdcQryRCAMSIntraParameterField added in v2.0.8

type CThostFtdcQryRCAMSIntraParameterField struct {
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
}

RCAMS品种内风险对冲参数查询

type CThostFtdcQryRCAMSInvestorCombPositionField added in v2.0.8

type CThostFtdcQryRCAMSInvestorCombPositionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
}

RCAMS策略组合持仓查询

type CThostFtdcQryRCAMSShortOptAdjustParamField added in v2.0.8

type CThostFtdcQryRCAMSShortOptAdjustParamField struct {
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
}

RCAMS空头期权风险调整参数查询

type CThostFtdcQryRULEInstrParameterField added in v2.0.8

type CThostFtdcQryRULEInstrParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

RULE合约保证金参数查询

type CThostFtdcQryRULEInterParameterField added in v2.0.8

type CThostFtdcQryRULEInterParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
}

RULE跨品种抵扣参数查询

type CThostFtdcQryRULEIntraParameterField added in v2.0.8

type CThostFtdcQryRULEIntraParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
}

RULE品种内对锁仓折扣参数查询

type CThostFtdcQryRiskSettleInvstPositionField

type CThostFtdcQryRiskSettleInvstPositionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

投资者风险结算持仓查询

type CThostFtdcQryRiskSettleProductStatusField

type CThostFtdcQryRiskSettleProductStatusField struct {
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
}

风险结算产品查询

type CThostFtdcQrySPBMAddOnInterParameterField added in v2.0.8

type CThostFtdcQrySPBMAddOnInterParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM附加跨品种抵扣参数查询

type CThostFtdcQrySPBMFutureParameterField

type CThostFtdcQrySPBMFutureParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM期货合约保证金参数查询

type CThostFtdcQrySPBMInterParameterField

type CThostFtdcQrySPBMInterParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM跨品种抵扣参数查询

type CThostFtdcQrySPBMIntraParameterField

type CThostFtdcQrySPBMIntraParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM品种内对锁仓折扣参数查询

type CThostFtdcQrySPBMInvestorPortfDefField

type CThostFtdcQrySPBMInvestorPortfDefField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

投资者套餐选择查询

type CThostFtdcQrySPBMOptionParameterField

type CThostFtdcQrySPBMOptionParameterField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM期权合约保证金参数查询

type CThostFtdcQrySPBMPortfDefinitionField

type CThostFtdcQrySPBMPortfDefinitionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 组合保证金套餐代码
	PortfolioDefID TThostFtdcPortfolioDefIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
}

组合保证金套餐查询

type CThostFtdcQrySPMMInstParamField added in v2.0.8

type CThostFtdcQrySPMMInstParamField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

SPMM合约参数查询

type CThostFtdcQrySPMMProductParamField added in v2.0.8

type CThostFtdcQrySPMMProductParamField struct {
	// 产品代码
	ProductID TThostFtdcSPMMProductIDType
}

SPMM产品参数查询

type CThostFtdcQrySecAgentACIDMapField

type CThostFtdcQrySecAgentACIDMapField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 资金账户
	AccountID TThostFtdcAccountIDType
	// 币种
	CurrencyID TThostFtdcCurrencyIDType
}

二级代理操作员银期权限查询

type CThostFtdcQrySecAgentCheckModeField

type CThostFtdcQrySecAgentCheckModeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
}

查询二级代理商资金校验模式

type CThostFtdcQrySecAgentTradeInfoField

type CThostFtdcQrySecAgentTradeInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 境外中介机构资金帐号
	BrokerSecAgentID TThostFtdcAccountIDType
}

查询二级代理商信息

type CThostFtdcQrySettlementInfoConfirmField

type CThostFtdcQrySettlementInfoConfirmField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

查询结算信息确认域

type CThostFtdcQrySettlementInfoField

type CThostFtdcQrySettlementInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易日
	TradingDay TThostFtdcDateType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

查询投资者结算结果

type CThostFtdcQryStrikeOffsetField

type CThostFtdcQryStrikeOffsetField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

期权执行偏移值查询

type CThostFtdcQrySuperUserField

type CThostFtdcQrySuperUserField struct {
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询管理用户

type CThostFtdcQrySuperUserFunctionField

type CThostFtdcQrySuperUserFunctionField struct {
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询管理用户功能权限

type CThostFtdcQrySyncDelaySwapField

type CThostFtdcQrySyncDelaySwapField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 延时换汇流水号
	DelaySwapSeqNo TThostFtdcDepositSeqNoType
}

查询延时换汇同步

type CThostFtdcQrySyncDepositField

type CThostFtdcQrySyncDepositField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 出入金流水号
	DepositSeqNo TThostFtdcDepositSeqNoType
}

查询出入金流水

type CThostFtdcQrySyncFundMortgageField

type CThostFtdcQrySyncFundMortgageField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 货币质押流水号
	MortgageSeqNo TThostFtdcDepositSeqNoType
}

查询货币质押流水

type CThostFtdcQrySyncStatusField

type CThostFtdcQrySyncStatusField struct {
	// 交易日
	TradingDay TThostFtdcDateType
}

查询组合合约分腿

type CThostFtdcQryThostUserFunctionField added in v2.0.8

type CThostFtdcQryThostUserFunctionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

Thost终端用户功能权限查询

type CThostFtdcQryTradeField

type CThostFtdcQryTradeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 成交编号
	TradeID TThostFtdcTradeIDType
	// 开始时间
	TradeTimeStart TThostFtdcTimeType
	// 结束时间
	TradeTimeEnd TThostFtdcTimeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

查询成交

type CThostFtdcQryTraderAssignField added in v2.0.8

type CThostFtdcQryTraderAssignField struct {
	// 交易员代码
	TraderID TThostFtdcTraderIDType
}

席位与交易中心对应关系维护查询

type CThostFtdcQryTraderField

type CThostFtdcQryTraderField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
}

查询交易员

type CThostFtdcQryTraderOfferField

type CThostFtdcQryTraderOfferField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
}

查询交易员报盘机

type CThostFtdcQryTradingAccountField

type CThostFtdcQryTradingAccountField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 业务类型
	BizType TThostFtdcBizTypeType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
}

查询资金账户

type CThostFtdcQryTradingCodeField

type CThostFtdcQryTradingCodeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 交易编码类型
	ClientIDType TThostFtdcClientIDTypeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

查询交易编码

type CThostFtdcQryTradingNoticeField

type CThostFtdcQryTradingNoticeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

查询交易事件通知

type CThostFtdcQryTransferBankField

type CThostFtdcQryTransferBankField struct {
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分中心代码
	BankBrchID TThostFtdcBankBrchIDType
}

查询转帐银行

type CThostFtdcQryTransferSerialField

type CThostFtdcQryTransferSerialField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 银行编码
	BankID TThostFtdcBankIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

请求查询转帐流水

type CThostFtdcQryUserRightsAssignField

type CThostFtdcQryUserRightsAssignField struct {
	// 应用单元代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询用户下单权限分配表

type CThostFtdcQryUserSessionField

type CThostFtdcQryUserSessionField struct {
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

查询用户会话

type CThostFtdcQueryBrokerDepositField

type CThostFtdcQueryBrokerDepositField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
}

查询经纪公司资金

type CThostFtdcQueryCFMMCTradingAccountTokenField

type CThostFtdcQueryCFMMCTradingAccountTokenField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

查询监控中心用户令牌

type CThostFtdcQueryFreqField

type CThostFtdcQueryFreqField struct {
	// 查询频率
	QueryFreq TThostFtdcQueryFreqType
}

查询频率,每秒查询比数

type CThostFtdcQuoteActionField

type CThostFtdcQuoteActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 报价操作引用
	QuoteActionRef TThostFtdcOrderActionRefType
	// 报价引用
	QuoteRef TThostFtdcOrderRefType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 报价操作编号
	QuoteSysID TThostFtdcOrderSysIDType
	// 操作标志
	ActionFlag TThostFtdcActionFlagType
	// 操作日期
	ActionDate TThostFtdcDateType
	// 操作时间
	ActionTime TThostFtdcTimeType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报价编号
	QuoteLocalID TThostFtdcOrderLocalIDType
	// 操作本地编号
	ActionLocalID TThostFtdcOrderLocalIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 报单操作状态
	OrderActionStatus TThostFtdcOrderActionStatusType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

报价操作

type CThostFtdcQuoteField

type CThostFtdcQuoteField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报价引用
	QuoteRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 卖价格
	AskPrice TThostFtdcPriceType
	// 买价格
	BidPrice TThostFtdcPriceType
	// 卖数量
	AskVolume TThostFtdcVolumeType
	// 买数量
	BidVolume TThostFtdcVolumeType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 卖开平标志
	AskOffsetFlag TThostFtdcOffsetFlagType
	// 买开平标志
	BidOffsetFlag TThostFtdcOffsetFlagType
	// 卖投机套保标志
	AskHedgeFlag TThostFtdcHedgeFlagType
	// 买投机套保标志
	BidHedgeFlag TThostFtdcHedgeFlagType
	// 本地报价编号
	QuoteLocalID TThostFtdcOrderLocalIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 报价提示序号
	NotifySequence TThostFtdcSequenceNoType
	// 报价提交状态
	OrderSubmitStatus TThostFtdcOrderSubmitStatusType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 报价编号
	QuoteSysID TThostFtdcOrderSysIDType
	// 报单日期
	InsertDate TThostFtdcDateType
	// 插入时间
	InsertTime TThostFtdcTimeType
	// 撤销时间
	CancelTime TThostFtdcTimeType
	// 报价状态
	QuoteStatus TThostFtdcOrderStatusType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 卖方报单编号
	AskOrderSysID TThostFtdcOrderSysIDType
	// 买方报单编号
	BidOrderSysID TThostFtdcOrderSysIDType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 状态信息
	StatusMsg TThostFtdcErrorMsgType
	// 操作用户代码
	ActiveUserID TThostFtdcUserIDType
	// 经纪公司报价编号
	BrokerQuoteSeq TThostFtdcSequenceNoType
	// 衍生卖报单引用
	AskOrderRef TThostFtdcOrderRefType
	// 衍生买报单引用
	BidOrderRef TThostFtdcOrderRefType
	// 应价编号
	ForQuoteSysID TThostFtdcOrderSysIDType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 资金账号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 保留的无效字段
	Reserve3 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// IP地址
	IPAddress TThostFtdcIPAddressType
	// 被顶单编号
	ReplaceSysID TThostFtdcOrderSysIDType
	// 有效期类型
	TimeCondition TThostFtdcTimeConditionType
}

报价

type CThostFtdcRCAMSCombProductInfoField added in v2.0.8

type CThostFtdcRCAMSCombProductInfoField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcProductIDType
	// 商品组代码
	CombProductID TThostFtdcProductIDType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
}

RCAMS产品组合信息

type CThostFtdcRCAMSInstrParameterField added in v2.0.8

type CThostFtdcRCAMSInstrParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcProductIDType
	// 同合约风险对冲比率
	HedgeRate TThostFtdcHedgeRateType
}

RCAMS同合约风险对冲参数

type CThostFtdcRCAMSInterParameterField added in v2.0.8

type CThostFtdcRCAMSInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
	// 优先级
	Priority TThostFtdcRCAMSPriorityType
	// 折抵率
	CreditRate TThostFtdcHedgeRateType
	// 产品组合代码1
	CombProduct1 TThostFtdcProductIDType
	// 产品组合代码2
	CombProduct2 TThostFtdcProductIDType
}

RCAMS跨品种风险折抵参数

type CThostFtdcRCAMSIntraParameterField added in v2.0.8

type CThostFtdcRCAMSIntraParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
	// 品种内对冲比率
	HedgeRate TThostFtdcHedgeRateType
}

RCAMS品种内风险对冲参数

type CThostFtdcRCAMSInvestorCombPositionField added in v2.0.8

type CThostFtdcRCAMSInvestorCombPositionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投套标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 持仓多空方向
	PosiDirection TThostFtdcPosiDirectionType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 交易所组合合约代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 持仓量
	TotalAmt TThostFtdcVolumeType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 投资者保证金
	Margin TThostFtdcMoneyType
}

RCAMS策略组合持仓

type CThostFtdcRCAMSShortOptAdjustParamField added in v2.0.8

type CThostFtdcRCAMSShortOptAdjustParamField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
	// 投套标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 空头期权风险调整标准
	AdjustValue TThostFtdcAdjustValueType
}

RCAMS空头期权风险调整参数

type CThostFtdcRULEInstrParameterField added in v2.0.8

type CThostFtdcRULEInstrParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约类型
	InstrumentClass TThostFtdcInstrumentClassType
	// 标准合约
	StdInstrumentID TThostFtdcInstrumentIDType
	// 投机买折算系数
	BSpecRatio TThostFtdcRatioType
	// 投机卖折算系数
	SSpecRatio TThostFtdcRatioType
	// 套保买折算系数
	BHedgeRatio TThostFtdcRatioType
	// 套保卖折算系数
	SHedgeRatio TThostFtdcRatioType
	// 买附加风险保证金
	BAddOnMargin TThostFtdcMoneyType
	// 卖附加风险保证金
	SAddOnMargin TThostFtdcMoneyType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
}

RULE合约保证金参数

type CThostFtdcRULEInterParameterField added in v2.0.8

type CThostFtdcRULEInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 优先级
	SpreadId TThostFtdcSpreadIdType
	// 品种间对锁仓费率折扣比例
	InterRate TThostFtdcRatioType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
	// 腿1比例系数
	Leg1PropFactor TThostFtdcCommonIntType
	// 腿2比例系数
	Leg2PropFactor TThostFtdcCommonIntType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
	// 商品群名称
	CommodityGroupName TThostFtdcInstrumentNameType
}

RULE跨品种抵扣参数

type CThostFtdcRULEIntraParameterField added in v2.0.8

type CThostFtdcRULEIntraParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 标准合约
	StdInstrumentID TThostFtdcInstrumentIDType
	// 标准合约保证金
	StdInstrMargin TThostFtdcMoneyType
	// 一般月份合约组合保证金系数
	UsualIntraRate TThostFtdcRatioType
	// 临近交割合约组合保证金系数
	DeliveryIntraRate TThostFtdcRatioType
}

RULE品种内对锁仓折扣参数

type CThostFtdcRemoveParkedOrderActionField

type CThostFtdcRemoveParkedOrderActionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 预埋撤单编号
	ParkedOrderActionID TThostFtdcParkedOrderActionIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

删除预埋撤单

type CThostFtdcRemoveParkedOrderField

type CThostFtdcRemoveParkedOrderField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 预埋报单编号
	ParkedOrderID TThostFtdcParkedOrderIDType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

删除预埋单

type CThostFtdcReqApiHandshakeField

type CThostFtdcReqApiHandshakeField struct {
	// api与front通信密钥版本号
	CryptoKeyVersion TThostFtdcCryptoKeyVersionType
}

api握手请求

type CThostFtdcReqAuthenticateField

type CThostFtdcReqAuthenticateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 认证码
	AuthCode TThostFtdcAuthCodeType
	// App代码
	AppID TThostFtdcAppIDType
}

客户端认证请求

type CThostFtdcReqCancelAccountField

type CThostFtdcReqCancelAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 汇钞标志
	CashExchangeCode TThostFtdcCashExchangeCodeType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 交易ID
	TID TThostFtdcTIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

转帐销户请求

type CThostFtdcReqChangeAccountField

type CThostFtdcReqChangeAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 新银行帐号
	NewBankAccount TThostFtdcBankAccountType
	// 新银行密码
	NewBankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易ID
	TID TThostFtdcTIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

变更银行账户请求

type CThostFtdcReqDayEndFileReadyField

type CThostFtdcReqDayEndFileReadyField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 文件业务功能
	FileBusinessCode TThostFtdcFileBusinessCodeType
	// 摘要
	Digest TThostFtdcDigestType
}

日终文件就绪请求

type CThostFtdcReqFutureSignOutField

type CThostFtdcReqFutureSignOutField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
}

期商签退请求

type CThostFtdcReqGenUserCaptchaField

type CThostFtdcReqGenUserCaptchaField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

用户发出获取安全安全登陆方法请求

type CThostFtdcReqGenUserTextField

type CThostFtdcReqGenUserTextField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

用户发出获取安全安全登陆方法请求

type CThostFtdcReqOpenAccountField

type CThostFtdcReqOpenAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 汇钞标志
	CashExchangeCode TThostFtdcCashExchangeCodeType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 交易ID
	TID TThostFtdcTIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

转帐开户请求

type CThostFtdcReqQueryAccountField

type CThostFtdcReqQueryAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

查询账户信息请求

type CThostFtdcReqQueryTradeResultBySerialField

type CThostFtdcReqQueryTradeResultBySerialField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 流水号
	Reference TThostFtdcSerialType
	// 本流水号发布者的机构类型
	RefrenceIssureType TThostFtdcInstitutionTypeType
	// 本流水号发布者机构编码
	RefrenceIssure TThostFtdcOrganCodeType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 转帐金额
	TradeAmount TThostFtdcTradeAmountType
	// 摘要
	Digest TThostFtdcDigestType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

查询指定流水号的交易结果请求

type CThostFtdcReqRepealField

type CThostFtdcReqRepealField struct {
	// 冲正时间间隔
	RepealTimeInterval TThostFtdcRepealTimeIntervalType
	// 已经冲正次数
	RepealedTimes TThostFtdcRepealedTimesType
	// 银行冲正标志
	BankRepealFlag TThostFtdcBankRepealFlagType
	// 期商冲正标志
	BrokerRepealFlag TThostFtdcBrokerRepealFlagType
	// 被冲正平台流水号
	PlateRepealSerial TThostFtdcPlateSerialType
	// 被冲正银行流水号
	BankRepealSerial TThostFtdcBankSerialType
	// 被冲正期货流水号
	FutureRepealSerial TThostFtdcFutureSerialType
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 转帐金额
	TradeAmount TThostFtdcTradeAmountType
	// 期货可取金额
	FutureFetchAmount TThostFtdcTradeAmountType
	// 费用支付标志
	FeePayFlag TThostFtdcFeePayFlagType
	// 应收客户费用
	CustFee TThostFtdcCustFeeType
	// 应收期货公司费用
	BrokerFee TThostFtdcFutureFeeType
	// 发送方给接收方的消息
	Message TThostFtdcAddInfoType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 转账交易状态
	TransferStatus TThostFtdcTransferStatusType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

冲正请求

type CThostFtdcReqSyncKeyField

type CThostFtdcReqSyncKeyField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 交易核心给银期报盘的消息
	Message TThostFtdcAddInfoType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
}

交易核心向银期报盘发出密钥同步请求

type CThostFtdcReqTransferField

type CThostFtdcReqTransferField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 转帐金额
	TradeAmount TThostFtdcTradeAmountType
	// 期货可取金额
	FutureFetchAmount TThostFtdcTradeAmountType
	// 费用支付标志
	FeePayFlag TThostFtdcFeePayFlagType
	// 应收客户费用
	CustFee TThostFtdcCustFeeType
	// 应收期货公司费用
	BrokerFee TThostFtdcFutureFeeType
	// 发送方给接收方的消息
	Message TThostFtdcAddInfoType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 转账交易状态
	TransferStatus TThostFtdcTransferStatusType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

转账请求

type CThostFtdcReqUserAuthMethodField

type CThostFtdcReqUserAuthMethodField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

用户发出获取安全安全登陆方法请求

type CThostFtdcReqUserLoginField

type CThostFtdcReqUserLoginField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 密码
	Password TThostFtdcPasswordType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 动态密码
	OneTimePassword TThostFtdcPasswordType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// 终端IP端口
	ClientIPPort TThostFtdcIPPortType
	// 终端IP地址
	ClientIPAddress TThostFtdcIPAddressType
}

用户登录请求

type CThostFtdcReqUserLoginSCField

type CThostFtdcReqUserLoginSCField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 密码
	Password TThostFtdcPasswordType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 动态密码
	OneTimePassword TThostFtdcPasswordType
	// 终端IP地址
	ClientIPAddress TThostFtdcIPAddressType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// 终端IP端口
	ClientIPPort TThostFtdcIPPortType
	// 认证码
	AuthCode TThostFtdcAuthCodeType
	// App代码
	AppID TThostFtdcAppIDType
}

国密用户登录请求

type CThostFtdcReqUserLoginWithCaptchaField

type CThostFtdcReqUserLoginWithCaptchaField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 密码
	Password TThostFtdcPasswordType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// 图形验证码的文字内容
	Captcha TThostFtdcPasswordType
	// 终端IP端口
	ClientIPPort TThostFtdcIPPortType
	// 终端IP地址
	ClientIPAddress TThostFtdcIPAddressType
}

用户发出带图形验证码的登录请求请求

type CThostFtdcReqUserLoginWithOTPField

type CThostFtdcReqUserLoginWithOTPField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 密码
	Password TThostFtdcPasswordType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// OTP密码
	OTPPassword TThostFtdcPasswordType
	// 终端IP端口
	ClientIPPort TThostFtdcIPPortType
	// 终端IP地址
	ClientIPAddress TThostFtdcIPAddressType
}

用户发出带动态验证码的登录请求请求

type CThostFtdcReqUserLoginWithTextField

type CThostFtdcReqUserLoginWithTextField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 密码
	Password TThostFtdcPasswordType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// 短信验证码文字内容
	Text TThostFtdcPasswordType
	// 终端IP端口
	ClientIPPort TThostFtdcIPPortType
	// 终端IP地址
	ClientIPAddress TThostFtdcIPAddressType
}

用户发出带短信验证码的登录请求请求

type CThostFtdcReqVerifyApiKeyField

type CThostFtdcReqVerifyApiKeyField struct {
	// 握手回复数据长度
	ApiHandshakeDataLen TThostFtdcHandshakeDataLenType
	// 握手回复数据
	ApiHandshakeData TThostFtdcHandshakeDataType
}

api给front的验证key的请求

type CThostFtdcReserveOpenAccountConfirmField

type CThostFtdcReserveOpenAccountConfirmField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcLongIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易ID
	TID TThostFtdcTIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 预约开户银行流水号
	BankReserveOpenSeq TThostFtdcBankSerialType
	// 预约开户日期
	BookDate TThostFtdcTradeDateType
	// 预约开户验证密码
	BookPsw TThostFtdcPasswordType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

银期预约开户确认请求

type CThostFtdcReserveOpenAccountField

type CThostFtdcReserveOpenAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcLongIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 性别
	Gender TThostFtdcGenderType
	// 国家代码
	CountryCode TThostFtdcCountryCodeType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 地址
	Address TThostFtdcAddressType
	// 邮编
	ZipCode TThostFtdcZipCodeType
	// 电话号码
	Telephone TThostFtdcTelephoneType
	// 手机
	MobilePhone TThostFtdcMobilePhoneType
	// 传真
	Fax TThostFtdcFaxType
	// 电子邮件
	EMail TThostFtdcEMailType
	// 资金账户状态
	MoneyAccountStatus TThostFtdcMoneyAccountStatusType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易ID
	TID TThostFtdcTIDType
	// 预约开户状态
	ReserveOpenAccStas TThostFtdcReserveOpenAccStasType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

银期预约开户

type CThostFtdcReturnResultField

type CThostFtdcReturnResultField struct {
	// 返回代码
	ReturnCode TThostFtdcReturnCodeType
	// 返回码描述
	DescrInfoForReturnCode TThostFtdcDescrInfoForReturnCodeType
}

返回结果

type CThostFtdcRiskSettleInvstPositionField

type CThostFtdcRiskSettleInvstPositionField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 持仓多空方向
	PosiDirection TThostFtdcPosiDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 持仓日期
	PositionDate TThostFtdcPositionDateType
	// 上日持仓
	YdPosition TThostFtdcVolumeType
	// 今日持仓
	Position TThostFtdcVolumeType
	// 多头冻结
	LongFrozen TThostFtdcVolumeType
	// 空头冻结
	ShortFrozen TThostFtdcVolumeType
	// 开仓冻结金额
	LongFrozenAmount TThostFtdcMoneyType
	// 开仓冻结金额
	ShortFrozenAmount TThostFtdcMoneyType
	// 开仓量
	OpenVolume TThostFtdcVolumeType
	// 平仓量
	CloseVolume TThostFtdcVolumeType
	// 开仓金额
	OpenAmount TThostFtdcMoneyType
	// 平仓金额
	CloseAmount TThostFtdcMoneyType
	// 持仓成本
	PositionCost TThostFtdcMoneyType
	// 上次占用的保证金
	PreMargin TThostFtdcMoneyType
	// 占用的保证金
	UseMargin TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 开仓成本
	OpenCost TThostFtdcMoneyType
	// 交易所保证金
	ExchangeMargin TThostFtdcMoneyType
	// 组合成交形成的持仓
	CombPosition TThostFtdcVolumeType
	// 组合多头冻结
	CombLongFrozen TThostFtdcVolumeType
	// 组合空头冻结
	CombShortFrozen TThostFtdcVolumeType
	// 逐日盯市平仓盈亏
	CloseProfitByDate TThostFtdcMoneyType
	// 逐笔对冲平仓盈亏
	CloseProfitByTrade TThostFtdcMoneyType
	// 今日持仓
	TodayPosition TThostFtdcVolumeType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 执行冻结
	StrikeFrozen TThostFtdcVolumeType
	// 执行冻结金额
	StrikeFrozenAmount TThostFtdcMoneyType
	// 放弃执行冻结
	AbandonFrozen TThostFtdcVolumeType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行冻结的昨仓
	YdStrikeFrozen TThostFtdcVolumeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 持仓成本差值
	PositionCostOffset TThostFtdcMoneyType
	// tas持仓手数
	TasPosition TThostFtdcVolumeType
	// tas持仓成本
	TasPositionCost TThostFtdcMoneyType
}

投资者风险结算持仓

type CThostFtdcRiskSettleProductStatusField

type CThostFtdcRiskSettleProductStatusField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品编号
	ProductID TThostFtdcInstrumentIDType
	// 产品结算状态
	ProductStatus TThostFtdcProductStatusType
}

风险品种

type CThostFtdcRspApiHandshakeField

type CThostFtdcRspApiHandshakeField struct {
	// 握手回复数据长度
	FrontHandshakeDataLen TThostFtdcHandshakeDataLenType
	// 握手回复数据
	FrontHandshakeData TThostFtdcHandshakeDataType
	// API认证是否开启
	IsApiAuthEnabled TThostFtdcBoolType
}

front发给api的握手回复

type CThostFtdcRspAuthenticateField

type CThostFtdcRspAuthenticateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// App代码
	AppID TThostFtdcAppIDType
	// App类型
	AppType TThostFtdcAppTypeType
}

客户端认证响应

type CThostFtdcRspFutureSignInField

type CThostFtdcRspFutureSignInField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// PIN密钥
	PinKey TThostFtdcPasswordKeyType
	// MAC密钥
	MacKey TThostFtdcPasswordKeyType
}

期商签到响应

type CThostFtdcRspFutureSignOutField

type CThostFtdcRspFutureSignOutField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

期商签退响应

type CThostFtdcRspGenUserCaptchaField

type CThostFtdcRspGenUserCaptchaField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 图片信息长度
	CaptchaInfoLen TThostFtdcCaptchaInfoLenType
	// 图片信息
	CaptchaInfo TThostFtdcCaptchaInfoType
}

生成的图片验证码信息

type CThostFtdcRspGenUserTextField

type CThostFtdcRspGenUserTextField struct {
	// 短信验证码序号
	UserTextSeq TThostFtdcUserTextSeqType
}

短信验证码生成的回复

type CThostFtdcRspInfoField

type CThostFtdcRspInfoField struct {
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

响应信息

type CThostFtdcRspQueryAccountField

type CThostFtdcRspQueryAccountField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 银行可用金额
	BankUseAmount TThostFtdcTradeAmountType
	// 银行可取金额
	BankFetchAmount TThostFtdcTradeAmountType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

查询账户信息响应

type CThostFtdcRspQueryTradeResultBySerialField

type CThostFtdcRspQueryTradeResultBySerialField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 流水号
	Reference TThostFtdcSerialType
	// 本流水号发布者的机构类型
	RefrenceIssureType TThostFtdcInstitutionTypeType
	// 本流水号发布者机构编码
	RefrenceIssure TThostFtdcOrganCodeType
	// 原始返回代码
	OriginReturnCode TThostFtdcReturnCodeType
	// 原始返回码描述
	OriginDescrInfoForReturnCode TThostFtdcDescrInfoForReturnCodeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 转帐金额
	TradeAmount TThostFtdcTradeAmountType
	// 摘要
	Digest TThostFtdcDigestType
}

查询指定流水号的交易结果响应

type CThostFtdcRspRepealField

type CThostFtdcRspRepealField struct {
	// 冲正时间间隔
	RepealTimeInterval TThostFtdcRepealTimeIntervalType
	// 已经冲正次数
	RepealedTimes TThostFtdcRepealedTimesType
	// 银行冲正标志
	BankRepealFlag TThostFtdcBankRepealFlagType
	// 期商冲正标志
	BrokerRepealFlag TThostFtdcBrokerRepealFlagType
	// 被冲正平台流水号
	PlateRepealSerial TThostFtdcPlateSerialType
	// 被冲正银行流水号
	BankRepealSerial TThostFtdcBankSerialType
	// 被冲正期货流水号
	FutureRepealSerial TThostFtdcFutureSerialType
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 转帐金额
	TradeAmount TThostFtdcTradeAmountType
	// 期货可取金额
	FutureFetchAmount TThostFtdcTradeAmountType
	// 费用支付标志
	FeePayFlag TThostFtdcFeePayFlagType
	// 应收客户费用
	CustFee TThostFtdcCustFeeType
	// 应收期货公司费用
	BrokerFee TThostFtdcFutureFeeType
	// 发送方给接收方的消息
	Message TThostFtdcAddInfoType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 转账交易状态
	TransferStatus TThostFtdcTransferStatusType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

冲正响应

type CThostFtdcRspSyncKeyField

type CThostFtdcRspSyncKeyField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 交易核心给银期报盘的消息
	Message TThostFtdcAddInfoType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

交易核心向银期报盘发出密钥同步响应

type CThostFtdcRspTransferField

type CThostFtdcRspTransferField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 用户标识
	UserID TThostFtdcUserIDType
	// 验证客户证件号码标志
	VerifyCertNoFlag TThostFtdcYesNoIndicatorType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 转帐金额
	TradeAmount TThostFtdcTradeAmountType
	// 期货可取金额
	FutureFetchAmount TThostFtdcTradeAmountType
	// 费用支付标志
	FeePayFlag TThostFtdcFeePayFlagType
	// 应收客户费用
	CustFee TThostFtdcCustFeeType
	// 应收期货公司费用
	BrokerFee TThostFtdcFutureFeeType
	// 发送方给接收方的消息
	Message TThostFtdcAddInfoType
	// 摘要
	Digest TThostFtdcDigestType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 渠道标志
	DeviceID TThostFtdcDeviceIDType
	// 期货单位帐号类型
	BankSecuAccType TThostFtdcBankAccTypeType
	// 期货公司银行编码
	BrokerIDByBank TThostFtdcBankCodingForFutureType
	// 期货单位帐号
	BankSecuAcc TThostFtdcBankAccountType
	// 银行密码标志
	BankPwdFlag TThostFtdcPwdFlagType
	// 期货资金密码核对标志
	SecuPwdFlag TThostFtdcPwdFlagType
	// 交易柜员
	OperNo TThostFtdcOperNoType
	// 请求编号
	RequestID TThostFtdcRequestIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 转账交易状态
	TransferStatus TThostFtdcTransferStatusType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

银行发起银行资金转期货响应

type CThostFtdcRspUserAuthMethodField

type CThostFtdcRspUserAuthMethodField struct {
	// 当前可以用的认证模式
	UsableAuthMethod TThostFtdcCurrentAuthMethodType
}

用户发出获取安全安全登陆方法回复

type CThostFtdcRspUserLogin2Field

type CThostFtdcRspUserLogin2Field struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 登录成功时间
	LoginTime TThostFtdcTimeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 交易系统名称
	SystemName TThostFtdcSystemNameType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 最大报单引用
	MaxOrderRef TThostFtdcOrderRefType
	// 上期所时间
	SHFETime TThostFtdcTimeType
	// 大商所时间
	DCETime TThostFtdcTimeType
	// 郑商所时间
	CZCETime TThostFtdcTimeType
	// 中金所时间
	FFEXTime TThostFtdcTimeType
	// 能源中心时间
	INETime TThostFtdcTimeType
	// 随机串
	RandomString TThostFtdcRandomStringType
}

用户登录应答2

type CThostFtdcRspUserLoginField

type CThostFtdcRspUserLoginField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 登录成功时间
	LoginTime TThostFtdcTimeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 交易系统名称
	SystemName TThostFtdcSystemNameType
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 最大报单引用
	MaxOrderRef TThostFtdcOrderRefType
	// 上期所时间
	SHFETime TThostFtdcTimeType
	// 大商所时间
	DCETime TThostFtdcTimeType
	// 郑商所时间
	CZCETime TThostFtdcTimeType
	// 中金所时间
	FFEXTime TThostFtdcTimeType
	// 能源中心时间
	INETime TThostFtdcTimeType
	// 后台版本信息
	SysVersion TThostFtdcSysVersionType
	// 广期所时间
	GFEXTime TThostFtdcTimeType
}

用户登录应答

type CThostFtdcSPBMAddOnInterParameterField added in v2.0.8

type CThostFtdcSPBMAddOnInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 优先级
	SpreadId TThostFtdcSpreadIdType
	// 品种间对锁仓附加费率折扣比例
	AddOnInterRateZ2 TThostFtdcRatioType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM附加跨品种抵扣参数

type CThostFtdcSPBMFutureParameterField

type CThostFtdcSPBMFutureParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 期货合约因子
	Cvf TThostFtdcVolumeMultipleType
	// 阶段标识
	TimeRange TThostFtdcTimeRangeType
	// 品种保证金标准
	MarginRate TThostFtdcRatioType
	// 期货合约内部对锁仓费率折扣比例
	LockRateX TThostFtdcRatioType
	// 提高保证金标准
	AddOnRate TThostFtdcRatioType
	// 昨结算价
	PreSettlementPrice TThostFtdcPriceType
	// 期货合约内部对锁仓附加费率折扣比例
	AddOnLockRateX2 TThostFtdcRatioType
}

SPBM期货合约保证金参数

type CThostFtdcSPBMInterParameterField

type CThostFtdcSPBMInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 优先级
	SpreadId TThostFtdcSpreadIdType
	// 品种间对锁仓费率折扣比例
	InterRateZ TThostFtdcRatioType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
}

SPBM跨品种抵扣参数

type CThostFtdcSPBMIntraParameterField

type CThostFtdcSPBMIntraParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 品种内合约间对锁仓费率折扣比例
	IntraRateY TThostFtdcRatioType
	// 品种内合约间对锁仓附加费率折扣比例
	AddOnIntraRateY2 TThostFtdcRatioType
}

SPBM品种内对锁仓折扣参数

type CThostFtdcSPBMInvestorPortfDefField

type CThostFtdcSPBMInvestorPortfDefField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 组合保证金套餐代码
	PortfolioDefID TThostFtdcPortfolioDefIDType
}

投资者套餐选择

type CThostFtdcSPBMOptionParameterField

type CThostFtdcSPBMOptionParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 期权合约因子
	Cvf TThostFtdcVolumeMultipleType
	// 期权冲抵价格
	DownPrice TThostFtdcPriceType
	// Delta值
	Delta TThostFtdcDeltaType
	// 卖方期权风险转换最低值
	SlimiDelta TThostFtdcDeltaType
	// 昨结算价
	PreSettlementPrice TThostFtdcPriceType
}

SPBM期权合约保证金参数

type CThostFtdcSPBMPortfDefinitionField

type CThostFtdcSPBMPortfDefinitionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 组合保证金套餐代码
	PortfolioDefID TThostFtdcPortfolioDefIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 是否启用SPBM
	IsSPBM TThostFtdcBoolType
}

组合保证金套餐

type CThostFtdcSPMMInstParamField added in v2.0.8

type CThostFtdcSPMMInstParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// SPMM合约保证金算法
	InstMarginCalID TThostFtdcInstMarginCalIDType
	// 商品组代码
	CommodityID TThostFtdcSPMMProductIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
}

SPMM合约参数

type CThostFtdcSPMMProductParamField added in v2.0.8

type CThostFtdcSPMMProductParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcSPMMProductIDType
	// 商品组代码
	CommodityID TThostFtdcSPMMProductIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
}

SPMM产品参数

type CThostFtdcSecAgentACIDMapField

type CThostFtdcSecAgentACIDMapField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 资金账户
	AccountID TThostFtdcAccountIDType
	// 币种
	CurrencyID TThostFtdcCurrencyIDType
	// 境外中介机构资金帐号
	BrokerSecAgentID TThostFtdcAccountIDType
}

二级代理操作员银期权限

type CThostFtdcSecAgentCheckModeField

type CThostFtdcSecAgentCheckModeField struct {
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 币种
	CurrencyID TThostFtdcCurrencyIDType
	// 境外中介机构资金帐号
	BrokerSecAgentID TThostFtdcAccountIDType
	// 是否需要校验自己的资金账户
	CheckSelfAccount TThostFtdcBoolType
}

二级代理商资金校验模式

type CThostFtdcSecAgentTradeInfoField

type CThostFtdcSecAgentTradeInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 境外中介机构资金帐号
	BrokerSecAgentID TThostFtdcAccountIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 二级代理商姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

二级代理商信息

type CThostFtdcSettlementInfoConfirmField

type CThostFtdcSettlementInfoConfirmField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 确认日期
	ConfirmDate TThostFtdcDateType
	// 确认时间
	ConfirmTime TThostFtdcTimeType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

投资者结算结果确认信息

type CThostFtdcSettlementInfoField

type CThostFtdcSettlementInfoField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 消息正文
	Content TThostFtdcContentType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

投资者结算结果

type CThostFtdcSettlementRefField

type CThostFtdcSettlementRefField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
}

结算引用

type CThostFtdcSpecificInstrumentField

type CThostFtdcSpecificInstrumentField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

指定的合约

type CThostFtdcStrikeOffsetField

type CThostFtdcStrikeOffsetField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 执行偏移值
	Offset TThostFtdcMoneyType
	// 执行偏移类型
	OffsetType TThostFtdcStrikeOffsetTypeType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

当前期权合约执行偏移值的详细内容

type CThostFtdcSuperUserField

type CThostFtdcSuperUserField struct {
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户名称
	UserName TThostFtdcUserNameType
	// 密码
	Password TThostFtdcPasswordType
	// 是否活跃
	IsActive TThostFtdcBoolType
}

管理用户

type CThostFtdcSuperUserFunctionField

type CThostFtdcSuperUserFunctionField struct {
	// 用户代码
	UserID TThostFtdcUserIDType
	// 功能代码
	FunctionCode TThostFtdcFunctionCodeType
}

管理用户功能权限

type CThostFtdcSyncDelaySwapField

type CThostFtdcSyncDelaySwapField struct {
	// 换汇流水号
	DelaySwapSeqNo TThostFtdcDepositSeqNoType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 源币种
	FromCurrencyID TThostFtdcCurrencyIDType
	// 源金额
	FromAmount TThostFtdcMoneyType
	// 源换汇冻结金额(可用冻结)
	FromFrozenSwap TThostFtdcMoneyType
	// 源剩余换汇额度(可提冻结)
	FromRemainSwap TThostFtdcMoneyType
	// 目标币种
	ToCurrencyID TThostFtdcCurrencyIDType
	// 目标金额
	ToAmount TThostFtdcMoneyType
	// 是否手工换汇
	IsManualSwap TThostFtdcBoolType
	// 是否将所有外币的剩余换汇额度设置为0
	IsAllRemainSetZero TThostFtdcBoolType
}

延时换汇同步

type CThostFtdcSyncDelaySwapFrozenField

type CThostFtdcSyncDelaySwapFrozenField struct {
	// 换汇流水号
	DelaySwapSeqNo TThostFtdcDepositSeqNoType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 源币种
	FromCurrencyID TThostFtdcCurrencyIDType
	// 源剩余换汇额度(可提冻结)
	FromRemainSwap TThostFtdcMoneyType
	// 是否手工换汇
	IsManualSwap TThostFtdcBoolType
}

换汇可提冻结

type CThostFtdcSyncDeltaDceCombInstrumentField

type CThostFtdcSyncDeltaDceCombInstrumentField struct {
	// 合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 成交组号
	TradeGroupID TThostFtdcTradeGroupIDType
	// 投机套保标志
	CombHedgeFlag TThostFtdcHedgeFlagType
	// 组合类型
	CombinationType TThostFtdcDceCombinationTypeType
	// 买卖
	Direction TThostFtdcDirectionType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 期权组合保证金比例
	Xparameter TThostFtdcDiscountRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平组合优先级

type CThostFtdcSyncDeltaDepthMarketDataField

type CThostFtdcSyncDeltaDepthMarketDataField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 最新价
	LastPrice TThostFtdcPriceType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 昨收盘
	PreClosePrice TThostFtdcPriceType
	// 昨持仓量
	PreOpenInterest TThostFtdcLargeVolumeType
	// 今开盘
	OpenPrice TThostFtdcPriceType
	// 最高价
	HighestPrice TThostFtdcPriceType
	// 最低价
	LowestPrice TThostFtdcPriceType
	// 数量
	Volume TThostFtdcVolumeType
	// 成交金额
	Turnover TThostFtdcMoneyType
	// 持仓量
	OpenInterest TThostFtdcLargeVolumeType
	// 今收盘
	ClosePrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 涨停板价
	UpperLimitPrice TThostFtdcPriceType
	// 跌停板价
	LowerLimitPrice TThostFtdcPriceType
	// 昨虚实度
	PreDelta TThostFtdcRatioType
	// 今虚实度
	CurrDelta TThostFtdcRatioType
	// 最后修改时间
	UpdateTime TThostFtdcTimeType
	// 最后修改毫秒
	UpdateMillisec TThostFtdcMillisecType
	// 申买价一
	BidPrice1 TThostFtdcPriceType
	// 申买量一
	BidVolume1 TThostFtdcVolumeType
	// 申卖价一
	AskPrice1 TThostFtdcPriceType
	// 申卖量一
	AskVolume1 TThostFtdcVolumeType
	// 申买价二
	BidPrice2 TThostFtdcPriceType
	// 申买量二
	BidVolume2 TThostFtdcVolumeType
	// 申卖价二
	AskPrice2 TThostFtdcPriceType
	// 申卖量二
	AskVolume2 TThostFtdcVolumeType
	// 申买价三
	BidPrice3 TThostFtdcPriceType
	// 申买量三
	BidVolume3 TThostFtdcVolumeType
	// 申卖价三
	AskPrice3 TThostFtdcPriceType
	// 申卖量三
	AskVolume3 TThostFtdcVolumeType
	// 申买价四
	BidPrice4 TThostFtdcPriceType
	// 申买量四
	BidVolume4 TThostFtdcVolumeType
	// 申卖价四
	AskPrice4 TThostFtdcPriceType
	// 申卖量四
	AskVolume4 TThostFtdcVolumeType
	// 申买价五
	BidPrice5 TThostFtdcPriceType
	// 申买量五
	BidVolume5 TThostFtdcVolumeType
	// 申卖价五
	AskPrice5 TThostFtdcPriceType
	// 申卖量五
	AskVolume5 TThostFtdcVolumeType
	// 当日均价
	AveragePrice TThostFtdcPriceType
	// 业务日期
	ActionDay TThostFtdcDateType
	// 上带价
	BandingUpperPrice TThostFtdcPriceType
	// 下带价
	BandingLowerPrice TThostFtdcPriceType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平行情

type CThostFtdcSyncDeltaEWarrantOffsetField

type CThostFtdcSyncDeltaEWarrantOffsetField struct {
	// 交易日期
	TradingDay TThostFtdcTradeDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 数量
	Volume TThostFtdcVolumeType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平仓单折抵

type CThostFtdcSyncDeltaExchMarginRateField

type CThostFtdcSyncDeltaExchMarginRateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平交易所期货保证金率

type CThostFtdcSyncDeltaIndexPriceField

type CThostFtdcSyncDeltaIndexPriceField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 指数现货收盘价
	ClosePrice TThostFtdcPriceType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平现货指数

type CThostFtdcSyncDeltaInfoField

type CThostFtdcSyncDeltaInfoField struct {
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
	// 追平状态
	SyncDeltaStatus TThostFtdcSyncDeltaStatusType
	// 追平描述
	SyncDescription TThostFtdcSyncDescriptionType
	// 是否只有资金追平
	IsOnlyTrdDelta TThostFtdcBoolType
}

风险结算追平信息

type CThostFtdcSyncDeltaInitInvstMarginField

type CThostFtdcSyncDeltaInitInvstMarginField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 追平前总风险保证金
	LastRiskTotalInvstMargin TThostFtdcMoneyType
	// 追平前交易所总风险保证金
	LastRiskTotalExchMargin TThostFtdcMoneyType
	// 本次追平品种总保证金
	ThisSyncInvstMargin TThostFtdcMoneyType
	// 本次追平品种交易所总保证金
	ThisSyncExchMargin TThostFtdcMoneyType
	// 本次未追平品种总保证金
	RemainRiskInvstMargin TThostFtdcMoneyType
	// 本次未追平品种交易所总保证金
	RemainRiskExchMargin TThostFtdcMoneyType
	// 追平前总特殊产品风险保证金
	LastRiskSpecTotalInvstMargin TThostFtdcMoneyType
	// 追平前总特殊产品交易所风险保证金
	LastRiskSpecTotalExchMargin TThostFtdcMoneyType
	// 本次追平品种特殊产品总保证金
	ThisSyncSpecInvstMargin TThostFtdcMoneyType
	// 本次追平品种特殊产品交易所总保证金
	ThisSyncSpecExchMargin TThostFtdcMoneyType
	// 本次未追平品种特殊产品总保证金
	RemainRiskSpecInvstMargin TThostFtdcMoneyType
	// 本次未追平品种特殊产品交易所总保证金
	RemainRiskSpecExchMargin TThostFtdcMoneyType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

投资者风险结算总保证金

type CThostFtdcSyncDeltaInvestorSPMMModelField added in v2.0.8

type CThostFtdcSyncDeltaInvestorSPMMModelField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// SPMM模板ID
	SPMMModelID TThostFtdcSPMMModelIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平投资者SPMM模板选择

type CThostFtdcSyncDeltaInvstCommRateField

type CThostFtdcSyncDeltaInvstCommRateField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平期货手续费率

type CThostFtdcSyncDeltaInvstMarginRateField

type CThostFtdcSyncDeltaInvstMarginRateField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 是否相对交易所收取
	IsRelative TThostFtdcBoolType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平投资者期货保证金率

type CThostFtdcSyncDeltaInvstMarginRateULField

type CThostFtdcSyncDeltaInvstMarginRateULField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平期权标的调整保证金率

type CThostFtdcSyncDeltaInvstPosCombDtlField

type CThostFtdcSyncDeltaInvstPosCombDtlField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 开仓日期
	OpenDate TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 组合编号
	ComTradeID TThostFtdcTradeIDType
	// 撮合编号
	TradeID TThostFtdcTradeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 买卖
	Direction TThostFtdcDirectionType
	// 持仓量
	TotalAmt TThostFtdcVolumeType
	// 投资者保证金
	Margin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 单腿乘数
	LegMultiple TThostFtdcLegMultipleType
	// 成交组号
	TradeGroupID TThostFtdcTradeGroupIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平组合持仓明细

type CThostFtdcSyncDeltaInvstPosDtlField

type CThostFtdcSyncDeltaInvstPosDtlField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 买卖
	Direction TThostFtdcDirectionType
	// 开仓日期
	OpenDate TThostFtdcDateType
	// 成交编号
	TradeID TThostFtdcTradeIDType
	// 数量
	Volume TThostFtdcVolumeType
	// 开仓价
	OpenPrice TThostFtdcPriceType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 成交类型
	TradeType TThostFtdcTradeTypeType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 逐日盯市平仓盈亏
	CloseProfitByDate TThostFtdcMoneyType
	// 逐笔对冲平仓盈亏
	CloseProfitByTrade TThostFtdcMoneyType
	// 逐日盯市持仓盈亏
	PositionProfitByDate TThostFtdcMoneyType
	// 逐笔对冲持仓盈亏
	PositionProfitByTrade TThostFtdcMoneyType
	// 投资者保证金
	Margin TThostFtdcMoneyType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 昨结算价
	LastSettlementPrice TThostFtdcPriceType
	// 结算价
	SettlementPrice TThostFtdcPriceType
	// 平仓量
	CloseVolume TThostFtdcVolumeType
	// 平仓金额
	CloseAmount TThostFtdcMoneyType
	// 先开先平剩余数量
	TimeFirstVolume TThostFtdcVolumeType
	// 特殊持仓标志
	SpecPosiType TThostFtdcSpecPosiTypeType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平持仓明细

type CThostFtdcSyncDeltaOptExchMarginField

type CThostFtdcSyncDeltaOptExchMarginField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投机空头保证金调整系数
	SShortMarginRatioByMoney TThostFtdcRatioType
	// 投机空头保证金调整系数
	SShortMarginRatioByVolume TThostFtdcMoneyType
	// 保值空头保证金调整系数
	HShortMarginRatioByMoney TThostFtdcRatioType
	// 保值空头保证金调整系数
	HShortMarginRatioByVolume TThostFtdcMoneyType
	// 套利空头保证金调整系数
	AShortMarginRatioByMoney TThostFtdcRatioType
	// 套利空头保证金调整系数
	AShortMarginRatioByVolume TThostFtdcMoneyType
	// 做市商空头保证金调整系数
	MShortMarginRatioByMoney TThostFtdcRatioType
	// 做市商空头保证金调整系数
	MShortMarginRatioByVolume TThostFtdcMoneyType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平中金现货期权交易所保证金率

type CThostFtdcSyncDeltaOptInvstCommRateField

type CThostFtdcSyncDeltaOptInvstCommRateField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 执行手续费率
	StrikeRatioByMoney TThostFtdcRatioType
	// 执行手续费
	StrikeRatioByVolume TThostFtdcRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平期权手续费率

type CThostFtdcSyncDeltaOptInvstMarginField

type CThostFtdcSyncDeltaOptInvstMarginField struct {
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机空头保证金调整系数
	SShortMarginRatioByMoney TThostFtdcRatioType
	// 投机空头保证金调整系数
	SShortMarginRatioByVolume TThostFtdcMoneyType
	// 保值空头保证金调整系数
	HShortMarginRatioByMoney TThostFtdcRatioType
	// 保值空头保证金调整系数
	HShortMarginRatioByVolume TThostFtdcMoneyType
	// 套利空头保证金调整系数
	AShortMarginRatioByMoney TThostFtdcRatioType
	// 套利空头保证金调整系数
	AShortMarginRatioByVolume TThostFtdcMoneyType
	// 是否跟随交易所收取
	IsRelative TThostFtdcBoolType
	// 做市商空头保证金调整系数
	MShortMarginRatioByMoney TThostFtdcRatioType
	// 做市商空头保证金调整系数
	MShortMarginRatioByVolume TThostFtdcMoneyType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平中金现货期权投资者保证金率

type CThostFtdcSyncDeltaProductExchRateField

type CThostFtdcSyncDeltaProductExchRateField struct {
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 报价币种类型
	QuoteCurrencyID TThostFtdcCurrencyIDType
	// 汇率
	ExchangeRate TThostFtdcExchangeRateType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平交叉汇率

type CThostFtdcSyncDeltaProductStatusField

type CThostFtdcSyncDeltaProductStatusField struct {
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcInstrumentIDType
	// 是否允许交易
	ProductStatus TThostFtdcProductStatusType
}

风险结算追平产品信息

type CThostFtdcSyncDeltaRCAMSCombProdInfoField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSCombProdInfoField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcProductIDType
	// 商品组代码
	CombProductID TThostFtdcProductIDType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS产品组合信息

type CThostFtdcSyncDeltaRCAMSCombRuleDtlField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSCombRuleDtlField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 策略产品
	ProdGroup TThostFtdcProductIDType
	// 策略id
	RuleId TThostFtdcRuleIdType
	// 优先级
	Priority TThostFtdcRCAMSPriorityType
	// 投套标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 组合保证金标准
	CombMargin TThostFtdcMoneyType
	// 交易所组合合约代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 单腿合约代码
	LegInstrumentID TThostFtdcInstrumentIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 单腿乘数
	LegMultiple TThostFtdcLegMultipleType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS策略组合规则明细

type CThostFtdcSyncDeltaRCAMSInstrParameterField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSInstrParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcProductIDType
	// 同合约风险对冲比率
	HedgeRate TThostFtdcHedgeRateType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS同合约风险对冲参数

type CThostFtdcSyncDeltaRCAMSInterParameterField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 商品群代码
	ProductGroupID TThostFtdcProductIDType
	// 优先级
	Priority TThostFtdcRCAMSPriorityType
	// 折抵率
	CreditRate TThostFtdcHedgeRateType
	// 产品组合代码1
	CombProduct1 TThostFtdcProductIDType
	// 产品组合代码2
	CombProduct2 TThostFtdcProductIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS跨品种风险折抵参数

type CThostFtdcSyncDeltaRCAMSIntraParameterField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSIntraParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
	// 品种内对冲比率
	HedgeRate TThostFtdcHedgeRateType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS品种内风险对冲参数

type CThostFtdcSyncDeltaRCAMSInvstCombPosField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSInvstCombPosField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 投套标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 持仓多空方向
	PosiDirection TThostFtdcPosiDirectionType
	// 组合合约代码
	CombInstrumentID TThostFtdcInstrumentIDType
	// 单腿编号
	LegID TThostFtdcLegIDType
	// 交易所组合合约代码
	ExchangeInstID TThostFtdcExchangeInstIDType
	// 持仓量
	TotalAmt TThostFtdcVolumeType
	// 交易所保证金
	ExchMargin TThostFtdcMoneyType
	// 投资者保证金
	Margin TThostFtdcMoneyType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS策略组合持仓

type CThostFtdcSyncDeltaRCAMSSOptAdjParamField added in v2.0.8

type CThostFtdcSyncDeltaRCAMSSOptAdjParamField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品组合代码
	CombProductID TThostFtdcProductIDType
	// 投套标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 空头期权风险调整标准
	AdjustValue TThostFtdcAdjustValueType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RCAMS空头期权风险调整参数

type CThostFtdcSyncDeltaRULEInstrParameterField added in v2.0.8

type CThostFtdcSyncDeltaRULEInstrParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约类型
	InstrumentClass TThostFtdcInstrumentClassType
	// 标准合约
	StdInstrumentID TThostFtdcInstrumentIDType
	// 投机买折算系数
	BSpecRatio TThostFtdcRatioType
	// 投机卖折算系数
	SSpecRatio TThostFtdcRatioType
	// 套保买折算系数
	BHedgeRatio TThostFtdcRatioType
	// 套保卖折算系数
	SHedgeRatio TThostFtdcRatioType
	// 买附加风险保证金
	BAddOnMargin TThostFtdcMoneyType
	// 卖附加风险保证金
	SAddOnMargin TThostFtdcMoneyType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RULE合约保证金参数

type CThostFtdcSyncDeltaRULEInterParameterField added in v2.0.8

type CThostFtdcSyncDeltaRULEInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 优先级
	SpreadId TThostFtdcSpreadIdType
	// 品种间对锁仓费率折扣比例
	InterRate TThostFtdcRatioType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
	// 腿1比例系数
	Leg1PropFactor TThostFtdcCommonIntType
	// 腿2比例系数
	Leg2PropFactor TThostFtdcCommonIntType
	// 商品群号
	CommodityGroupID TThostFtdcCommodityGroupIDType
	// 商品群名称
	CommodityGroupName TThostFtdcInstrumentNameType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RULE跨品种抵扣参数

type CThostFtdcSyncDeltaRULEIntraParameterField added in v2.0.8

type CThostFtdcSyncDeltaRULEIntraParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 标准合约
	StdInstrumentID TThostFtdcInstrumentIDType
	// 标准合约保证金
	StdInstrMargin TThostFtdcMoneyType
	// 一般月份合约组合保证金系数
	UsualIntraRate TThostFtdcRatioType
	// 临近交割合约组合保证金系数
	DeliveryIntraRate TThostFtdcRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平RULE品种内对锁仓折扣参数

type CThostFtdcSyncDeltaSPBMAddOnInterParamField added in v2.0.8

type CThostFtdcSyncDeltaSPBMAddOnInterParamField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 优先级
	SpreadId TThostFtdcSpreadIdType
	// 品种间对锁仓附加费率折扣比例
	AddOnInterRateZ2 TThostFtdcRatioType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPBM附加跨品种抵扣参数

type CThostFtdcSyncDeltaSPBMFutureParameterField added in v2.0.8

type CThostFtdcSyncDeltaSPBMFutureParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 期货合约因子
	Cvf TThostFtdcVolumeMultipleType
	// 阶段标识
	TimeRange TThostFtdcTimeRangeType
	// 品种保证金标准
	MarginRate TThostFtdcRatioType
	// 期货合约内部对锁仓费率折扣比例
	LockRateX TThostFtdcRatioType
	// 提高保证金标准
	AddOnRate TThostFtdcRatioType
	// 昨结算价
	PreSettlementPrice TThostFtdcPriceType
	// 期货合约内部对锁仓附加费率折扣比例
	AddOnLockRateX2 TThostFtdcRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPBM期货合约保证金参数

type CThostFtdcSyncDeltaSPBMInterParameterField added in v2.0.8

type CThostFtdcSyncDeltaSPBMInterParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 优先级
	SpreadId TThostFtdcSpreadIdType
	// 品种间对锁仓费率折扣比例
	InterRateZ TThostFtdcRatioType
	// 第一腿构成品种
	Leg1ProdFamilyCode TThostFtdcInstrumentIDType
	// 第二腿构成品种
	Leg2ProdFamilyCode TThostFtdcInstrumentIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPBM跨品种抵扣参数

type CThostFtdcSyncDeltaSPBMIntraParameterField added in v2.0.8

type CThostFtdcSyncDeltaSPBMIntraParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 品种内合约间对锁仓费率折扣比例
	IntraRateY TThostFtdcRatioType
	// 品种内合约间对锁仓附加费率折扣比例
	AddOnIntraRateY2 TThostFtdcRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPBM品种内对锁仓折扣参数

type CThostFtdcSyncDeltaSPBMInvstPortfDefField added in v2.0.8

type CThostFtdcSyncDeltaSPBMInvstPortfDefField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 组合保证金套餐代码
	PortfolioDefID TThostFtdcPortfolioDefIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平投资者SPBM套餐选择

type CThostFtdcSyncDeltaSPBMOptionParameterField added in v2.0.8

type CThostFtdcSyncDeltaSPBMOptionParameterField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 期权合约因子
	Cvf TThostFtdcVolumeMultipleType
	// 期权冲抵价格
	DownPrice TThostFtdcPriceType
	// Delta值
	Delta TThostFtdcDeltaType
	// 卖方期权风险转换最低值
	SlimiDelta TThostFtdcDeltaType
	// 昨结算价
	PreSettlementPrice TThostFtdcPriceType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPBM期权合约保证金参数

type CThostFtdcSyncDeltaSPBMPortfDefinitionField added in v2.0.8

type CThostFtdcSyncDeltaSPBMPortfDefinitionField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 组合保证金套餐代码
	PortfolioDefID TThostFtdcPortfolioDefIDType
	// 品种代码
	ProdFamilyCode TThostFtdcInstrumentIDType
	// 是否启用SPBM
	IsSPBM TThostFtdcBoolType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPBM组合保证金套餐

type CThostFtdcSyncDeltaSPMMInstParamField added in v2.0.8

type CThostFtdcSyncDeltaSPMMInstParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// SPMM合约保证金算法
	InstMarginCalID TThostFtdcInstMarginCalIDType
	// 商品组代码
	CommodityID TThostFtdcSPMMProductIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPMM合约参数

type CThostFtdcSyncDeltaSPMMModelParamField added in v2.0.8

type CThostFtdcSyncDeltaSPMMModelParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// SPMM模板ID
	SPMMModelID TThostFtdcSPMMModelIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
	// SPMM品种内跨期优惠系数
	IntraCommodityRate TThostFtdcSPMMDiscountRatioType
	// SPMM品种间优惠系数
	InterCommodityRate TThostFtdcSPMMDiscountRatioType
	// SPMM期权优惠系数
	OptionDiscountRate TThostFtdcSPMMDiscountRatioType
	// 商品群最小保证金比例
	MiniMarginRatio TThostFtdcSPMMDiscountRatioType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPMM模板参数设置

type CThostFtdcSyncDeltaSPMMProductParamField added in v2.0.8

type CThostFtdcSyncDeltaSPMMProductParamField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 产品代码
	ProductID TThostFtdcSPMMProductIDType
	// 商品组代码
	CommodityID TThostFtdcSPMMProductIDType
	// 商品群代码
	CommodityGroupID TThostFtdcSPMMProductIDType
	// 操作标志
	ActionDirection TThostFtdcActionDirectionType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平SPMM产品相关参数

type CThostFtdcSyncDeltaTradingAccountField

type CThostFtdcSyncDeltaTradingAccountField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 上次质押金额
	PreMortgage TThostFtdcMoneyType
	// 上次信用额度
	PreCredit TThostFtdcMoneyType
	// 上次存款额
	PreDeposit TThostFtdcMoneyType
	// 上次结算准备金
	PreBalance TThostFtdcMoneyType
	// 上次占用的保证金
	PreMargin TThostFtdcMoneyType
	// 利息基数
	InterestBase TThostFtdcMoneyType
	// 利息收入
	Interest TThostFtdcMoneyType
	// 入金金额
	Deposit TThostFtdcMoneyType
	// 出金金额
	Withdraw TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 当前保证金总额
	CurrMargin TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 期货结算准备金
	Balance TThostFtdcMoneyType
	// 可用资金
	Available TThostFtdcMoneyType
	// 可取资金
	WithdrawQuota TThostFtdcMoneyType
	// 基本准备金
	Reserve TThostFtdcMoneyType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 信用额度
	Credit TThostFtdcMoneyType
	// 质押金额
	Mortgage TThostFtdcMoneyType
	// 交易所保证金
	ExchangeMargin TThostFtdcMoneyType
	// 投资者交割保证金
	DeliveryMargin TThostFtdcMoneyType
	// 交易所交割保证金
	ExchangeDeliveryMargin TThostFtdcMoneyType
	// 保底期货结算准备金
	ReserveBalance TThostFtdcMoneyType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 上次货币质入金额
	PreFundMortgageIn TThostFtdcMoneyType
	// 上次货币质出金额
	PreFundMortgageOut TThostFtdcMoneyType
	// 货币质入金额
	FundMortgageIn TThostFtdcMoneyType
	// 货币质出金额
	FundMortgageOut TThostFtdcMoneyType
	// 货币质押余额
	FundMortgageAvailable TThostFtdcMoneyType
	// 可质押货币金额
	MortgageableFund TThostFtdcMoneyType
	// 特殊产品占用保证金
	SpecProductMargin TThostFtdcMoneyType
	// 特殊产品冻结保证金
	SpecProductFrozenMargin TThostFtdcMoneyType
	// 特殊产品手续费
	SpecProductCommission TThostFtdcMoneyType
	// 特殊产品冻结手续费
	SpecProductFrozenCommission TThostFtdcMoneyType
	// 特殊产品持仓盈亏
	SpecProductPositionProfit TThostFtdcMoneyType
	// 特殊产品平仓盈亏
	SpecProductCloseProfit TThostFtdcMoneyType
	// 根据持仓盈亏算法计算的特殊产品持仓盈亏
	SpecProductPositionProfitByAlg TThostFtdcMoneyType
	// 特殊产品交易所保证金
	SpecProductExchangeMargin TThostFtdcMoneyType
	// 延时换汇冻结金额
	FrozenSwap TThostFtdcMoneyType
	// 剩余换汇额度
	RemainSwap TThostFtdcMoneyType
	// 追平序号
	SyncDeltaSequenceNo TThostFtdcSequenceNoType
}

风险结算追平资金

type CThostFtdcSyncDepositField

type CThostFtdcSyncDepositField struct {
	// 出入金流水号
	DepositSeqNo TThostFtdcDepositSeqNoType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 入金金额
	Deposit TThostFtdcMoneyType
	// 是否强制进行
	IsForce TThostFtdcBoolType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 是否是个股期权内转
	IsFromSopt TThostFtdcBoolType
	// 资金密码
	TradingPassword TThostFtdcPasswordType
}

出入金同步

type CThostFtdcSyncFundMortgageField

type CThostFtdcSyncFundMortgageField struct {
	// 货币质押流水号
	MortgageSeqNo TThostFtdcDepositSeqNoType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 源币种
	FromCurrencyID TThostFtdcCurrencyIDType
	// 质押金额
	MortgageAmount TThostFtdcMoneyType
	// 目标币种
	ToCurrencyID TThostFtdcCurrencyIDType
}

货币质押同步

type CThostFtdcSyncSPBMParameterEndField

type CThostFtdcSyncSPBMParameterEndField struct {
	// 交易日
	TradingDay TThostFtdcDateType
}

同步SPBM参数结束

type CThostFtdcSyncStatusField

type CThostFtdcSyncStatusField struct {
	// 交易日
	TradingDay TThostFtdcDateType
	// 数据同步状态
	DataSyncStatus TThostFtdcDataSyncStatusType
}

数据同步状态

type CThostFtdcSyncingInstrumentCommissionRateField

type CThostFtdcSyncingInstrumentCommissionRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 开仓手续费率
	OpenRatioByMoney TThostFtdcRatioType
	// 开仓手续费
	OpenRatioByVolume TThostFtdcRatioType
	// 平仓手续费率
	CloseRatioByMoney TThostFtdcRatioType
	// 平仓手续费
	CloseRatioByVolume TThostFtdcRatioType
	// 平今手续费率
	CloseTodayRatioByMoney TThostFtdcRatioType
	// 平今手续费
	CloseTodayRatioByVolume TThostFtdcRatioType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

正在同步中的合约手续费率

type CThostFtdcSyncingInstrumentMarginRateField

type CThostFtdcSyncingInstrumentMarginRateField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 多头保证金率
	LongMarginRatioByMoney TThostFtdcRatioType
	// 多头保证金费
	LongMarginRatioByVolume TThostFtdcMoneyType
	// 空头保证金率
	ShortMarginRatioByMoney TThostFtdcRatioType
	// 空头保证金费
	ShortMarginRatioByVolume TThostFtdcMoneyType
	// 是否相对交易所收取
	IsRelative TThostFtdcBoolType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

正在同步中的合约保证金率

type CThostFtdcSyncingInstrumentTradingRightField

type CThostFtdcSyncingInstrumentTradingRightField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 交易权限
	TradingRight TThostFtdcTradingRightType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

正在同步中的合约交易权限

type CThostFtdcSyncingInvestorField

type CThostFtdcSyncingInvestorField struct {
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者分组代码
	InvestorGroupID TThostFtdcInvestorIDType
	// 投资者名称
	InvestorName TThostFtdcPartyNameType
	// 证件类型
	IdentifiedCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 是否活跃
	IsActive TThostFtdcBoolType
	// 联系电话
	Telephone TThostFtdcTelephoneType
	// 通讯地址
	Address TThostFtdcAddressType
	// 开户日期
	OpenDate TThostFtdcDateType
	// 手机
	Mobile TThostFtdcMobileType
	// 手续费率模板代码
	CommModelID TThostFtdcInvestorIDType
	// 保证金率模板代码
	MarginModelID TThostFtdcInvestorIDType
	// 是否频率控制
	IsOrderFreq TThostFtdcEnumBoolType
	// 是否开仓限制
	IsOpenVolLimit TThostFtdcEnumBoolType
}

正在同步中的投资者

type CThostFtdcSyncingInvestorGroupField

type CThostFtdcSyncingInvestorGroupField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者分组代码
	InvestorGroupID TThostFtdcInvestorIDType
	// 投资者分组名称
	InvestorGroupName TThostFtdcInvestorGroupNameType
}

正在同步中的投资者分组

type CThostFtdcSyncingInvestorPositionField

type CThostFtdcSyncingInvestorPositionField struct {
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 持仓多空方向
	PosiDirection TThostFtdcPosiDirectionType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 持仓日期
	PositionDate TThostFtdcPositionDateType
	// 上日持仓
	YdPosition TThostFtdcVolumeType
	// 今日持仓
	Position TThostFtdcVolumeType
	// 多头冻结
	LongFrozen TThostFtdcVolumeType
	// 空头冻结
	ShortFrozen TThostFtdcVolumeType
	// 开仓冻结金额
	LongFrozenAmount TThostFtdcMoneyType
	// 开仓冻结金额
	ShortFrozenAmount TThostFtdcMoneyType
	// 开仓量
	OpenVolume TThostFtdcVolumeType
	// 平仓量
	CloseVolume TThostFtdcVolumeType
	// 开仓金额
	OpenAmount TThostFtdcMoneyType
	// 平仓金额
	CloseAmount TThostFtdcMoneyType
	// 持仓成本
	PositionCost TThostFtdcMoneyType
	// 上次占用的保证金
	PreMargin TThostFtdcMoneyType
	// 占用的保证金
	UseMargin TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 上次结算价
	PreSettlementPrice TThostFtdcPriceType
	// 本次结算价
	SettlementPrice TThostFtdcPriceType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 开仓成本
	OpenCost TThostFtdcMoneyType
	// 交易所保证金
	ExchangeMargin TThostFtdcMoneyType
	// 组合成交形成的持仓
	CombPosition TThostFtdcVolumeType
	// 组合多头冻结
	CombLongFrozen TThostFtdcVolumeType
	// 组合空头冻结
	CombShortFrozen TThostFtdcVolumeType
	// 逐日盯市平仓盈亏
	CloseProfitByDate TThostFtdcMoneyType
	// 逐笔对冲平仓盈亏
	CloseProfitByTrade TThostFtdcMoneyType
	// 今日持仓
	TodayPosition TThostFtdcVolumeType
	// 保证金率
	MarginRateByMoney TThostFtdcRatioType
	// 保证金率(按手数)
	MarginRateByVolume TThostFtdcRatioType
	// 执行冻结
	StrikeFrozen TThostFtdcVolumeType
	// 执行冻结金额
	StrikeFrozenAmount TThostFtdcMoneyType
	// 放弃执行冻结
	AbandonFrozen TThostFtdcVolumeType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 执行冻结的昨仓
	YdStrikeFrozen TThostFtdcVolumeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 持仓成本差值
	PositionCostOffset TThostFtdcMoneyType
	// tas持仓手数
	TasPosition TThostFtdcVolumeType
	// tas持仓成本
	TasPositionCost TThostFtdcMoneyType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
}

正在同步中的投资者持仓

type CThostFtdcSyncingTradingAccountField

type CThostFtdcSyncingTradingAccountField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 上次质押金额
	PreMortgage TThostFtdcMoneyType
	// 上次信用额度
	PreCredit TThostFtdcMoneyType
	// 上次存款额
	PreDeposit TThostFtdcMoneyType
	// 上次结算准备金
	PreBalance TThostFtdcMoneyType
	// 上次占用的保证金
	PreMargin TThostFtdcMoneyType
	// 利息基数
	InterestBase TThostFtdcMoneyType
	// 利息收入
	Interest TThostFtdcMoneyType
	// 入金金额
	Deposit TThostFtdcMoneyType
	// 出金金额
	Withdraw TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 当前保证金总额
	CurrMargin TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 期货结算准备金
	Balance TThostFtdcMoneyType
	// 可用资金
	Available TThostFtdcMoneyType
	// 可取资金
	WithdrawQuota TThostFtdcMoneyType
	// 基本准备金
	Reserve TThostFtdcMoneyType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 信用额度
	Credit TThostFtdcMoneyType
	// 质押金额
	Mortgage TThostFtdcMoneyType
	// 交易所保证金
	ExchangeMargin TThostFtdcMoneyType
	// 投资者交割保证金
	DeliveryMargin TThostFtdcMoneyType
	// 交易所交割保证金
	ExchangeDeliveryMargin TThostFtdcMoneyType
	// 保底期货结算准备金
	ReserveBalance TThostFtdcMoneyType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 上次货币质入金额
	PreFundMortgageIn TThostFtdcMoneyType
	// 上次货币质出金额
	PreFundMortgageOut TThostFtdcMoneyType
	// 货币质入金额
	FundMortgageIn TThostFtdcMoneyType
	// 货币质出金额
	FundMortgageOut TThostFtdcMoneyType
	// 货币质押余额
	FundMortgageAvailable TThostFtdcMoneyType
	// 可质押货币金额
	MortgageableFund TThostFtdcMoneyType
	// 特殊产品占用保证金
	SpecProductMargin TThostFtdcMoneyType
	// 特殊产品冻结保证金
	SpecProductFrozenMargin TThostFtdcMoneyType
	// 特殊产品手续费
	SpecProductCommission TThostFtdcMoneyType
	// 特殊产品冻结手续费
	SpecProductFrozenCommission TThostFtdcMoneyType
	// 特殊产品持仓盈亏
	SpecProductPositionProfit TThostFtdcMoneyType
	// 特殊产品平仓盈亏
	SpecProductCloseProfit TThostFtdcMoneyType
	// 根据持仓盈亏算法计算的特殊产品持仓盈亏
	SpecProductPositionProfitByAlg TThostFtdcMoneyType
	// 特殊产品交易所保证金
	SpecProductExchangeMargin TThostFtdcMoneyType
	// 延时换汇冻结金额
	FrozenSwap TThostFtdcMoneyType
	// 剩余换汇额度
	RemainSwap TThostFtdcMoneyType
}

正在同步中的交易账号

type CThostFtdcSyncingTradingCodeField

type CThostFtdcSyncingTradingCodeField struct {
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 是否活跃
	IsActive TThostFtdcBoolType
	// 交易编码类型
	ClientIDType TThostFtdcClientIDTypeType
}

正在同步中的交易代码

type CThostFtdcThostUserFunctionField added in v2.0.8

type CThostFtdcThostUserFunctionField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// Thost终端功能代码
	ThostFunctionCode TThostFtdcThostFunctionCodeType
}

Thost终端用户功能权限

type CThostFtdcTradeField

type CThostFtdcTradeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldInstrumentIDType
	// 报单引用
	OrderRef TThostFtdcOrderRefType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 成交编号
	TradeID TThostFtdcTradeIDType
	// 买卖方向
	Direction TThostFtdcDirectionType
	// 报单编号
	OrderSysID TThostFtdcOrderSysIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 交易角色
	TradingRole TThostFtdcTradingRoleType
	// 保留的无效字段
	Reserve2 TThostFtdcOldExchangeInstIDType
	// 开平标志
	OffsetFlag TThostFtdcOffsetFlagType
	// 投机套保标志
	HedgeFlag TThostFtdcHedgeFlagType
	// 价格
	Price TThostFtdcPriceType
	// 数量
	Volume TThostFtdcVolumeType
	// 成交时期
	TradeDate TThostFtdcDateType
	// 成交时间
	TradeTime TThostFtdcTimeType
	// 成交类型
	TradeType TThostFtdcTradeTypeType
	// 成交价来源
	PriceSource TThostFtdcPriceSourceType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 结算会员编号
	ClearingPartID TThostFtdcParticipantIDType
	// 业务单元
	BusinessUnit TThostFtdcBusinessUnitType
	// 序号
	SequenceNo TThostFtdcSequenceNoType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 经纪公司报单编号
	BrokerOrderSeq TThostFtdcSequenceNoType
	// 成交来源
	TradeSource TThostFtdcTradeSourceType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
	// 合约代码
	InstrumentID TThostFtdcInstrumentIDType
	// 合约在交易所的代码
	ExchangeInstID TThostFtdcExchangeInstIDType
}

成交

type CThostFtdcTradeParamField

type CThostFtdcTradeParamField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 参数代码
	TradeParamID TThostFtdcTradeParamIDType
	// 参数代码值
	TradeParamValue TThostFtdcSettlementParamValueType
	// 备注
	Memo TThostFtdcMemoType
}

交易参数

type CThostFtdcTraderAssignField added in v2.0.8

type CThostFtdcTraderAssignField struct {
	// 应用单元代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
}

席位与交易中心对应关系

type CThostFtdcTraderField

type CThostFtdcTraderField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 密码
	Password TThostFtdcPasswordType
	// 安装数量
	InstallCount TThostFtdcInstallCountType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 撤单时选择席位算法
	OrderCancelAlg TThostFtdcOrderCancelAlgType
	// 交易报盘安装数量
	TradeInstallCount TThostFtdcInstallCountType
	// 行情报盘安装数量
	MDInstallCount TThostFtdcInstallCountType
}

交易所交易员

type CThostFtdcTraderOfferField

type CThostFtdcTraderOfferField struct {
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 交易所交易员代码
	TraderID TThostFtdcTraderIDType
	// 会员代码
	ParticipantID TThostFtdcParticipantIDType
	// 密码
	Password TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 本地报单编号
	OrderLocalID TThostFtdcOrderLocalIDType
	// 交易所交易员连接状态
	TraderConnectStatus TThostFtdcTraderConnectStatusType
	// 发出连接请求的日期
	ConnectRequestDate TThostFtdcDateType
	// 发出连接请求的时间
	ConnectRequestTime TThostFtdcTimeType
	// 上次报告日期
	LastReportDate TThostFtdcDateType
	// 上次报告时间
	LastReportTime TThostFtdcTimeType
	// 完成连接日期
	ConnectDate TThostFtdcDateType
	// 完成连接时间
	ConnectTime TThostFtdcTimeType
	// 启动日期
	StartDate TThostFtdcDateType
	// 启动时间
	StartTime TThostFtdcTimeType
	// 交易日
	TradingDay TThostFtdcDateType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 本席位最大成交编号
	MaxTradeID TThostFtdcTradeIDType
	// 本席位最大报单备拷
	MaxOrderMessageReference TThostFtdcReturnCodeType
	// 撤单时选择席位算法
	OrderCancelAlg TThostFtdcOrderCancelAlgType
}

交易所交易员报盘机

type CThostFtdcTradingAccountField

type CThostFtdcTradingAccountField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 上次质押金额
	PreMortgage TThostFtdcMoneyType
	// 上次信用额度
	PreCredit TThostFtdcMoneyType
	// 上次存款额
	PreDeposit TThostFtdcMoneyType
	// 上次结算准备金
	PreBalance TThostFtdcMoneyType
	// 上次占用的保证金
	PreMargin TThostFtdcMoneyType
	// 利息基数
	InterestBase TThostFtdcMoneyType
	// 利息收入
	Interest TThostFtdcMoneyType
	// 入金金额
	Deposit TThostFtdcMoneyType
	// 出金金额
	Withdraw TThostFtdcMoneyType
	// 冻结的保证金
	FrozenMargin TThostFtdcMoneyType
	// 冻结的资金
	FrozenCash TThostFtdcMoneyType
	// 冻结的手续费
	FrozenCommission TThostFtdcMoneyType
	// 当前保证金总额
	CurrMargin TThostFtdcMoneyType
	// 资金差额
	CashIn TThostFtdcMoneyType
	// 手续费
	Commission TThostFtdcMoneyType
	// 平仓盈亏
	CloseProfit TThostFtdcMoneyType
	// 持仓盈亏
	PositionProfit TThostFtdcMoneyType
	// 期货结算准备金
	Balance TThostFtdcMoneyType
	// 可用资金
	Available TThostFtdcMoneyType
	// 可取资金
	WithdrawQuota TThostFtdcMoneyType
	// 基本准备金
	Reserve TThostFtdcMoneyType
	// 交易日
	TradingDay TThostFtdcDateType
	// 结算编号
	SettlementID TThostFtdcSettlementIDType
	// 信用额度
	Credit TThostFtdcMoneyType
	// 质押金额
	Mortgage TThostFtdcMoneyType
	// 交易所保证金
	ExchangeMargin TThostFtdcMoneyType
	// 投资者交割保证金
	DeliveryMargin TThostFtdcMoneyType
	// 交易所交割保证金
	ExchangeDeliveryMargin TThostFtdcMoneyType
	// 保底期货结算准备金
	ReserveBalance TThostFtdcMoneyType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 上次货币质入金额
	PreFundMortgageIn TThostFtdcMoneyType
	// 上次货币质出金额
	PreFundMortgageOut TThostFtdcMoneyType
	// 货币质入金额
	FundMortgageIn TThostFtdcMoneyType
	// 货币质出金额
	FundMortgageOut TThostFtdcMoneyType
	// 货币质押余额
	FundMortgageAvailable TThostFtdcMoneyType
	// 可质押货币金额
	MortgageableFund TThostFtdcMoneyType
	// 特殊产品占用保证金
	SpecProductMargin TThostFtdcMoneyType
	// 特殊产品冻结保证金
	SpecProductFrozenMargin TThostFtdcMoneyType
	// 特殊产品手续费
	SpecProductCommission TThostFtdcMoneyType
	// 特殊产品冻结手续费
	SpecProductFrozenCommission TThostFtdcMoneyType
	// 特殊产品持仓盈亏
	SpecProductPositionProfit TThostFtdcMoneyType
	// 特殊产品平仓盈亏
	SpecProductCloseProfit TThostFtdcMoneyType
	// 根据持仓盈亏算法计算的特殊产品持仓盈亏
	SpecProductPositionProfitByAlg TThostFtdcMoneyType
	// 特殊产品交易所保证金
	SpecProductExchangeMargin TThostFtdcMoneyType
	// 业务类型
	BizType TThostFtdcBizTypeType
	// 延时换汇冻结金额
	FrozenSwap TThostFtdcMoneyType
	// 剩余换汇额度
	RemainSwap TThostFtdcMoneyType
}

资金账户

type CThostFtdcTradingAccountPasswordField

type CThostFtdcTradingAccountPasswordField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 密码
	Password TThostFtdcPasswordType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

资金账户口令域

type CThostFtdcTradingAccountPasswordUpdateField

type CThostFtdcTradingAccountPasswordUpdateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 原来的口令
	OldPassword TThostFtdcPasswordType
	// 新的口令
	NewPassword TThostFtdcPasswordType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

资金账户口令变更域

type CThostFtdcTradingAccountPasswordUpdateV1Field

type CThostFtdcTradingAccountPasswordUpdateV1Field struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 原来的口令
	OldPassword TThostFtdcPasswordType
	// 新的口令
	NewPassword TThostFtdcPasswordType
}

资金账户口令变更域

type CThostFtdcTradingAccountReserveField

type CThostFtdcTradingAccountReserveField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 基本准备金
	Reserve TThostFtdcMoneyType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

资金账户基本准备金

type CThostFtdcTradingCodeField

type CThostFtdcTradingCodeField struct {
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 交易所代码
	ExchangeID TThostFtdcExchangeIDType
	// 客户代码
	ClientID TThostFtdcClientIDType
	// 是否活跃
	IsActive TThostFtdcBoolType
	// 交易编码类型
	ClientIDType TThostFtdcClientIDTypeType
	// 营业部编号
	BranchID TThostFtdcBranchIDType
	// 业务类型
	BizType TThostFtdcBizTypeType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

交易编码

type CThostFtdcTradingNoticeField

type CThostFtdcTradingNoticeField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者范围
	InvestorRange TThostFtdcInvestorRangeType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 序列系列号
	SequenceSeries TThostFtdcSequenceSeriesType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 发送时间
	SendTime TThostFtdcTimeType
	// 序列号
	SequenceNo TThostFtdcSequenceNoType
	// 消息正文
	FieldContent TThostFtdcContentType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

用户事件通知

type CThostFtdcTradingNoticeInfoField

type CThostFtdcTradingNoticeInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 发送时间
	SendTime TThostFtdcTimeType
	// 消息正文
	FieldContent TThostFtdcContentType
	// 序列系列号
	SequenceSeries TThostFtdcSequenceSeriesType
	// 序列号
	SequenceNo TThostFtdcSequenceNoType
	// 投资单元代码
	InvestUnitID TThostFtdcInvestUnitIDType
}

用户事件通知信息

type CThostFtdcTransferBankField

type CThostFtdcTransferBankField struct {
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分中心代码
	BankBrchID TThostFtdcBankBrchIDType
	// 银行名称
	BankName TThostFtdcBankNameType
	// 是否活跃
	IsActive TThostFtdcBoolType
}

转帐银行

type CThostFtdcTransferBankToFutureReqField

type CThostFtdcTransferBankToFutureReqField struct {
	// 期货资金账户
	FutureAccount TThostFtdcAccountIDType
	// 密码标志
	FuturePwdFlag TThostFtdcFuturePwdFlagType
	// 密码
	FutureAccPwd TThostFtdcFutureAccPwdType
	// 转账金额
	TradeAmt TThostFtdcMoneyType
	// 客户手续费
	CustFee TThostFtdcMoneyType
}

银行资金转期货请求,TradeCode=202001

type CThostFtdcTransferBankToFutureRspField

type CThostFtdcTransferBankToFutureRspField struct {
	// 响应代码
	RetCode TThostFtdcRetCodeType
	// 响应信息
	RetInfo TThostFtdcRetInfoType
	// 资金账户
	FutureAccount TThostFtdcAccountIDType
	// 转帐金额
	TradeAmt TThostFtdcMoneyType
	// 应收客户手续费
	CustFee TThostFtdcMoneyType
	// 币种
	CurrencyCode TThostFtdcCurrencyCodeType
}

银行资金转期货请求响应

type CThostFtdcTransferFutureToBankReqField

type CThostFtdcTransferFutureToBankReqField struct {
	// 期货资金账户
	FutureAccount TThostFtdcAccountIDType
	// 密码标志
	FuturePwdFlag TThostFtdcFuturePwdFlagType
	// 密码
	FutureAccPwd TThostFtdcFutureAccPwdType
	// 转账金额
	TradeAmt TThostFtdcMoneyType
	// 客户手续费
	CustFee TThostFtdcMoneyType
}

期货资金转银行请求,TradeCode=202002

type CThostFtdcTransferFutureToBankRspField

type CThostFtdcTransferFutureToBankRspField struct {
	// 响应代码
	RetCode TThostFtdcRetCodeType
	// 响应信息
	RetInfo TThostFtdcRetInfoType
	// 资金账户
	FutureAccount TThostFtdcAccountIDType
	// 转帐金额
	TradeAmt TThostFtdcMoneyType
	// 应收客户手续费
	CustFee TThostFtdcMoneyType
	// 币种
	CurrencyCode TThostFtdcCurrencyCodeType
}

期货资金转银行请求响应

type CThostFtdcTransferHeaderField

type CThostFtdcTransferHeaderField struct {
	// 版本号,常量,1.0
	Version TThostFtdcVersionType
	// 交易代码,必填
	TradeCode TThostFtdcTradeCodeType
	// 交易日期,必填,格式:yyyymmdd
	TradeDate TThostFtdcTradeDateType
	// 交易时间,必填,格式:hhmmss
	TradeTime TThostFtdcTradeTimeType
	// 发起方流水号,N/A
	TradeSerial TThostFtdcTradeSerialType
	// 期货公司代码,必填
	FutureID TThostFtdcFutureIDType
	// 银行代码,根据查询银行得到,必填
	BankID TThostFtdcBankIDType
	// 银行分中心代码,根据查询银行得到,必填
	BankBrchID TThostFtdcBankBrchIDType
	// 操作员,N/A
	OperNo TThostFtdcOperNoType
	// 交易设备类型,N/A
	DeviceID TThostFtdcDeviceIDType
	// 记录数,N/A
	RecordNum TThostFtdcRecordNumType
	// 会话编号,N/A
	SessionID TThostFtdcSessionIDType
	// 请求编号,N/A
	RequestID TThostFtdcRequestIDType
}

银期转帐报文头

type CThostFtdcTransferQryBankReqField

type CThostFtdcTransferQryBankReqField struct {
	// 期货资金账户
	FutureAccount TThostFtdcAccountIDType
	// 密码标志
	FuturePwdFlag TThostFtdcFuturePwdFlagType
	// 密码
	FutureAccPwd TThostFtdcFutureAccPwdType
}

查询银行资金请求,TradeCode=204002

type CThostFtdcTransferQryBankRspField

type CThostFtdcTransferQryBankRspField struct {
	// 响应代码
	RetCode TThostFtdcRetCodeType
	// 响应信息
	RetInfo TThostFtdcRetInfoType
	// 资金账户
	FutureAccount TThostFtdcAccountIDType
	// 银行余额
	TradeAmt TThostFtdcMoneyType
	// 银行可用余额
	UseAmt TThostFtdcMoneyType
	// 银行可取余额
	FetchAmt TThostFtdcMoneyType
	// 币种
	CurrencyCode TThostFtdcCurrencyCodeType
}

查询银行资金请求响应

type CThostFtdcTransferQryDetailReqField

type CThostFtdcTransferQryDetailReqField struct {
	// 期货资金账户
	FutureAccount TThostFtdcAccountIDType
}

查询银行交易明细请求,TradeCode=204999

type CThostFtdcTransferQryDetailRspField

type CThostFtdcTransferQryDetailRspField struct {
	// 交易日期
	TradeDate TThostFtdcDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 交易代码
	TradeCode TThostFtdcTradeCodeType
	// 期货流水号
	FutureSerial TThostFtdcTradeSerialNoType
	// 期货公司代码
	FutureID TThostFtdcFutureIDType
	// 资金帐号
	FutureAccount TThostFtdcFutureAccountType
	// 银行流水号
	BankSerial TThostFtdcTradeSerialNoType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分中心代码
	BankBrchID TThostFtdcBankBrchIDType
	// 银行账号
	BankAccount TThostFtdcBankAccountType
	// 证件号码
	CertCode TThostFtdcCertCodeType
	// 货币代码
	CurrencyCode TThostFtdcCurrencyCodeType
	// 发生金额
	TxAmount TThostFtdcMoneyType
	// 有效标志
	Flag TThostFtdcTransferValidFlagType
}

查询银行交易明细请求响应

type CThostFtdcTransferSerialField

type CThostFtdcTransferSerialField struct {
	// 平台流水号
	PlateSerial TThostFtdcPlateSerialType
	// 交易发起方日期
	TradeDate TThostFtdcTradeDateType
	// 交易日期
	TradingDay TThostFtdcDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 交易代码
	TradeCode TThostFtdcTradeCodeType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 银行编码
	BankID TThostFtdcBankIDType
	// 银行分支机构编码
	BankBranchID TThostFtdcBankBrchIDType
	// 银行帐号类型
	BankAccType TThostFtdcBankAccTypeType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 期货公司编码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 期货公司帐号类型
	FutureAccType TThostFtdcFutureAccTypeType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 期货公司流水号
	FutureSerial TThostFtdcFutureSerialType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 交易金额
	TradeAmount TThostFtdcTradeAmountType
	// 应收客户费用
	CustFee TThostFtdcCustFeeType
	// 应收期货公司费用
	BrokerFee TThostFtdcFutureFeeType
	// 有效标志
	AvailabilityFlag TThostFtdcAvailabilityFlagType
	// 操作员
	OperatorCode TThostFtdcOperatorCodeType
	// 新银行帐号
	BankNewAccount TThostFtdcBankAccountType
	// 错误代码
	ErrorID TThostFtdcErrorIDType
	// 错误信息
	ErrorMsg TThostFtdcErrorMsgType
}

银期转账交易流水表

type CThostFtdcUserIPField

type CThostFtdcUserIPField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 保留的无效字段
	Reserve2 TThostFtdcOldIPAddressType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// IP地址
	IPAddress TThostFtdcIPAddressType
	// IP地址掩码
	IPMask TThostFtdcIPAddressType
}

用户IP

type CThostFtdcUserLogoutField

type CThostFtdcUserLogoutField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
}

用户登出请求

type CThostFtdcUserPasswordUpdateField

type CThostFtdcUserPasswordUpdateField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 原来的口令
	OldPassword TThostFtdcPasswordType
	// 新的口令
	NewPassword TThostFtdcPasswordType
}

用户口令变更

type CThostFtdcUserRightField

type CThostFtdcUserRightField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 客户权限类型
	UserRightType TThostFtdcUserRightTypeType
	// 是否禁止
	IsForbidden TThostFtdcBoolType
}

用户权限

type CThostFtdcUserRightsAssignField

type CThostFtdcUserRightsAssignField struct {
	// 应用单元代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 交易中心代码
	DRIdentityID TThostFtdcDRIdentityIDType
}

灾备中心交易权限

type CThostFtdcUserSessionField

type CThostFtdcUserSessionField struct {
	// 前置编号
	FrontID TThostFtdcFrontIDType
	// 会话编号
	SessionID TThostFtdcSessionIDType
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 登录日期
	LoginDate TThostFtdcDateType
	// 登录时间
	LoginTime TThostFtdcTimeType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 用户端产品信息
	UserProductInfo TThostFtdcProductInfoType
	// 接口端产品信息
	InterfaceProductInfo TThostFtdcProductInfoType
	// 协议信息
	ProtocolInfo TThostFtdcProtocolInfoType
	// Mac地址
	MacAddress TThostFtdcMacAddressType
	// 登录备注
	LoginRemark TThostFtdcLoginRemarkType
	// IP地址
	IPAddress TThostFtdcIPAddressType
}

用户会话

type CThostFtdcUserSystemInfoField

type CThostFtdcUserSystemInfoField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 用户代码
	UserID TThostFtdcUserIDType
	// 用户端系统内部信息长度
	ClientSystemInfoLen TThostFtdcSystemInfoLenType
	// 用户端系统内部信息
	ClientSystemInfo TThostFtdcClientSystemInfoType
	// 保留的无效字段
	Reserve1 TThostFtdcOldIPAddressType
	// 终端IP端口
	ClientIPPort TThostFtdcIPPortType
	// 登录成功时间
	ClientLoginTime TThostFtdcTimeType
	// App代码
	ClientAppID TThostFtdcAppIDType
	// 用户公网IP
	ClientPublicIP TThostFtdcIPAddressType
	// 客户登录备注2
	ClientLoginRemark TThostFtdcClientLoginRemarkType
}

用户系统信息

type CThostFtdcVerifyCustInfoField

type CThostFtdcVerifyCustInfoField struct {
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

验证客户信息

type CThostFtdcVerifyFuturePasswordAndCustInfoField

type CThostFtdcVerifyFuturePasswordAndCustInfoField struct {
	// 客户姓名
	CustomerName TThostFtdcIndividualNameType
	// 证件类型
	IdCardType TThostFtdcIdCardTypeType
	// 证件号码
	IdentifiedCardNo TThostFtdcIdentifiedCardNoType
	// 客户类型
	CustType TThostFtdcCustTypeType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
	// 长客户姓名
	LongCustomerName TThostFtdcLongIndividualNameType
}

验证期货资金密码和客户信息

type CThostFtdcVerifyFuturePasswordField

type CThostFtdcVerifyFuturePasswordField struct {
	// 业务功能码
	TradeCode TThostFtdcTradeCodeType
	// 银行代码
	BankID TThostFtdcBankIDType
	// 银行分支机构代码
	BankBranchID TThostFtdcBankBrchIDType
	// 期商代码
	BrokerID TThostFtdcBrokerIDType
	// 期商分支机构代码
	BrokerBranchID TThostFtdcFutureBranchIDType
	// 交易日期
	TradeDate TThostFtdcTradeDateType
	// 交易时间
	TradeTime TThostFtdcTradeTimeType
	// 银行流水号
	BankSerial TThostFtdcBankSerialType
	// 交易系统日期
	TradingDay TThostFtdcTradeDateType
	// 银期平台消息流水号
	PlateSerial TThostFtdcSerialType
	// 最后分片标志
	LastFragment TThostFtdcLastFragmentType
	// 会话号
	SessionID TThostFtdcSessionIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 期货密码
	Password TThostFtdcPasswordType
	// 银行帐号
	BankAccount TThostFtdcBankAccountType
	// 银行密码
	BankPassWord TThostFtdcPasswordType
	// 安装编号
	InstallID TThostFtdcInstallIDType
	// 交易ID
	TID TThostFtdcTIDType
	// 币种代码
	CurrencyID TThostFtdcCurrencyIDType
}

验证期货资金密码

type CThostFtdcVerifyInvestorPasswordField

type CThostFtdcVerifyInvestorPasswordField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者代码
	InvestorID TThostFtdcInvestorIDType
	// 密码
	Password TThostFtdcPasswordType
}

校验投资者密码

type CThostFtdcWithDrawParamField added in v2.0.8

type CThostFtdcWithDrawParamField struct {
	// 经纪公司代码
	BrokerID TThostFtdcBrokerIDType
	// 投资者帐号
	AccountID TThostFtdcAccountIDType
	// 参数代码
	WithDrawParamID TThostFtdcWithDrawParamIDType
	// 参数代码值
	WithDrawParamValue TThostFtdcWithDrawParamValueType
}

可提控制参数

type Event

type Event int

type LoginConfig

type LoginConfig struct {
	Front, Broker, UserID, Password, AppID, AuthCode string
}

LoginConfig 登录配置(行情不需要 AppID AuthCode)

type Quote

type Quote struct {

	// ************ 响应函数变量 ******************
	// //////////////////////////////////////////////////////////////////////
	OnFrontConnected            func()                                                                                                                         // 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
	OnFrontDisconnected         func(nReason int)                                                                                                              // 心跳超时警告。当长时间未收到报文时,该方法被调用。
	OnHeartBeatWarning          func(nTimeLapse int)                                                                                                           // 登录请求响应
	OnRspUserLogin              func(pRspUserLogin *CThostFtdcRspUserLoginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)               // 登出请求响应
	OnRspUserLogout             func(pUserLogout *CThostFtdcUserLogoutField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)                   // 请求查询组播合约响应
	OnRspQryMulticastInstrument func(pMulticastInstrument *CThostFtdcMulticastInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool) // 错误应答
	OnRspError                  func(pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)                                                           // 订阅行情应答
	OnRspSubMarketData          func(pSpecificInstrument *CThostFtdcSpecificInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)   // 取消订阅行情应答
	OnRspUnSubMarketData        func(pSpecificInstrument *CThostFtdcSpecificInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)   // 订阅询价应答
	OnRspSubForQuoteRsp         func(pSpecificInstrument *CThostFtdcSpecificInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)   // 取消订阅询价应答
	OnRspUnSubForQuoteRsp       func(pSpecificInstrument *CThostFtdcSpecificInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)   // 深度行情通知
	OnRtnDepthMarketData        func(pDepthMarketData *CThostFtdcDepthMarketDataField)                                                                         // 询价通知
	OnRtnForQuoteRsp            func(pForQuoteRsp *CThostFtdcForQuoteRspField)
	// contains filtered or unexported fields
}

func NewQuote

func NewQuote() *Quote

func (*Quote) Init

func (q *Quote) Init()

初始化

func (*Quote) Join

func (q *Quote) Join()

等待接口线程结束运行

func (*Quote) RegisterFensUserInfo

func (q *Quote) RegisterFensUserInfo(pFensUserInfo *CThostFtdcFensUserInfoField)

注册名字服务器用户信息

func (*Quote) RegisterFront

func (q *Quote) RegisterFront(pszFrontAddress string)

注册前置机网络地址

func (*Quote) RegisterNameServer

func (q *Quote) RegisterNameServer(pszNsAddress string)

@remark RegisterNameServer优先于RegisterFront

func (*Quote) RegisterSpi

func (q *Quote) RegisterSpi(pSpi unsafe.Pointer)

注册回调接口

func (*Quote) Release

func (q *Quote) Release()

创建MdApi

func (*Quote) ReqQryMulticastInstrument

func (q *Quote) ReqQryMulticastInstrument(pQryMulticastInstrument *CThostFtdcQryMulticastInstrumentField, nRequestID int)

请求查询组播合约

func (*Quote) ReqUserLogin

func (q *Quote) ReqUserLogin(pReqUserLoginField *CThostFtdcReqUserLoginField, nRequestID int)

用户登录请求

func (*Quote) ReqUserLogout

func (q *Quote) ReqUserLogout(pUserLogout *CThostFtdcUserLogoutField, nRequestID int)

登出请求

func (*Quote) SubscribeForQuoteRsp

func (q *Quote) SubscribeForQuoteRsp(ppInstrumentID []string, nCount int)

订阅询价。

func (*Quote) SubscribeMarketData

func (q *Quote) SubscribeMarketData(ppInstrumentID []string, nCount int)

订阅行情。

func (*Quote) UnSubscribeForQuoteRsp

func (q *Quote) UnSubscribeForQuoteRsp(ppInstrumentID []string, nCount int)

退订询价。

func (*Quote) UnSubscribeMarketData

func (q *Quote) UnSubscribeMarketData(ppInstrumentID []string, nCount int)

退订行情。

type QuoteExt

type QuoteExt struct {
	*Quote
	// contains filtered or unexported fields
}

func NewQuoteExt

func NewQuoteExt() *QuoteExt

func (*QuoteExt) Release

func (q *QuoteExt) Release()

func (*QuoteExt) ReqSubscript

func (q *QuoteExt) ReqSubscript(instruments ...string)

func (*QuoteExt) ReqUserLogin

func (q *QuoteExt) ReqUserLogin(broker, user, pwd string)

type QuotePro added in v2.0.5

type QuotePro struct {
	*QuoteExt

	OnRtnTick func(pDepthMarketData *CThostFtdcDepthMarketDataField)

	// 行情 key: InstrumentID
	Ticks map[string]CThostFtdcDepthMarketDataField
	// contains filtered or unexported fields
}

func NewQuotePro added in v2.0.5

func NewQuotePro() *QuotePro

func (*QuotePro) Start added in v2.0.5

type THOST_TE_RESUME_TYPE

type THOST_TE_RESUME_TYPE int32
const (
	THOST_TERT_RESTART THOST_TE_RESUME_TYPE = 0
	THOST_TERT_RESUME  THOST_TE_RESUME_TYPE = 1
	THOST_TERT_QUICK   THOST_TE_RESUME_TYPE = 2
)

type TThostFtdcAMLAccountTypeType

type TThostFtdcAMLAccountTypeType [5]byte

账户类型类型

func (TThostFtdcAMLAccountTypeType) String

type TThostFtdcAMLCapitalIOType

type TThostFtdcAMLCapitalIOType [3]byte

资金收付标识类型

func (TThostFtdcAMLCapitalIOType) String

type TThostFtdcAMLCapitalPurposeType

type TThostFtdcAMLCapitalPurposeType [129]byte

资金用途类型

func (TThostFtdcAMLCapitalPurposeType) String

type TThostFtdcAMLCheckStatusType

type TThostFtdcAMLCheckStatusType byte

审核状态类型

const THOST_FTDC_AMLCHS_Checked TThostFtdcAMLCheckStatusType = '2' // 已复核
const THOST_FTDC_AMLCHS_Checking TThostFtdcAMLCheckStatusType = '1' // 复核中
const THOST_FTDC_AMLCHS_Init TThostFtdcAMLCheckStatusType = '0' // 未复核
const THOST_FTDC_AMLCHS_RefuseReport TThostFtdcAMLCheckStatusType = '3' // 拒绝上报

func (TThostFtdcAMLCheckStatusType) String

type TThostFtdcAMLCustomerCardTypeType

type TThostFtdcAMLCustomerCardTypeType [81]byte

客户身份证件/证明文件类型类型

func (TThostFtdcAMLCustomerCardTypeType) String

type TThostFtdcAMLDistrictIDType

type TThostFtdcAMLDistrictIDType [7]byte

金融机构网点所在地区行政区划代码类型

func (TThostFtdcAMLDistrictIDType) String

type TThostFtdcAMLFileAmountType

type TThostFtdcAMLFileAmountType int32

反洗钱资金类型

type TThostFtdcAMLFileNameType

type TThostFtdcAMLFileNameType [257]byte

AML文件名类型

func (TThostFtdcAMLFileNameType) String

func (s TThostFtdcAMLFileNameType) String() string

type TThostFtdcAMLGenStatusType

type TThostFtdcAMLGenStatusType byte

Aml生成方式类型

const THOST_FTDC_GEN_HandWork TThostFtdcAMLGenStatusType = '1' // 人工生成
const THOST_FTDC_GEN_Program TThostFtdcAMLGenStatusType = '0' // 程序生成

func (TThostFtdcAMLGenStatusType) String

type TThostFtdcAMLIdCardTypeType

type TThostFtdcAMLIdCardTypeType [3]byte

证件类型类型

func (TThostFtdcAMLIdCardTypeType) String

type TThostFtdcAMLInstitutionIDType

type TThostFtdcAMLInstitutionIDType [13]byte

金融机构网点代码类型

func (TThostFtdcAMLInstitutionIDType) String

type TThostFtdcAMLInstitutionNameType

type TThostFtdcAMLInstitutionNameType [65]byte

金融机构网点名称类型

func (TThostFtdcAMLInstitutionNameType) String

type TThostFtdcAMLInstitutionTypeType

type TThostFtdcAMLInstitutionTypeType [3]byte

金融机构网点代码类型类型

func (TThostFtdcAMLInstitutionTypeType) String

type TThostFtdcAMLInvestorTypeType

type TThostFtdcAMLInvestorTypeType [3]byte

投资者类型类型

func (TThostFtdcAMLInvestorTypeType) String

type TThostFtdcAMLMoneyType

type TThostFtdcAMLMoneyType float64

反洗钱资金类型

func (TThostFtdcAMLMoneyType) String

func (f TThostFtdcAMLMoneyType) String() string

type TThostFtdcAMLOpParamValueType

type TThostFtdcAMLOpParamValueType float64

业务参数代码值类型

func (TThostFtdcAMLOpParamValueType) String

type TThostFtdcAMLParamIDType

type TThostFtdcAMLParamIDType [21]byte

参数代码类型

func (TThostFtdcAMLParamIDType) String

func (s TThostFtdcAMLParamIDType) String() string

type TThostFtdcAMLRelationShipType

type TThostFtdcAMLRelationShipType [3]byte

金融机构网点与大额交易的关系类型

func (TThostFtdcAMLRelationShipType) String

type TThostFtdcAMLReportNameType

type TThostFtdcAMLReportNameType [81]byte

报文名称类型

func (TThostFtdcAMLReportNameType) String

type TThostFtdcAMLReportTypeType

type TThostFtdcAMLReportTypeType [2]byte

报文类型类型

func (TThostFtdcAMLReportTypeType) String

type TThostFtdcAMLSeqCodeType

type TThostFtdcAMLSeqCodeType [65]byte

业务标识号类型

func (TThostFtdcAMLSeqCodeType) String

func (s TThostFtdcAMLSeqCodeType) String() string

type TThostFtdcAMLSerialNoType

type TThostFtdcAMLSerialNoType [5]byte

编号类型

func (TThostFtdcAMLSerialNoType) String

func (s TThostFtdcAMLSerialNoType) String() string

type TThostFtdcAMLSiteType

type TThostFtdcAMLSiteType [10]byte

交易地点类型

func (TThostFtdcAMLSiteType) String

func (s TThostFtdcAMLSiteType) String() string

type TThostFtdcAMLStatusType

type TThostFtdcAMLStatusType [2]byte

状态类型

func (TThostFtdcAMLStatusType) String

func (s TThostFtdcAMLStatusType) String() string

type TThostFtdcAMLTradeDirectType

type TThostFtdcAMLTradeDirectType [3]byte

资金进出方向类型

func (TThostFtdcAMLTradeDirectType) String

type TThostFtdcAMLTradeModelType

type TThostFtdcAMLTradeModelType [3]byte

资金进出方式类型

func (TThostFtdcAMLTradeModelType) String

type TThostFtdcAMLTradingTypeType

type TThostFtdcAMLTradingTypeType [7]byte

交易方式类型

func (TThostFtdcAMLTradingTypeType) String

type TThostFtdcAMLTransactClassType

type TThostFtdcAMLTransactClassType [7]byte

涉外收支交易分类与代码类型

func (TThostFtdcAMLTransactClassType) String

type TThostFtdcAPIProductClassType

type TThostFtdcAPIProductClassType byte

产品类型类型

const THOST_FTDC_APC_All TThostFtdcAPIProductClassType = '8' // 所有合约(包含不能交易合约 慎用)
const THOST_FTDC_APC_AllTrading TThostFtdcAPIProductClassType = '7' // 所有可以交易合约
const THOST_FTDC_APC_FutureSingle TThostFtdcAPIProductClassType = '1' // 期货单一合约
const THOST_FTDC_APC_Futures TThostFtdcAPIProductClassType = '3' // 可交易期货(含期货组合和期货单一合约)
const THOST_FTDC_APC_OptionSingle TThostFtdcAPIProductClassType = '2' // 期权单一合约
const THOST_FTDC_APC_Options TThostFtdcAPIProductClassType = '4' // 可交易期权(含期权组合和期权单一合约)
const THOST_FTDC_APC_TradingComb TThostFtdcAPIProductClassType = '5' // 可下单套利组合
const THOST_FTDC_APC_UnTradingComb TThostFtdcAPIProductClassType = '6' // 可申请的组合(可以申请的组合合约 包含可以交易的合约)

func (TThostFtdcAPIProductClassType) String

type TThostFtdcAbstractType

type TThostFtdcAbstractType [81]byte

消息摘要类型

func (TThostFtdcAbstractType) String

func (s TThostFtdcAbstractType) String() string

type TThostFtdcAccountIDType

type TThostFtdcAccountIDType [13]byte

投资者帐号类型

func (TThostFtdcAccountIDType) String

func (s TThostFtdcAccountIDType) String() string

type TThostFtdcAccountSettlementParamIDType

type TThostFtdcAccountSettlementParamIDType byte

投资者账户结算参数代码类型

const THOST_FTDC_ASPI_BaseMargin TThostFtdcAccountSettlementParamIDType = '1' // 基础保证金
const THOST_FTDC_ASPI_LowestInterest TThostFtdcAccountSettlementParamIDType = '2' // 最低权益标准

func (TThostFtdcAccountSettlementParamIDType) String

type TThostFtdcAccountSourceTypeType

type TThostFtdcAccountSourceTypeType byte

资金账户来源类型

const THOST_FTDC_AST_FBTransfer TThostFtdcAccountSourceTypeType = '0' // 银期同步
const THOST_FTDC_AST_ManualEntry TThostFtdcAccountSourceTypeType = '1' // 手工录入

func (TThostFtdcAccountSourceTypeType) String

type TThostFtdcActionDirectionType

type TThostFtdcActionDirectionType byte

操作标志类型

const THOST_FTDC_ACD_Add TThostFtdcActionDirectionType = '1' // 增加
const THOST_FTDC_ACD_Del TThostFtdcActionDirectionType = '2' // 删除
const THOST_FTDC_ACD_Upd TThostFtdcActionDirectionType = '3' // 更新

func (TThostFtdcActionDirectionType) String

type TThostFtdcActionFlagType

type TThostFtdcActionFlagType byte

操作标志类型

const THOST_FTDC_AF_Delete TThostFtdcActionFlagType = '0' // 删除
const THOST_FTDC_AF_Modify TThostFtdcActionFlagType = '3' // 修改

func (TThostFtdcActionFlagType) String

func (e TThostFtdcActionFlagType) String() string

type TThostFtdcActionTypeType

type TThostFtdcActionTypeType byte

执行类型类型

const THOST_FTDC_ACTP_Abandon TThostFtdcActionTypeType = '2' // 放弃
const THOST_FTDC_ACTP_Exec TThostFtdcActionTypeType = '1' // 执行

func (TThostFtdcActionTypeType) String

func (e TThostFtdcActionTypeType) String() string

type TThostFtdcActiveTypeType

type TThostFtdcActiveTypeType byte

生效类型类型

const THOST_FTDC_ACT_Intraday TThostFtdcActiveTypeType = '1' // 仅当日生效
const THOST_FTDC_ACT_Long TThostFtdcActiveTypeType = '2' // 长期生效

func (TThostFtdcActiveTypeType) String

func (e TThostFtdcActiveTypeType) String() string

type TThostFtdcAddInfoType

type TThostFtdcAddInfoType [129]byte

附加信息类型

func (TThostFtdcAddInfoType) String

func (s TThostFtdcAddInfoType) String() string

type TThostFtdcAdditionalInfoLenType

type TThostFtdcAdditionalInfoLenType int32

补充信息长度类型

type TThostFtdcAdditionalInfoType

type TThostFtdcAdditionalInfoType [261]byte

系统外部信息类型

func (TThostFtdcAdditionalInfoType) String

type TThostFtdcAddressType

type TThostFtdcAddressType [101]byte

通讯地址类型

func (TThostFtdcAddressType) String

func (s TThostFtdcAddressType) String() string

type TThostFtdcAdjustValueType added in v2.0.8

type TThostFtdcAdjustValueType float64

空头期权风险调整标准类型类型

func (TThostFtdcAdjustValueType) String added in v2.0.8

func (f TThostFtdcAdjustValueType) String() string

type TThostFtdcAdvanceMonthArrayType

type TThostFtdcAdvanceMonthArrayType [13]byte

月份提前数组类型

func (TThostFtdcAdvanceMonthArrayType) String

type TThostFtdcAgentBrokerIDType

type TThostFtdcAgentBrokerIDType [13]byte

代理经纪公司代码类型

func (TThostFtdcAgentBrokerIDType) String

type TThostFtdcAgentGroupIDType

type TThostFtdcAgentGroupIDType [13]byte

经纪人组代码类型

func (TThostFtdcAgentGroupIDType) String

type TThostFtdcAgentGroupNameType

type TThostFtdcAgentGroupNameType [41]byte

经纪人组名称类型

func (TThostFtdcAgentGroupNameType) String

type TThostFtdcAgentIDType

type TThostFtdcAgentIDType [13]byte

经纪人代码类型

func (TThostFtdcAgentIDType) String

func (s TThostFtdcAgentIDType) String() string

type TThostFtdcAgentNameType

type TThostFtdcAgentNameType [41]byte

经纪人名称类型

func (TThostFtdcAgentNameType) String

func (s TThostFtdcAgentNameType) String() string

type TThostFtdcAlgoTypeType

type TThostFtdcAlgoTypeType byte

算法类型类型

const THOST_FTDC_AT_FindMarginRateAlgo TThostFtdcAlgoTypeType = '2' // 寻找保证金率算法
const THOST_FTDC_AT_HandlePositionAlgo TThostFtdcAlgoTypeType = '1' // 持仓处理算法

func (TThostFtdcAlgoTypeType) String

func (e TThostFtdcAlgoTypeType) String() string

type TThostFtdcAlgorithmType

type TThostFtdcAlgorithmType byte

盈亏算法类型

const THOST_FTDC_AG_All TThostFtdcAlgorithmType = '1' // 浮盈浮亏都计算
const THOST_FTDC_AG_None TThostFtdcAlgorithmType = '4' // 浮盈浮亏都不计算
const THOST_FTDC_AG_OnlyGain TThostFtdcAlgorithmType = '3' // 浮盈计,浮亏不计
const THOST_FTDC_AG_OnlyLost TThostFtdcAlgorithmType = '2' // 浮盈不计,浮亏计

func (TThostFtdcAlgorithmType) String

func (e TThostFtdcAlgorithmType) String() string

type TThostFtdcAllWithoutTradeType

type TThostFtdcAllWithoutTradeType byte

是否受可提比例限制类型

const THOST_FTDC_AWT_Disable TThostFtdcAllWithoutTradeType = '2' // 受可提比例限制
const THOST_FTDC_AWT_Enable TThostFtdcAllWithoutTradeType = '0' // 无仓无成交不受可提比例限制
const THOST_FTDC_AWT_NoHoldEnable TThostFtdcAllWithoutTradeType = '3' // 无仓不受可提比例限制

func (TThostFtdcAllWithoutTradeType) String

type TThostFtdcAmAccountType

type TThostFtdcAmAccountType [23]byte

投资账户类型

func (TThostFtdcAmAccountType) String

func (s TThostFtdcAmAccountType) String() string

type TThostFtdcAmTypeType

type TThostFtdcAmTypeType byte

机构类型类型

const THOST_FTDC_AMT_Bank TThostFtdcAmTypeType = '1' // 银行
const THOST_FTDC_AMT_Fund TThostFtdcAmTypeType = '3' // 基金公司
const THOST_FTDC_AMT_Insurance TThostFtdcAmTypeType = '4' // 保险公司
const THOST_FTDC_AMT_Other TThostFtdcAmTypeType = '9' // 其他
const THOST_FTDC_AMT_Securities TThostFtdcAmTypeType = '2' // 证券公司
const THOST_FTDC_AMT_Trust TThostFtdcAmTypeType = '5' // 信托公司

func (TThostFtdcAmTypeType) String

func (e TThostFtdcAmTypeType) String() string

type TThostFtdcAmlCheckFlowType

type TThostFtdcAmlCheckFlowType [2]byte

反洗钱数据抽取审核流程类型

func (TThostFtdcAmlCheckFlowType) String

type TThostFtdcAmlCheckLevelType

type TThostFtdcAmlCheckLevelType byte

审核级别类型

const THOST_FTDC_AMLCL_CheckLevel0 TThostFtdcAmlCheckLevelType = '0' // 零级审核
const THOST_FTDC_AMLCL_CheckLevel1 TThostFtdcAmlCheckLevelType = '1' // 一级审核
const THOST_FTDC_AMLCL_CheckLevel2 TThostFtdcAmlCheckLevelType = '2' // 二级审核
const THOST_FTDC_AMLCL_CheckLevel3 TThostFtdcAmlCheckLevelType = '3' // 三级审核

func (TThostFtdcAmlCheckLevelType) String

type TThostFtdcAmlDateTypeType

type TThostFtdcAmlDateTypeType byte

日期类型类型

const THOST_FTDC_AMLDT_DrawDay TThostFtdcAmlDateTypeType = '0' // 检查日期
const THOST_FTDC_AMLDT_TouchDay TThostFtdcAmlDateTypeType = '1' // 发生日期

func (TThostFtdcAmlDateTypeType) String

func (e TThostFtdcAmlDateTypeType) String() string

type TThostFtdcAppIDType

type TThostFtdcAppIDType [33]byte

App代码类型

func (TThostFtdcAppIDType) String

func (s TThostFtdcAppIDType) String() string

type TThostFtdcAppTypeType

type TThostFtdcAppTypeType byte

用户App类型类型

const THOST_FTDC_APP_TYPE_Investor TThostFtdcAppTypeType = '1' // 直连的投资者
const THOST_FTDC_APP_TYPE_InvestorRelay TThostFtdcAppTypeType = '2' // 为每个投资者都创建连接的中继
const THOST_FTDC_APP_TYPE_OperatorRelay TThostFtdcAppTypeType = '3' // 所有投资者共享一个操作员连接的中继
const THOST_FTDC_APP_TYPE_UnKnown TThostFtdcAppTypeType = '4' // 未知

func (TThostFtdcAppTypeType) String

func (e TThostFtdcAppTypeType) String() string

type TThostFtdcApplicationIDType

type TThostFtdcApplicationIDType int32

应用标识类型

type TThostFtdcApplyOperateIDType

type TThostFtdcApplyOperateIDType byte

申请动作类型

const THOST_FTDC_AOID_ActiveFreezeAccount TThostFtdcApplyOperateIDType = '9' // 激活休眠账户
const THOST_FTDC_AOID_ApplyTradingCode TThostFtdcApplyOperateIDType = '4' // 申请交易编码
const THOST_FTDC_AOID_CancelInvestor TThostFtdcApplyOperateIDType = '6' // 销户
const THOST_FTDC_AOID_CancelTradingCode TThostFtdcApplyOperateIDType = '5' // 撤销交易编码
const THOST_FTDC_AOID_FreezeAccount TThostFtdcApplyOperateIDType = '8' // 账户休眠
const THOST_FTDC_AOID_ModifyIDCard TThostFtdcApplyOperateIDType = '2' // 修改身份信息
const THOST_FTDC_AOID_ModifyNoIDCard TThostFtdcApplyOperateIDType = '3' // 修改一般信息
const THOST_FTDC_AOID_OpenInvestor TThostFtdcApplyOperateIDType = '1' // 开户

func (TThostFtdcApplyOperateIDType) String

type TThostFtdcApplyStatusIDType

type TThostFtdcApplyStatusIDType byte

申请状态类型

const THOST_FTDC_ASID_Checked TThostFtdcApplyStatusIDType = '3' // 已审核
const THOST_FTDC_ASID_Deleted TThostFtdcApplyStatusIDType = '5' // 已删除
const THOST_FTDC_ASID_NoComplete TThostFtdcApplyStatusIDType = '1' // 未补全
const THOST_FTDC_ASID_Refused TThostFtdcApplyStatusIDType = '4' // 已拒绝
const THOST_FTDC_ASID_Submited TThostFtdcApplyStatusIDType = '2' // 已提交

func (TThostFtdcApplyStatusIDType) String

type TThostFtdcApplyTypeType

type TThostFtdcApplyTypeType byte

中金所期权放弃执行申请类型类型

const THOST_FTDC_APPT_NotStrikeNum TThostFtdcApplyTypeType = '4' // 不执行数量

func (TThostFtdcApplyTypeType) String

func (e TThostFtdcApplyTypeType) String() string

type TThostFtdcAreaCodeType

type TThostFtdcAreaCodeType [11]byte

区号类型

func (TThostFtdcAreaCodeType) String

func (s TThostFtdcAreaCodeType) String() string

type TThostFtdcAssetmgrApprovalNOType

type TThostFtdcAssetmgrApprovalNOType [51]byte

资产管理业务批文号类型

func (TThostFtdcAssetmgrApprovalNOType) String

type TThostFtdcAssetmgrCFullNameType

type TThostFtdcAssetmgrCFullNameType [101]byte

代理资产管理业务的期货公司全称类型

func (TThostFtdcAssetmgrCFullNameType) String

type TThostFtdcAssetmgrClientTypeType

type TThostFtdcAssetmgrClientTypeType byte

资产管理客户类型类型

const THOST_FTDC_AMCT_Organ TThostFtdcAssetmgrClientTypeType = '2' // 单位资管客户
const THOST_FTDC_AMCT_Person TThostFtdcAssetmgrClientTypeType = '1' // 个人资管客户
const THOST_FTDC_AMCT_SpecialOrgan TThostFtdcAssetmgrClientTypeType = '4' // 特殊单位资管客户

func (TThostFtdcAssetmgrClientTypeType) String

type TThostFtdcAssetmgrMgrNameType

type TThostFtdcAssetmgrMgrNameType [401]byte

资产管理业务负责人姓名类型

func (TThostFtdcAssetmgrMgrNameType) String

type TThostFtdcAssetmgrTypeType

type TThostFtdcAssetmgrTypeType byte

投资类型类型

const THOST_FTDC_ASST_Futures TThostFtdcAssetmgrTypeType = '3' // 期货类
const THOST_FTDC_ASST_SpecialOrgan TThostFtdcAssetmgrTypeType = '4' // 综合类

func (TThostFtdcAssetmgrTypeType) String

type TThostFtdcAuthCodeType

type TThostFtdcAuthCodeType [17]byte

客户端认证码类型

func (TThostFtdcAuthCodeType) String

func (s TThostFtdcAuthCodeType) String() string

type TThostFtdcAuthInfoType

type TThostFtdcAuthInfoType [129]byte

客户端认证信息类型

func (TThostFtdcAuthInfoType) String

func (s TThostFtdcAuthInfoType) String() string

type TThostFtdcAuthKeyType

type TThostFtdcAuthKeyType [41]byte

令牌密钥类型

func (TThostFtdcAuthKeyType) String

func (s TThostFtdcAuthKeyType) String() string

type TThostFtdcAuthTypeType

type TThostFtdcAuthTypeType byte

用户终端认证方式类型

const THOST_FTDC_AU_BLACK TThostFtdcAuthTypeType = '1' // 黑名单校验
const THOST_FTDC_AU_WHITE TThostFtdcAuthTypeType = '0' // 白名单校验

func (TThostFtdcAuthTypeType) String

func (e TThostFtdcAuthTypeType) String() string

type TThostFtdcAuthenticDataType

type TThostFtdcAuthenticDataType [129]byte

认证数据类型

func (TThostFtdcAuthenticDataType) String

type TThostFtdcAvailabilityFlagType

type TThostFtdcAvailabilityFlagType byte

有效标志类型

const THOST_FTDC_AVAF_Invalid TThostFtdcAvailabilityFlagType = '0' // 未确认
const THOST_FTDC_AVAF_Repeal TThostFtdcAvailabilityFlagType = '2' // 冲正
const THOST_FTDC_AVAF_Valid TThostFtdcAvailabilityFlagType = '1' // 有效

func (TThostFtdcAvailabilityFlagType) String

type TThostFtdcBackUpStatusType

type TThostFtdcBackUpStatusType byte

备份数据状态类型

const THOST_FTDC_BUS_BakFail TThostFtdcBackUpStatusType = '3' // 备份数据失败
const THOST_FTDC_BUS_BakUp TThostFtdcBackUpStatusType = '1' // 备份数据生成中
const THOST_FTDC_BUS_BakUped TThostFtdcBackUpStatusType = '2' // 已生成备份数据
const THOST_FTDC_BUS_UnBak TThostFtdcBackUpStatusType = '0' // 未生成备份数据

func (TThostFtdcBackUpStatusType) String

type TThostFtdcBalanceAlgorithmType

type TThostFtdcBalanceAlgorithmType byte

权益算法类型

const THOST_FTDC_BLAG_Default TThostFtdcBalanceAlgorithmType = '1' // 不计算期权市值盈亏
const THOST_FTDC_BLAG_IncludeOptValLost TThostFtdcBalanceAlgorithmType = '2' // 计算期权市值亏损

func (TThostFtdcBalanceAlgorithmType) String

type TThostFtdcBankAccStatusType

type TThostFtdcBankAccStatusType byte

银行账户状态类型

const THOST_FTDC_BAS_Freeze TThostFtdcBankAccStatusType = '1' // 冻结
const THOST_FTDC_BAS_Normal TThostFtdcBankAccStatusType = '0' // 正常
const THOST_FTDC_BAS_ReportLoss TThostFtdcBankAccStatusType = '2' // 挂失

func (TThostFtdcBankAccStatusType) String

type TThostFtdcBankAccTypeType

type TThostFtdcBankAccTypeType byte

银行帐号类型类型

const THOST_FTDC_BAT_BankBook TThostFtdcBankAccTypeType = '1' // 银行存折
const THOST_FTDC_BAT_CreditCard TThostFtdcBankAccTypeType = '3' // 信用卡
const THOST_FTDC_BAT_SavingCard TThostFtdcBankAccTypeType = '2' // 储蓄卡

func (TThostFtdcBankAccTypeType) String

func (e TThostFtdcBankAccTypeType) String() string

type TThostFtdcBankAccountNameType

type TThostFtdcBankAccountNameType [71]byte

银行帐户名称类型

func (TThostFtdcBankAccountNameType) String

type TThostFtdcBankAccountType

type TThostFtdcBankAccountType [41]byte

银行账户类型

func (TThostFtdcBankAccountType) String

func (s TThostFtdcBankAccountType) String() string

type TThostFtdcBankAccountTypeType

type TThostFtdcBankAccountTypeType [2]byte

账户类别类型

func (TThostFtdcBankAccountTypeType) String

type TThostFtdcBankAcountOriginType

type TThostFtdcBankAcountOriginType byte

账户来源类型

const THOST_FTDC_BAO_ByAccProperty TThostFtdcBankAcountOriginType = '0' // 手工录入
const THOST_FTDC_BAO_ByFBTransfer TThostFtdcBankAcountOriginType = '1' // 银期转账

func (TThostFtdcBankAcountOriginType) String

type TThostFtdcBankBranchIDType

type TThostFtdcBankBranchIDType [11]byte

分中心代码类型

func (TThostFtdcBankBranchIDType) String

type TThostFtdcBankBrchIDType

type TThostFtdcBankBrchIDType [5]byte

银行分中心代码类型

func (TThostFtdcBankBrchIDType) String

func (s TThostFtdcBankBrchIDType) String() string

type TThostFtdcBankCodingForFutureType

type TThostFtdcBankCodingForFutureType [33]byte

银行对期货公司的编码类型

func (TThostFtdcBankCodingForFutureType) String

type TThostFtdcBankCustNoType

type TThostFtdcBankCustNoType [21]byte

银行客户号类型

func (TThostFtdcBankCustNoType) String

func (s TThostFtdcBankCustNoType) String() string

type TThostFtdcBankFlagType

type TThostFtdcBankFlagType [4]byte

银行统一标识类型类型

func (TThostFtdcBankFlagType) String

func (s TThostFtdcBankFlagType) String() string

type TThostFtdcBankIDByBankType

type TThostFtdcBankIDByBankType [21]byte

银行自己的编码类型

func (TThostFtdcBankIDByBankType) String

type TThostFtdcBankIDType

type TThostFtdcBankIDType [4]byte

银行代码类型

func (TThostFtdcBankIDType) String

func (s TThostFtdcBankIDType) String() string

type TThostFtdcBankMainKeyType

type TThostFtdcBankMainKeyType [129]byte

银行主密钥类型

func (TThostFtdcBankMainKeyType) String

func (s TThostFtdcBankMainKeyType) String() string

type TThostFtdcBankNameType

type TThostFtdcBankNameType [101]byte

银行名称类型

func (TThostFtdcBankNameType) String

func (s TThostFtdcBankNameType) String() string

type TThostFtdcBankOperNoType

type TThostFtdcBankOperNoType [4]byte

银行操作员号类型

func (TThostFtdcBankOperNoType) String

func (s TThostFtdcBankOperNoType) String() string

type TThostFtdcBankProxyIDType

type TThostFtdcBankProxyIDType int32

银行代理标识类型

type TThostFtdcBankRepealFlagType

type TThostFtdcBankRepealFlagType byte

银行冲正标志类型

const THOST_FTDC_BRF_BankBeenRepealed TThostFtdcBankRepealFlagType = '2' // 银行已自动冲正
const THOST_FTDC_BRF_BankNotNeedRepeal TThostFtdcBankRepealFlagType = '0' // 银行无需自动冲正
const THOST_FTDC_BRF_BankWaitingRepeal TThostFtdcBankRepealFlagType = '1' // 银行待自动冲正

func (TThostFtdcBankRepealFlagType) String

type TThostFtdcBankReturnCodeType

type TThostFtdcBankReturnCodeType [7]byte

银行对返回码的定义类型

func (TThostFtdcBankReturnCodeType) String

type TThostFtdcBankSerialType

type TThostFtdcBankSerialType [13]byte

银行流水号类型

func (TThostFtdcBankSerialType) String

func (s TThostFtdcBankSerialType) String() string

type TThostFtdcBankServerDescriptionType

type TThostFtdcBankServerDescriptionType [129]byte

银行服务器描述信息类型

func (TThostFtdcBankServerDescriptionType) String

type TThostFtdcBankSubBranchIDType

type TThostFtdcBankSubBranchIDType [31]byte

银行分支机构编码类型

func (TThostFtdcBankSubBranchIDType) String

type TThostFtdcBankTransKeyType

type TThostFtdcBankTransKeyType [129]byte

银行传输密钥类型

func (TThostFtdcBankTransKeyType) String

type TThostFtdcBankWorkKeyType

type TThostFtdcBankWorkKeyType [129]byte

银行工作密钥类型

func (TThostFtdcBankWorkKeyType) String

func (s TThostFtdcBankWorkKeyType) String() string

type TThostFtdcBanlanceTypeType

type TThostFtdcBanlanceTypeType byte

余额类型类型

const THOST_FTDC_BLT_CurrentMoney TThostFtdcBanlanceTypeType = '0' // 当前余额
const THOST_FTDC_BLT_FetchableMoney TThostFtdcBanlanceTypeType = '2' // 可取余额
const THOST_FTDC_BLT_FreezeMoney TThostFtdcBanlanceTypeType = '3' // 冻结余额
const THOST_FTDC_BLT_UsableMoney TThostFtdcBanlanceTypeType = '1' // 可用余额

func (TThostFtdcBanlanceTypeType) String

type TThostFtdcBase64AdditionalInfoType

type TThostFtdcBase64AdditionalInfoType [349]byte

base64系统外部信息类型

func (TThostFtdcBase64AdditionalInfoType) String

type TThostFtdcBase64ClientSystemInfoType

type TThostFtdcBase64ClientSystemInfoType [365]byte

base64交易终端系统信息类型

func (TThostFtdcBase64ClientSystemInfoType) String

type TThostFtdcBasisPriceTypeType

type TThostFtdcBasisPriceTypeType byte

挂牌基准价类型类型

const THOST_FTDC_IPT_LaseClose TThostFtdcBasisPriceTypeType = '2' // 上一合约收盘价
const THOST_FTDC_IPT_LastSettlement TThostFtdcBasisPriceTypeType = '1' // 上一合约结算价

func (TThostFtdcBasisPriceTypeType) String

type TThostFtdcBatchSerialNoType

type TThostFtdcBatchSerialNoType [21]byte

批次号类型

func (TThostFtdcBatchSerialNoType) String

type TThostFtdcBatchStatusType

type TThostFtdcBatchStatusType byte

处理状态类型

const THOST_FTDC_BS_Failed TThostFtdcBatchStatusType = '3' // 审核失败
const THOST_FTDC_BS_NoUpload TThostFtdcBatchStatusType = '1' // 未上传
const THOST_FTDC_BS_Uploaded TThostFtdcBatchStatusType = '2' // 已上传

func (TThostFtdcBatchStatusType) String

func (e TThostFtdcBatchStatusType) String() string

type TThostFtdcBigMoneyType

type TThostFtdcBigMoneyType float64

资金类型

func (TThostFtdcBigMoneyType) String

func (f TThostFtdcBigMoneyType) String() string

type TThostFtdcBillGenStatusType

type TThostFtdcBillGenStatusType byte

结算单生成状态类型

const THOST_FTDC_BGS_Generated TThostFtdcBillGenStatusType = '2' // 已生成
const THOST_FTDC_BGS_NoGenerated TThostFtdcBillGenStatusType = '1' // 生成中
const THOST_FTDC_BGS_None TThostFtdcBillGenStatusType = '0' // 未生成

func (TThostFtdcBillGenStatusType) String

type TThostFtdcBillHedgeFlagType

type TThostFtdcBillHedgeFlagType byte

投机套保标志类型

const THOST_FTDC_BHF_Arbitrage TThostFtdcBillHedgeFlagType = '2' // 套利
const THOST_FTDC_BHF_Hedge TThostFtdcBillHedgeFlagType = '3' // 套保
const THOST_FTDC_BHF_Speculation TThostFtdcBillHedgeFlagType = '1' // 投机

func (TThostFtdcBillHedgeFlagType) String

type TThostFtdcBillNameType

type TThostFtdcBillNameType [33]byte

票据名称类型

func (TThostFtdcBillNameType) String

func (s TThostFtdcBillNameType) String() string

type TThostFtdcBillNoType

type TThostFtdcBillNoType [15]byte

票据号类型

func (TThostFtdcBillNoType) String

func (s TThostFtdcBillNoType) String() string

type TThostFtdcBizTypeType

type TThostFtdcBizTypeType byte

业务类型类型

const THOST_FTDC_BZTP_Future TThostFtdcBizTypeType = '1' // 期货
const THOST_FTDC_BZTP_Stock TThostFtdcBizTypeType = '2' // 证券

func (TThostFtdcBizTypeType) String

func (e TThostFtdcBizTypeType) String() string

type TThostFtdcBoolType

type TThostFtdcBoolType int32

布尔型类型

type TThostFtdcBranchIDType

type TThostFtdcBranchIDType [9]byte

营业部编号类型

func (TThostFtdcBranchIDType) String

func (s TThostFtdcBranchIDType) String() string

type TThostFtdcBranchNetCodeType

type TThostFtdcBranchNetCodeType [31]byte

机构网点号类型

func (TThostFtdcBranchNetCodeType) String

type TThostFtdcBranchNetNameType

type TThostFtdcBranchNetNameType [71]byte

机构网点名称类型

func (TThostFtdcBranchNetNameType) String

type TThostFtdcBrandCodeType

type TThostFtdcBrandCodeType [257]byte

牌号类型

func (TThostFtdcBrandCodeType) String

func (s TThostFtdcBrandCodeType) String() string

type TThostFtdcBrokerAbbrType

type TThostFtdcBrokerAbbrType [9]byte

经纪公司简称类型

func (TThostFtdcBrokerAbbrType) String

func (s TThostFtdcBrokerAbbrType) String() string

type TThostFtdcBrokerDNSType

type TThostFtdcBrokerDNSType [256]byte

域名类型

func (TThostFtdcBrokerDNSType) String

func (s TThostFtdcBrokerDNSType) String() string

type TThostFtdcBrokerDataSyncStatusType

type TThostFtdcBrokerDataSyncStatusType byte

经纪公司数据同步状态类型

const THOST_FTDC_BDS_Synchronized TThostFtdcBrokerDataSyncStatusType = '1' // 已同步
const THOST_FTDC_BDS_Synchronizing TThostFtdcBrokerDataSyncStatusType = '2' // 同步中

func (TThostFtdcBrokerDataSyncStatusType) String

type TThostFtdcBrokerFunctionCodeType

type TThostFtdcBrokerFunctionCodeType byte

经纪公司功能代码类型

const THOST_FTDC_BFC_AllQuery TThostFtdcBrokerFunctionCodeType = '7' // 全部查询
const THOST_FTDC_BFC_BachSyncBrokerData TThostFtdcBrokerFunctionCodeType = '4' // 批量同步经纪公司数据
const THOST_FTDC_BFC_BaseQry TThostFtdcBrokerFunctionCodeType = 'b' // 基本查询:查询基础数据,如合约,交易所等常量
const THOST_FTDC_BFC_BrokerDeposit TThostFtdcBrokerFunctionCodeType = 'j' // 察看经纪公司资金权限
const THOST_FTDC_BFC_BrokerDepositWarn TThostFtdcBrokerFunctionCodeType = 'Q' // 席位资金预警
const THOST_FTDC_BFC_CfgBizNotice TThostFtdcBrokerFunctionCodeType = 'D' // 业务通知模板设置
const THOST_FTDC_BFC_CfgRiskLevelStd TThostFtdcBrokerFunctionCodeType = 'G' // 风险级别标准设置
const THOST_FTDC_BFC_CoverWarn TThostFtdcBrokerFunctionCodeType = 'S' // 备兑不足预警
const THOST_FTDC_BFC_DataExport TThostFtdcBrokerFunctionCodeType = 'z' // 数据导出
const THOST_FTDC_BFC_DeleteOrder TThostFtdcBrokerFunctionCodeType = 'J' // 删除未知单
const THOST_FTDC_BFC_Designate TThostFtdcBrokerFunctionCodeType = 'N' // 指定
const THOST_FTDC_BFC_ExecOrderNoCheck TThostFtdcBrokerFunctionCodeType = 'M' // 资金不够仍允许行权
const THOST_FTDC_BFC_ExecOrderRisk TThostFtdcBrokerFunctionCodeType = 'P' // 行权交收风险
const THOST_FTDC_BFC_FBAccount TThostFtdcBrokerFunctionCodeType = 'X' // 银期签约解约
const THOST_FTDC_BFC_FBSign TThostFtdcBrokerFunctionCodeType = 'W' // 银期签到签退
const THOST_FTDC_BFC_ForceClose TThostFtdcBrokerFunctionCodeType = 'u' // 强平
const THOST_FTDC_BFC_ForceUserLogout TThostFtdcBrokerFunctionCodeType = '1' // 强制用户登出
const THOST_FTDC_BFC_MarketDataWarn TThostFtdcBrokerFunctionCodeType = 'B' // 行情预警
const THOST_FTDC_BFC_NetPositionInd TThostFtdcBrokerFunctionCodeType = 'x' // 净持仓保证金指标
const THOST_FTDC_BFC_OrderAction TThostFtdcBrokerFunctionCodeType = '6' // 报单操作
const THOST_FTDC_BFC_OrderInsert TThostFtdcBrokerFunctionCodeType = '5' // 报单插入
const THOST_FTDC_BFC_ParkedOrderAction TThostFtdcBrokerFunctionCodeType = 'L' // 预埋报单操作
const THOST_FTDC_BFC_ParkedOrderInsert TThostFtdcBrokerFunctionCodeType = 'K' // 预埋报单插入
const THOST_FTDC_BFC_PosiLimitWarn TThostFtdcBrokerFunctionCodeType = 'U' // 持仓限额预警
const THOST_FTDC_BFC_PreExecOrder TThostFtdcBrokerFunctionCodeType = 'T' // 行权试算
const THOST_FTDC_BFC_PressTest TThostFtdcBrokerFunctionCodeType = 'v' // 压力测试
const THOST_FTDC_BFC_QryBizNotice TThostFtdcBrokerFunctionCodeType = 'C' // 业务通知查询
const THOST_FTDC_BFC_QryPosiLimit TThostFtdcBrokerFunctionCodeType = 'V' // 持仓限额查询
const THOST_FTDC_BFC_QueryFund TThostFtdcBrokerFunctionCodeType = 'k' // 资金查询
const THOST_FTDC_BFC_QueryFundChange TThostFtdcBrokerFunctionCodeType = 'r' // 出入金查询
const THOST_FTDC_BFC_QueryInvestor TThostFtdcBrokerFunctionCodeType = 's' // 投资者信息查询
const THOST_FTDC_BFC_QueryMarketData TThostFtdcBrokerFunctionCodeType = 'o' // 行情查询
const THOST_FTDC_BFC_QueryOrder TThostFtdcBrokerFunctionCodeType = 'l' // 报单查询
const THOST_FTDC_BFC_QueryPosition TThostFtdcBrokerFunctionCodeType = 'n' // 持仓查询
const THOST_FTDC_BFC_QueryRiskNotify TThostFtdcBrokerFunctionCodeType = 'q' // 风险通知查询
const THOST_FTDC_BFC_QueryTrade TThostFtdcBrokerFunctionCodeType = 'm' // 成交查询
const THOST_FTDC_BFC_QueryTradingCode TThostFtdcBrokerFunctionCodeType = 't' // 交易编码查询
const THOST_FTDC_BFC_QueryUserEvent TThostFtdcBrokerFunctionCodeType = 'p' // 用户事件查询
const THOST_FTDC_BFC_RemainCalc TThostFtdcBrokerFunctionCodeType = 'w' // 权益反算
const THOST_FTDC_BFC_Risk TThostFtdcBrokerFunctionCodeType = 'f' // 风险监控
const THOST_FTDC_BFC_RiskNotice TThostFtdcBrokerFunctionCodeType = 'i' // 风控通知发送
const THOST_FTDC_BFC_RiskNoticeCtl TThostFtdcBrokerFunctionCodeType = 'h' // 风控通知控制
const THOST_FTDC_BFC_RiskPredict TThostFtdcBrokerFunctionCodeType = 'y' // 风险预算
const THOST_FTDC_BFC_RiskTargetSetup TThostFtdcBrokerFunctionCodeType = 'A' // 风控指标设置
const THOST_FTDC_BFC_SendBizNotice TThostFtdcBrokerFunctionCodeType = 'F' // 发送业务通知
const THOST_FTDC_BFC_Session TThostFtdcBrokerFunctionCodeType = 'g' // 查询/管理:查询会话,踢人等
const THOST_FTDC_BFC_StockDisposal TThostFtdcBrokerFunctionCodeType = 'O' // 证券处置
const THOST_FTDC_BFC_SyncBrokerData TThostFtdcBrokerFunctionCodeType = '3' // 同步经纪公司数据
const THOST_FTDC_BFC_SyncOTP TThostFtdcBrokerFunctionCodeType = 'E' // 同步动态令牌
const THOST_FTDC_BFC_TbCommand TThostFtdcBrokerFunctionCodeType = 'H' // 交易终端应急功能
const THOST_FTDC_BFC_Trade TThostFtdcBrokerFunctionCodeType = 'd' // 交易功能:报单,撤单
const THOST_FTDC_BFC_TradeQry TThostFtdcBrokerFunctionCodeType = 'c' // 交易查询:如查成交,委托
const THOST_FTDC_BFC_UserPasswordUpdate TThostFtdcBrokerFunctionCodeType = '2' // 变更用户口令
const THOST_FTDC_BFC_Virement TThostFtdcBrokerFunctionCodeType = 'e' // 银期转账
const THOST_FTDC_BFC_log TThostFtdcBrokerFunctionCodeType = 'a' // 系统功能:登入/登出/修改密码等

func (TThostFtdcBrokerFunctionCodeType) String

type TThostFtdcBrokerIDType

type TThostFtdcBrokerIDType [11]byte

经纪公司代码类型

func (TThostFtdcBrokerIDType) String

func (s TThostFtdcBrokerIDType) String() string

type TThostFtdcBrokerNameType

type TThostFtdcBrokerNameType [81]byte

经纪公司名称类型

func (TThostFtdcBrokerNameType) String

func (s TThostFtdcBrokerNameType) String() string

type TThostFtdcBrokerRepealFlagType

type TThostFtdcBrokerRepealFlagType byte

期商冲正标志类型

const THOST_FTDC_BRORF_BrokerBeenRepealed TThostFtdcBrokerRepealFlagType = '2' // 期商已自动冲正
const THOST_FTDC_BRORF_BrokerNotNeedRepeal TThostFtdcBrokerRepealFlagType = '0' // 期商无需自动冲正
const THOST_FTDC_BRORF_BrokerWaitingRepeal TThostFtdcBrokerRepealFlagType = '1' // 期商待自动冲正

func (TThostFtdcBrokerRepealFlagType) String

type TThostFtdcBrokerTypeType

type TThostFtdcBrokerTypeType byte

经纪公司类型类型

const THOST_FTDC_BT_Trade TThostFtdcBrokerTypeType = '0' // 交易会员
const THOST_FTDC_BT_TradeSettle TThostFtdcBrokerTypeType = '1' // 交易结算会员

func (TThostFtdcBrokerTypeType) String

func (e TThostFtdcBrokerTypeType) String() string

type TThostFtdcBrokerUserTypeType

type TThostFtdcBrokerUserTypeType byte

经济公司用户类型类型

const THOST_FTDC_BUT_BrokerUser TThostFtdcBrokerUserTypeType = '2' // 操作员
const THOST_FTDC_BUT_Investor TThostFtdcBrokerUserTypeType = '1' // 投资者

func (TThostFtdcBrokerUserTypeType) String

type TThostFtdcBulletinIDType

type TThostFtdcBulletinIDType int32

公告编号类型

type TThostFtdcBusinessClassType

type TThostFtdcBusinessClassType byte

换汇类别类型

const THOST_FTDC_BT_Loss TThostFtdcBusinessClassType = '1' // 亏损
const THOST_FTDC_BT_Other TThostFtdcBusinessClassType = 'Z' // 其他
const THOST_FTDC_BT_Profit TThostFtdcBusinessClassType = '0' // 盈利

func (TThostFtdcBusinessClassType) String

type TThostFtdcBusinessPeriodType

type TThostFtdcBusinessPeriodType [21]byte

经营期限类型

func (TThostFtdcBusinessPeriodType) String

type TThostFtdcBusinessScopeType

type TThostFtdcBusinessScopeType [1001]byte

经营范围类型

func (TThostFtdcBusinessScopeType) String

type TThostFtdcBusinessTypeType

type TThostFtdcBusinessTypeType byte

业务类型类型

const THOST_FTDC_BT_Notice TThostFtdcBusinessTypeType = '3' // 通知
const THOST_FTDC_BT_Request TThostFtdcBusinessTypeType = '1' // 请求
const THOST_FTDC_BT_Response TThostFtdcBusinessTypeType = '2' // 应答

func (TThostFtdcBusinessTypeType) String

type TThostFtdcBusinessUnitType

type TThostFtdcBusinessUnitType [21]byte

业务单元类型

func (TThostFtdcBusinessUnitType) String

type TThostFtdcByGroupType

type TThostFtdcByGroupType byte

交易统计表按客户统计方式类型

const THOST_FTDC_BG_Group TThostFtdcByGroupType = '1' // 按类统计
const THOST_FTDC_BG_Investor TThostFtdcByGroupType = '2' // 按投资者统计

func (TThostFtdcByGroupType) String

func (e TThostFtdcByGroupType) String() string

type TThostFtdcByInvestorRangeType

type TThostFtdcByInvestorRangeType byte

投资者范围统计方式类型

const THOST_FTDC_BIR_All TThostFtdcByInvestorRangeType = '2' // 统计所有
const THOST_FTDC_BIR_Property TThostFtdcByInvestorRangeType = '1' // 属性统计

func (TThostFtdcByInvestorRangeType) String

type TThostFtdcCCBFeeModeType

type TThostFtdcCCBFeeModeType byte

建行收费模式类型

const THOST_FTDC_CCBFM_ByAmount TThostFtdcCCBFeeModeType = '1' // 按金额扣收
const THOST_FTDC_CCBFM_ByMonth TThostFtdcCCBFeeModeType = '2' // 按月扣收

func (TThostFtdcCCBFeeModeType) String

func (e TThostFtdcCCBFeeModeType) String() string

type TThostFtdcCFFEXUploadFileNameType

type TThostFtdcCFFEXUploadFileNameType byte

中金所结算文件名类型

const THOST_FTDC_CFUFN_SUFN_F TThostFtdcCFFEXUploadFileNameType = 'F' // ^\d{4}_SG\d{1}_\d{8}_\d{1}_Capital
const THOST_FTDC_CFUFN_SUFN_P TThostFtdcCFFEXUploadFileNameType = 'P' // ^\d{4}_SG\d{1}_\d{8}_\d{1}_SettlementDetail
const THOST_FTDC_CFUFN_SUFN_S TThostFtdcCFFEXUploadFileNameType = 'S' // ^\d{4}_SG\d{1}_\d{8}_\d{1}_OptionExec
const THOST_FTDC_CFUFN_SUFN_T TThostFtdcCFFEXUploadFileNameType = 'T' // ^\d{4}_SG\d{1}_\d{8}_\d{1}_Trade

func (TThostFtdcCFFEXUploadFileNameType) String

type TThostFtdcCFMMCKeyKindType

type TThostFtdcCFMMCKeyKindType byte

动态密钥类别(保证金监管)类型

const THOST_FTDC_CFMMCKK_AUTO TThostFtdcCFMMCKeyKindType = 'A' // CFMMC自动更新
const THOST_FTDC_CFMMCKK_MANUAL TThostFtdcCFMMCKeyKindType = 'M' // CFMMC手动更新
const THOST_FTDC_CFMMCKK_REQUEST TThostFtdcCFMMCKeyKindType = 'R' // 主动请求更新

func (TThostFtdcCFMMCKeyKindType) String

type TThostFtdcCFMMCKeyType

type TThostFtdcCFMMCKeyType [21]byte

密钥类型(保证金监管)类型

func (TThostFtdcCFMMCKeyType) String

func (s TThostFtdcCFMMCKeyType) String() string

type TThostFtdcCFMMCTokenType

type TThostFtdcCFMMCTokenType [21]byte

令牌类型(保证金监管)类型

func (TThostFtdcCFMMCTokenType) String

func (s TThostFtdcCFMMCTokenType) String() string

type TThostFtdcCSRCAmTypeType

type TThostFtdcCSRCAmTypeType [5]byte

机构类型类型

func (TThostFtdcCSRCAmTypeType) String

func (s TThostFtdcCSRCAmTypeType) String() string

type TThostFtdcCSRCBankAccountType

type TThostFtdcCSRCBankAccountType [23]byte

银行账户类型

func (TThostFtdcCSRCBankAccountType) String

type TThostFtdcCSRCBankFlagType

type TThostFtdcCSRCBankFlagType [3]byte

银行标识类型

func (TThostFtdcCSRCBankFlagType) String

type TThostFtdcCSRCCancelFlagType

type TThostFtdcCSRCCancelFlagType [2]byte

新增或变更标志类型

func (TThostFtdcCSRCCancelFlagType) String

type TThostFtdcCSRCClientIDType

type TThostFtdcCSRCClientIDType [11]byte

交易编码类型

func (TThostFtdcCSRCClientIDType) String

type TThostFtdcCSRCDataQueyTypeType

type TThostFtdcCSRCDataQueyTypeType byte

上报数据查询类型类型

const THOST_FTDC_CSRCQ_Current TThostFtdcCSRCDataQueyTypeType = '0' // 查询当前交易日报送的数据
const THOST_FTDC_CSRCQ_History TThostFtdcCSRCDataQueyTypeType = '1' // 查询历史报送的代理经纪公司的数据

func (TThostFtdcCSRCDataQueyTypeType) String

type TThostFtdcCSRCDateType

type TThostFtdcCSRCDateType [11]byte

日期类型

func (TThostFtdcCSRCDateType) String

func (s TThostFtdcCSRCDateType) String() string

type TThostFtdcCSRCExchangeInstIDType

type TThostFtdcCSRCExchangeInstIDType [31]byte

合约代码类型

func (TThostFtdcCSRCExchangeInstIDType) String

type TThostFtdcCSRCFreezeStatusType

type TThostFtdcCSRCFreezeStatusType [2]byte

休眠状态类型

func (TThostFtdcCSRCFreezeStatusType) String

type TThostFtdcCSRCFundIOTypeType

type TThostFtdcCSRCFundIOTypeType byte

出入金类型类型

const THOST_FTDC_CFIOT_FundIO TThostFtdcCSRCFundIOTypeType = '0' // 出入金
const THOST_FTDC_CFIOT_SwapCurrency TThostFtdcCSRCFundIOTypeType = '1' // 银期换汇

func (TThostFtdcCSRCFundIOTypeType) String

type TThostFtdcCSRCIdentifiedCardNoType

type TThostFtdcCSRCIdentifiedCardNoType [51]byte

证件号码类型

func (TThostFtdcCSRCIdentifiedCardNoType) String

type TThostFtdcCSRCInvestorIDType

type TThostFtdcCSRCInvestorIDType [13]byte

客户代码类型

func (TThostFtdcCSRCInvestorIDType) String

type TThostFtdcCSRCInvestorNameType

type TThostFtdcCSRCInvestorNameType [201]byte

客户名称类型

func (TThostFtdcCSRCInvestorNameType) String

type TThostFtdcCSRCMemo1Type

type TThostFtdcCSRCMemo1Type [41]byte

说明类型

func (TThostFtdcCSRCMemo1Type) String

func (s TThostFtdcCSRCMemo1Type) String() string

type TThostFtdcCSRCMemoType

type TThostFtdcCSRCMemoType [101]byte

说明类型

func (TThostFtdcCSRCMemoType) String

func (s TThostFtdcCSRCMemoType) String() string

type TThostFtdcCSRCMoneyType

type TThostFtdcCSRCMoneyType float64

资金类型

func (TThostFtdcCSRCMoneyType) String

func (f TThostFtdcCSRCMoneyType) String() string

type TThostFtdcCSRCMortgageNameType

type TThostFtdcCSRCMortgageNameType [7]byte

质押品名称类型

func (TThostFtdcCSRCMortgageNameType) String

type TThostFtdcCSRCNationalType

type TThostFtdcCSRCNationalType [4]byte

国籍类型

func (TThostFtdcCSRCNationalType) String

type TThostFtdcCSRCOpenInvestorNameType

type TThostFtdcCSRCOpenInvestorNameType [101]byte

客户名称类型

func (TThostFtdcCSRCOpenInvestorNameType) String

type TThostFtdcCSRCOpenNameType

type TThostFtdcCSRCOpenNameType [401]byte

开户人类型

func (TThostFtdcCSRCOpenNameType) String

type TThostFtdcCSRCOptionsTypeType

type TThostFtdcCSRCOptionsTypeType [2]byte

期权类型类型

func (TThostFtdcCSRCOptionsTypeType) String

type TThostFtdcCSRCPriceType

type TThostFtdcCSRCPriceType float64

价格类型

func (TThostFtdcCSRCPriceType) String

func (f TThostFtdcCSRCPriceType) String() string

type TThostFtdcCSRCReasonType

type TThostFtdcCSRCReasonType [3]byte

事由类型

func (TThostFtdcCSRCReasonType) String

func (s TThostFtdcCSRCReasonType) String() string

type TThostFtdcCSRCSecAgentIDType

type TThostFtdcCSRCSecAgentIDType [11]byte

二级代理ID类型

func (TThostFtdcCSRCSecAgentIDType) String

type TThostFtdcCSRCStrikePriceType

type TThostFtdcCSRCStrikePriceType float64

执行价类型

func (TThostFtdcCSRCStrikePriceType) String

type TThostFtdcCSRCTargetInstrIDType

type TThostFtdcCSRCTargetInstrIDType [31]byte

标的合约类型

func (TThostFtdcCSRCTargetInstrIDType) String

type TThostFtdcCSRCTargetProductIDType

type TThostFtdcCSRCTargetProductIDType [3]byte

标的品种类型

func (TThostFtdcCSRCTargetProductIDType) String

type TThostFtdcCSRCTimeType

type TThostFtdcCSRCTimeType [11]byte

时间类型

func (TThostFtdcCSRCTimeType) String

func (s TThostFtdcCSRCTimeType) String() string

type TThostFtdcCSRCTradeIDType

type TThostFtdcCSRCTradeIDType [21]byte

成交流水号类型

func (TThostFtdcCSRCTradeIDType) String

func (s TThostFtdcCSRCTradeIDType) String() string

type TThostFtdcCTPTypeType

type TThostFtdcCTPTypeType byte

CTP交易系统类型类型

const THOST_FTDC_CTPT_BackUp TThostFtdcCTPTypeType = '2' // 备中心
const THOST_FTDC_CTPT_MainCenter TThostFtdcCTPTypeType = '1' // 主中心
const THOST_FTDC_CTPT_Unkown TThostFtdcCTPTypeType = '0' // 未知类型

func (TThostFtdcCTPTypeType) String

func (e TThostFtdcCTPTypeType) String() string

type TThostFtdcCZCEUploadFileNameType

type TThostFtdcCZCEUploadFileNameType byte

郑商所结算文件名类型

const THOST_FTDC_CUFN_CUFN_C TThostFtdcCZCEUploadFileNameType = 'C' // ^\d{8}组合持仓表
const THOST_FTDC_CUFN_CUFN_F TThostFtdcCZCEUploadFileNameType = 'F' // ^\d{8}资金表
const THOST_FTDC_CUFN_CUFN_L TThostFtdcCZCEUploadFileNameType = 'L' // ^\d{8}平仓表
const THOST_FTDC_CUFN_CUFN_M TThostFtdcCZCEUploadFileNameType = 'M' // ^\d{8}保证金参数表
const THOST_FTDC_CUFN_CUFN_N TThostFtdcCZCEUploadFileNameType = 'N' // ^\d{8}非平仓了结表
const THOST_FTDC_CUFN_CUFN_O TThostFtdcCZCEUploadFileNameType = 'O' // ^\d{8}_zz_\d{4}
const THOST_FTDC_CUFN_CUFN_P TThostFtdcCZCEUploadFileNameType = 'P' // ^\d{8}单腿持仓表new
const THOST_FTDC_CUFN_CUFN_T TThostFtdcCZCEUploadFileNameType = 'T' // ^\d{8}成交表

func (TThostFtdcCZCEUploadFileNameType) String

type TThostFtdcCapitalCurrencyType

type TThostFtdcCapitalCurrencyType [4]byte

注册资本币种类型

func (TThostFtdcCapitalCurrencyType) String

type TThostFtdcCaptchaInfoLenType

type TThostFtdcCaptchaInfoLenType int32

图片验证信息长度类型

type TThostFtdcCaptchaInfoType

type TThostFtdcCaptchaInfoType [2561]byte

图片验证信息类型

func (TThostFtdcCaptchaInfoType) String

func (s TThostFtdcCaptchaInfoType) String() string

type TThostFtdcCashExchangeCodeType

type TThostFtdcCashExchangeCodeType byte

汇钞标志类型

const THOST_FTDC_CEC_Cash TThostFtdcCashExchangeCodeType = '2' // 钞
const THOST_FTDC_CEC_Exchange TThostFtdcCashExchangeCodeType = '1' // 汇

func (TThostFtdcCashExchangeCodeType) String

type TThostFtdcCertCodeType

type TThostFtdcCertCodeType [21]byte

证件号码类型

func (TThostFtdcCertCodeType) String

func (s TThostFtdcCertCodeType) String() string

type TThostFtdcCertificationTypeType

type TThostFtdcCertificationTypeType byte

证件类型类型

const THOST_FTDC_CFT_HomeComingCard TThostFtdcCertificationTypeType = '4' // 回乡证
const THOST_FTDC_CFT_HouseholdRegister TThostFtdcCertificationTypeType = '5' // 户口簿
const THOST_FTDC_CFT_IDCard TThostFtdcCertificationTypeType = '0' // 身份证
const THOST_FTDC_CFT_InstitutionCodeCard TThostFtdcCertificationTypeType = '7' // 组织机构代码证
const THOST_FTDC_CFT_LicenseNo TThostFtdcCertificationTypeType = '6' // 营业执照号
const THOST_FTDC_CFT_NoEnterpriseLicenseNo TThostFtdcCertificationTypeType = '9' // 民办非企业登记证书
const THOST_FTDC_CFT_OfficerIDCard TThostFtdcCertificationTypeType = '2' // 军官证
const THOST_FTDC_CFT_OtherCard TThostFtdcCertificationTypeType = 'x' // 其他证件
const THOST_FTDC_CFT_Passport TThostFtdcCertificationTypeType = '1' // 护照
const THOST_FTDC_CFT_SoldierIDCard TThostFtdcCertificationTypeType = '3' // 士兵证
const THOST_FTDC_CFT_SuperDepAgree TThostFtdcCertificationTypeType = 'a' // 主管部门批文
const THOST_FTDC_CFT_TempLicenseNo TThostFtdcCertificationTypeType = '8' // 临时营业执照号

func (TThostFtdcCertificationTypeType) String

type TThostFtdcCffexDepartmentCodeType

type TThostFtdcCffexDepartmentCodeType [9]byte

营业部代码类型

func (TThostFtdcCffexDepartmentCodeType) String

type TThostFtdcCffexDepartmentNameType

type TThostFtdcCffexDepartmentNameType [101]byte

开户营业部类型

func (TThostFtdcCffexDepartmentNameType) String

type TThostFtdcCffmcDateType

type TThostFtdcCffmcDateType [11]byte

日期类型

func (TThostFtdcCffmcDateType) String

func (s TThostFtdcCffmcDateType) String() string

type TThostFtdcCffmcTimeType

type TThostFtdcCffmcTimeType [11]byte

时间类型

func (TThostFtdcCffmcTimeType) String

func (s TThostFtdcCffmcTimeType) String() string

type TThostFtdcCfmmcReturnCodeType

type TThostFtdcCfmmcReturnCodeType byte

监控中心返回码类型

const THOST_FTDC_CRC_IDCardFail TThostFtdcCfmmcReturnCodeType = '3' // 监控中实名制检查失败
const THOST_FTDC_CRC_InfoFail TThostFtdcCfmmcReturnCodeType = '2' // 监控中客户资料检查失败
const THOST_FTDC_CRC_OtherFail TThostFtdcCfmmcReturnCodeType = '4' // 其他错误
const THOST_FTDC_CRC_Success TThostFtdcCfmmcReturnCodeType = '0' // 成功
const THOST_FTDC_CRC_Working TThostFtdcCfmmcReturnCodeType = '1' // 该客户已经有流程在处理中

func (TThostFtdcCfmmcReturnCodeType) String

type TThostFtdcChannelType

type TThostFtdcChannelType [51]byte

渠道类型

func (TThostFtdcChannelType) String

func (s TThostFtdcChannelType) String() string

type TThostFtdcCharacterIDType

type TThostFtdcCharacterIDType [5]byte

交易特征代码类型

func (TThostFtdcCharacterIDType) String

func (s TThostFtdcCharacterIDType) String() string

type TThostFtdcCheckInstrTypeType

type TThostFtdcCheckInstrTypeType byte

合约比较类型类型

const THOST_FTDC_CIT_HasATP TThostFtdcCheckInstrTypeType = '1' // 合约本系统不存在
const THOST_FTDC_CIT_HasDiff TThostFtdcCheckInstrTypeType = '2' // 合约比较不一致
const THOST_FTDC_CIT_HasExch TThostFtdcCheckInstrTypeType = '0' // 合约交易所不存在

func (TThostFtdcCheckInstrTypeType) String

type TThostFtdcCheckLevelType

type TThostFtdcCheckLevelType byte

复核级别类型

const THOST_FTDC_CL_One TThostFtdcCheckLevelType = '1' // 一级复核
const THOST_FTDC_CL_Two TThostFtdcCheckLevelType = '2' // 二级复核
const THOST_FTDC_CL_Zero TThostFtdcCheckLevelType = '0' // 零级复核

func (TThostFtdcCheckLevelType) String

func (e TThostFtdcCheckLevelType) String() string

type TThostFtdcCheckNoType

type TThostFtdcCheckNoType int32

操作次数类型

type TThostFtdcCheckResultMemoType

type TThostFtdcCheckResultMemoType [1025]byte

核对结果说明类型

func (TThostFtdcCheckResultMemoType) String

type TThostFtdcCheckStatusType

type TThostFtdcCheckStatusType byte

复核级别类型

const THOST_FTDC_CHS_Cancel TThostFtdcCheckStatusType = '4' // 作废
const THOST_FTDC_CHS_Checked TThostFtdcCheckStatusType = '2' // 已复核
const THOST_FTDC_CHS_Checking TThostFtdcCheckStatusType = '1' // 复核中
const THOST_FTDC_CHS_Init TThostFtdcCheckStatusType = '0' // 未复核
const THOST_FTDC_CHS_Refuse TThostFtdcCheckStatusType = '3' // 拒绝

func (TThostFtdcCheckStatusType) String

func (e TThostFtdcCheckStatusType) String() string

type TThostFtdcCityType

type TThostFtdcCityType [51]byte

市类型

func (TThostFtdcCityType) String

func (s TThostFtdcCityType) String() string

type TThostFtdcClassTypeType

type TThostFtdcClassTypeType byte

合约分类方式类型

const THOST_FTDC_INS_ALL TThostFtdcClassTypeType = '0' // 所有合约
const THOST_FTDC_INS_COMB TThostFtdcClassTypeType = '3' // 组合合约
const THOST_FTDC_INS_FUTURE TThostFtdcClassTypeType = '1' // 期货、即期、期转现、Tas、金属指数合约
const THOST_FTDC_INS_OPTION TThostFtdcClassTypeType = '2' // 期货、现货期权合约

func (TThostFtdcClassTypeType) String

func (e TThostFtdcClassTypeType) String() string

type TThostFtdcClassifyType

type TThostFtdcClassifyType [41]byte

类别类型

func (TThostFtdcClassifyType) String

func (s TThostFtdcClassifyType) String() string

type TThostFtdcClearAccountType

type TThostFtdcClearAccountType [33]byte

结算账户类型

func (TThostFtdcClearAccountType) String

type TThostFtdcClearBrchIDType

type TThostFtdcClearBrchIDType [6]byte

机构结算帐户联行号类型

func (TThostFtdcClearBrchIDType) String

func (s TThostFtdcClearBrchIDType) String() string

type TThostFtdcClearDepIDType

type TThostFtdcClearDepIDType [6]byte

机构结算帐户机构号类型

func (TThostFtdcClearDepIDType) String

func (s TThostFtdcClearDepIDType) String() string

type TThostFtdcClearNameType

type TThostFtdcClearNameType [71]byte

机构结算帐户名称类型

func (TThostFtdcClearNameType) String

func (s TThostFtdcClearNameType) String() string

type TThostFtdcClearbarchIDType

type TThostFtdcClearbarchIDType [6]byte

结算账户联行号类型

func (TThostFtdcClearbarchIDType) String

type TThostFtdcClientClassifyType

type TThostFtdcClientClassifyType [11]byte

客户分类码类型

func (TThostFtdcClientClassifyType) String

type TThostFtdcClientIDStatusType

type TThostFtdcClientIDStatusType byte

交易编码状态类型

const THOST_FTDC_UOACS_Cancel TThostFtdcClientIDStatusType = '6' // 已撤销编码
const THOST_FTDC_UOACS_NoApply TThostFtdcClientIDStatusType = '1' // 未申请
const THOST_FTDC_UOACS_Refuse TThostFtdcClientIDStatusType = '5' // 拒绝
const THOST_FTDC_UOACS_Sended TThostFtdcClientIDStatusType = '3' // 已发送申请
const THOST_FTDC_UOACS_Submited TThostFtdcClientIDStatusType = '2' // 已提交申请
const THOST_FTDC_UOACS_Success TThostFtdcClientIDStatusType = '4' // 完成

func (TThostFtdcClientIDStatusType) String

type TThostFtdcClientIDType

type TThostFtdcClientIDType [11]byte

交易编码类型

func (TThostFtdcClientIDType) String

func (s TThostFtdcClientIDType) String() string

type TThostFtdcClientIDTypeType

type TThostFtdcClientIDTypeType byte

交易编码类型类型

const THOST_FTDC_CIDT_Arbitrage TThostFtdcClientIDTypeType = '2' // 套利
const THOST_FTDC_CIDT_Hedge TThostFtdcClientIDTypeType = '3' // 套保
const THOST_FTDC_CIDT_MarketMaker TThostFtdcClientIDTypeType = '5' // 做市商
const THOST_FTDC_CIDT_Speculation TThostFtdcClientIDTypeType = '1' // 投机

func (TThostFtdcClientIDTypeType) String

type TThostFtdcClientLoginRemarkType

type TThostFtdcClientLoginRemarkType [151]byte

客户登录备注2类型

func (TThostFtdcClientLoginRemarkType) String

type TThostFtdcClientModeType

type TThostFtdcClientModeType [3]byte

开户模式类型

func (TThostFtdcClientModeType) String

func (s TThostFtdcClientModeType) String() string

type TThostFtdcClientRegionType

type TThostFtdcClientRegionType byte

开户客户地域类型

const THOST_FTDC_CR_Domestic TThostFtdcClientRegionType = '1' // 国内客户
const THOST_FTDC_CR_Foreign TThostFtdcClientRegionType = '3' // 国外客户
const THOST_FTDC_CR_GMT TThostFtdcClientRegionType = '2' // 港澳台客户

func (TThostFtdcClientRegionType) String

type TThostFtdcClientSystemInfoType

type TThostFtdcClientSystemInfoType [273]byte

交易终端系统信息类型

func (TThostFtdcClientSystemInfoType) String

type TThostFtdcClientTypeType

type TThostFtdcClientTypeType byte

客户类型类型

const THOST_FTDC_CfMMCCT_All TThostFtdcClientTypeType = '0' // 所有
const THOST_FTDC_CfMMCCT_Asset TThostFtdcClientTypeType = '5' // 资管户
const THOST_FTDC_CfMMCCT_Company TThostFtdcClientTypeType = '2' // 单位
const THOST_FTDC_CfMMCCT_Other TThostFtdcClientTypeType = '3' // 其他
const THOST_FTDC_CfMMCCT_Person TThostFtdcClientTypeType = '1' // 个人
const THOST_FTDC_CfMMCCT_SpecialOrgan TThostFtdcClientTypeType = '4' // 特殊法人

func (TThostFtdcClientTypeType) String

func (e TThostFtdcClientTypeType) String() string

type TThostFtdcCloseDealTypeType

type TThostFtdcCloseDealTypeType byte

平仓处理类型类型

const THOST_FTDC_CDT_Normal TThostFtdcCloseDealTypeType = '0' // 正常
const THOST_FTDC_CDT_SpecFirst TThostFtdcCloseDealTypeType = '1' // 投机平仓优先

func (TThostFtdcCloseDealTypeType) String

type TThostFtdcCloseStyleType

type TThostFtdcCloseStyleType byte

平仓方式类型

const THOST_FTDC_ICS_Close TThostFtdcCloseStyleType = '0' // 先开先平
const THOST_FTDC_ICS_CloseToday TThostFtdcCloseStyleType = '1' // 先平今再平昨

func (TThostFtdcCloseStyleType) String

func (e TThostFtdcCloseStyleType) String() string

type TThostFtdcCodeSourceTypeType

type TThostFtdcCodeSourceTypeType byte

交易编码来源类型

const THOST_FTDC_CST_ManualEntry TThostFtdcCodeSourceTypeType = '1' // 手工录入(未规范)
const THOST_FTDC_CST_UnifyAccount TThostFtdcCodeSourceTypeType = '0' // 统一开户(已规范)

func (TThostFtdcCodeSourceTypeType) String

type TThostFtdcCollectTimeType

type TThostFtdcCollectTimeType [21]byte

信息采集时间类型

func (TThostFtdcCollectTimeType) String

func (s TThostFtdcCollectTimeType) String() string

type TThostFtdcComTypeType

type TThostFtdcComTypeType int32

组合成交类型类型

type TThostFtdcCombDirectionType

type TThostFtdcCombDirectionType byte

组合指令方向类型

const THOST_FTDC_CMDR_Comb TThostFtdcCombDirectionType = '0' // 申请组合
const THOST_FTDC_CMDR_DelComb TThostFtdcCombDirectionType = '2' // 操作员删组合单
const THOST_FTDC_CMDR_UnComb TThostFtdcCombDirectionType = '1' // 申请拆分

func (TThostFtdcCombDirectionType) String

type TThostFtdcCombHedgeFlagType

type TThostFtdcCombHedgeFlagType [5]byte

组合投机套保标志类型

func (TThostFtdcCombHedgeFlagType) String

type TThostFtdcCombOffsetFlagType

type TThostFtdcCombOffsetFlagType [5]byte

组合开平标志类型

func (TThostFtdcCombOffsetFlagType) String

type TThostFtdcCombinInstrIDType

type TThostFtdcCombinInstrIDType [61]byte

套利合约代码类型

func (TThostFtdcCombinInstrIDType) String

type TThostFtdcCombinSettlePriceType

type TThostFtdcCombinSettlePriceType [61]byte

各腿结算价类型

func (TThostFtdcCombinSettlePriceType) String

type TThostFtdcCombinationTypeType

type TThostFtdcCombinationTypeType byte

组合类型类型

const THOST_FTDC_COMBT_BER TThostFtdcCombinationTypeType = '2' // 垂直价差BER
const THOST_FTDC_COMBT_BES TThostFtdcCombinationTypeType = 'a' // 卖出期权垂直价差组合
const THOST_FTDC_COMBT_BFO TThostFtdcCombinationTypeType = '8' // 买备兑组合
const THOST_FTDC_COMBT_BLS TThostFtdcCombinationTypeType = '9' // 买入期权垂直价差组合
const THOST_FTDC_COMBT_BUL TThostFtdcCombinationTypeType = '1' // 垂直价差BUL
const THOST_FTDC_COMBT_CAS TThostFtdcCombinationTypeType = '6' // 时间价差组合
const THOST_FTDC_COMBT_Future TThostFtdcCombinationTypeType = '0' // 期货组合
const THOST_FTDC_COMBT_OPL TThostFtdcCombinationTypeType = '7' // 期权对锁组合
const THOST_FTDC_COMBT_PRT TThostFtdcCombinationTypeType = '5' // 备兑组合
const THOST_FTDC_COMBT_STD TThostFtdcCombinationTypeType = '3' // 跨式组合
const THOST_FTDC_COMBT_STG TThostFtdcCombinationTypeType = '4' // 宽跨式组合

func (TThostFtdcCombinationTypeType) String

type TThostFtdcCombineIDType

type TThostFtdcCombineIDType [25]byte

组合编号类型

func (TThostFtdcCombineIDType) String

func (s TThostFtdcCombineIDType) String() string

type TThostFtdcCombineTypeType

type TThostFtdcCombineTypeType [25]byte

组合类型类型

func (TThostFtdcCombineTypeType) String

func (s TThostFtdcCombineTypeType) String() string

type TThostFtdcComeFromType

type TThostFtdcComeFromType [21]byte

消息来源类型

func (TThostFtdcComeFromType) String

func (s TThostFtdcComeFromType) String() string

type TThostFtdcCommApiPointerType

type TThostFtdcCommApiPointerType int32

通讯API指针类型

type TThostFtdcCommApiTypeType

type TThostFtdcCommApiTypeType byte

通讯API类型类型

const THOST_FTDC_CAPIT_Client TThostFtdcCommApiTypeType = '1' // 客户端
const THOST_FTDC_CAPIT_Server TThostFtdcCommApiTypeType = '2' // 服务端
const THOST_FTDC_CAPIT_UserApi TThostFtdcCommApiTypeType = '3' // 交易系统的UserApi

func (TThostFtdcCommApiTypeType) String

func (e TThostFtdcCommApiTypeType) String() string

type TThostFtdcCommModelMemoType

type TThostFtdcCommModelMemoType [1025]byte

手续费率模板备注类型

func (TThostFtdcCommModelMemoType) String

type TThostFtdcCommModelNameType

type TThostFtdcCommModelNameType [161]byte

手续费率模板名称类型

func (TThostFtdcCommModelNameType) String

type TThostFtdcCommPhaseNoType

type TThostFtdcCommPhaseNoType int16

通讯时段编号类型

type TThostFtdcCommandNoType

type TThostFtdcCommandNoType int32

DB命令序号类型

type TThostFtdcCommandTypeType

type TThostFtdcCommandTypeType [65]byte

DB命令类型类型

func (TThostFtdcCommandTypeType) String

func (s TThostFtdcCommandTypeType) String() string

type TThostFtdcCommentType

type TThostFtdcCommentType [31]byte

盈亏算法说明类型

func (TThostFtdcCommentType) String

func (s TThostFtdcCommentType) String() string

type TThostFtdcCommodityGroupIDType added in v2.0.8

type TThostFtdcCommodityGroupIDType int32

商品群号类型

type TThostFtdcCommonIntType

type TThostFtdcCommonIntType int32

通用int类型类型

type TThostFtdcCompanyCodeType

type TThostFtdcCompanyCodeType [51]byte

企业代码类型

func (TThostFtdcCompanyCodeType) String

func (s TThostFtdcCompanyCodeType) String() string

type TThostFtdcCompanyTypeType

type TThostFtdcCompanyTypeType [16]byte

企业性质类型

func (TThostFtdcCompanyTypeType) String

func (s TThostFtdcCompanyTypeType) String() string

type TThostFtdcConditionalOrderSortTypeType

type TThostFtdcConditionalOrderSortTypeType byte

条件单索引条件类型

const THOST_FTDC_COST_AskPriceAsc TThostFtdcConditionalOrderSortTypeType = '2' // 使用卖价升序
const THOST_FTDC_COST_AskPriceDesc TThostFtdcConditionalOrderSortTypeType = '3' // 使用卖价降序
const THOST_FTDC_COST_BidPriceAsc TThostFtdcConditionalOrderSortTypeType = '4' // 使用买价升序
const THOST_FTDC_COST_BidPriceDesc TThostFtdcConditionalOrderSortTypeType = '5' // 使用买价降序
const THOST_FTDC_COST_LastPriceAsc TThostFtdcConditionalOrderSortTypeType = '0' // 使用最新价升序
const THOST_FTDC_COST_LastPriceDesc TThostFtdcConditionalOrderSortTypeType = '1' // 使用最新价降序

func (TThostFtdcConditionalOrderSortTypeType) String

type TThostFtdcConnectModeType

type TThostFtdcConnectModeType byte

套接字连接方式类型

const THOST_FTDC_CM_LongConnect TThostFtdcConnectModeType = '1' // 长连接
const THOST_FTDC_CM_ShortConnect TThostFtdcConnectModeType = '0' // 短连接

func (TThostFtdcConnectModeType) String

func (e TThostFtdcConnectModeType) String() string

type TThostFtdcContentType

type TThostFtdcContentType [501]byte

消息正文类型

func (TThostFtdcContentType) String

func (s TThostFtdcContentType) String() string

type TThostFtdcContingentConditionType

type TThostFtdcContingentConditionType byte

触发条件类型

const THOST_FTDC_CC_AskPriceGreaterEqualStopPrice TThostFtdcContingentConditionType = 'A' // 卖一价大于等于条件价
const THOST_FTDC_CC_AskPriceGreaterThanStopPrice TThostFtdcContingentConditionType = '9' // 卖一价大于条件价
const THOST_FTDC_CC_AskPriceLesserEqualStopPrice TThostFtdcContingentConditionType = 'C' // 卖一价小于等于条件价
const THOST_FTDC_CC_AskPriceLesserThanStopPrice TThostFtdcContingentConditionType = 'B' // 卖一价小于条件价
const THOST_FTDC_CC_BidPriceGreaterEqualStopPrice TThostFtdcContingentConditionType = 'E' // 买一价大于等于条件价
const THOST_FTDC_CC_BidPriceGreaterThanStopPrice TThostFtdcContingentConditionType = 'D' // 买一价大于条件价
const THOST_FTDC_CC_BidPriceLesserEqualStopPrice TThostFtdcContingentConditionType = 'H' // 买一价小于等于条件价
const THOST_FTDC_CC_BidPriceLesserThanStopPrice TThostFtdcContingentConditionType = 'F' // 买一价小于条件价
const THOST_FTDC_CC_Immediately TThostFtdcContingentConditionType = '1' // 立即
const THOST_FTDC_CC_LastPriceGreaterEqualStopPrice TThostFtdcContingentConditionType = '6' // 最新价大于等于条件价
const THOST_FTDC_CC_LastPriceGreaterThanStopPrice TThostFtdcContingentConditionType = '5' // 最新价大于条件价
const THOST_FTDC_CC_LastPriceLesserEqualStopPrice TThostFtdcContingentConditionType = '8' // 最新价小于等于条件价
const THOST_FTDC_CC_LastPriceLesserThanStopPrice TThostFtdcContingentConditionType = '7' // 最新价小于条件价
const THOST_FTDC_CC_ParkedOrder TThostFtdcContingentConditionType = '4' // 预埋单
const THOST_FTDC_CC_Touch TThostFtdcContingentConditionType = '2' // 止损
const THOST_FTDC_CC_TouchProfit TThostFtdcContingentConditionType = '3' // 止赢

func (TThostFtdcContingentConditionType) String

type TThostFtdcContractCodeType

type TThostFtdcContractCodeType [41]byte

合同编号类型

func (TThostFtdcContractCodeType) String

type TThostFtdcCorporateIdentifiedCardNoType

type TThostFtdcCorporateIdentifiedCardNoType [101]byte

法人代表证件号码类型

func (TThostFtdcCorporateIdentifiedCardNoType) String

type TThostFtdcCorrectSerialType

type TThostFtdcCorrectSerialType int32

被冲正交易流水号类型

type TThostFtdcCounterIDType

type TThostFtdcCounterIDType [33]byte

计数器代码类型

func (TThostFtdcCounterIDType) String

func (s TThostFtdcCounterIDType) String() string

type TThostFtdcCountryCodeType

type TThostFtdcCountryCodeType [21]byte

国家代码类型

func (TThostFtdcCountryCodeType) String

func (s TThostFtdcCountryCodeType) String() string

type TThostFtdcCountryType

type TThostFtdcCountryType [16]byte

国家类型

func (TThostFtdcCountryType) String

func (s TThostFtdcCountryType) String() string

type TThostFtdcCryptoKeyVersionType

type TThostFtdcCryptoKeyVersionType [31]byte

api与front通信密钥版本号类型

func (TThostFtdcCryptoKeyVersionType) String

type TThostFtdcCurrExDirectionType

type TThostFtdcCurrExDirectionType byte

换汇类型类型

const THOST_FTDC_CED_Sale TThostFtdcCurrExDirectionType = '1' // 售汇
const THOST_FTDC_CED_Settlement TThostFtdcCurrExDirectionType = '0' // 结汇

func (TThostFtdcCurrExDirectionType) String

type TThostFtdcCurrExchCertNoType

type TThostFtdcCurrExchCertNoType [13]byte

凭证号类型

func (TThostFtdcCurrExchCertNoType) String

type TThostFtdcCurrencyCodeType

type TThostFtdcCurrencyCodeType [4]byte

币种类型

func (TThostFtdcCurrencyCodeType) String

type TThostFtdcCurrencyIDType

type TThostFtdcCurrencyIDType [4]byte

币种代码类型

func (TThostFtdcCurrencyIDType) String

func (s TThostFtdcCurrencyIDType) String() string

type TThostFtdcCurrencyNameType

type TThostFtdcCurrencyNameType [31]byte

币种名称类型

func (TThostFtdcCurrencyNameType) String

type TThostFtdcCurrencySignType

type TThostFtdcCurrencySignType [4]byte

币种符号类型

func (TThostFtdcCurrencySignType) String

type TThostFtdcCurrencySwapMemoType

type TThostFtdcCurrencySwapMemoType [101]byte

换汇需确认信息类型

func (TThostFtdcCurrencySwapMemoType) String

type TThostFtdcCurrencySwapStatusType

type TThostFtdcCurrencySwapStatusType byte

申请状态类型

const THOST_FTDC_CSS_Approve TThostFtdcCurrencySwapStatusType = '2' // 已审核
const THOST_FTDC_CSS_Entry TThostFtdcCurrencySwapStatusType = '1' // 已录入
const THOST_FTDC_CSS_Failure TThostFtdcCurrencySwapStatusType = '7' // 换汇失败
const THOST_FTDC_CSS_Refuse TThostFtdcCurrencySwapStatusType = '3' // 已拒绝
const THOST_FTDC_CSS_Revoke TThostFtdcCurrencySwapStatusType = '4' // 已撤销
const THOST_FTDC_CSS_Send TThostFtdcCurrencySwapStatusType = '5' // 已发送
const THOST_FTDC_CSS_Success TThostFtdcCurrencySwapStatusType = '6' // 换汇成功

func (TThostFtdcCurrencySwapStatusType) String

type TThostFtdcCurrencyUnitType

type TThostFtdcCurrencyUnitType float64

币种单位数量类型

func (TThostFtdcCurrencyUnitType) String

type TThostFtdcCurrentAuthMethodType

type TThostFtdcCurrentAuthMethodType int32

当前可用的认证模式,0代表无需认证模式 A从低位开始最后一位代表图片验证码,倒数第二位代表动态口令,倒数第三位代表短信验证码类型

type TThostFtdcCusAccountTypeType

type TThostFtdcCusAccountTypeType byte

结算账户类型类型

const THOST_FTDC_CAT_AssetmgrFuture TThostFtdcCusAccountTypeType = '2' // 纯期货资管业务下的资管结算账户
const THOST_FTDC_CAT_AssetmgrTransfer TThostFtdcCusAccountTypeType = '4' // 综合类资管业务下的资金中转账户
const THOST_FTDC_CAT_AssetmgrTrustee TThostFtdcCusAccountTypeType = '3' // 综合类资管业务下的期货资管托管账户
const THOST_FTDC_CAT_Futures TThostFtdcCusAccountTypeType = '1' // 期货结算账户

func (TThostFtdcCusAccountTypeType) String

type TThostFtdcCustFeeType

type TThostFtdcCustFeeType float64

应收客户费用(元)类型

func (TThostFtdcCustFeeType) String

func (f TThostFtdcCustFeeType) String() string

type TThostFtdcCustNumberType

type TThostFtdcCustNumberType [36]byte

客户编号类型

func (TThostFtdcCustNumberType) String

func (s TThostFtdcCustNumberType) String() string

type TThostFtdcCustTypeType

type TThostFtdcCustTypeType byte

客户类型类型

const THOST_FTDC_CUSTT_Institution TThostFtdcCustTypeType = '1' // 机构户
const THOST_FTDC_CUSTT_Person TThostFtdcCustTypeType = '0' // 自然人

func (TThostFtdcCustTypeType) String

func (e TThostFtdcCustTypeType) String() string

type TThostFtdcDAClientTypeType

type TThostFtdcDAClientTypeType byte

资产管理客户类型类型

const THOST_FTDC_CACT_Company TThostFtdcDAClientTypeType = '1' // 法人
const THOST_FTDC_CACT_Other TThostFtdcDAClientTypeType = '2' // 其他
const THOST_FTDC_CACT_Person TThostFtdcDAClientTypeType = '0' // 自然人

func (TThostFtdcDAClientTypeType) String

type TThostFtdcDBLinkIDType

type TThostFtdcDBLinkIDType [31]byte

DBLink标识号类型

func (TThostFtdcDBLinkIDType) String

func (s TThostFtdcDBLinkIDType) String() string

type TThostFtdcDBOPSeqNoType

type TThostFtdcDBOPSeqNoType int32

递增的序列号类型

type TThostFtdcDBOperationType

type TThostFtdcDBOperationType byte

记录操作类型类型

const THOST_FTDC_DBOP_Delete TThostFtdcDBOperationType = '2' // 删除
const THOST_FTDC_DBOP_Insert TThostFtdcDBOperationType = '0' // 插入
const THOST_FTDC_DBOP_Update TThostFtdcDBOperationType = '1' // 更新

func (TThostFtdcDBOperationType) String

func (e TThostFtdcDBOperationType) String() string

type TThostFtdcDCEPriorityType

type TThostFtdcDCEPriorityType int32

优先级类型

type TThostFtdcDCEUploadFileNameType

type TThostFtdcDCEUploadFileNameType byte

大商所结算文件名类型

const THOST_FTDC_DUFN_DUFN_C TThostFtdcDCEUploadFileNameType = 'C' // ^\d{8}_优惠组合持仓明细表
const THOST_FTDC_DUFN_DUFN_D TThostFtdcDCEUploadFileNameType = 'D' // ^\d{8}_持仓明细表
const THOST_FTDC_DUFN_DUFN_F TThostFtdcDCEUploadFileNameType = 'F' // ^\d{8}_资金结算表
const THOST_FTDC_DUFN_DUFN_M TThostFtdcDCEUploadFileNameType = 'M' // ^\d{8}_保证金参数表
const THOST_FTDC_DUFN_DUFN_O TThostFtdcDCEUploadFileNameType = 'O' // ^\d{8}_dl_\d{3}
const THOST_FTDC_DUFN_DUFN_P TThostFtdcDCEUploadFileNameType = 'P' // ^\d{8}_持仓表
const THOST_FTDC_DUFN_DUFN_S TThostFtdcDCEUploadFileNameType = 'S' // ^\d{8}_期权执行表
const THOST_FTDC_DUFN_DUFN_T TThostFtdcDCEUploadFileNameType = 'T' // ^\d{8}_成交表

func (TThostFtdcDCEUploadFileNameType) String

type TThostFtdcDRIdentityIDType

type TThostFtdcDRIdentityIDType int32

交易中心代码类型

type TThostFtdcDRIdentityNameType

type TThostFtdcDRIdentityNameType [65]byte

交易中心名称类型

func (TThostFtdcDRIdentityNameType) String

type TThostFtdcDataCenterIDType

type TThostFtdcDataCenterIDType int32

数据中心代码类型

type TThostFtdcDataResourceType

type TThostFtdcDataResourceType byte

数据来源类型

const THOST_FTDC_DAR_CSRC TThostFtdcDataResourceType = '3' // 报送数据
const THOST_FTDC_DAR_Exchange TThostFtdcDataResourceType = '2' // 交易所
const THOST_FTDC_DAR_Settle TThostFtdcDataResourceType = '1' // 本系统

func (TThostFtdcDataResourceType) String

type TThostFtdcDataStatusType

type TThostFtdcDataStatusType byte

反洗钱审核表数据状态类型

const THOST_FTDC_AMLDS_Deleted TThostFtdcDataStatusType = '1' // 已删除
const THOST_FTDC_AMLDS_Normal TThostFtdcDataStatusType = '0' // 正常

func (TThostFtdcDataStatusType) String

func (e TThostFtdcDataStatusType) String() string

type TThostFtdcDataSyncStatusType

type TThostFtdcDataSyncStatusType byte

数据同步状态类型

const THOST_FTDC_DS_Asynchronous TThostFtdcDataSyncStatusType = '1' // 未同步
const THOST_FTDC_DS_Synchronized TThostFtdcDataSyncStatusType = '3' // 已同步
const THOST_FTDC_DS_Synchronizing TThostFtdcDataSyncStatusType = '2' // 同步中

func (TThostFtdcDataSyncStatusType) String

type TThostFtdcDataTypeType

type TThostFtdcDataTypeType [129]byte

数据类型类型

func (TThostFtdcDataTypeType) String

func (s TThostFtdcDataTypeType) String() string

type TThostFtdcDateExprType

type TThostFtdcDateExprType [1025]byte

日期表达式类型

func (TThostFtdcDateExprType) String

func (s TThostFtdcDateExprType) String() string

type TThostFtdcDateTimeType

type TThostFtdcDateTimeType [17]byte

日期时间类型

func (TThostFtdcDateTimeType) String

func (s TThostFtdcDateTimeType) String() string

type TThostFtdcDateType

type TThostFtdcDateType [9]byte

日期类型

func (TThostFtdcDateType) String

func (s TThostFtdcDateType) String() string

type TThostFtdcDceCombinationTypeType

type TThostFtdcDceCombinationTypeType byte

组合类型类型

const THOST_FTDC_DCECOMBT_BES TThostFtdcDceCombinationTypeType = '5' // 卖出期权垂直价差组合
const THOST_FTDC_DCECOMBT_BFO TThostFtdcDceCombinationTypeType = '9' // 买入期货期权组合
const THOST_FTDC_DCECOMBT_BLS TThostFtdcDceCombinationTypeType = '4' // 买入期权垂直价差组合
const THOST_FTDC_DCECOMBT_CAS TThostFtdcDceCombinationTypeType = '6' // 期权日历价差组合
const THOST_FTDC_DCECOMBT_OPL TThostFtdcDceCombinationTypeType = '1' // 期权对锁组合
const THOST_FTDC_DCECOMBT_SFO TThostFtdcDceCombinationTypeType = 'a' // 卖出期货期权组合
const THOST_FTDC_DCECOMBT_SP TThostFtdcDceCombinationTypeType = '2' // 期货跨期组合
const THOST_FTDC_DCECOMBT_SPC TThostFtdcDceCombinationTypeType = '3' // 期货跨品种组合
const THOST_FTDC_DCECOMBT_SPL TThostFtdcDceCombinationTypeType = '0' // 期货对锁组合
const THOST_FTDC_DCECOMBT_STD TThostFtdcDceCombinationTypeType = '7' // 期权跨式组合
const THOST_FTDC_DCECOMBT_STG TThostFtdcDceCombinationTypeType = '8' // 期权宽跨式组合

func (TThostFtdcDceCombinationTypeType) String

type TThostFtdcDeliveryModeType

type TThostFtdcDeliveryModeType byte

交割方式类型

const THOST_FTDC_DM_CashDeliv TThostFtdcDeliveryModeType = '1' // 现金交割
const THOST_FTDC_DM_CommodityDeliv TThostFtdcDeliveryModeType = '2' // 实物交割

func (TThostFtdcDeliveryModeType) String

type TThostFtdcDeliveryTypeType

type TThostFtdcDeliveryTypeType byte

交割类型类型

const THOST_FTDC_DT_HandDeliv TThostFtdcDeliveryTypeType = '1' // 手工交割
const THOST_FTDC_DT_PersonDeliv TThostFtdcDeliveryTypeType = '2' // 到期交割

func (TThostFtdcDeliveryTypeType) String

type TThostFtdcDeltaType

type TThostFtdcDeltaType float64

Delta类型类型

func (TThostFtdcDeltaType) String

func (f TThostFtdcDeltaType) String() string

type TThostFtdcDepartmentRangeType

type TThostFtdcDepartmentRangeType byte

投资者范围类型

const THOST_FTDC_DR_All TThostFtdcDepartmentRangeType = '1' // 所有
const THOST_FTDC_DR_Group TThostFtdcDepartmentRangeType = '2' // 组织架构
const THOST_FTDC_DR_Single TThostFtdcDepartmentRangeType = '3' // 单一投资者

func (TThostFtdcDepartmentRangeType) String

type TThostFtdcDepositSeqNoType

type TThostFtdcDepositSeqNoType [15]byte

出入金流水号类型

func (TThostFtdcDepositSeqNoType) String

type TThostFtdcDescrInfoForReturnCodeType

type TThostFtdcDescrInfoForReturnCodeType [129]byte

返回码描述类型

func (TThostFtdcDescrInfoForReturnCodeType) String

type TThostFtdcDescriptionType

type TThostFtdcDescriptionType [401]byte

描述类型

func (TThostFtdcDescriptionType) String

func (s TThostFtdcDescriptionType) String() string

type TThostFtdcDeviceIDType

type TThostFtdcDeviceIDType [3]byte

渠道标志类型

func (TThostFtdcDeviceIDType) String

func (s TThostFtdcDeviceIDType) String() string

type TThostFtdcDigestType

type TThostFtdcDigestType [36]byte

摘要类型

func (TThostFtdcDigestType) String

func (s TThostFtdcDigestType) String() string

type TThostFtdcDirectionEnType

type TThostFtdcDirectionEnType byte

买卖方向类型

const THOST_FTDC_DEN_Buy TThostFtdcDirectionEnType = '0' // Buy
const THOST_FTDC_DEN_Sell TThostFtdcDirectionEnType = '1' // Sell

func (TThostFtdcDirectionEnType) String

func (e TThostFtdcDirectionEnType) String() string

type TThostFtdcDirectionType

type TThostFtdcDirectionType byte

买卖方向类型

const THOST_FTDC_D_Buy TThostFtdcDirectionType = '0' // 买
const THOST_FTDC_D_Sell TThostFtdcDirectionType = '1' // 卖

func (TThostFtdcDirectionType) String

func (e TThostFtdcDirectionType) String() string

type TThostFtdcDiscountRatioType

type TThostFtdcDiscountRatioType float64

折扣率类型

func (TThostFtdcDiscountRatioType) String

type TThostFtdcEMailType

type TThostFtdcEMailType [41]byte

电子邮件类型

func (TThostFtdcEMailType) String

func (s TThostFtdcEMailType) String() string

type TThostFtdcEnumBoolType

type TThostFtdcEnumBoolType byte

枚举bool类型类型

const THOST_FTDC_EBL_False TThostFtdcEnumBoolType = '0' // false
const THOST_FTDC_EBL_True TThostFtdcEnumBoolType = '1' // true

func (TThostFtdcEnumBoolType) String

func (e TThostFtdcEnumBoolType) String() string

type TThostFtdcEnumValueIDType

type TThostFtdcEnumValueIDType [65]byte

枚举值代码类型

func (TThostFtdcEnumValueIDType) String

func (s TThostFtdcEnumValueIDType) String() string

type TThostFtdcEnumValueLabelType

type TThostFtdcEnumValueLabelType [65]byte

枚举值名称类型

func (TThostFtdcEnumValueLabelType) String

type TThostFtdcEnumValueResultType

type TThostFtdcEnumValueResultType [33]byte

枚举值结果类型

func (TThostFtdcEnumValueResultType) String

type TThostFtdcEnumValueTypeType

type TThostFtdcEnumValueTypeType [33]byte

枚举值类型类型

func (TThostFtdcEnumValueTypeType) String

type TThostFtdcErrorIDType

type TThostFtdcErrorIDType int32

错误代码类型

type TThostFtdcErrorMsgType

type TThostFtdcErrorMsgType [81]byte

错误信息类型

func (TThostFtdcErrorMsgType) String

func (s TThostFtdcErrorMsgType) String() string

type TThostFtdcEventModeType

type TThostFtdcEventModeType byte

操作方法类型

const THOST_FTDC_EvM_ADD TThostFtdcEventModeType = '1' // 增加
const THOST_FTDC_EvM_CANCEL TThostFtdcEventModeType = '6' // 注销
const THOST_FTDC_EvM_CHECK TThostFtdcEventModeType = '4' // 复核
const THOST_FTDC_EvM_COPY TThostFtdcEventModeType = '5' // 复制
const THOST_FTDC_EvM_DELETE TThostFtdcEventModeType = '3' // 删除
const THOST_FTDC_EvM_Reverse TThostFtdcEventModeType = '7' // 冲销
const THOST_FTDC_EvM_UPDATE TThostFtdcEventModeType = '2' // 修改

func (TThostFtdcEventModeType) String

func (e TThostFtdcEventModeType) String() string

type TThostFtdcEventTypeType

type TThostFtdcEventTypeType [33]byte

业务操作类型类型

func (TThostFtdcEventTypeType) String

func (s TThostFtdcEventTypeType) String() string

type TThostFtdcExClientIDTypeType

type TThostFtdcExClientIDTypeType byte

交易编码类型类型

const THOST_FTDC_ECIDT_Arbitrage TThostFtdcExClientIDTypeType = '2' // 套利
const THOST_FTDC_ECIDT_Hedge TThostFtdcExClientIDTypeType = '1' // 套保
const THOST_FTDC_ECIDT_Speculation TThostFtdcExClientIDTypeType = '3' // 投机

func (TThostFtdcExClientIDTypeType) String

type TThostFtdcExDirectionType

type TThostFtdcExDirectionType byte

换汇方向类型

const THOST_FTDC_FBEDIR_Sale TThostFtdcExDirectionType = '1' // 售汇
const THOST_FTDC_FBEDIR_Settlement TThostFtdcExDirectionType = '0' // 结汇

func (TThostFtdcExDirectionType) String

func (e TThostFtdcExDirectionType) String() string

type TThostFtdcExRateType

type TThostFtdcExRateType float64

换汇汇率类型

func (TThostFtdcExRateType) String

func (f TThostFtdcExRateType) String() string

type TThostFtdcExReturnCodeType

type TThostFtdcExReturnCodeType int32

交易所返回码类型

type TThostFtdcExStatusType

type TThostFtdcExStatusType byte

修改状态类型

const THOST_FTDC_EXS_After TThostFtdcExStatusType = '1' // 修改后
const THOST_FTDC_EXS_Before TThostFtdcExStatusType = '0' // 修改前

func (TThostFtdcExStatusType) String

func (e TThostFtdcExStatusType) String() string

type TThostFtdcExchangeAbbrType

type TThostFtdcExchangeAbbrType [9]byte

交易所简称类型

func (TThostFtdcExchangeAbbrType) String

type TThostFtdcExchangeConnectStatusType

type TThostFtdcExchangeConnectStatusType byte

交易所连接状态类型

const THOST_FTDC_ECS_GotInformation TThostFtdcExchangeConnectStatusType = '9' // 已经获取信息
const THOST_FTDC_ECS_NoConnection TThostFtdcExchangeConnectStatusType = '1' // 没有任何连接
const THOST_FTDC_ECS_QryInstrumentSent TThostFtdcExchangeConnectStatusType = '2' // 已经发出合约查询请求

func (TThostFtdcExchangeConnectStatusType) String

type TThostFtdcExchangeFlagType

type TThostFtdcExchangeFlagType [2]byte

交易所标志类型

func (TThostFtdcExchangeFlagType) String

type TThostFtdcExchangeIDType

type TThostFtdcExchangeIDType [9]byte

交易所代码类型

func (TThostFtdcExchangeIDType) String

func (s TThostFtdcExchangeIDType) String() string

type TThostFtdcExchangeIDTypeType

type TThostFtdcExchangeIDTypeType byte

交易所编号类型

const THOST_FTDC_EIDT_CFFEX TThostFtdcExchangeIDTypeType = 'J' // 中国金融期货交易所
const THOST_FTDC_EIDT_CZCE TThostFtdcExchangeIDTypeType = 'Z' // 郑州商品交易所
const THOST_FTDC_EIDT_DCE TThostFtdcExchangeIDTypeType = 'D' // 大连商品交易所
const THOST_FTDC_EIDT_INE TThostFtdcExchangeIDTypeType = 'N' // 上海国际能源交易中心股份有限公司
const THOST_FTDC_EIDT_SHFE TThostFtdcExchangeIDTypeType = 'S' // 上海期货交易所

func (TThostFtdcExchangeIDTypeType) String

type TThostFtdcExchangeInstIDType

type TThostFtdcExchangeInstIDType [81]byte

合约在交易所的代码类型

func (TThostFtdcExchangeInstIDType) String

type TThostFtdcExchangeNameType

type TThostFtdcExchangeNameType [61]byte

交易所名称类型

func (TThostFtdcExchangeNameType) String

type TThostFtdcExchangePropertyType

type TThostFtdcExchangePropertyType byte

交易所属性类型

const THOST_FTDC_EXP_GenOrderByTrade TThostFtdcExchangePropertyType = '1' // 根据成交生成报单
const THOST_FTDC_EXP_Normal TThostFtdcExchangePropertyType = '0' // 正常

func (TThostFtdcExchangePropertyType) String

type TThostFtdcExchangeRateType

type TThostFtdcExchangeRateType float64

汇率类型

func (TThostFtdcExchangeRateType) String

type TThostFtdcExchangeSettlementParamIDType

type TThostFtdcExchangeSettlementParamIDType byte

交易所结算参数代码类型

const THOST_FTDC_ESPI_CFFEXMinPrepa TThostFtdcExchangeSettlementParamIDType = '6' // 中金所开户最低可用金额
const THOST_FTDC_ESPI_CZCEComMarginType TThostFtdcExchangeSettlementParamIDType = 'A' // 郑商所组合持仓保证金收取方式
const THOST_FTDC_ESPI_CZCESettlementType TThostFtdcExchangeSettlementParamIDType = '7' // 郑商所结算方式
const THOST_FTDC_ESPI_DceComMarginType TThostFtdcExchangeSettlementParamIDType = 'B' // 大商所套利保证金是否优惠
const THOST_FTDC_ESPI_DelivFeeMode TThostFtdcExchangeSettlementParamIDType = '0' // 投资者交割手续费收取方式
const THOST_FTDC_ESPI_ExchDelivFeeMode TThostFtdcExchangeSettlementParamIDType = '9' // 交易所交割手续费收取方式
const THOST_FTDC_ESPI_MortgageRatio TThostFtdcExchangeSettlementParamIDType = '1' // 质押比例
const THOST_FTDC_ESPI_OptMiniGuarantee TThostFtdcExchangeSettlementParamIDType = 'b' // 最低保障系数
const THOST_FTDC_ESPI_OptOutDisCountRate TThostFtdcExchangeSettlementParamIDType = 'a' // 虚值期权保证金优惠比率
const THOST_FTDC_ESPI_OtherFundImport TThostFtdcExchangeSettlementParamIDType = '3' // 分项资金入交易所出入金
const THOST_FTDC_ESPI_OtherFundItem TThostFtdcExchangeSettlementParamIDType = '2' // 分项资金导入项

func (TThostFtdcExchangeSettlementParamIDType) String

type TThostFtdcExecOrderCloseFlagType

type TThostFtdcExecOrderCloseFlagType byte

期权行权后生成的头寸是否自动平仓类型

const THOST_FTDC_EOCF_AutoClose TThostFtdcExecOrderCloseFlagType = '0' // 自动平仓
const THOST_FTDC_EOCF_NotToClose TThostFtdcExecOrderCloseFlagType = '1' // 免于自动平仓

func (TThostFtdcExecOrderCloseFlagType) String

type TThostFtdcExecOrderPositionFlagType

type TThostFtdcExecOrderPositionFlagType byte

期权行权后是否保留期货头寸的标记类型

const THOST_FTDC_EOPF_Reserve TThostFtdcExecOrderPositionFlagType = '0' // 保留
const THOST_FTDC_EOPF_UnReserve TThostFtdcExecOrderPositionFlagType = '1' // 不保留

func (TThostFtdcExecOrderPositionFlagType) String

type TThostFtdcExecOrderSysIDType

type TThostFtdcExecOrderSysIDType [21]byte

执行宣告系统编号类型

func (TThostFtdcExecOrderSysIDType) String

type TThostFtdcExecResultType

type TThostFtdcExecResultType byte

执行结果类型

const THOST_FTDC_OER_Canceled TThostFtdcExecResultType = 'c' // 已经取消
const THOST_FTDC_OER_InvalidVolume TThostFtdcExecResultType = '8' // 不合理的数量
const THOST_FTDC_OER_NoClient TThostFtdcExecResultType = '4' // 客户不存在
const THOST_FTDC_OER_NoDeposit TThostFtdcExecResultType = '2' // 资金不够
const THOST_FTDC_OER_NoEnoughHistoryTrade TThostFtdcExecResultType = '9' // 没有足够的历史成交
const THOST_FTDC_OER_NoExec TThostFtdcExecResultType = 'n' // 没有执行
const THOST_FTDC_OER_NoInstrument TThostFtdcExecResultType = '6' // 合约不存在
const THOST_FTDC_OER_NoParticipant TThostFtdcExecResultType = '3' // 会员不存在
const THOST_FTDC_OER_NoPosition TThostFtdcExecResultType = '1' // 期权持仓不够
const THOST_FTDC_OER_NoRight TThostFtdcExecResultType = '7' // 没有执行权限
const THOST_FTDC_OER_OK TThostFtdcExecResultType = '0' // 执行成功
const THOST_FTDC_OER_Unknown TThostFtdcExecResultType = 'a' // 未知

func (TThostFtdcExecResultType) String

func (e TThostFtdcExecResultType) String() string

type TThostFtdcExportFileTypeType

type TThostFtdcExportFileTypeType byte

导出文件类型类型

const THOST_FTDC_EFT_CSV TThostFtdcExportFileTypeType = '0' // CSV
const THOST_FTDC_EFT_DBF TThostFtdcExportFileTypeType = '2' // DBF
const THOST_FTDC_EFT_EXCEL TThostFtdcExportFileTypeType = '1' // Excel

func (TThostFtdcExportFileTypeType) String

type TThostFtdcExprSetModeType

type TThostFtdcExprSetModeType byte

日期表达式设置类型类型

const THOST_FTDC_ESM_Relative TThostFtdcExprSetModeType = '1' // 相对已有规则设置
const THOST_FTDC_ESM_Typical TThostFtdcExprSetModeType = '2' // 典型设置

func (TThostFtdcExprSetModeType) String

func (e TThostFtdcExprSetModeType) String() string

type TThostFtdcFBEAlreadyTradeType

type TThostFtdcFBEAlreadyTradeType byte

换汇已交易标志类型

const THOST_FTDC_FBEAT_NotTrade TThostFtdcFBEAlreadyTradeType = '0' // 未交易
const THOST_FTDC_FBEAT_Trade TThostFtdcFBEAlreadyTradeType = '1' // 已交易

func (TThostFtdcFBEAlreadyTradeType) String

type TThostFtdcFBEAmtType

type TThostFtdcFBEAmtType float64

各种换汇金额类型

func (TThostFtdcFBEAmtType) String

func (f TThostFtdcFBEAmtType) String() string

type TThostFtdcFBEBankAccountNameType

type TThostFtdcFBEBankAccountNameType [61]byte

换汇银行账户名类型

func (TThostFtdcFBEBankAccountNameType) String

type TThostFtdcFBEBankAccountType

type TThostFtdcFBEBankAccountType [33]byte

换汇银行账户类型

func (TThostFtdcFBEBankAccountType) String

type TThostFtdcFBEBankNoType

type TThostFtdcFBEBankNoType [13]byte

换汇银行行号类型

func (TThostFtdcFBEBankNoType) String

func (s TThostFtdcFBEBankNoType) String() string

type TThostFtdcFBEBatchSerialType

type TThostFtdcFBEBatchSerialType [21]byte

换汇批次号类型

func (TThostFtdcFBEBatchSerialType) String

type TThostFtdcFBEBusinessSerialType

type TThostFtdcFBEBusinessSerialType [31]byte

换汇记账流水号类型

func (TThostFtdcFBEBusinessSerialType) String

type TThostFtdcFBEBusinessTypeType

type TThostFtdcFBEBusinessTypeType [3]byte

换汇业务类型类型

func (TThostFtdcFBEBusinessTypeType) String

type TThostFtdcFBECertNoType

type TThostFtdcFBECertNoType [13]byte

换汇凭证号类型

func (TThostFtdcFBECertNoType) String

func (s TThostFtdcFBECertNoType) String() string

type TThostFtdcFBEExchStatusType

type TThostFtdcFBEExchStatusType byte

换汇交易状态类型

const THOST_FTDC_FBEES_Normal TThostFtdcFBEExchStatusType = '0' // 正常
const THOST_FTDC_FBEES_ReExchange TThostFtdcFBEExchStatusType = '1' // 交易重发

func (TThostFtdcFBEExchStatusType) String

type TThostFtdcFBEExtendMsgType

type TThostFtdcFBEExtendMsgType [61]byte

换汇扩展信息类型

func (TThostFtdcFBEExtendMsgType) String

type TThostFtdcFBEFileFlagType

type TThostFtdcFBEFileFlagType byte

换汇文件标志类型

const THOST_FTDC_FBEFG_DataPackage TThostFtdcFBEFileFlagType = '0' // 数据包
const THOST_FTDC_FBEFG_File TThostFtdcFBEFileFlagType = '1' // 文件

func (TThostFtdcFBEFileFlagType) String

func (e TThostFtdcFBEFileFlagType) String() string

type TThostFtdcFBEFileNameType

type TThostFtdcFBEFileNameType [21]byte

换汇相关文件名类型

func (TThostFtdcFBEFileNameType) String

func (s TThostFtdcFBEFileNameType) String() string

type TThostFtdcFBEOpenBankType

type TThostFtdcFBEOpenBankType [61]byte

换汇账户开户行类型

func (TThostFtdcFBEOpenBankType) String

func (s TThostFtdcFBEOpenBankType) String() string

type TThostFtdcFBEPostScriptType

type TThostFtdcFBEPostScriptType [61]byte

换汇附言类型

func (TThostFtdcFBEPostScriptType) String

type TThostFtdcFBERemarkType

type TThostFtdcFBERemarkType [71]byte

换汇备注类型

func (TThostFtdcFBERemarkType) String

func (s TThostFtdcFBERemarkType) String() string

type TThostFtdcFBEReqFlagType

type TThostFtdcFBEReqFlagType byte

换汇发送标志类型

const THOST_FTDC_FBERF_SendFailed TThostFtdcFBEReqFlagType = '3' // 发送失败
const THOST_FTDC_FBERF_SendSuccess TThostFtdcFBEReqFlagType = '2' // 发送成功
const THOST_FTDC_FBERF_UnProcessed TThostFtdcFBEReqFlagType = '0' // 未处理
const THOST_FTDC_FBERF_WaitReSend TThostFtdcFBEReqFlagType = '4' // 等待重发
const THOST_FTDC_FBERF_WaitSend TThostFtdcFBEReqFlagType = '1' // 等待发送

func (TThostFtdcFBEReqFlagType) String

func (e TThostFtdcFBEReqFlagType) String() string

type TThostFtdcFBEResultFlagType

type TThostFtdcFBEResultFlagType byte

换汇成功标志类型

const THOST_FTDC_FBERES_Fail TThostFtdcFBEResultFlagType = 'x' // 失败
const THOST_FTDC_FBERES_InsufficientBalance TThostFtdcFBEResultFlagType = '1' // 账户余额不足
const THOST_FTDC_FBERES_Success TThostFtdcFBEResultFlagType = '0' // 成功
const THOST_FTDC_FBERES_UnknownTrading TThostFtdcFBEResultFlagType = '8' // 交易结果未知

func (TThostFtdcFBEResultFlagType) String

type TThostFtdcFBERtnMsgType

type TThostFtdcFBERtnMsgType [61]byte

换汇返回信息类型

func (TThostFtdcFBERtnMsgType) String

func (s TThostFtdcFBERtnMsgType) String() string

type TThostFtdcFBESystemSerialType

type TThostFtdcFBESystemSerialType [21]byte

换汇流水号类型

func (TThostFtdcFBESystemSerialType) String

type TThostFtdcFBETimeType

type TThostFtdcFBETimeType [7]byte

各种换汇时间类型

func (TThostFtdcFBETimeType) String

func (s TThostFtdcFBETimeType) String() string

type TThostFtdcFBETotalExCntType

type TThostFtdcFBETotalExCntType int32

换汇交易总笔数类型

type TThostFtdcFBEUserEventTypeType

type TThostFtdcFBEUserEventTypeType byte

银期换汇用户事件类型类型

const THOST_FTDC_FBEUET_CheckBankAccount TThostFtdcFBEUserEventTypeType = '7' // 对账文件通知
const THOST_FTDC_FBEUET_Exchange TThostFtdcFBEUserEventTypeType = '1' // 换汇
const THOST_FTDC_FBEUET_Other TThostFtdcFBEUserEventTypeType = 'Z' // 其他
const THOST_FTDC_FBEUET_QueryBankAccount TThostFtdcFBEUserEventTypeType = '3' // 银行账户查询
const THOST_FTDC_FBEUET_QueryExchDetial TThostFtdcFBEUserEventTypeType = '4' // 换汇明细查询
const THOST_FTDC_FBEUET_QueryExchRate TThostFtdcFBEUserEventTypeType = '6' // 换汇汇率查询
const THOST_FTDC_FBEUET_QueryExchSummary TThostFtdcFBEUserEventTypeType = '5' // 换汇汇总查询
const THOST_FTDC_FBEUET_ReExchange TThostFtdcFBEUserEventTypeType = '2' // 换汇重发
const THOST_FTDC_FBEUET_SignIn TThostFtdcFBEUserEventTypeType = '0' // 签到
const THOST_FTDC_FBEUET_SignOut TThostFtdcFBEUserEventTypeType = '8' // 签退

func (TThostFtdcFBEUserEventTypeType) String

type TThostFtdcFBTCoreIDType

type TThostFtdcFBTCoreIDType int32

银期转帐核心系统标识类型

type TThostFtdcFBTEncryModeType

type TThostFtdcFBTEncryModeType byte

加密方式类型

const THOST_FTDC_EM_3DES TThostFtdcFBTEncryModeType = '2' // 3DES
const THOST_FTDC_EM_DES TThostFtdcFBTEncryModeType = '1' // DES
const THOST_FTDC_EM_NoEncry TThostFtdcFBTEncryModeType = '0' // 不加密

func (TThostFtdcFBTEncryModeType) String

type TThostFtdcFBTPassWordTypeType

type TThostFtdcFBTPassWordTypeType byte

密码类型类型

const THOST_FTDC_PWT_Fetch TThostFtdcFBTPassWordTypeType = '1' // 取款
const THOST_FTDC_PWT_Query TThostFtdcFBTPassWordTypeType = '0' // 查询
const THOST_FTDC_PWT_Trade TThostFtdcFBTPassWordTypeType = '3' // 交易
const THOST_FTDC_PWT_Transfer TThostFtdcFBTPassWordTypeType = '2' // 转帐

func (TThostFtdcFBTPassWordTypeType) String

type TThostFtdcFBTRequestIDType

type TThostFtdcFBTRequestIDType int32

请求ID类型

type TThostFtdcFBTTradeCodeEnumType

type TThostFtdcFBTTradeCodeEnumType string

银期交易代码枚举类型

const THOST_FTDC_FTC_BankLaunchBankToBroker TThostFtdcFBTTradeCodeEnumType = "102001" // 银行发起银行转期货
const THOST_FTDC_FTC_BankLaunchBrokerToBank TThostFtdcFBTTradeCodeEnumType = "102002" // 银行发起期货转银行
const THOST_FTDC_FTC_BrokerLaunchBankToBroker TThostFtdcFBTTradeCodeEnumType = "202001" // 期货发起银行转期货
const THOST_FTDC_FTC_BrokerLaunchBrokerToBank TThostFtdcFBTTradeCodeEnumType = "202002" // 期货发起期货转银行

func (TThostFtdcFBTTradeCodeEnumType) String

type TThostFtdcFBTTransferDirectionType

type TThostFtdcFBTTransferDirectionType byte

银期转帐方向类型

const THOST_FTDC_FBTTD_FromBankToFuture TThostFtdcFBTTransferDirectionType = '1' // 入金,银行转期货
const THOST_FTDC_FBTTD_FromFutureToBank TThostFtdcFBTTransferDirectionType = '2' // 出金,期货转银行

func (TThostFtdcFBTTransferDirectionType) String

type TThostFtdcFBTUserEventTypeType

type TThostFtdcFBTUserEventTypeType byte

银期转帐用户事件类型类型

const THOST_FTDC_FBTUET_CancelAccount TThostFtdcFBTUserEventTypeType = '4' // 销户
const THOST_FTDC_FBTUET_CancelReserveOpenAccount TThostFtdcFBTUserEventTypeType = 'D' // 撤销预约开户
const THOST_FTDC_FBTUET_ChangeAccount TThostFtdcFBTUserEventTypeType = '5' // 变更银行账户
const THOST_FTDC_FBTUET_FromBankToFuture TThostFtdcFBTUserEventTypeType = '1' // 银行转期货
const THOST_FTDC_FBTUET_FromFutureToBank TThostFtdcFBTUserEventTypeType = '2' // 期货转银行
const THOST_FTDC_FBTUET_OpenAccount TThostFtdcFBTUserEventTypeType = '3' // 开户
const THOST_FTDC_FBTUET_Other TThostFtdcFBTUserEventTypeType = 'Z' // 其他
const THOST_FTDC_FBTUET_QueryBankAccount TThostFtdcFBTUserEventTypeType = '8' // 查询银行账户
const THOST_FTDC_FBTUET_QueryFutureAccount TThostFtdcFBTUserEventTypeType = '9' // 查询期货账户
const THOST_FTDC_FBTUET_RepealFromBankToFuture TThostFtdcFBTUserEventTypeType = '6' // 冲正银行转期货
const THOST_FTDC_FBTUET_RepealFromFutureToBank TThostFtdcFBTUserEventTypeType = '7' // 冲正期货转银行
const THOST_FTDC_FBTUET_ReserveOpenAccount TThostFtdcFBTUserEventTypeType = 'C' // 预约开户
const THOST_FTDC_FBTUET_ReserveOpenAccountConfirm TThostFtdcFBTUserEventTypeType = 'E' // 预约开户确认
const THOST_FTDC_FBTUET_SignIn TThostFtdcFBTUserEventTypeType = '0' // 签到
const THOST_FTDC_FBTUET_SignOut TThostFtdcFBTUserEventTypeType = 'A' // 签退
const THOST_FTDC_FBTUET_SyncKey TThostFtdcFBTUserEventTypeType = 'B' // 密钥同步

func (TThostFtdcFBTUserEventTypeType) String

type TThostFtdcFaxType

type TThostFtdcFaxType [41]byte

传真类型

func (TThostFtdcFaxType) String

func (s TThostFtdcFaxType) String() string

type TThostFtdcFeeAcceptStyleType

type TThostFtdcFeeAcceptStyleType byte

手续费收取方式类型

const THOST_FTDC_FAS_ByDeliv TThostFtdcFeeAcceptStyleType = '2' // 按交割收取
const THOST_FTDC_FAS_ByTrade TThostFtdcFeeAcceptStyleType = '1' // 按交易收取
const THOST_FTDC_FAS_FixFee TThostFtdcFeeAcceptStyleType = '4' // 按指定手续费收取
const THOST_FTDC_FAS_None TThostFtdcFeeAcceptStyleType = '3' // 不收

func (TThostFtdcFeeAcceptStyleType) String

type TThostFtdcFeePayFlagType

type TThostFtdcFeePayFlagType byte

费用支付标志类型

const THOST_FTDC_FPF_BEN TThostFtdcFeePayFlagType = '0' // 由受益方支付费用
const THOST_FTDC_FPF_OUR TThostFtdcFeePayFlagType = '1' // 由发送方支付费用
const THOST_FTDC_FPF_SHA TThostFtdcFeePayFlagType = '2' // 由发送方支付发起的费用,受益方支付接受的费用

func (TThostFtdcFeePayFlagType) String

func (e TThostFtdcFeePayFlagType) String() string

type TThostFtdcFetchAmtType

type TThostFtdcFetchAmtType [20]byte

银行可取余额类型

func (TThostFtdcFetchAmtType) String

func (s TThostFtdcFetchAmtType) String() string

type TThostFtdcFieldContentType

type TThostFtdcFieldContentType [2049]byte

字段内容类型

func (TThostFtdcFieldContentType) String

type TThostFtdcFieldNameType

type TThostFtdcFieldNameType [2049]byte

字段名类型

func (TThostFtdcFieldNameType) String

func (s TThostFtdcFieldNameType) String() string

type TThostFtdcFileBusinessCodeType

type TThostFtdcFileBusinessCodeType byte

文件业务功能类型

const THOST_FTDC_FBC_AccountTradeDetails TThostFtdcFileBusinessCodeType = '3' // 账户类交易明细对账
const THOST_FTDC_FBC_BankMoneyMonitorData TThostFtdcFileBusinessCodeType = 'f' // 协办存管银行资金监管数据
const THOST_FTDC_FBC_CorporationMoneyTotal TThostFtdcFileBusinessCodeType = 'b' // 法人存管银行资金交收汇总
const THOST_FTDC_FBC_CustAccStatus TThostFtdcFileBusinessCodeType = '2' // 客户账户状态对账
const THOST_FTDC_FBC_CustCancelAccountInfo TThostFtdcFileBusinessCodeType = '6' // 客户销户结息明细对账
const THOST_FTDC_FBC_CustInterestNetMoneyDetails TThostFtdcFileBusinessCodeType = '9' // 客户结息净额明细
const THOST_FTDC_FBC_CustMoneyDetail TThostFtdcFileBusinessCodeType = '5' // 客户资金台账余额明细对账
const THOST_FTDC_FBC_CustMoneyResult TThostFtdcFileBusinessCodeType = '7' // 客户资金余额对账结果
const THOST_FTDC_FBC_CustMoneySendAndReceiveDetails TThostFtdcFileBusinessCodeType = 'a' // 客户资金交收明细
const THOST_FTDC_FBC_FutureAccountChangeInfoDetails TThostFtdcFileBusinessCodeType = '4' // 期货账户信息变更明细对账
const THOST_FTDC_FBC_MainPartMonitorData TThostFtdcFileBusinessCodeType = 'd' // 总分平衡监管数据
const THOST_FTDC_FBC_MainbodyMoneyTotal TThostFtdcFileBusinessCodeType = 'c' // 主体间资金交收汇总
const THOST_FTDC_FBC_Others TThostFtdcFileBusinessCodeType = '0' // 其他
const THOST_FTDC_FBC_OthersExceptionResult TThostFtdcFileBusinessCodeType = '8' // 其它对账异常结果文件
const THOST_FTDC_FBC_PreparationMoney TThostFtdcFileBusinessCodeType = 'e' // 存管银行备付金余额
const THOST_FTDC_FBC_TransferDetails TThostFtdcFileBusinessCodeType = '1' // 转账交易明细对账

func (TThostFtdcFileBusinessCodeType) String

type TThostFtdcFileFormatType

type TThostFtdcFileFormatType byte

文件格式类型

const THOST_FTDC_FFT_DBF TThostFtdcFileFormatType = '2' // DBF文件(.dbf)
const THOST_FTDC_FFT_Txt TThostFtdcFileFormatType = '0' // 文本文件(.txt)
const THOST_FTDC_FFT_Zip TThostFtdcFileFormatType = '1' // 压缩文件(.zip)

func (TThostFtdcFileFormatType) String

func (e TThostFtdcFileFormatType) String() string

type TThostFtdcFileGenStyleType

type TThostFtdcFileGenStyleType byte

文件生成方式类型

const THOST_FTDC_FGS_FileGen TThostFtdcFileGenStyleType = '1' // 生成
const THOST_FTDC_FGS_FileTransmit TThostFtdcFileGenStyleType = '0' // 下发

func (TThostFtdcFileGenStyleType) String

type TThostFtdcFileIDType

type TThostFtdcFileIDType byte

文件标识类型

const THOST_FTDC_FI_CSRCData TThostFtdcFileIDType = 'R' // 上报保证金监控中心数据
const THOST_FTDC_FI_CZCEClose TThostFtdcFileIDType = 'L' // 郑商所平仓了结数据
const THOST_FTDC_FI_CZCECombinationPos TThostFtdcFileIDType = 'C' // 组合持仓数据
const THOST_FTDC_FI_CZCENoClose TThostFtdcFileIDType = 'N' // 郑商所非平仓了结数据
const THOST_FTDC_FI_InvestorPosition TThostFtdcFileIDType = 'P' // 投资者持仓数据
const THOST_FTDC_FI_NonTradePosChange TThostFtdcFileIDType = 'B' // 上期所非持仓变动明细
const THOST_FTDC_FI_OptionStrike TThostFtdcFileIDType = 'S' // 期权执行文件
const THOST_FTDC_FI_PositionDtl TThostFtdcFileIDType = 'D' // 持仓明细数据
const THOST_FTDC_FI_SettlementFund TThostFtdcFileIDType = 'F' // 资金数据
const THOST_FTDC_FI_SettlementPriceComparison TThostFtdcFileIDType = 'M' // 结算价比对文件
const THOST_FTDC_FI_SubEntryFund TThostFtdcFileIDType = 'O' // 投资者分项资金数据
const THOST_FTDC_FI_Trade TThostFtdcFileIDType = 'T' // 成交数据

func (TThostFtdcFileIDType) String

func (e TThostFtdcFileIDType) String() string

type TThostFtdcFileNameType

type TThostFtdcFileNameType [257]byte

文件名称类型

func (TThostFtdcFileNameType) String

func (s TThostFtdcFileNameType) String() string

type TThostFtdcFileStatusType

type TThostFtdcFileStatusType byte

文件状态类型

const THOST_FTDC_FIS_Created TThostFtdcFileStatusType = '1' // 已生成
const THOST_FTDC_FIS_Failed TThostFtdcFileStatusType = '2' // 生成失败
const THOST_FTDC_FIS_NoCreate TThostFtdcFileStatusType = '0' // 未生成

func (TThostFtdcFileStatusType) String

func (e TThostFtdcFileStatusType) String() string

type TThostFtdcFileTypeType

type TThostFtdcFileTypeType byte

文件上传类型类型

const THOST_FTDC_FUT_Check TThostFtdcFileTypeType = '1' // 核对
const THOST_FTDC_FUT_Settlement TThostFtdcFileTypeType = '0' // 结算

func (TThostFtdcFileTypeType) String

func (e TThostFtdcFileTypeType) String() string

type TThostFtdcFileUploadStatusType

type TThostFtdcFileUploadStatusType byte

文件状态类型

const THOST_FTDC_FUS_FailedLoad TThostFtdcFileUploadStatusType = '5' // 导入失败
const THOST_FTDC_FUS_FailedUpload TThostFtdcFileUploadStatusType = '2' // 上传失败
const THOST_FTDC_FUS_PartSucceedLoad TThostFtdcFileUploadStatusType = '4' // 导入部分成功
const THOST_FTDC_FUS_SucceedLoad TThostFtdcFileUploadStatusType = '3' // 导入成功
const THOST_FTDC_FUS_SucceedUpload TThostFtdcFileUploadStatusType = '1' // 上传成功

func (TThostFtdcFileUploadStatusType) String

type TThostFtdcFindMarginRateAlgoIDType

type TThostFtdcFindMarginRateAlgoIDType byte

寻找保证金率算法编号类型

const THOST_FTDC_FMRA_Base TThostFtdcFindMarginRateAlgoIDType = '1' // 基本
const THOST_FTDC_FMRA_CZCE TThostFtdcFindMarginRateAlgoIDType = '3' // 郑州商品交易所
const THOST_FTDC_FMRA_DCE TThostFtdcFindMarginRateAlgoIDType = '2' // 大连商品交易所

func (TThostFtdcFindMarginRateAlgoIDType) String

type TThostFtdcFlexStatModeType

type TThostFtdcFlexStatModeType byte

产品合约统计方式类型

const THOST_FTDC_FSM_All TThostFtdcFlexStatModeType = '3' // 统计所有
const THOST_FTDC_FSM_Exchange TThostFtdcFlexStatModeType = '2' // 交易所统计
const THOST_FTDC_FSM_Product TThostFtdcFlexStatModeType = '1' // 产品统计

func (TThostFtdcFlexStatModeType) String

type TThostFtdcFlowIDType

type TThostFtdcFlowIDType byte

流程ID类型

const THOST_FTDC_EvM_InvestorCommRateModel TThostFtdcFlowIDType = '3' // 投资者手续费率模板关系设置
const THOST_FTDC_EvM_InvestorGroupFlow TThostFtdcFlowIDType = '1' // 投资者对应投资者组设置
const THOST_FTDC_EvM_InvestorRate TThostFtdcFlowIDType = '2' // 投资者手续费率设置

func (TThostFtdcFlowIDType) String

func (e TThostFtdcFlowIDType) String() string

type TThostFtdcForQuoteStatusType

type TThostFtdcForQuoteStatusType byte

询价状态类型

const THOST_FTDC_FQST_Accepted TThostFtdcForQuoteStatusType = 'b' // 已经接受
const THOST_FTDC_FQST_Rejected TThostFtdcForQuoteStatusType = 'c' // 已经被拒绝
const THOST_FTDC_FQST_Submitted TThostFtdcForQuoteStatusType = 'a' // 已经提交

func (TThostFtdcForQuoteStatusType) String

type TThostFtdcForceCloseReasonType

type TThostFtdcForceCloseReasonType byte

强平原因类型

const THOST_FTDC_FCC_ClientOverPositionLimit TThostFtdcForceCloseReasonType = '2' // 客户超仓
const THOST_FTDC_FCC_LackDeposit TThostFtdcForceCloseReasonType = '1' // 资金不足
const THOST_FTDC_FCC_MemberOverPositionLimit TThostFtdcForceCloseReasonType = '3' // 会员超仓
const THOST_FTDC_FCC_NotForceClose TThostFtdcForceCloseReasonType = '0' // 非强平
const THOST_FTDC_FCC_NotMultiple TThostFtdcForceCloseReasonType = '4' // 持仓非整数倍
const THOST_FTDC_FCC_Notverifycapital TThostFtdcForceCloseReasonType = '8' // 风控强平不验证资金
const THOST_FTDC_FCC_Other TThostFtdcForceCloseReasonType = '6' // 其它
const THOST_FTDC_FCC_PersonDeliv TThostFtdcForceCloseReasonType = '7' // 自然人临近交割
const THOST_FTDC_FCC_Violation TThostFtdcForceCloseReasonType = '5' // 违规

func (TThostFtdcForceCloseReasonType) String

type TThostFtdcForceCloseSceneIdType

type TThostFtdcForceCloseSceneIdType [24]byte

强平场景编号类型

func (TThostFtdcForceCloseSceneIdType) String

type TThostFtdcForceCloseTypeType

type TThostFtdcForceCloseTypeType byte

强平单类型类型

const THOST_FTDC_FCT_Group TThostFtdcForceCloseTypeType = '2' // 批量投资者辅助强平
const THOST_FTDC_FCT_Manual TThostFtdcForceCloseTypeType = '0' // 手工强平
const THOST_FTDC_FCT_Single TThostFtdcForceCloseTypeType = '1' // 单一投资者辅助强平

func (TThostFtdcForceCloseTypeType) String

type TThostFtdcFreezeStatusType

type TThostFtdcFreezeStatusType byte

休眠状态类型

const THOST_FTDC_FRS_Freeze TThostFtdcFreezeStatusType = '0' // 休眠
const THOST_FTDC_FRS_Normal TThostFtdcFreezeStatusType = '1' // 活跃

func (TThostFtdcFreezeStatusType) String

type TThostFtdcFrontIDType

type TThostFtdcFrontIDType int32

前置编号类型

type TThostFtdcFunctionCodeType

type TThostFtdcFunctionCodeType byte

功能代码类型

const THOST_FTDC_FC_BachSyncBrokerData TThostFtdcFunctionCodeType = 'A' // 批量同步经纪公司数据
const THOST_FTDC_FC_BrokerPasswordUpdate TThostFtdcFunctionCodeType = '4' // 变更经纪公司口令
const THOST_FTDC_FC_DataAsync TThostFtdcFunctionCodeType = '1' // 数据异步化
const THOST_FTDC_FC_DeleteOrder TThostFtdcFunctionCodeType = 'F' // 删除未知单
const THOST_FTDC_FC_ForceUserLogout TThostFtdcFunctionCodeType = '2' // 强制用户登出
const THOST_FTDC_FC_InvestorPasswordUpdate TThostFtdcFunctionCodeType = '5' // 变更投资者口令
const THOST_FTDC_FC_OrderAction TThostFtdcFunctionCodeType = '7' // 报单操作
const THOST_FTDC_FC_OrderInsert TThostFtdcFunctionCodeType = '6' // 报单插入
const THOST_FTDC_FC_ParkedOrderAction TThostFtdcFunctionCodeType = 'D' // 预埋报单操作
const THOST_FTDC_FC_ParkedOrderInsert TThostFtdcFunctionCodeType = 'C' // 预埋报单插入
const THOST_FTDC_FC_SuperQuery TThostFtdcFunctionCodeType = 'B' // 超级查询
const THOST_FTDC_FC_SyncBrokerData TThostFtdcFunctionCodeType = '9' // 同步经纪公司数据
const THOST_FTDC_FC_SyncOTP TThostFtdcFunctionCodeType = 'E' // 同步动态令牌
const THOST_FTDC_FC_SyncSystemData TThostFtdcFunctionCodeType = '8' // 同步系统数据
const THOST_FTDC_FC_UserPasswordUpdate TThostFtdcFunctionCodeType = '3' // 变更管理用户口令

func (TThostFtdcFunctionCodeType) String

type TThostFtdcFunctionIDType

type TThostFtdcFunctionIDType [25]byte

功能代码类型

func (TThostFtdcFunctionIDType) String

func (s TThostFtdcFunctionIDType) String() string

type TThostFtdcFunctionNameType

type TThostFtdcFunctionNameType [65]byte

功能名称类型

func (TThostFtdcFunctionNameType) String

type TThostFtdcFunctionUrlType

type TThostFtdcFunctionUrlType [1025]byte

功能链接类型

func (TThostFtdcFunctionUrlType) String

func (s TThostFtdcFunctionUrlType) String() string

type TThostFtdcFunctionValueCodeType

type TThostFtdcFunctionValueCodeType [257]byte

功能编码类型

func (TThostFtdcFunctionValueCodeType) String

type TThostFtdcFundDirectionEnType

type TThostFtdcFundDirectionEnType byte

出入金方向类型

const THOST_FTDC_FDEN_In TThostFtdcFundDirectionEnType = '1' // Deposit
const THOST_FTDC_FDEN_Out TThostFtdcFundDirectionEnType = '2' // Withdrawal

func (TThostFtdcFundDirectionEnType) String

type TThostFtdcFundDirectionType

type TThostFtdcFundDirectionType byte

出入金方向类型

const THOST_FTDC_FD_In TThostFtdcFundDirectionType = '1' // 入金
const THOST_FTDC_FD_Out TThostFtdcFundDirectionType = '2' // 出金

func (TThostFtdcFundDirectionType) String

type TThostFtdcFundEventTypeType

type TThostFtdcFundEventTypeType byte

资金管理操作类型类型

const THOST_FTDC_FET_Accountregister TThostFtdcFundEventTypeType = '6' // 银期签约账户
const THOST_FTDC_FET_BankRestriction TThostFtdcFundEventTypeType = '5' // 单个银行帐户转账限额
const THOST_FTDC_FET_Credit TThostFtdcFundEventTypeType = '3' // 资金冻结
const THOST_FTDC_FET_ExchangeFundIO TThostFtdcFundEventTypeType = '7' // 交易所出入金
const THOST_FTDC_FET_InvestorFundIO TThostFtdcFundEventTypeType = '8' // 投资者出入金
const THOST_FTDC_FET_InvestorWithdrawAlm TThostFtdcFundEventTypeType = '4' // 投资者可提资金比例
const THOST_FTDC_FET_Restriction TThostFtdcFundEventTypeType = '0' // 转账限额
const THOST_FTDC_FET_TodayRestriction TThostFtdcFundEventTypeType = '1' // 当日转账限额
const THOST_FTDC_FET_Transfer TThostFtdcFundEventTypeType = '2' // 期商流水

func (TThostFtdcFundEventTypeType) String

type TThostFtdcFundIOTypeEnType

type TThostFtdcFundIOTypeEnType byte

出入金类型类型

const THOST_FTDC_FIOTEN_FundIO TThostFtdcFundIOTypeEnType = '1' // Deposit/Withdrawal
const THOST_FTDC_FIOTEN_SwapCurrency TThostFtdcFundIOTypeEnType = '3' // Bank-Futures FX Exchange
const THOST_FTDC_FIOTEN_Transfer TThostFtdcFundIOTypeEnType = '2' // Bank-Futures Transfer

func (TThostFtdcFundIOTypeEnType) String

type TThostFtdcFundIOTypeType

type TThostFtdcFundIOTypeType byte

出入金类型类型

const THOST_FTDC_FIOT_FundIO TThostFtdcFundIOTypeType = '1' // 出入金
const THOST_FTDC_FIOT_SwapCurrency TThostFtdcFundIOTypeType = '3' // 银期换汇
const THOST_FTDC_FIOT_Transfer TThostFtdcFundIOTypeType = '2' // 银期转帐

func (TThostFtdcFundIOTypeType) String

func (e TThostFtdcFundIOTypeType) String() string

type TThostFtdcFundMortDirectionEnType

type TThostFtdcFundMortDirectionEnType byte

货币质押方向类型

const THOST_FTDC_FMDEN_In TThostFtdcFundMortDirectionEnType = '1' // Pledge
const THOST_FTDC_FMDEN_Out TThostFtdcFundMortDirectionEnType = '2' // Redemption

func (TThostFtdcFundMortDirectionEnType) String

type TThostFtdcFundMortDirectionType

type TThostFtdcFundMortDirectionType byte

货币质押方向类型

const THOST_FTDC_FMD_In TThostFtdcFundMortDirectionType = '1' // 货币质入
const THOST_FTDC_FMD_Out TThostFtdcFundMortDirectionType = '2' // 货币质出

func (TThostFtdcFundMortDirectionType) String

type TThostFtdcFundMortgageTypeType

type TThostFtdcFundMortgageTypeType byte

货币质押类型类型

const THOST_FTDC_FMT_Mortgage TThostFtdcFundMortgageTypeType = '1' // 质押
const THOST_FTDC_FMT_Redemption TThostFtdcFundMortgageTypeType = '2' // 解质

func (TThostFtdcFundMortgageTypeType) String

type TThostFtdcFundProjectIDType

type TThostFtdcFundProjectIDType [5]byte

资金项目编号类型

func (TThostFtdcFundProjectIDType) String

type TThostFtdcFundStatusType

type TThostFtdcFundStatusType byte

资金状态类型

const THOST_FTDC_FS_Charge TThostFtdcFundStatusType = '3' // 已冲销
const THOST_FTDC_FS_Check TThostFtdcFundStatusType = '2' // 已复核
const THOST_FTDC_FS_Record TThostFtdcFundStatusType = '1' // 已录入

func (TThostFtdcFundStatusType) String

func (e TThostFtdcFundStatusType) String() string

type TThostFtdcFundTypeEnType

type TThostFtdcFundTypeEnType byte

资金类型类型

const THOST_FTDC_FTEN_Company TThostFtdcFundTypeEnType = '3' // Brokerage Adj
const THOST_FTDC_FTEN_Deposite TThostFtdcFundTypeEnType = '1' // Bank Deposit
const THOST_FTDC_FTEN_InnerTransfer TThostFtdcFundTypeEnType = '4' // Internal Transfer
const THOST_FTDC_FTEN_ItemFund TThostFtdcFundTypeEnType = '2' // Payment/Fee

func (TThostFtdcFundTypeEnType) String

func (e TThostFtdcFundTypeEnType) String() string

type TThostFtdcFundTypeType

type TThostFtdcFundTypeType byte

资金类型类型

const THOST_FTDC_FT_Company TThostFtdcFundTypeType = '3' // 公司调整
const THOST_FTDC_FT_Deposite TThostFtdcFundTypeType = '1' // 银行存款
const THOST_FTDC_FT_InnerTransfer TThostFtdcFundTypeType = '4' // 资金内转
const THOST_FTDC_FT_ItemFund TThostFtdcFundTypeType = '2' // 分项资金

func (TThostFtdcFundTypeType) String

func (e TThostFtdcFundTypeType) String() string

type TThostFtdcFutureAccPwdType

type TThostFtdcFutureAccPwdType [17]byte

期货资金密码类型

func (TThostFtdcFutureAccPwdType) String

type TThostFtdcFutureAccTypeType

type TThostFtdcFutureAccTypeType byte

期货公司帐号类型类型

const THOST_FTDC_FAT_BankBook TThostFtdcFutureAccTypeType = '1' // 银行存折
const THOST_FTDC_FAT_CreditCard TThostFtdcFutureAccTypeType = '3' // 信用卡
const THOST_FTDC_FAT_SavingCard TThostFtdcFutureAccTypeType = '2' // 储蓄卡

func (TThostFtdcFutureAccTypeType) String

type TThostFtdcFutureAccountNameType

type TThostFtdcFutureAccountNameType [129]byte

期货帐户名称类型

func (TThostFtdcFutureAccountNameType) String

type TThostFtdcFutureAccountType

type TThostFtdcFutureAccountType [22]byte

期货资金账号类型

func (TThostFtdcFutureAccountType) String

type TThostFtdcFutureBranchIDType

type TThostFtdcFutureBranchIDType [31]byte

期货分支机构编码类型

func (TThostFtdcFutureBranchIDType) String

type TThostFtdcFutureFeeType

type TThostFtdcFutureFeeType float64

应收期货公司费用(元)类型

func (TThostFtdcFutureFeeType) String

func (f TThostFtdcFutureFeeType) String() string

type TThostFtdcFutureIDType

type TThostFtdcFutureIDType [11]byte

期货公司代码类型

func (TThostFtdcFutureIDType) String

func (s TThostFtdcFutureIDType) String() string

type TThostFtdcFutureMainKeyType

type TThostFtdcFutureMainKeyType [129]byte

期货公司主密钥类型

func (TThostFtdcFutureMainKeyType) String

type TThostFtdcFuturePwdFlagType

type TThostFtdcFuturePwdFlagType byte

资金密码核对标志类型

const THOST_FTDC_FPWD_Check TThostFtdcFuturePwdFlagType = '1' // 核对
const THOST_FTDC_FPWD_UnCheck TThostFtdcFuturePwdFlagType = '0' // 不核对

func (TThostFtdcFuturePwdFlagType) String

type TThostFtdcFutureSerialType

type TThostFtdcFutureSerialType int32

期货公司流水号类型

type TThostFtdcFutureTransKeyType

type TThostFtdcFutureTransKeyType [129]byte

期货公司传输密钥类型

func (TThostFtdcFutureTransKeyType) String

type TThostFtdcFutureTypeType

type TThostFtdcFutureTypeType byte

期货类型类型

const THOST_FTDC_FUTT_Commodity TThostFtdcFutureTypeType = '1' // 商品期货
const THOST_FTDC_FUTT_Financial TThostFtdcFutureTypeType = '2' // 金融期货

func (TThostFtdcFutureTypeType) String

func (e TThostFtdcFutureTypeType) String() string

type TThostFtdcFutureWorkKeyType

type TThostFtdcFutureWorkKeyType [129]byte

期货公司工作密钥类型

func (TThostFtdcFutureWorkKeyType) String

type TThostFtdcFuturesIDType

type TThostFtdcFuturesIDType [21]byte

监控中心为客户分配的代码类型

func (TThostFtdcFuturesIDType) String

func (s TThostFtdcFuturesIDType) String() string

type TThostFtdcGenderType

type TThostFtdcGenderType byte

性别类型

const THOST_FTDC_GD_Female TThostFtdcGenderType = '2' // 女
const THOST_FTDC_GD_Male TThostFtdcGenderType = '1' // 男
const THOST_FTDC_GD_Unknown TThostFtdcGenderType = '0' // 未知状态

func (TThostFtdcGenderType) String

func (e TThostFtdcGenderType) String() string

type TThostFtdcGiveUpDataSourceType

type TThostFtdcGiveUpDataSourceType byte

放弃执行申请数据来源类型

const THOST_FTDC_GUDS_Gen TThostFtdcGiveUpDataSourceType = '0' // 系统生成
const THOST_FTDC_GUDS_Hand TThostFtdcGiveUpDataSourceType = '1' // 手工添加

func (TThostFtdcGiveUpDataSourceType) String

type TThostFtdcGradeType

type TThostFtdcGradeType [41]byte

等级类型

func (TThostFtdcGradeType) String

func (s TThostFtdcGradeType) String() string

type TThostFtdcHandlePositionAlgoIDType

type TThostFtdcHandlePositionAlgoIDType byte

持仓处理算法编号类型

const THOST_FTDC_HPA_Base TThostFtdcHandlePositionAlgoIDType = '1' // 基本
const THOST_FTDC_HPA_CZCE TThostFtdcHandlePositionAlgoIDType = '3' // 郑州商品交易所
const THOST_FTDC_HPA_DCE TThostFtdcHandlePositionAlgoIDType = '2' // 大连商品交易所

func (TThostFtdcHandlePositionAlgoIDType) String

type TThostFtdcHandleTradingAccountAlgoIDType

type TThostFtdcHandleTradingAccountAlgoIDType byte

资金处理算法编号类型

const THOST_FTDC_HTAA_Base TThostFtdcHandleTradingAccountAlgoIDType = '1' // 基本
const THOST_FTDC_HTAA_CZCE TThostFtdcHandleTradingAccountAlgoIDType = '3' // 郑州商品交易所
const THOST_FTDC_HTAA_DCE TThostFtdcHandleTradingAccountAlgoIDType = '2' // 大连商品交易所

func (TThostFtdcHandleTradingAccountAlgoIDType) String

type TThostFtdcHandshakeDataLenType

type TThostFtdcHandshakeDataLenType int32

握手数据内容长度类型

type TThostFtdcHandshakeDataType

type TThostFtdcHandshakeDataType [301]byte

握手数据内容类型

func (TThostFtdcHandshakeDataType) String

type TThostFtdcHasBoardType

type TThostFtdcHasBoardType byte

是否有董事会类型

const THOST_FTDC_HB_No TThostFtdcHasBoardType = '0' // 没有
const THOST_FTDC_HB_Yes TThostFtdcHasBoardType = '1' // 有

func (TThostFtdcHasBoardType) String

func (e TThostFtdcHasBoardType) String() string

type TThostFtdcHasTrusteeType

type TThostFtdcHasTrusteeType byte

是否有托管人类型

const THOST_FTDC_HT_No TThostFtdcHasTrusteeType = '0' // 没有
const THOST_FTDC_HT_Yes TThostFtdcHasTrusteeType = '1' // 有

func (TThostFtdcHasTrusteeType) String

func (e TThostFtdcHasTrusteeType) String() string

type TThostFtdcHedgeFlagEnType

type TThostFtdcHedgeFlagEnType byte

投机套保标志类型

const THOST_FTDC_HFEN_Arbitrage TThostFtdcHedgeFlagEnType = '2' // Arbitrage
const THOST_FTDC_HFEN_Hedge TThostFtdcHedgeFlagEnType = '3' // Hedge
const THOST_FTDC_HFEN_Speculation TThostFtdcHedgeFlagEnType = '1' // Speculation

func (TThostFtdcHedgeFlagEnType) String

func (e TThostFtdcHedgeFlagEnType) String() string

type TThostFtdcHedgeFlagType

type TThostFtdcHedgeFlagType byte

投机套保标志类型

const THOST_FTDC_HF_Arbitrage TThostFtdcHedgeFlagType = '2' // 套利
const THOST_FTDC_HF_Hedge TThostFtdcHedgeFlagType = '3' // 套保
const THOST_FTDC_HF_HedgeSpec TThostFtdcHedgeFlagType = '7' // 第一腿套保第二腿投机
const THOST_FTDC_HF_MarketMaker TThostFtdcHedgeFlagType = '5' // 做市商
const THOST_FTDC_HF_SpecHedge TThostFtdcHedgeFlagType = '6' // 第一腿投机第二腿套保
const THOST_FTDC_HF_Speculation TThostFtdcHedgeFlagType = '1' // 投机

func (TThostFtdcHedgeFlagType) String

func (e TThostFtdcHedgeFlagType) String() string

type TThostFtdcHedgeRateType added in v2.0.8

type TThostFtdcHedgeRateType float64

HedgeRate类型类型

func (TThostFtdcHedgeRateType) String added in v2.0.8

func (f TThostFtdcHedgeRateType) String() string

type TThostFtdcIDBNameType

type TThostFtdcIDBNameType [100]byte

握手数据内容类型

func (TThostFtdcIDBNameType) String

func (s TThostFtdcIDBNameType) String() string

type TThostFtdcIPAddressType

type TThostFtdcIPAddressType [33]byte

IP地址类型

func (TThostFtdcIPAddressType) String

func (s TThostFtdcIPAddressType) String() string

type TThostFtdcIPPortType

type TThostFtdcIPPortType int32

IP端口类型

type TThostFtdcIdCardTypeType

type TThostFtdcIdCardTypeType byte

证件类型类型

const THOST_FTDC_ICT_AccountsPermits TThostFtdcIdCardTypeType = 'J' // 人行开户许可证
const THOST_FTDC_ICT_BusinessRegistration TThostFtdcIdCardTypeType = 'H' // 商业登记证
const THOST_FTDC_ICT_CorporationCertNo TThostFtdcIdCardTypeType = 'O' // 机构成立证明文件
const THOST_FTDC_ICT_CptMngPrdLetter TThostFtdcIdCardTypeType = 'L' // 资管产品备案函
const THOST_FTDC_ICT_DrivingLicense TThostFtdcIdCardTypeType = 'D' // 驾照
const THOST_FTDC_ICT_EID TThostFtdcIdCardTypeType = '0' // 组织机构代码
const THOST_FTDC_ICT_FrgPrmtRdCard TThostFtdcIdCardTypeType = 'K' // 外国人永久居留证
const THOST_FTDC_ICT_HKMCIDCard TThostFtdcIdCardTypeType = 'I' // 港澳永久性居民身份证
const THOST_FTDC_ICT_HKMCTwResidencePermit TThostFtdcIdCardTypeType = 'M' // 港澳台居民居住证
const THOST_FTDC_ICT_HMMainlandTravelPermit TThostFtdcIdCardTypeType = 'B' // 港澳居民来往内地通行证
const THOST_FTDC_ICT_HomeComingCard TThostFtdcIdCardTypeType = '8' // 回乡证
const THOST_FTDC_ICT_HouseholdRegister TThostFtdcIdCardTypeType = '5' // 户口簿
const THOST_FTDC_ICT_IDCard TThostFtdcIdCardTypeType = '1' // 中国公民身份证
const THOST_FTDC_ICT_LicenseNo TThostFtdcIdCardTypeType = '9' // 营业执照号
const THOST_FTDC_ICT_LocalID TThostFtdcIdCardTypeType = 'G' // 当地身份证
const THOST_FTDC_ICT_OfficerIDCard TThostFtdcIdCardTypeType = '2' // 军官证
const THOST_FTDC_ICT_OtherCard TThostFtdcIdCardTypeType = 'x' // 其他证件
const THOST_FTDC_ICT_Passport TThostFtdcIdCardTypeType = '6' // 护照
const THOST_FTDC_ICT_PoliceIDCard TThostFtdcIdCardTypeType = '3' // 警官证
const THOST_FTDC_ICT_SocialID TThostFtdcIdCardTypeType = 'F' // 当地社保ID
const THOST_FTDC_ICT_SoldierIDCard TThostFtdcIdCardTypeType = '4' // 士兵证
const THOST_FTDC_ICT_TaiwanCompatriotIDCard TThostFtdcIdCardTypeType = '7' // 台胞证
const THOST_FTDC_ICT_TaxNo TThostFtdcIdCardTypeType = 'A' // 税务登记号/当地纳税ID
const THOST_FTDC_ICT_TwMainlandTravelPermit TThostFtdcIdCardTypeType = 'C' // 台湾居民来往大陆通行证
const THOST_FTDC_ICT_UniformSocialCreditCode TThostFtdcIdCardTypeType = 'N' // 统一社会信用代码

func (TThostFtdcIdCardTypeType) String

func (e TThostFtdcIdCardTypeType) String() string

type TThostFtdcIdentifiedCardNoType

type TThostFtdcIdentifiedCardNoType [51]byte

证件号码类型

func (TThostFtdcIdentifiedCardNoType) String

type TThostFtdcImplyLevelType

type TThostFtdcImplyLevelType int32

派生层数类型

type TThostFtdcImportSequenceIDType

type TThostFtdcImportSequenceIDType [17]byte

动态令牌导入批次编号类型

func (TThostFtdcImportSequenceIDType) String

type TThostFtdcInTheMoneyFlagType

type TThostFtdcInTheMoneyFlagType [2]byte

平值期权标志类型

func (TThostFtdcInTheMoneyFlagType) String

type TThostFtdcIncludeCloseProfitType

type TThostFtdcIncludeCloseProfitType byte

是否包含平仓盈利类型

const THOST_FTDC_ICP_Include TThostFtdcIncludeCloseProfitType = '0' // 包含平仓盈利
const THOST_FTDC_ICP_NotInclude TThostFtdcIncludeCloseProfitType = '2' // 不包含平仓盈利

func (TThostFtdcIncludeCloseProfitType) String

type TThostFtdcIndividualNameType

type TThostFtdcIndividualNameType [51]byte

个人姓名类型

func (TThostFtdcIndividualNameType) String

type TThostFtdcIndustryIDType

type TThostFtdcIndustryIDType [17]byte

行业编码类型

func (TThostFtdcIndustryIDType) String

func (s TThostFtdcIndustryIDType) String() string

type TThostFtdcInitSettlementType

type TThostFtdcInitSettlementType byte

结算初始化状态类型

const THOST_FTDC_SIS_Initialize TThostFtdcInitSettlementType = '1' // 结算初始化中
const THOST_FTDC_SIS_Initialized TThostFtdcInitSettlementType = '2' // 结算初始化完成
const THOST_FTDC_SIS_UnInitialize TThostFtdcInitSettlementType = '0' // 结算初始化未开始

func (TThostFtdcInitSettlementType) String

type TThostFtdcInstLifePhaseType

type TThostFtdcInstLifePhaseType byte

合约生命周期状态类型

const THOST_FTDC_IP_Expired TThostFtdcInstLifePhaseType = '3' // 到期
const THOST_FTDC_IP_NotStart TThostFtdcInstLifePhaseType = '0' // 未上市
const THOST_FTDC_IP_Pause TThostFtdcInstLifePhaseType = '2' // 停牌
const THOST_FTDC_IP_Started TThostFtdcInstLifePhaseType = '1' // 上市

func (TThostFtdcInstLifePhaseType) String

type TThostFtdcInstMarginCalIDType added in v2.0.8

type TThostFtdcInstMarginCalIDType byte

SPMM合约保证金算法类型

const THOST_FTDC_IMID_BothSide TThostFtdcInstMarginCalIDType = '1' // 标准算法收取双边
const THOST_FTDC_IMID_MMSA TThostFtdcInstMarginCalIDType = '2' // 单向大边
const THOST_FTDC_IMID_SPMM TThostFtdcInstMarginCalIDType = '3' // 新组保SPMM

func (TThostFtdcInstMarginCalIDType) String added in v2.0.8

type TThostFtdcInstStatusEnterReasonType

type TThostFtdcInstStatusEnterReasonType byte

品种进入交易状态原因类型

const THOST_FTDC_IER_Automatic TThostFtdcInstStatusEnterReasonType = '1' // 自动切换
const THOST_FTDC_IER_Fuse TThostFtdcInstStatusEnterReasonType = '3' // 熔断
const THOST_FTDC_IER_Manual TThostFtdcInstStatusEnterReasonType = '2' // 手动切换

func (TThostFtdcInstStatusEnterReasonType) String

type TThostFtdcInstallCountType

type TThostFtdcInstallCountType int32

安装数量类型

type TThostFtdcInstallIDType

type TThostFtdcInstallIDType int32

安装编号类型

type TThostFtdcInstitutionTypeType

type TThostFtdcInstitutionTypeType byte

机构类别类型

const THOST_FTDC_TS_Bank TThostFtdcInstitutionTypeType = '0' // 银行
const THOST_FTDC_TS_Future TThostFtdcInstitutionTypeType = '1' // 期商
const THOST_FTDC_TS_Store TThostFtdcInstitutionTypeType = '2' // 券商

func (TThostFtdcInstitutionTypeType) String

type TThostFtdcInstrumentClassType added in v2.0.8

type TThostFtdcInstrumentClassType byte

合约类型类型

const THOST_FTDC_EIC_Delivery TThostFtdcInstrumentClassType = '2' // 临近交割合约
const THOST_FTDC_EIC_NonComb TThostFtdcInstrumentClassType = '3' // 非组合合约
const THOST_FTDC_EIC_Usual TThostFtdcInstrumentClassType = '1' // 一般月份合约

func (TThostFtdcInstrumentClassType) String added in v2.0.8

type TThostFtdcInstrumentCodeType

type TThostFtdcInstrumentCodeType [31]byte

合约标识码类型

func (TThostFtdcInstrumentCodeType) String

type TThostFtdcInstrumentIDExprType

type TThostFtdcInstrumentIDExprType [41]byte

合约代码表达式类型

func (TThostFtdcInstrumentIDExprType) String

type TThostFtdcInstrumentIDType

type TThostFtdcInstrumentIDType [81]byte

合约代码类型

func (TThostFtdcInstrumentIDType) String

type TThostFtdcInstrumentIDsType

type TThostFtdcInstrumentIDsType [101]byte

多个产品代码,用+分隔,如cu+zn类型

func (TThostFtdcInstrumentIDsType) String

type TThostFtdcInstrumentNameExprType

type TThostFtdcInstrumentNameExprType [41]byte

合约名称表达式类型

func (TThostFtdcInstrumentNameExprType) String

type TThostFtdcInstrumentNameType

type TThostFtdcInstrumentNameType [21]byte

合约名称类型

func (TThostFtdcInstrumentNameType) String

type TThostFtdcInstrumentStatusType

type TThostFtdcInstrumentStatusType byte

合约交易状态类型

const THOST_FTDC_IS_AuctionBalance TThostFtdcInstrumentStatusType = '4' // 集合竞价价格平衡
const THOST_FTDC_IS_AuctionMatch TThostFtdcInstrumentStatusType = '5' // 集合竞价撮合
const THOST_FTDC_IS_AuctionOrdering TThostFtdcInstrumentStatusType = '3' // 集合竞价报单
const THOST_FTDC_IS_BeforeTrading TThostFtdcInstrumentStatusType = '0' // 开盘前
const THOST_FTDC_IS_Closed TThostFtdcInstrumentStatusType = '6' // 收盘
const THOST_FTDC_IS_Continous TThostFtdcInstrumentStatusType = '2' // 连续交易
const THOST_FTDC_IS_NoTrading TThostFtdcInstrumentStatusType = '1' // 非交易

func (TThostFtdcInstrumentStatusType) String

type TThostFtdcInvBrchIDType

type TThostFtdcInvBrchIDType [6]byte

机构投资人联行号类型

func (TThostFtdcInvBrchIDType) String

func (s TThostFtdcInvBrchIDType) String() string

type TThostFtdcInvDepIDType

type TThostFtdcInvDepIDType [6]byte

机构投资人账号机构号类型

func (TThostFtdcInvDepIDType) String

func (s TThostFtdcInvDepIDType) String() string

type TThostFtdcInvestUnitIDType

type TThostFtdcInvestUnitIDType [17]byte

投资单元代码类型

func (TThostFtdcInvestUnitIDType) String

type TThostFtdcInvestVarietyType

type TThostFtdcInvestVarietyType [101]byte

投资品种类型

func (TThostFtdcInvestVarietyType) String

type TThostFtdcInvestorFullNameType

type TThostFtdcInvestorFullNameType [101]byte

投资者全称类型

func (TThostFtdcInvestorFullNameType) String

type TThostFtdcInvestorGroupNameType

type TThostFtdcInvestorGroupNameType [41]byte

投资者分组名称类型

func (TThostFtdcInvestorGroupNameType) String

type TThostFtdcInvestorIDRuleExprType

type TThostFtdcInvestorIDRuleExprType [513]byte

号段规则表达式类型

func (TThostFtdcInvestorIDRuleExprType) String

type TThostFtdcInvestorIDRuleNameType

type TThostFtdcInvestorIDRuleNameType [61]byte

号段规则名称类型

func (TThostFtdcInvestorIDRuleNameType) String

type TThostFtdcInvestorIDType

type TThostFtdcInvestorIDType [13]byte

投资者代码类型

func (TThostFtdcInvestorIDType) String

func (s TThostFtdcInvestorIDType) String() string

type TThostFtdcInvestorRangeType

type TThostFtdcInvestorRangeType byte

投资者范围类型

const THOST_FTDC_IR_All TThostFtdcInvestorRangeType = '1' // 所有
const THOST_FTDC_IR_Group TThostFtdcInvestorRangeType = '2' // 投资者组
const THOST_FTDC_IR_Single TThostFtdcInvestorRangeType = '3' // 单一投资者

func (TThostFtdcInvestorRangeType) String

type TThostFtdcInvestorRiskStatusType

type TThostFtdcInvestorRiskStatusType byte

投资者风险状态类型

const THOST_FTDC_IRS_Call TThostFtdcInvestorRiskStatusType = '3' // 追保
const THOST_FTDC_IRS_Exception TThostFtdcInvestorRiskStatusType = '5' // 异常
const THOST_FTDC_IRS_Force TThostFtdcInvestorRiskStatusType = '4' // 强平
const THOST_FTDC_IRS_Normal TThostFtdcInvestorRiskStatusType = '1' // 正常
const THOST_FTDC_IRS_Warn TThostFtdcInvestorRiskStatusType = '2' // 警告

func (TThostFtdcInvestorRiskStatusType) String

type TThostFtdcInvestorSettlementParamIDType

type TThostFtdcInvestorSettlementParamIDType byte

投资者结算参数代码类型

const THOST_FTDC_ISPI_BillDeposit TThostFtdcInvestorSettlementParamIDType = '9' // 结算单结存是否包含质押
const THOST_FTDC_ISPI_MarginWay TThostFtdcInvestorSettlementParamIDType = '5' // 保证金算法
const THOST_FTDC_ISPI_MortgageRatio TThostFtdcInvestorSettlementParamIDType = '4' // 质押比例

func (TThostFtdcInvestorSettlementParamIDType) String

type TThostFtdcInvestorTypeType

type TThostFtdcInvestorTypeType byte

投资者类型类型

const THOST_FTDC_CT_Asset TThostFtdcInvestorTypeType = '4' // 资管户
const THOST_FTDC_CT_Company TThostFtdcInvestorTypeType = '1' // 法人
const THOST_FTDC_CT_Fund TThostFtdcInvestorTypeType = '2' // 投资基金
const THOST_FTDC_CT_Person TThostFtdcInvestorTypeType = '0' // 自然人
const THOST_FTDC_CT_SpecialOrgan TThostFtdcInvestorTypeType = '3' // 特殊法人

func (TThostFtdcInvestorTypeType) String

type TThostFtdcInvstTradingRightType added in v2.0.8

type TThostFtdcInvstTradingRightType byte

投资者交易权限类型

const THOST_FTDC_ITR_CloseOnly TThostFtdcInvstTradingRightType = '1' // 只能平仓
const THOST_FTDC_ITR_Forbidden TThostFtdcInvstTradingRightType = '2' // 不能交易

func (TThostFtdcInvstTradingRightType) String added in v2.0.8

type TThostFtdcIsCheckPrepaType

type TThostFtdcIsCheckPrepaType int32

是否校验开户可用资金类型

type TThostFtdcIsSettlementType

type TThostFtdcIsSettlementType [2]byte

是否为非结算会员类型

func (TThostFtdcIsSettlementType) String

type TThostFtdcIsStockType

type TThostFtdcIsStockType [11]byte

是否股民类型

func (TThostFtdcIsStockType) String

func (s TThostFtdcIsStockType) String() string

type TThostFtdcLanguageTypeType

type TThostFtdcLanguageTypeType byte

通知语言类型类型

const THOST_FTDC_LT_Chinese TThostFtdcLanguageTypeType = '1' // 中文
const THOST_FTDC_LT_English TThostFtdcLanguageTypeType = '2' // 英文

func (TThostFtdcLanguageTypeType) String

type TThostFtdcLargeVolumeType

type TThostFtdcLargeVolumeType float64

大额数量类型

func (TThostFtdcLargeVolumeType) String

func (f TThostFtdcLargeVolumeType) String() string

type TThostFtdcLastDriftType

type TThostFtdcLastDriftType int32

上次OTP漂移值类型

type TThostFtdcLastFragmentType

type TThostFtdcLastFragmentType byte

最后分片标志类型

const THOST_FTDC_LF_No TThostFtdcLastFragmentType = '1' // 不是最后分片
const THOST_FTDC_LF_Yes TThostFtdcLastFragmentType = '0' // 是最后分片

func (TThostFtdcLastFragmentType) String

type TThostFtdcLastSuccessType

type TThostFtdcLastSuccessType int32

上次OTP成功值类型

type TThostFtdcLedgerManageBankType

type TThostFtdcLedgerManageBankType [101]byte

开户银行类型

func (TThostFtdcLedgerManageBankType) String

type TThostFtdcLedgerManageIDType

type TThostFtdcLedgerManageIDType [51]byte

分户管理资产编码类型

func (TThostFtdcLedgerManageIDType) String

type TThostFtdcLegIDType

type TThostFtdcLegIDType int32

单腿编号类型

type TThostFtdcLegMultipleType

type TThostFtdcLegMultipleType int32

单腿乘数类型

type TThostFtdcLicenseNOType

type TThostFtdcLicenseNOType [33]byte

营业执照类型

func (TThostFtdcLicenseNOType) String

func (s TThostFtdcLicenseNOType) String() string

type TThostFtdcLicenseNoType

type TThostFtdcLicenseNoType [51]byte

营业执照号类型

func (TThostFtdcLicenseNoType) String

func (s TThostFtdcLicenseNoType) String() string

type TThostFtdcLimitUseTypeType

type TThostFtdcLimitUseTypeType byte

保值额度使用类型类型

const THOST_FTDC_LUT_Repeatable TThostFtdcLimitUseTypeType = '1' // 可重复使用
const THOST_FTDC_LUT_Unrepeatable TThostFtdcLimitUseTypeType = '2' // 不可重复使用

func (TThostFtdcLimitUseTypeType) String

type TThostFtdcLinkStatusType

type TThostFtdcLinkStatusType byte

连接状态类型

const THOST_FTDC_LS_Connected TThostFtdcLinkStatusType = '1' // 已经连接
const THOST_FTDC_LS_Disconnected TThostFtdcLinkStatusType = '2' // 没有连接

func (TThostFtdcLinkStatusType) String

func (e TThostFtdcLinkStatusType) String() string

type TThostFtdcLogLevelType

type TThostFtdcLogLevelType [33]byte

日志级别类型

func (TThostFtdcLogLevelType) String

func (s TThostFtdcLogLevelType) String() string

type TThostFtdcLoginModeType

type TThostFtdcLoginModeType byte

登录模式类型

const THOST_FTDC_LM_Trade TThostFtdcLoginModeType = '0' // 交易
const THOST_FTDC_LM_Transfer TThostFtdcLoginModeType = '1' // 转账

func (TThostFtdcLoginModeType) String

func (e TThostFtdcLoginModeType) String() string

type TThostFtdcLoginRemarkType

type TThostFtdcLoginRemarkType [36]byte

登录备注类型

func (TThostFtdcLoginRemarkType) String

func (s TThostFtdcLoginRemarkType) String() string

type TThostFtdcLongFBEBankAccountNameType

type TThostFtdcLongFBEBankAccountNameType [161]byte

长换汇银行账户名类型

func (TThostFtdcLongFBEBankAccountNameType) String

type TThostFtdcLongIndividualNameType

type TThostFtdcLongIndividualNameType [161]byte

长个人姓名类型

func (TThostFtdcLongIndividualNameType) String

type TThostFtdcLongTimeType

type TThostFtdcLongTimeType [13]byte

长时间类型

func (TThostFtdcLongTimeType) String

func (s TThostFtdcLongTimeType) String() string

type TThostFtdcMacAddressType

type TThostFtdcMacAddressType [21]byte

Mac地址类型

func (TThostFtdcMacAddressType) String

func (s TThostFtdcMacAddressType) String() string

type TThostFtdcManageStatusType

type TThostFtdcManageStatusType byte

存管状态类型

const THOST_FTDC_MSS_CancelPoint TThostFtdcManageStatusType = '2' // 撤销指定
const THOST_FTDC_MSS_Point TThostFtdcManageStatusType = '0' // 指定存管
const THOST_FTDC_MSS_PrePoint TThostFtdcManageStatusType = '1' // 预指定

func (TThostFtdcManageStatusType) String

type TThostFtdcMarginPriceTypeType

type TThostFtdcMarginPriceTypeType byte

保证金价格类型类型

const THOST_FTDC_MPT_AveragePrice TThostFtdcMarginPriceTypeType = '3' // 成交均价
const THOST_FTDC_MPT_OpenPrice TThostFtdcMarginPriceTypeType = '4' // 开仓价
const THOST_FTDC_MPT_PreSettlementPrice TThostFtdcMarginPriceTypeType = '1' // 昨结算价
const THOST_FTDC_MPT_SettlementPrice TThostFtdcMarginPriceTypeType = '2' // 最新价

func (TThostFtdcMarginPriceTypeType) String

type TThostFtdcMarginRateTypeType

type TThostFtdcMarginRateTypeType byte

冲突保证金率类型类型

const THOST_FTDC_MRT_Exchange TThostFtdcMarginRateTypeType = '1' // 交易所保证金率
const THOST_FTDC_MRT_Investor TThostFtdcMarginRateTypeType = '2' // 投资者保证金率
const THOST_FTDC_MRT_InvestorTrade TThostFtdcMarginRateTypeType = '3' // 投资者交易保证金率

func (TThostFtdcMarginRateTypeType) String

type TThostFtdcMarginTypeType

type TThostFtdcMarginTypeType byte

保证金类型类型

const THOST_FTDC_MGT_ExchMarginRate TThostFtdcMarginTypeType = '0' // 交易所保证金率
const THOST_FTDC_MGT_InstrMarginRate TThostFtdcMarginTypeType = '1' // 投资者保证金率
const THOST_FTDC_MGT_InstrMarginRateTrade TThostFtdcMarginTypeType = '2' // 投资者交易保证金率

func (TThostFtdcMarginTypeType) String

func (e TThostFtdcMarginTypeType) String() string

type TThostFtdcMarketIDType

type TThostFtdcMarketIDType [31]byte

市场代码类型

func (TThostFtdcMarketIDType) String

func (s TThostFtdcMarketIDType) String() string

type TThostFtdcMatchTypeType

type TThostFtdcMatchTypeType byte

期现风险匹配方式类型

const THOST_FTDC_OTC_MT_DV01 TThostFtdcMatchTypeType = '1' // 基点价值
const THOST_FTDC_OTC_MT_ParValue TThostFtdcMatchTypeType = '2' // 面值

func (TThostFtdcMatchTypeType) String

func (e TThostFtdcMatchTypeType) String() string

type TThostFtdcMaxMarginSideAlgorithmType

type TThostFtdcMaxMarginSideAlgorithmType byte

大额单边保证金算法类型

const THOST_FTDC_MMSA_NO TThostFtdcMaxMarginSideAlgorithmType = '0' // 不使用大额单边保证金算法
const THOST_FTDC_MMSA_YES TThostFtdcMaxMarginSideAlgorithmType = '1' // 使用大额单边保证金算法

func (TThostFtdcMaxMarginSideAlgorithmType) String

type TThostFtdcMemoType

type TThostFtdcMemoType [161]byte

备注类型

func (TThostFtdcMemoType) String

func (s TThostFtdcMemoType) String() string

type TThostFtdcMessageFormatVersionType

type TThostFtdcMessageFormatVersionType [36]byte

信息格式版本类型

func (TThostFtdcMessageFormatVersionType) String

type TThostFtdcMillisecType

type TThostFtdcMillisecType int32

时间(毫秒)类型

type TThostFtdcMobilePhoneType

type TThostFtdcMobilePhoneType [21]byte

手机类型

func (TThostFtdcMobilePhoneType) String

func (s TThostFtdcMobilePhoneType) String() string

type TThostFtdcMobileType

type TThostFtdcMobileType [41]byte

手机类型

func (TThostFtdcMobileType) String

func (s TThostFtdcMobileType) String() string

type TThostFtdcMoneyAccountStatusType

type TThostFtdcMoneyAccountStatusType byte

资金账户状态类型

const THOST_FTDC_MAS_Cancel TThostFtdcMoneyAccountStatusType = '1' // 销户
const THOST_FTDC_MAS_Normal TThostFtdcMoneyAccountStatusType = '0' // 正常

func (TThostFtdcMoneyAccountStatusType) String

type TThostFtdcMoneyType

type TThostFtdcMoneyType float64

资金类型

func (TThostFtdcMoneyType) String

func (f TThostFtdcMoneyType) String() string

type TThostFtdcMonthBillTradeSumType

type TThostFtdcMonthBillTradeSumType byte

结算单月报成交汇总方式类型

const THOST_FTDC_MBTS_ByDayIns TThostFtdcMonthBillTradeSumType = '2' // 同合约
const THOST_FTDC_MBTS_ByDayInsPrc TThostFtdcMonthBillTradeSumType = '1' // 同日同合约同价格
const THOST_FTDC_MBTS_ByInstrument TThostFtdcMonthBillTradeSumType = '0' // 同日同合约

func (TThostFtdcMonthBillTradeSumType) String

type TThostFtdcMonthCountType

type TThostFtdcMonthCountType int32

月份数量类型

type TThostFtdcMonthType

type TThostFtdcMonthType int32

月份类型

type TThostFtdcMortgageFundUseRangeType

type TThostFtdcMortgageFundUseRangeType byte

货币质押资金可用范围类型

const THOST_FTDC_MFUR_All TThostFtdcMortgageFundUseRangeType = '2' // 用于手续费、盈亏、保证金
const THOST_FTDC_MFUR_CNY3 TThostFtdcMortgageFundUseRangeType = '3' // 人民币方案3
const THOST_FTDC_MFUR_Margin TThostFtdcMortgageFundUseRangeType = '1' // 用于保证金
const THOST_FTDC_MFUR_None TThostFtdcMortgageFundUseRangeType = '0' // 不能使用

func (TThostFtdcMortgageFundUseRangeType) String

type TThostFtdcMortgageTypeType

type TThostFtdcMortgageTypeType byte

质押类型类型

const THOST_FTDC_MT_In TThostFtdcMortgageTypeType = '1' // 质入
const THOST_FTDC_MT_Out TThostFtdcMortgageTypeType = '0' // 质出

func (TThostFtdcMortgageTypeType) String

type TThostFtdcNationalType

type TThostFtdcNationalType [31]byte

国籍类型

func (TThostFtdcNationalType) String

func (s TThostFtdcNationalType) String() string

type TThostFtdcNewsTypeType

type TThostFtdcNewsTypeType [3]byte

公告类型类型

func (TThostFtdcNewsTypeType) String

func (s TThostFtdcNewsTypeType) String() string

type TThostFtdcNewsUrgencyType

type TThostFtdcNewsUrgencyType byte

紧急程度类型

type TThostFtdcNocIDType

type TThostFtdcNocIDType [21]byte

组织机构代码类型

func (TThostFtdcNocIDType) String

func (s TThostFtdcNocIDType) String() string

type TThostFtdcNoteTypeType

type TThostFtdcNoteTypeType byte

通知类型类型

const THOST_FTDC_NOTETYPE_CallMarginNotes TThostFtdcNoteTypeType = '3' // 追加保证金通知书
const THOST_FTDC_NOTETYPE_DelivNotes TThostFtdcNoteTypeType = '6' // 交割通知书
const THOST_FTDC_NOTETYPE_ForceCloseNotes TThostFtdcNoteTypeType = '4' // 强行平仓通知书
const THOST_FTDC_NOTETYPE_TradeNotes TThostFtdcNoteTypeType = '5' // 成交通知书
const THOST_FTDC_NOTETYPE_TradeSettleBill TThostFtdcNoteTypeType = '1' // 交易结算单
const THOST_FTDC_NOTETYPE_TradeSettleMonth TThostFtdcNoteTypeType = '2' // 交易结算月报

func (TThostFtdcNoteTypeType) String

func (e TThostFtdcNoteTypeType) String() string

type TThostFtdcNotifyClassType

type TThostFtdcNotifyClassType byte

风险通知类型类型

const THOST_FTDC_NC_CHUANCANG TThostFtdcNotifyClassType = '4' // 穿仓
const THOST_FTDC_NC_Call TThostFtdcNotifyClassType = '2' // 追保
const THOST_FTDC_NC_Exception TThostFtdcNotifyClassType = '5' // 异常
const THOST_FTDC_NC_Force TThostFtdcNotifyClassType = '3' // 强平
const THOST_FTDC_NC_NOERROR TThostFtdcNotifyClassType = '0' // 正常
const THOST_FTDC_NC_Warn TThostFtdcNotifyClassType = '1' // 警示

func (TThostFtdcNotifyClassType) String

func (e TThostFtdcNotifyClassType) String() string

type TThostFtdcOTCTradeTypeType

type TThostFtdcOTCTradeTypeType byte

OTC成交类型类型

const THOST_FTDC_OTC_TRDT_Block TThostFtdcOTCTradeTypeType = '0' // 大宗交易
const THOST_FTDC_OTC_TRDT_EFP TThostFtdcOTCTradeTypeType = '1' // 期转现

func (TThostFtdcOTCTradeTypeType) String

type TThostFtdcOTCTraderIDType

type TThostFtdcOTCTraderIDType [31]byte

OTC交易员代码类型

func (TThostFtdcOTCTraderIDType) String

func (s TThostFtdcOTCTraderIDType) String() string

type TThostFtdcOTPStatusType

type TThostFtdcOTPStatusType byte

动态令牌状态类型

const THOST_FTDC_OTPS_Disuse TThostFtdcOTPStatusType = '2' // 注销
const THOST_FTDC_OTPS_Unused TThostFtdcOTPStatusType = '0' // 未使用
const THOST_FTDC_OTPS_Used TThostFtdcOTPStatusType = '1' // 已使用

func (TThostFtdcOTPStatusType) String

func (e TThostFtdcOTPStatusType) String() string

type TThostFtdcOTPTypeType

type TThostFtdcOTPTypeType byte

动态令牌类型类型

const THOST_FTDC_OTP_NONE TThostFtdcOTPTypeType = '0' // 无动态令牌
const THOST_FTDC_OTP_TOTP TThostFtdcOTPTypeType = '1' // 时间令牌

func (TThostFtdcOTPTypeType) String

func (e TThostFtdcOTPTypeType) String() string

type TThostFtdcOTPVendorsIDType

type TThostFtdcOTPVendorsIDType [2]byte

动态令牌提供商类型

func (TThostFtdcOTPVendorsIDType) String

type TThostFtdcOTPVendorsNameType

type TThostFtdcOTPVendorsNameType [61]byte

动态令牌提供商名称类型

func (TThostFtdcOTPVendorsNameType) String

type TThostFtdcOffsetFlagEnType

type TThostFtdcOffsetFlagEnType byte

开平标志类型

const THOST_FTDC_OFEN_Close TThostFtdcOffsetFlagEnType = '1' // Position Close
const THOST_FTDC_OFEN_CloseToday TThostFtdcOffsetFlagEnType = '3' // Close Today
const THOST_FTDC_OFEN_CloseYesterday TThostFtdcOffsetFlagEnType = '4' // Close Prev.
const THOST_FTDC_OFEN_ForceClose TThostFtdcOffsetFlagEnType = '2' // Forced Liquidation
const THOST_FTDC_OFEN_ForceOff TThostFtdcOffsetFlagEnType = '5' // Forced Reduction
const THOST_FTDC_OFEN_LocalForceClose TThostFtdcOffsetFlagEnType = '6' // Local Forced Liquidation
const THOST_FTDC_OFEN_Open TThostFtdcOffsetFlagEnType = '0' // Position Opening

func (TThostFtdcOffsetFlagEnType) String

type TThostFtdcOffsetFlagType

type TThostFtdcOffsetFlagType byte

开平标志类型

const THOST_FTDC_OF_Close TThostFtdcOffsetFlagType = '1' // 平仓
const THOST_FTDC_OF_CloseToday TThostFtdcOffsetFlagType = '3' // 平今
const THOST_FTDC_OF_CloseYesterday TThostFtdcOffsetFlagType = '4' // 平昨
const THOST_FTDC_OF_ForceClose TThostFtdcOffsetFlagType = '2' // 强平
const THOST_FTDC_OF_ForceOff TThostFtdcOffsetFlagType = '5' // 强减
const THOST_FTDC_OF_LocalForceClose TThostFtdcOffsetFlagType = '6' // 本地强平
const THOST_FTDC_OF_Open TThostFtdcOffsetFlagType = '0' // 开仓

func (TThostFtdcOffsetFlagType) String

func (e TThostFtdcOffsetFlagType) String() string

type TThostFtdcOldCityType

type TThostFtdcOldCityType [41]byte

城市类型

func (TThostFtdcOldCityType) String

func (s TThostFtdcOldCityType) String() string

type TThostFtdcOldExchangeInstIDType

type TThostFtdcOldExchangeInstIDType [31]byte

合约在交易所的代码类型

func (TThostFtdcOldExchangeInstIDType) String

type TThostFtdcOldIPAddressType

type TThostFtdcOldIPAddressType [16]byte

IP地址类型

func (TThostFtdcOldIPAddressType) String

type TThostFtdcOldInstrumentIDType

type TThostFtdcOldInstrumentIDType [31]byte

合约代码类型

func (TThostFtdcOldInstrumentIDType) String

type TThostFtdcOpenBankType

type TThostFtdcOpenBankType [101]byte

银行账户的开户行类型

func (TThostFtdcOpenBankType) String

func (s TThostFtdcOpenBankType) String() string

type TThostFtdcOpenLimitControlLevelType

type TThostFtdcOpenLimitControlLevelType byte

开仓量限制粒度类型

const THOST_FTDC_PLCL_Inst TThostFtdcOpenLimitControlLevelType = '2' // 合约级别
const THOST_FTDC_PLCL_None TThostFtdcOpenLimitControlLevelType = '0' // 不控制
const THOST_FTDC_PLCL_Product TThostFtdcOpenLimitControlLevelType = '1' // 产品级别

func (TThostFtdcOpenLimitControlLevelType) String

type TThostFtdcOpenNameType

type TThostFtdcOpenNameType [61]byte

银行账户的开户人名称类型

func (TThostFtdcOpenNameType) String

func (s TThostFtdcOpenNameType) String() string

type TThostFtdcOpenOrDestroyType

type TThostFtdcOpenOrDestroyType byte

开销户类别类型

const THOST_FTDC_OOD_Destroy TThostFtdcOpenOrDestroyType = '0' // 销户
const THOST_FTDC_OOD_Open TThostFtdcOpenOrDestroyType = '1' // 开户

func (TThostFtdcOpenOrDestroyType) String

type TThostFtdcOperNoType

type TThostFtdcOperNoType [17]byte

交易柜员类型

func (TThostFtdcOperNoType) String

func (s TThostFtdcOperNoType) String() string

type TThostFtdcOperationMemoType

type TThostFtdcOperationMemoType [1025]byte

操作摘要类型

func (TThostFtdcOperationMemoType) String

type TThostFtdcOperatorCodeType

type TThostFtdcOperatorCodeType [17]byte

操作员类型

func (TThostFtdcOperatorCodeType) String

type TThostFtdcOperatorIDType

type TThostFtdcOperatorIDType [65]byte

操作员代码类型

func (TThostFtdcOperatorIDType) String

func (s TThostFtdcOperatorIDType) String() string

type TThostFtdcOptSelfCloseFlagType

type TThostFtdcOptSelfCloseFlagType byte

期权行权的头寸是否自对冲类型

const THOST_FTDC_OSCF_CloseSelfOptionPosition TThostFtdcOptSelfCloseFlagType = '1' // 自对冲期权仓位
const THOST_FTDC_OSCF_ReserveFuturePosition TThostFtdcOptSelfCloseFlagType = '4' // 保留卖方履约后的期货仓位
const THOST_FTDC_OSCF_ReserveOptionPosition TThostFtdcOptSelfCloseFlagType = '2' // 保留期权仓位
const THOST_FTDC_OSCF_SellCloseSelfFuturePosition TThostFtdcOptSelfCloseFlagType = '3' // 自对冲卖方履约后的期货仓位

func (TThostFtdcOptSelfCloseFlagType) String

type TThostFtdcOptionContentType

type TThostFtdcOptionContentType [61]byte

选项说明类型

func (TThostFtdcOptionContentType) String

type TThostFtdcOptionIDType

type TThostFtdcOptionIDType [13]byte

选项编号类型

func (TThostFtdcOptionIDType) String

func (s TThostFtdcOptionIDType) String() string

type TThostFtdcOptionRoyaltyPriceTypeType

type TThostFtdcOptionRoyaltyPriceTypeType byte

期权权利金价格类型类型

const THOST_FTDC_ORPT_MaxPreSettlementPrice TThostFtdcOptionRoyaltyPriceTypeType = '5' // 最新价与昨结算价较大值
const THOST_FTDC_ORPT_OpenPrice TThostFtdcOptionRoyaltyPriceTypeType = '4' // 开仓价
const THOST_FTDC_ORPT_PreSettlementPrice TThostFtdcOptionRoyaltyPriceTypeType = '1' // 昨结算价

func (TThostFtdcOptionRoyaltyPriceTypeType) String

type TThostFtdcOptionsTypeType

type TThostFtdcOptionsTypeType byte

期权类型类型

const THOST_FTDC_CP_CallOptions TThostFtdcOptionsTypeType = '1' // 看涨
const THOST_FTDC_CP_PutOptions TThostFtdcOptionsTypeType = '2' // 看跌

func (TThostFtdcOptionsTypeType) String

func (e TThostFtdcOptionsTypeType) String() string

type TThostFtdcOrderActionRefType

type TThostFtdcOrderActionRefType int32

报单操作引用类型

type TThostFtdcOrderActionStatusType

type TThostFtdcOrderActionStatusType byte

报单操作状态类型

const THOST_FTDC_OAS_Accepted TThostFtdcOrderActionStatusType = 'b' // 已经接受
const THOST_FTDC_OAS_Rejected TThostFtdcOrderActionStatusType = 'c' // 已经被拒绝
const THOST_FTDC_OAS_Submitted TThostFtdcOrderActionStatusType = 'a' // 已经提交

func (TThostFtdcOrderActionStatusType) String

type TThostFtdcOrderCancelAlgType

type TThostFtdcOrderCancelAlgType byte

撤单时选择席位算法类型

const THOST_FTDC_OAC_Balance TThostFtdcOrderCancelAlgType = '1' // 轮询席位撤单
const THOST_FTDC_OAC_OrigFirst TThostFtdcOrderCancelAlgType = '2' // 优先原报单席位撤单

func (TThostFtdcOrderCancelAlgType) String

type TThostFtdcOrderFreqControlLevelType

type TThostFtdcOrderFreqControlLevelType byte

报单频率控制粒度类型

const THOST_FTDC_OFCL_Inst TThostFtdcOrderFreqControlLevelType = '2' // 合约级别
const THOST_FTDC_OFCL_None TThostFtdcOrderFreqControlLevelType = '0' // 不控制
const THOST_FTDC_OFCL_Product TThostFtdcOrderFreqControlLevelType = '1' // 产品级别

func (TThostFtdcOrderFreqControlLevelType) String

type TThostFtdcOrderLocalIDType

type TThostFtdcOrderLocalIDType [13]byte

本地报单编号类型

func (TThostFtdcOrderLocalIDType) String

type TThostFtdcOrderPriceTypeType

type TThostFtdcOrderPriceTypeType byte

报单价格条件类型

const THOST_FTDC_OPT_AnyPrice TThostFtdcOrderPriceTypeType = '1' // 任意价
const THOST_FTDC_OPT_AskPrice1 TThostFtdcOrderPriceTypeType = '8' // 卖一价
const THOST_FTDC_OPT_AskPrice1PlusOneTicks TThostFtdcOrderPriceTypeType = '9' // 卖一价浮动上浮1个ticks
const THOST_FTDC_OPT_AskPrice1PlusThreeTicks TThostFtdcOrderPriceTypeType = 'B' // 卖一价浮动上浮3个ticks
const THOST_FTDC_OPT_AskPrice1PlusTwoTicks TThostFtdcOrderPriceTypeType = 'A' // 卖一价浮动上浮2个ticks
const THOST_FTDC_OPT_BestPrice TThostFtdcOrderPriceTypeType = '3' // 最优价
const THOST_FTDC_OPT_BidPrice1 TThostFtdcOrderPriceTypeType = 'C' // 买一价
const THOST_FTDC_OPT_BidPrice1PlusOneTicks TThostFtdcOrderPriceTypeType = 'D' // 买一价浮动上浮1个ticks
const THOST_FTDC_OPT_BidPrice1PlusThreeTicks TThostFtdcOrderPriceTypeType = 'F' // 买一价浮动上浮3个ticks
const THOST_FTDC_OPT_BidPrice1PlusTwoTicks TThostFtdcOrderPriceTypeType = 'E' // 买一价浮动上浮2个ticks
const THOST_FTDC_OPT_FiveLevelPrice TThostFtdcOrderPriceTypeType = 'G' // 五档价
const THOST_FTDC_OPT_LastPrice TThostFtdcOrderPriceTypeType = '4' // 最新价
const THOST_FTDC_OPT_LastPricePlusOneTicks TThostFtdcOrderPriceTypeType = '5' // 最新价浮动上浮1个ticks
const THOST_FTDC_OPT_LastPricePlusThreeTicks TThostFtdcOrderPriceTypeType = '7' // 最新价浮动上浮3个ticks
const THOST_FTDC_OPT_LastPricePlusTwoTicks TThostFtdcOrderPriceTypeType = '6' // 最新价浮动上浮2个ticks
const THOST_FTDC_OPT_LimitPrice TThostFtdcOrderPriceTypeType = '2' // 限价

func (TThostFtdcOrderPriceTypeType) String

type TThostFtdcOrderRefType

type TThostFtdcOrderRefType [13]byte

报单引用类型

func (TThostFtdcOrderRefType) String

func (s TThostFtdcOrderRefType) String() string

type TThostFtdcOrderSourceType

type TThostFtdcOrderSourceType byte

报单来源类型

const THOST_FTDC_OSRC_Administrator TThostFtdcOrderSourceType = '1' // 来自管理员
const THOST_FTDC_OSRC_Participant TThostFtdcOrderSourceType = '0' // 来自参与者

func (TThostFtdcOrderSourceType) String

func (e TThostFtdcOrderSourceType) String() string

type TThostFtdcOrderStatusType

type TThostFtdcOrderStatusType byte

报单状态类型

const THOST_FTDC_OST_AllTraded TThostFtdcOrderStatusType = '0' // 全部成交
const THOST_FTDC_OST_Canceled TThostFtdcOrderStatusType = '5' // 撤单
const THOST_FTDC_OST_NoTradeNotQueueing TThostFtdcOrderStatusType = '4' // 未成交不在队列中
const THOST_FTDC_OST_NoTradeQueueing TThostFtdcOrderStatusType = '3' // 未成交还在队列中
const THOST_FTDC_OST_NotTouched TThostFtdcOrderStatusType = 'b' // 尚未触发
const THOST_FTDC_OST_PartTradedNotQueueing TThostFtdcOrderStatusType = '2' // 部分成交不在队列中
const THOST_FTDC_OST_PartTradedQueueing TThostFtdcOrderStatusType = '1' // 部分成交还在队列中
const THOST_FTDC_OST_Touched TThostFtdcOrderStatusType = 'c' // 已触发
const THOST_FTDC_OST_Unknown TThostFtdcOrderStatusType = 'a' // 未知

func (TThostFtdcOrderStatusType) String

func (e TThostFtdcOrderStatusType) String() string

type TThostFtdcOrderSubmitStatusType

type TThostFtdcOrderSubmitStatusType byte

报单提交状态类型

const THOST_FTDC_OSS_Accepted TThostFtdcOrderSubmitStatusType = '3' // 已经接受
const THOST_FTDC_OSS_CancelRejected TThostFtdcOrderSubmitStatusType = '5' // 撤单已经被拒绝
const THOST_FTDC_OSS_CancelSubmitted TThostFtdcOrderSubmitStatusType = '1' // 撤单已经提交
const THOST_FTDC_OSS_InsertRejected TThostFtdcOrderSubmitStatusType = '4' // 报单已经被拒绝
const THOST_FTDC_OSS_InsertSubmitted TThostFtdcOrderSubmitStatusType = '0' // 已经提交
const THOST_FTDC_OSS_ModifyRejected TThostFtdcOrderSubmitStatusType = '6' // 改单已经被拒绝
const THOST_FTDC_OSS_ModifySubmitted TThostFtdcOrderSubmitStatusType = '2' // 修改已经提交

func (TThostFtdcOrderSubmitStatusType) String

type TThostFtdcOrderSysIDType

type TThostFtdcOrderSysIDType [21]byte

报单编号类型

func (TThostFtdcOrderSysIDType) String

func (s TThostFtdcOrderSysIDType) String() string

type TThostFtdcOrderTypeType

type TThostFtdcOrderTypeType byte

报单类型类型

const THOST_FTDC_ORDT_Combination TThostFtdcOrderTypeType = '3' // 组合报单
const THOST_FTDC_ORDT_ConditionalOrder TThostFtdcOrderTypeType = '4' // 条件单
const THOST_FTDC_ORDT_DeriveFromBlockTrade TThostFtdcOrderTypeType = '6' // 大宗交易成交衍生
const THOST_FTDC_ORDT_DeriveFromCombination TThostFtdcOrderTypeType = '2' // 组合衍生
const THOST_FTDC_ORDT_DeriveFromEFPTrade TThostFtdcOrderTypeType = '7' // 期转现成交衍生
const THOST_FTDC_ORDT_DeriveFromQuote TThostFtdcOrderTypeType = '1' // 报价衍生
const THOST_FTDC_ORDT_Normal TThostFtdcOrderTypeType = '0' // 正常
const THOST_FTDC_ORDT_Swap TThostFtdcOrderTypeType = '5' // 互换单

func (TThostFtdcOrderTypeType) String

func (e TThostFtdcOrderTypeType) String() string

type TThostFtdcOrgSystemIDType

type TThostFtdcOrgSystemIDType byte

原有系统代码类型

const THOST_FTDC_ORGS_ESunny TThostFtdcOrgSystemIDType = '1' // 易盛系统
const THOST_FTDC_ORGS_KingStarV6 TThostFtdcOrgSystemIDType = '2' // 金仕达V6系统
const THOST_FTDC_ORGS_Standard TThostFtdcOrgSystemIDType = '0' // 综合交易平台

func (TThostFtdcOrgSystemIDType) String

func (e TThostFtdcOrgSystemIDType) String() string

type TThostFtdcOrganCodeType

type TThostFtdcOrganCodeType [36]byte

机构编码类型

func (TThostFtdcOrganCodeType) String

func (s TThostFtdcOrganCodeType) String() string

type TThostFtdcOrganFlagType

type TThostFtdcOrganFlagType [2]byte

机构标识类型

func (TThostFtdcOrganFlagType) String

func (s TThostFtdcOrganFlagType) String() string

type TThostFtdcOrganLevelType

type TThostFtdcOrganLevelType byte

机构级别类型

const THOST_FTDC_OL_Branch TThostFtdcOrganLevelType = '2' // 银行分中心或期货公司营业部
const THOST_FTDC_OL_HeadQuarters TThostFtdcOrganLevelType = '1' // 银行总行或期商总部

func (TThostFtdcOrganLevelType) String

func (e TThostFtdcOrganLevelType) String() string

type TThostFtdcOrganNOType

type TThostFtdcOrganNOType [6]byte

结算账户类型

func (TThostFtdcOrganNOType) String

func (s TThostFtdcOrganNOType) String() string

type TThostFtdcOrganNameType

type TThostFtdcOrganNameType [71]byte

机构名称类型

func (TThostFtdcOrganNameType) String

func (s TThostFtdcOrganNameType) String() string

type TThostFtdcOrganStatusType

type TThostFtdcOrganStatusType byte

接入机构状态类型

const THOST_FTDC_OS_CheckDetail TThostFtdcOrganStatusType = '4' // 对帐
const THOST_FTDC_OS_CheckFileArrived TThostFtdcOrganStatusType = '3' // 对帐文件到达
const THOST_FTDC_OS_CheckIn TThostFtdcOrganStatusType = '1' // 签到
const THOST_FTDC_OS_CheckOut TThostFtdcOrganStatusType = '2' // 签退
const THOST_FTDC_OS_DayEndClean TThostFtdcOrganStatusType = '5' // 日终清理
const THOST_FTDC_OS_Invalid TThostFtdcOrganStatusType = '9' // 注销
const THOST_FTDC_OS_Ready TThostFtdcOrganStatusType = '0' // 启用

func (TThostFtdcOrganStatusType) String

func (e TThostFtdcOrganStatusType) String() string

type TThostFtdcOrganTypeType

type TThostFtdcOrganTypeType byte

机构类型类型

const THOST_FTDC_OT_Bank TThostFtdcOrganTypeType = '1' // 银行代理
const THOST_FTDC_OT_Future TThostFtdcOrganTypeType = '2' // 交易前置
const THOST_FTDC_OT_PlateForm TThostFtdcOrganTypeType = '9' // 银期转帐平台管理

func (TThostFtdcOrganTypeType) String

func (e TThostFtdcOrganTypeType) String() string

type TThostFtdcPKNameType

type TThostFtdcPKNameType [201]byte

FBT表操作主键名类型

func (TThostFtdcPKNameType) String

func (s TThostFtdcPKNameType) String() string

type TThostFtdcPKValueType

type TThostFtdcPKValueType [501]byte

FBT表操作主键值类型

func (TThostFtdcPKValueType) String

func (s TThostFtdcPKValueType) String() string

type TThostFtdcPageControlType

type TThostFtdcPageControlType [2]byte

换汇页面控制类型

func (TThostFtdcPageControlType) String

func (s TThostFtdcPageControlType) String() string

type TThostFtdcParamIDType

type TThostFtdcParamIDType int32

参数代码类型

type TThostFtdcParamNameType

type TThostFtdcParamNameType [41]byte

参数名类型

func (TThostFtdcParamNameType) String

func (s TThostFtdcParamNameType) String() string

type TThostFtdcParamValueType

type TThostFtdcParamValueType [41]byte

参数值类型

func (TThostFtdcParamValueType) String

func (s TThostFtdcParamValueType) String() string

type TThostFtdcParkedOrderActionIDType

type TThostFtdcParkedOrderActionIDType [13]byte

预埋撤单编号类型

func (TThostFtdcParkedOrderActionIDType) String

type TThostFtdcParkedOrderIDType

type TThostFtdcParkedOrderIDType [13]byte

预埋报单编号类型

func (TThostFtdcParkedOrderIDType) String

type TThostFtdcParkedOrderStatusType

type TThostFtdcParkedOrderStatusType byte

预埋单状态类型

const THOST_FTDC_PAOS_Deleted TThostFtdcParkedOrderStatusType = '3' // 已删除
const THOST_FTDC_PAOS_NotSend TThostFtdcParkedOrderStatusType = '1' // 未发送
const THOST_FTDC_PAOS_Send TThostFtdcParkedOrderStatusType = '2' // 已发送

func (TThostFtdcParkedOrderStatusType) String

type TThostFtdcParticipantIDType

type TThostFtdcParticipantIDType [11]byte

会员代码类型

func (TThostFtdcParticipantIDType) String

type TThostFtdcPartyNameType

type TThostFtdcPartyNameType [81]byte

参与人名称类型

func (TThostFtdcPartyNameType) String

func (s TThostFtdcPartyNameType) String() string

type TThostFtdcPassWordKeyTypeType

type TThostFtdcPassWordKeyTypeType byte

密钥类型类型

const THOST_FTDC_PWKT_ExchangeKey TThostFtdcPassWordKeyTypeType = '0' // 交换密钥
const THOST_FTDC_PWKT_MACKey TThostFtdcPassWordKeyTypeType = '2' // MAC密钥
const THOST_FTDC_PWKT_MessageKey TThostFtdcPassWordKeyTypeType = '3' // 报文密钥
const THOST_FTDC_PWKT_PassWordKey TThostFtdcPassWordKeyTypeType = '1' // 密码密钥

func (TThostFtdcPassWordKeyTypeType) String

type TThostFtdcPasswordKeyType

type TThostFtdcPasswordKeyType [129]byte

密钥类型

func (TThostFtdcPasswordKeyType) String

func (s TThostFtdcPasswordKeyType) String() string

type TThostFtdcPasswordType

type TThostFtdcPasswordType [41]byte

密码类型

func (TThostFtdcPasswordType) String

func (s TThostFtdcPasswordType) String() string

type TThostFtdcPasswordTypeType

type TThostFtdcPasswordTypeType byte

密码类型类型

const THOST_FTDC_PWDT_Account TThostFtdcPasswordTypeType = '2' // 资金密码
const THOST_FTDC_PWDT_Trade TThostFtdcPasswordTypeType = '1' // 交易密码

func (TThostFtdcPasswordTypeType) String

type TThostFtdcPersonTypeType

type TThostFtdcPersonTypeType byte

联系人类型类型

const THOST_FTDC_PST_Company TThostFtdcPersonTypeType = '5' // 法人
const THOST_FTDC_PST_Corporation TThostFtdcPersonTypeType = '6' // 法人代表
const THOST_FTDC_PST_CorporationRefer TThostFtdcPersonTypeType = 'E' // 法人代表参考证件
const THOST_FTDC_PST_ForeignerRefer TThostFtdcPersonTypeType = 'D' // 境外自然人参考证件
const THOST_FTDC_PST_Fund TThostFtdcPersonTypeType = '3' // 资金调拨人
const THOST_FTDC_PST_Ledger TThostFtdcPersonTypeType = '8' // 分户管理资产负责人
const THOST_FTDC_PST_LinkMan TThostFtdcPersonTypeType = '7' // 投资者联系人
const THOST_FTDC_PST_Open TThostFtdcPersonTypeType = '2' // 开户授权人
const THOST_FTDC_PST_Order TThostFtdcPersonTypeType = '1' // 指定下单人
const THOST_FTDC_PST_Settlement TThostFtdcPersonTypeType = '4' // 结算单确认人
const THOST_FTDC_PST_Trustee TThostFtdcPersonTypeType = '9' // 托(保)管人
const THOST_FTDC_PST_TrusteeContact TThostFtdcPersonTypeType = 'C' // 托(保)管机构联系人
const THOST_FTDC_PST_TrusteeCorporation TThostFtdcPersonTypeType = 'A' // 托(保)管机构法人代表
const THOST_FTDC_PST_TrusteeOpen TThostFtdcPersonTypeType = 'B' // 托(保)管机构开户授权人

func (TThostFtdcPersonTypeType) String

func (e TThostFtdcPersonTypeType) String() string

type TThostFtdcPhotoNameType

type TThostFtdcPhotoNameType [161]byte

影像名称类型

func (TThostFtdcPhotoNameType) String

func (s TThostFtdcPhotoNameType) String() string

type TThostFtdcPhotoTypeIDType

type TThostFtdcPhotoTypeIDType [5]byte

影像类型代码类型

func (TThostFtdcPhotoTypeIDType) String

func (s TThostFtdcPhotoTypeIDType) String() string

type TThostFtdcPhotoTypeNameType

type TThostFtdcPhotoTypeNameType [41]byte

影像类型名称类型

func (TThostFtdcPhotoTypeNameType) String

type TThostFtdcPlateReturnCodeType

type TThostFtdcPlateReturnCodeType [5]byte

银期转帐平台对返回码的定义类型

func (TThostFtdcPlateReturnCodeType) String

type TThostFtdcPlateSerialType

type TThostFtdcPlateSerialType int32

平台流水号类型

type TThostFtdcPortfTypeType added in v2.0.8

type TThostFtdcPortfTypeType byte

新组保算法启用类型类型

const THOST_FTDC_EET_None TThostFtdcPortfTypeType = '0' // 使用初版交易所算法
const THOST_FTDC_EET_SPBM_AddOnHedge TThostFtdcPortfTypeType = '1' // SPBM算法V1.1.0_附加保证金调整

func (TThostFtdcPortfTypeType) String added in v2.0.8

func (e TThostFtdcPortfTypeType) String() string

type TThostFtdcPortfolioDefIDType

type TThostFtdcPortfolioDefIDType int32

SPBM组合套餐ID类型

type TThostFtdcPortfolioType

type TThostFtdcPortfolioType byte

新型组保算法类型

const THOST_FTDC_EPF_None TThostFtdcPortfolioType = '0' // 不使用新型组保算法
const THOST_FTDC_EPF_RCAMS TThostFtdcPortfolioType = '4' // RCAMS算法
const THOST_FTDC_EPF_RULE TThostFtdcPortfolioType = '2' // RULE算法
const THOST_FTDC_EPF_SPBM TThostFtdcPortfolioType = '1' // SPBM算法
const THOST_FTDC_EPF_SPMM TThostFtdcPortfolioType = '3' // SPMM算法

func (TThostFtdcPortfolioType) String

func (e TThostFtdcPortfolioType) String() string

type TThostFtdcPosiDirectionType

type TThostFtdcPosiDirectionType byte

持仓多空方向类型

const THOST_FTDC_PD_Long TThostFtdcPosiDirectionType = '2' // 多头
const THOST_FTDC_PD_Net TThostFtdcPosiDirectionType = '1' // 净
const THOST_FTDC_PD_Short TThostFtdcPosiDirectionType = '3' // 空头

func (TThostFtdcPosiDirectionType) String

type TThostFtdcPositionDateType

type TThostFtdcPositionDateType byte

持仓日期类型

const THOST_FTDC_PSD_History TThostFtdcPositionDateType = '2' // 历史持仓
const THOST_FTDC_PSD_Today TThostFtdcPositionDateType = '1' // 今日持仓

func (TThostFtdcPositionDateType) String

type TThostFtdcPositionDateTypeType

type TThostFtdcPositionDateTypeType byte

持仓日期类型类型

const THOST_FTDC_PDT_NoUseHistory TThostFtdcPositionDateTypeType = '2' // 不使用历史持仓
const THOST_FTDC_PDT_UseHistory TThostFtdcPositionDateTypeType = '1' // 使用历史持仓

func (TThostFtdcPositionDateTypeType) String

type TThostFtdcPositionType

type TThostFtdcPositionType [41]byte

货位类型

func (TThostFtdcPositionType) String

func (s TThostFtdcPositionType) String() string

type TThostFtdcPositionTypeType

type TThostFtdcPositionTypeType byte

持仓类型类型

const THOST_FTDC_PT_Gross TThostFtdcPositionTypeType = '2' // 综合持仓
const THOST_FTDC_PT_Net TThostFtdcPositionTypeType = '1' // 净持仓

func (TThostFtdcPositionTypeType) String

type TThostFtdcPriceDecimalType

type TThostFtdcPriceDecimalType [2]byte

价格小数位类型

func (TThostFtdcPriceDecimalType) String

type TThostFtdcPriceSourceType

type TThostFtdcPriceSourceType byte

成交价来源类型

const THOST_FTDC_PSRC_Buy TThostFtdcPriceSourceType = '1' // 买委托价
const THOST_FTDC_PSRC_LastPrice TThostFtdcPriceSourceType = '0' // 前成交价
const THOST_FTDC_PSRC_OTC TThostFtdcPriceSourceType = '3' // 场外成交价
const THOST_FTDC_PSRC_Sell TThostFtdcPriceSourceType = '2' // 卖委托价

func (TThostFtdcPriceSourceType) String

func (e TThostFtdcPriceSourceType) String() string

type TThostFtdcPriceType

type TThostFtdcPriceType float64

价格类型

func (TThostFtdcPriceType) String

func (f TThostFtdcPriceType) String() string

type TThostFtdcPriorityType

type TThostFtdcPriorityType int32

优先级类型

type TThostFtdcProcessIDType

type TThostFtdcProcessIDType [33]byte

业务流水号类型

func (TThostFtdcProcessIDType) String

func (s TThostFtdcProcessIDType) String() string

type TThostFtdcProcessNameType

type TThostFtdcProcessNameType [257]byte

存储过程名称类型

func (TThostFtdcProcessNameType) String

func (s TThostFtdcProcessNameType) String() string

type TThostFtdcProcessStatusType

type TThostFtdcProcessStatusType byte

银期转帐服务处理状态类型

const THOST_FTDC_PSS_Finished TThostFtdcProcessStatusType = '2' // 处理完成
const THOST_FTDC_PSS_NotProcess TThostFtdcProcessStatusType = '0' // 未处理
const THOST_FTDC_PSS_StartProcess TThostFtdcProcessStatusType = '1' // 开始处理

func (TThostFtdcProcessStatusType) String

type TThostFtdcProcessTypeType

type TThostFtdcProcessTypeType [3]byte

流程功能类型类型

func (TThostFtdcProcessTypeType) String

func (s TThostFtdcProcessTypeType) String() string

type TThostFtdcProdChangeFlagType added in v2.0.8

type TThostFtdcProdChangeFlagType byte

品种记录改变状态类型

const THOST_FTDC_PCF_None TThostFtdcProdChangeFlagType = '0' // 持仓量和冻结量均无变化
const THOST_FTDC_PCF_OnlyFrozen TThostFtdcProdChangeFlagType = '1' // 持仓量无变化,冻结量有变化
const THOST_FTDC_PCF_PositionChange TThostFtdcProdChangeFlagType = '2' // 持仓量有变化

func (TThostFtdcProdChangeFlagType) String added in v2.0.8

type TThostFtdcProductClassType

type TThostFtdcProductClassType byte

产品类型类型

const THOST_FTDC_PC_Combination TThostFtdcProductClassType = '3' // 组合
const THOST_FTDC_PC_EFP TThostFtdcProductClassType = '5' // 期转现
const THOST_FTDC_PC_Futures TThostFtdcProductClassType = '1' // 期货
const THOST_FTDC_PC_MI TThostFtdcProductClassType = 'I' // 金属指数
const THOST_FTDC_PC_Options TThostFtdcProductClassType = '2' // 期货期权
const THOST_FTDC_PC_Spot TThostFtdcProductClassType = '4' // 即期
const THOST_FTDC_PC_SpotOption TThostFtdcProductClassType = '6' // 现货期权
const THOST_FTDC_PC_TAS TThostFtdcProductClassType = '7' // TAS合约

func (TThostFtdcProductClassType) String

type TThostFtdcProductDateType

type TThostFtdcProductDateType [41]byte

产期类型

func (TThostFtdcProductDateType) String

func (s TThostFtdcProductDateType) String() string

type TThostFtdcProductIDType added in v2.0.8

type TThostFtdcProductIDType [41]byte

产品ID类型

func (TThostFtdcProductIDType) String added in v2.0.8

func (s TThostFtdcProductIDType) String() string

type TThostFtdcProductInfoType

type TThostFtdcProductInfoType [11]byte

产品信息类型

func (TThostFtdcProductInfoType) String

func (s TThostFtdcProductInfoType) String() string

type TThostFtdcProductLifePhaseType

type TThostFtdcProductLifePhaseType byte

产品生命周期状态类型

const THOST_FTDC_PLP_Active TThostFtdcProductLifePhaseType = '1' // 活跃
const THOST_FTDC_PLP_Canceled TThostFtdcProductLifePhaseType = '3' // 注销
const THOST_FTDC_PLP_NonActive TThostFtdcProductLifePhaseType = '2' // 不活跃

func (TThostFtdcProductLifePhaseType) String

type TThostFtdcProductNameType

type TThostFtdcProductNameType [21]byte

产品名称类型

func (TThostFtdcProductNameType) String

func (s TThostFtdcProductNameType) String() string

type TThostFtdcProductStatusType

type TThostFtdcProductStatusType byte

产品状态类型

const THOST_FTDC_PS_tradeable TThostFtdcProductStatusType = '1' // 可交易
const THOST_FTDC_PS_untradeable TThostFtdcProductStatusType = '2' // 不可交易

func (TThostFtdcProductStatusType) String

type TThostFtdcProductTypeType

type TThostFtdcProductTypeType byte

产品类型类型

const THOST_FTDC_PTE_Futures TThostFtdcProductTypeType = '1' // 期货
const THOST_FTDC_PTE_Options TThostFtdcProductTypeType = '2' // 期权

func (TThostFtdcProductTypeType) String

func (e TThostFtdcProductTypeType) String() string

type TThostFtdcProfessionType

type TThostFtdcProfessionType [101]byte

职业类型

func (TThostFtdcProfessionType) String

func (s TThostFtdcProfessionType) String() string

type TThostFtdcPromptTypeType

type TThostFtdcPromptTypeType byte

日历提示类型类型

const THOST_FTDC_CPT_Instrument TThostFtdcPromptTypeType = '1' // 合约上下市
const THOST_FTDC_CPT_Margin TThostFtdcPromptTypeType = '2' // 保证金分段生效

func (TThostFtdcPromptTypeType) String

func (e TThostFtdcPromptTypeType) String() string

type TThostFtdcPropertyIDType

type TThostFtdcPropertyIDType [33]byte

属性代码类型

func (TThostFtdcPropertyIDType) String

func (s TThostFtdcPropertyIDType) String() string

type TThostFtdcPropertyInvestorRangeType

type TThostFtdcPropertyInvestorRangeType byte

投资者范围类型

const THOST_FTDC_PIR_All TThostFtdcPropertyInvestorRangeType = '1' // 所有
const THOST_FTDC_PIR_Property TThostFtdcPropertyInvestorRangeType = '2' // 投资者属性
const THOST_FTDC_PIR_Single TThostFtdcPropertyInvestorRangeType = '3' // 单一投资者

func (TThostFtdcPropertyInvestorRangeType) String

type TThostFtdcPropertyNameType

type TThostFtdcPropertyNameType [65]byte

属性名称类型

func (TThostFtdcPropertyNameType) String

type TThostFtdcPropertyStringType

type TThostFtdcPropertyStringType [2049]byte

用于查询的投资属性字段类型

func (TThostFtdcPropertyStringType) String

type TThostFtdcProtocalIDType

type TThostFtdcProtocalIDType byte

协议类型类型

const THOST_FTDC_PID_ABCProtocal TThostFtdcProtocalIDType = '2' // 农行协议
const THOST_FTDC_PID_BOCOMProtocal TThostFtdcProtocalIDType = '5' // 交行协议
const THOST_FTDC_PID_CBCProtocal TThostFtdcProtocalIDType = '3' // 中国银行协议
const THOST_FTDC_PID_CCBProtocal TThostFtdcProtocalIDType = '4' // 建行协议
const THOST_FTDC_PID_FBTPlateFormProtocal TThostFtdcProtocalIDType = 'X' // 银期转帐平台协议
const THOST_FTDC_PID_FutureProtocal TThostFtdcProtocalIDType = '0' // 期商协议
const THOST_FTDC_PID_ICBCProtocal TThostFtdcProtocalIDType = '1' // 工行协议

func (TThostFtdcProtocalIDType) String

func (e TThostFtdcProtocalIDType) String() string

type TThostFtdcProtocolInfoType

type TThostFtdcProtocolInfoType [11]byte

协议信息类型

func (TThostFtdcProtocolInfoType) String

type TThostFtdcProvinceType

type TThostFtdcProvinceType [51]byte

省类型

func (TThostFtdcProvinceType) String

func (s TThostFtdcProvinceType) String() string

type TThostFtdcPublishPathType

type TThostFtdcPublishPathType [257]byte

发布路径类型

func (TThostFtdcPublishPathType) String

func (s TThostFtdcPublishPathType) String() string

type TThostFtdcPublishStatusType

type TThostFtdcPublishStatusType byte

发布状态类型

const THOST_FTDC_PS_None TThostFtdcPublishStatusType = '1' // 未发布
const THOST_FTDC_PS_Published TThostFtdcPublishStatusType = '3' // 已发布
const THOST_FTDC_PS_Publishing TThostFtdcPublishStatusType = '2' // 正在发布

func (TThostFtdcPublishStatusType) String

type TThostFtdcPwdFlagType

type TThostFtdcPwdFlagType byte

密码核对标志类型

const THOST_FTDC_BPWDF_BlankCheck TThostFtdcPwdFlagType = '1' // 明文核对
const THOST_FTDC_BPWDF_EncryptCheck TThostFtdcPwdFlagType = '2' // 密文核对
const THOST_FTDC_BPWDF_NoCheck TThostFtdcPwdFlagType = '0' // 不核对

func (TThostFtdcPwdFlagType) String

func (e TThostFtdcPwdFlagType) String() string

type TThostFtdcQueryDepthType

type TThostFtdcQueryDepthType int32

查询深度类型

type TThostFtdcQueryFreqType

type TThostFtdcQueryFreqType int32

查询频率类型

type TThostFtdcQueryInvestorRangeType

type TThostFtdcQueryInvestorRangeType byte

查询范围类型

const THOST_FTDC_QIR_All TThostFtdcQueryInvestorRangeType = '1' // 所有
const THOST_FTDC_QIR_Group TThostFtdcQueryInvestorRangeType = '2' // 查询分类
const THOST_FTDC_QIR_Single TThostFtdcQueryInvestorRangeType = '3' // 单一投资者

func (TThostFtdcQueryInvestorRangeType) String

type TThostFtdcQuestionContentType

type TThostFtdcQuestionContentType [41]byte

特有信息说明类型

func (TThostFtdcQuestionContentType) String

type TThostFtdcQuestionIDType

type TThostFtdcQuestionIDType [5]byte

特有信息编号类型

func (TThostFtdcQuestionIDType) String

func (s TThostFtdcQuestionIDType) String() string

type TThostFtdcQuestionTypeType

type TThostFtdcQuestionTypeType byte

特有信息类型类型

const THOST_FTDC_QT_Blank TThostFtdcQuestionTypeType = '3' // 填空
const THOST_FTDC_QT_Option TThostFtdcQuestionTypeType = '2' // 多选
const THOST_FTDC_QT_Radio TThostFtdcQuestionTypeType = '1' // 单选

func (TThostFtdcQuestionTypeType) String

type TThostFtdcRCAMSCombinationTypeType added in v2.0.8

type TThostFtdcRCAMSCombinationTypeType byte

RCAMS组合类型类型

const THOST_FTDC_ERComb_BEC TThostFtdcRCAMSCombinationTypeType = '1' // 熊市看涨价差组合
const THOST_FTDC_ERComb_BEP TThostFtdcRCAMSCombinationTypeType = '2' // 熊市看跌价差组合
const THOST_FTDC_ERComb_BUC TThostFtdcRCAMSCombinationTypeType = '0' // 牛市看涨价差组合
const THOST_FTDC_ERComb_BUP TThostFtdcRCAMSCombinationTypeType = '3' // 牛市看跌价差组合
const THOST_FTDC_ERComb_CAS TThostFtdcRCAMSCombinationTypeType = '4' // 日历价差组合

func (TThostFtdcRCAMSCombinationTypeType) String added in v2.0.8

type TThostFtdcRCAMSPriorityType added in v2.0.8

type TThostFtdcRCAMSPriorityType int32

优先级类型

type TThostFtdcRandomStringType

type TThostFtdcRandomStringType [17]byte

随机串类型

func (TThostFtdcRandomStringType) String

type TThostFtdcRangeIntFromType

type TThostFtdcRangeIntFromType [33]byte

限定值下限类型

func (TThostFtdcRangeIntFromType) String

type TThostFtdcRangeIntToType

type TThostFtdcRangeIntToType [33]byte

限定值上限类型

func (TThostFtdcRangeIntToType) String

func (s TThostFtdcRangeIntToType) String() string

type TThostFtdcRangeIntTypeType

type TThostFtdcRangeIntTypeType [33]byte

限定值类型类型

func (TThostFtdcRangeIntTypeType) String

type TThostFtdcRateInvestorRangeType

type TThostFtdcRateInvestorRangeType byte

投资者范围类型

const THOST_FTDC_RIR_All TThostFtdcRateInvestorRangeType = '1' // 公司标准
const THOST_FTDC_RIR_Model TThostFtdcRateInvestorRangeType = '2' // 模板
const THOST_FTDC_RIR_Single TThostFtdcRateInvestorRangeType = '3' // 单一投资者

func (TThostFtdcRateInvestorRangeType) String

type TThostFtdcRateTemplateIDType

type TThostFtdcRateTemplateIDType [9]byte

模型代码类型

func (TThostFtdcRateTemplateIDType) String

type TThostFtdcRateTemplateNameType

type TThostFtdcRateTemplateNameType [61]byte

模型名称类型

func (TThostFtdcRateTemplateNameType) String

type TThostFtdcRateTypeType

type TThostFtdcRateTypeType byte

费率类型类型

const THOST_FTDC_RATETYPE_MarginRate TThostFtdcRateTypeType = '2' // 保证金率

func (TThostFtdcRateTypeType) String

func (e TThostFtdcRateTypeType) String() string

type TThostFtdcRatioAttrType

type TThostFtdcRatioAttrType byte

费率属性类型

const THOST_FTDC_RA_Settlement TThostFtdcRatioAttrType = '1' // 结算费率
const THOST_FTDC_RA_Trade TThostFtdcRatioAttrType = '0' // 交易费率

func (TThostFtdcRatioAttrType) String

func (e TThostFtdcRatioAttrType) String() string

type TThostFtdcRatioType

type TThostFtdcRatioType float64

比率类型

func (TThostFtdcRatioType) String

func (f TThostFtdcRatioType) String() string

type TThostFtdcReasonType

type TThostFtdcReasonType byte

事由类型

const THOST_FTDC_RN_CD TThostFtdcReasonType = '0' // 错单
const THOST_FTDC_RN_QT TThostFtdcReasonType = '2' // 其它
const THOST_FTDC_RN_ZT TThostFtdcReasonType = '1' // 资金在途

func (TThostFtdcReasonType) String

func (e TThostFtdcReasonType) String() string

type TThostFtdcRecordCountType

type TThostFtdcRecordCountType int32

记录数类型

type TThostFtdcRecordNumType

type TThostFtdcRecordNumType [7]byte

记录数类型

func (TThostFtdcRecordNumType) String

func (s TThostFtdcRecordNumType) String() string

type TThostFtdcRegionType

type TThostFtdcRegionType [16]byte

区类型

func (TThostFtdcRegionType) String

func (s TThostFtdcRegionType) String() string

type TThostFtdcRepealTimeIntervalType

type TThostFtdcRepealTimeIntervalType int32

冲正时间间隔类型

type TThostFtdcRepealedTimesType

type TThostFtdcRepealedTimesType int32

已经冲正次数类型

type TThostFtdcReportStatusType

type TThostFtdcReportStatusType byte

报表数据生成状态类型

const THOST_FTDC_SRS_Create TThostFtdcReportStatusType = '1' // 报表数据生成中
const THOST_FTDC_SRS_CreateFail TThostFtdcReportStatusType = '3' // 生成报表数据失败
const THOST_FTDC_SRS_Created TThostFtdcReportStatusType = '2' // 已生成报表数据
const THOST_FTDC_SRS_NoCreate TThostFtdcReportStatusType = '0' // 未生成报表数据

func (TThostFtdcReportStatusType) String

type TThostFtdcReportTypeIDType

type TThostFtdcReportTypeIDType [3]byte

交易报告类型标识类型

func (TThostFtdcReportTypeIDType) String

type TThostFtdcReqFlagType

type TThostFtdcReqFlagType byte

换汇发送标志类型

const THOST_FTDC_REQF_NoSend TThostFtdcReqFlagType = '0' // 未发送
const THOST_FTDC_REQF_SendFailed TThostFtdcReqFlagType = '2' // 发送失败
const THOST_FTDC_REQF_SendSuccess TThostFtdcReqFlagType = '1' // 发送成功
const THOST_FTDC_REQF_WaitReSend TThostFtdcReqFlagType = '3' // 等待重发

func (TThostFtdcReqFlagType) String

func (e TThostFtdcReqFlagType) String() string

type TThostFtdcReqRspTypeType

type TThostFtdcReqRspTypeType byte

请求响应类别类型

const THOST_FTDC_REQRSP_Request TThostFtdcReqRspTypeType = '0' // 请求
const THOST_FTDC_REQRSP_Response TThostFtdcReqRspTypeType = '1' // 响应

func (TThostFtdcReqRspTypeType) String

func (e TThostFtdcReqRspTypeType) String() string

type TThostFtdcRequestIDType

type TThostFtdcRequestIDType int32

请求编号类型

type TThostFtdcResFlagType

type TThostFtdcResFlagType byte

换汇返回成功标志类型

const THOST_FTDC_RESF_InsuffiCient TThostFtdcResFlagType = '1' // 账户余额不足
const THOST_FTDC_RESF_Success TThostFtdcResFlagType = '0' // 成功
const THOST_FTDC_RESF_UnKnown TThostFtdcResFlagType = '8' // 交易结果未知

func (TThostFtdcResFlagType) String

func (e TThostFtdcResFlagType) String() string

type TThostFtdcReserveOpenAccStasType

type TThostFtdcReserveOpenAccStasType byte

预约开户状态类型

const THOST_FTDC_ROAST_Cancelled TThostFtdcReserveOpenAccStasType = '1' // 已撤销
const THOST_FTDC_ROAST_Invalid TThostFtdcReserveOpenAccStasType = '3' // 无效请求
const THOST_FTDC_ROAST_Opened TThostFtdcReserveOpenAccStasType = '2' // 已开户
const THOST_FTDC_ROAST_Processing TThostFtdcReserveOpenAccStasType = '0' // 等待处理中

func (TThostFtdcReserveOpenAccStasType) String

type TThostFtdcResponseValueType

type TThostFtdcResponseValueType byte

应答类型类型

const THOST_FTDC_RV_Refuse TThostFtdcResponseValueType = '1' // 检查失败
const THOST_FTDC_RV_Right TThostFtdcResponseValueType = '0' // 检查成功

func (TThostFtdcResponseValueType) String

type TThostFtdcRetCodeType

type TThostFtdcRetCodeType [5]byte

响应代码类型

func (TThostFtdcRetCodeType) String

func (s TThostFtdcRetCodeType) String() string

type TThostFtdcRetInfoType

type TThostFtdcRetInfoType [129]byte

响应信息类型

func (TThostFtdcRetInfoType) String

func (s TThostFtdcRetInfoType) String() string

type TThostFtdcReturnCodeType

type TThostFtdcReturnCodeType [7]byte

返回代码类型

func (TThostFtdcReturnCodeType) String

func (s TThostFtdcReturnCodeType) String() string

type TThostFtdcReturnLevelType

type TThostFtdcReturnLevelType byte

返还级别类型

const THOST_FTDC_RL_Level1 TThostFtdcReturnLevelType = '1' // 级别1
const THOST_FTDC_RL_Level2 TThostFtdcReturnLevelType = '2' // 级别2
const THOST_FTDC_RL_Level3 TThostFtdcReturnLevelType = '3' // 级别3
const THOST_FTDC_RL_Level4 TThostFtdcReturnLevelType = '4' // 级别4
const THOST_FTDC_RL_Level5 TThostFtdcReturnLevelType = '5' // 级别5
const THOST_FTDC_RL_Level6 TThostFtdcReturnLevelType = '6' // 级别6
const THOST_FTDC_RL_Level7 TThostFtdcReturnLevelType = '7' // 级别7
const THOST_FTDC_RL_Level8 TThostFtdcReturnLevelType = '8' // 级别8
const THOST_FTDC_RL_Level9 TThostFtdcReturnLevelType = '9' // 级别9

func (TThostFtdcReturnLevelType) String

func (e TThostFtdcReturnLevelType) String() string

type TThostFtdcReturnPatternType

type TThostFtdcReturnPatternType byte

返还模式类型

const THOST_FTDC_RP_ByFeeOnHand TThostFtdcReturnPatternType = '2' // 按留存手续费
const THOST_FTDC_RP_ByVolume TThostFtdcReturnPatternType = '1' // 按成交手数

func (TThostFtdcReturnPatternType) String

type TThostFtdcReturnStandardType

type TThostFtdcReturnStandardType byte

返还标准类型

const THOST_FTDC_RSD_ByPeriod TThostFtdcReturnStandardType = '1' // 分阶段返还
const THOST_FTDC_RSD_ByStandard TThostFtdcReturnStandardType = '2' // 按某一标准

func (TThostFtdcReturnStandardType) String

type TThostFtdcReturnStyleType

type TThostFtdcReturnStyleType byte

按品种返还方式类型

const THOST_FTDC_RS_All TThostFtdcReturnStyleType = '1' // 按所有品种
const THOST_FTDC_RS_ByProduct TThostFtdcReturnStyleType = '2' // 按品种

func (TThostFtdcReturnStyleType) String

func (e TThostFtdcReturnStyleType) String() string

type TThostFtdcRightParamTypeType

type TThostFtdcRightParamTypeType byte

配置类型类型

const THOST_FTDC_RPT_Freeze TThostFtdcRightParamTypeType = '1' // 休眠户
const THOST_FTDC_RPT_FreezeActive TThostFtdcRightParamTypeType = '2' // 激活休眠户
const THOST_FTDC_RPT_OpenLimit TThostFtdcRightParamTypeType = '3' // 开仓权限限制
const THOST_FTDC_RPT_RelieveOpenLimit TThostFtdcRightParamTypeType = '4' // 解除开仓权限限制

func (TThostFtdcRightParamTypeType) String

type TThostFtdcRightTemplateIDType

type TThostFtdcRightTemplateIDType [9]byte

模板代码类型

func (TThostFtdcRightTemplateIDType) String

type TThostFtdcRightTemplateNameType

type TThostFtdcRightTemplateNameType [61]byte

模板名称类型

func (TThostFtdcRightTemplateNameType) String

type TThostFtdcRiskLevelType

type TThostFtdcRiskLevelType byte

风险等级类型

const THOST_FTDC_FAS_Focus TThostFtdcRiskLevelType = '3' // 关注客户
const THOST_FTDC_FAS_Low TThostFtdcRiskLevelType = '1' // 低风险客户
const THOST_FTDC_FAS_Normal TThostFtdcRiskLevelType = '2' // 普通客户
const THOST_FTDC_FAS_Risk TThostFtdcRiskLevelType = '4' // 风险客户

func (TThostFtdcRiskLevelType) String

func (e TThostFtdcRiskLevelType) String() string

type TThostFtdcRiskNofityInfoType

type TThostFtdcRiskNofityInfoType [257]byte

客户风险通知消息类型

func (TThostFtdcRiskNofityInfoType) String

type TThostFtdcRiskNotifyMethodType

type TThostFtdcRiskNotifyMethodType byte

风险通知途径类型

const THOST_FTDC_RNM_EMail TThostFtdcRiskNotifyMethodType = '2' // 邮件通知
const THOST_FTDC_RNM_Manual TThostFtdcRiskNotifyMethodType = '3' // 人工通知
const THOST_FTDC_RNM_SMS TThostFtdcRiskNotifyMethodType = '1' // 短信通知
const THOST_FTDC_RNM_System TThostFtdcRiskNotifyMethodType = '0' // 系统通知

func (TThostFtdcRiskNotifyMethodType) String

type TThostFtdcRiskNotifyStatusType

type TThostFtdcRiskNotifyStatusType byte

风险通知状态类型

const THOST_FTDC_RNS_Confirmed TThostFtdcRiskNotifyStatusType = '5' // 已确认
const THOST_FTDC_RNS_Generated TThostFtdcRiskNotifyStatusType = '1' // 已生成未发送
const THOST_FTDC_RNS_NotGen TThostFtdcRiskNotifyStatusType = '0' // 未生成
const THOST_FTDC_RNS_Received TThostFtdcRiskNotifyStatusType = '4' // 已接收未确认
const THOST_FTDC_RNS_SendError TThostFtdcRiskNotifyStatusType = '2' // 发送失败
const THOST_FTDC_RNS_SendOk TThostFtdcRiskNotifyStatusType = '3' // 已发送未接收

func (TThostFtdcRiskNotifyStatusType) String

type TThostFtdcRiskRateType

type TThostFtdcRiskRateType [21]byte

风险度类型

func (TThostFtdcRiskRateType) String

func (s TThostFtdcRiskRateType) String() string

type TThostFtdcRiskUserEventType

type TThostFtdcRiskUserEventType byte

风控用户操作事件类型

const THOST_FTDC_RUE_ExportData TThostFtdcRiskUserEventType = '0' // 导出数据

func (TThostFtdcRiskUserEventType) String

type TThostFtdcRiskValueType

type TThostFtdcRiskValueType float64

期货风险值类型

func (TThostFtdcRiskValueType) String

func (f TThostFtdcRiskValueType) String() string

type TThostFtdcRoleIDType

type TThostFtdcRoleIDType [11]byte

角色编号类型

func (TThostFtdcRoleIDType) String

func (s TThostFtdcRoleIDType) String() string

type TThostFtdcRoleNameType

type TThostFtdcRoleNameType [41]byte

角色名称类型

func (TThostFtdcRoleNameType) String

func (s TThostFtdcRoleNameType) String() string

type TThostFtdcRsaKeyVersionType

type TThostFtdcRsaKeyVersionType int32

公钥版本号类型

type TThostFtdcRuleIdType added in v2.0.8

type TThostFtdcRuleIdType [51]byte

策略id类型

func (TThostFtdcRuleIdType) String added in v2.0.8

func (s TThostFtdcRuleIdType) String() string

type TThostFtdcSHFEInstLifePhaseType

type TThostFtdcSHFEInstLifePhaseType [3]byte

上期所合约生命周期状态类型

func (TThostFtdcSHFEInstLifePhaseType) String

type TThostFtdcSHFEProductClassType

type TThostFtdcSHFEProductClassType [11]byte

产品类型类型

func (TThostFtdcSHFEProductClassType) String

type TThostFtdcSHFEUploadFileNameType

type TThostFtdcSHFEUploadFileNameType byte

上期所结算文件名类型

const THOST_FTDC_SUFN_SUFN_F TThostFtdcSHFEUploadFileNameType = 'F' // ^\d{4}_\d{8}_\d{8}_Capital
const THOST_FTDC_SUFN_SUFN_O TThostFtdcSHFEUploadFileNameType = 'O' // ^\d{4}_\d{8}_\d{8}_DailyFundChg
const THOST_FTDC_SUFN_SUFN_P TThostFtdcSHFEUploadFileNameType = 'P' // ^\d{4}_\d{8}_\d{8}_SettlementDetail
const THOST_FTDC_SUFN_SUFN_T TThostFtdcSHFEUploadFileNameType = 'T' // ^\d{4}_\d{8}_\d{8}_Trade

func (TThostFtdcSHFEUploadFileNameType) String

type TThostFtdcSPMMDiscountRatioType added in v2.0.8

type TThostFtdcSPMMDiscountRatioType float64

SPMM折扣率类型

func (TThostFtdcSPMMDiscountRatioType) String added in v2.0.8

type TThostFtdcSPMMModelDescType added in v2.0.8

type TThostFtdcSPMMModelDescType [129]byte

SPMM模板描述类型

func (TThostFtdcSPMMModelDescType) String added in v2.0.8

type TThostFtdcSPMMModelIDType added in v2.0.8

type TThostFtdcSPMMModelIDType [33]byte

SPMM模板ID类型

func (TThostFtdcSPMMModelIDType) String added in v2.0.8

func (s TThostFtdcSPMMModelIDType) String() string

type TThostFtdcSPMMProductIDType added in v2.0.8

type TThostFtdcSPMMProductIDType [41]byte

SPMM商品群商品组ID类型

func (TThostFtdcSPMMProductIDType) String added in v2.0.8

type TThostFtdcSRiskRateType

type TThostFtdcSRiskRateType [21]byte

风险度类型

func (TThostFtdcSRiskRateType) String

func (s TThostFtdcSRiskRateType) String() string

type TThostFtdcSaveStatusType

type TThostFtdcSaveStatusType byte

数据归档状态类型

const THOST_FTDC_SSS_SaveDatad TThostFtdcSaveStatusType = '1' // 归档完成
const THOST_FTDC_SSS_UnSaveData TThostFtdcSaveStatusType = '0' // 归档未完成

func (TThostFtdcSaveStatusType) String

func (e TThostFtdcSaveStatusType) String() string

type TThostFtdcSecType

type TThostFtdcSecType int32

时间(秒)类型

type TThostFtdcSecuAccTypeType

type TThostFtdcSecuAccTypeType byte

期货帐号类型类型

const THOST_FTDC_SAT_AccountID TThostFtdcSecuAccTypeType = '1' // 资金帐号
const THOST_FTDC_SAT_CardID TThostFtdcSecuAccTypeType = '2' // 资金卡号
const THOST_FTDC_SAT_SHStockholderID TThostFtdcSecuAccTypeType = '3' // 上海股东帐号
const THOST_FTDC_SAT_SZStockholderID TThostFtdcSecuAccTypeType = '4' // 深圳股东帐号

func (TThostFtdcSecuAccTypeType) String

func (e TThostFtdcSecuAccTypeType) String() string

type TThostFtdcSendMethodType

type TThostFtdcSendMethodType byte

发送方式类型

const THOST_FTDC_UOASM_ByAPI TThostFtdcSendMethodType = '1' // 文件发送
const THOST_FTDC_UOASM_ByFile TThostFtdcSendMethodType = '2' // 电子发送

func (TThostFtdcSendMethodType) String

func (e TThostFtdcSendMethodType) String() string

type TThostFtdcSendTypeType

type TThostFtdcSendTypeType byte

报送状态类型

const THOST_FTDC_UOAST_Cancel TThostFtdcSendTypeType = '6' // 取消报送
const THOST_FTDC_UOAST_Fail TThostFtdcSendTypeType = '5' // 接收失败
const THOST_FTDC_UOAST_Generated TThostFtdcSendTypeType = '2' // 已生成
const THOST_FTDC_UOAST_NoSend TThostFtdcSendTypeType = '0' // 未发送
const THOST_FTDC_UOAST_SendFail TThostFtdcSendTypeType = '3' // 报送失败
const THOST_FTDC_UOAST_Sended TThostFtdcSendTypeType = '1' // 已发送
const THOST_FTDC_UOAST_Success TThostFtdcSendTypeType = '4' // 接收成功

func (TThostFtdcSendTypeType) String

func (e TThostFtdcSendTypeType) String() string

type TThostFtdcSentenceType

type TThostFtdcSentenceType [501]byte

语句类型

func (TThostFtdcSentenceType) String

func (s TThostFtdcSentenceType) String() string

type TThostFtdcSeqNoType

type TThostFtdcSeqNoType int32

流水号类型

type TThostFtdcSequenceLabelType

type TThostFtdcSequenceLabelType [2]byte

序列编号类型

func (TThostFtdcSequenceLabelType) String

type TThostFtdcSequenceNo12Type

type TThostFtdcSequenceNo12Type int32

序号类型

type TThostFtdcSequenceNoType

type TThostFtdcSequenceNoType int32

序号类型

type TThostFtdcSequenceSeriesType

type TThostFtdcSequenceSeriesType int16

序列系列号类型

type TThostFtdcSerialNumberType

type TThostFtdcSerialNumberType [17]byte

序列号类型

func (TThostFtdcSerialNumberType) String

type TThostFtdcSerialType

type TThostFtdcSerialType int32

流水号类型

type TThostFtdcServerPortType

type TThostFtdcServerPortType int32

服务端口号类型

type TThostFtdcServiceIDType

type TThostFtdcServiceIDType int32

服务编号类型

type TThostFtdcServiceLineNoType

type TThostFtdcServiceLineNoType int32

服务线路编号类型

type TThostFtdcServiceNameType

type TThostFtdcServiceNameType [61]byte

服务名类型

func (TThostFtdcServiceNameType) String

func (s TThostFtdcServiceNameType) String() string

type TThostFtdcSessionIDType

type TThostFtdcSessionIDType int32

会话编号类型

type TThostFtdcSettArchiveStatusType

type TThostFtdcSettArchiveStatusType byte

结算确认数据归档状态类型

const THOST_FTDC_SAS_ArchiveFail TThostFtdcSettArchiveStatusType = '3' // 归档数据失败
const THOST_FTDC_SAS_Archived TThostFtdcSettArchiveStatusType = '2' // 已归档数据
const THOST_FTDC_SAS_Archiving TThostFtdcSettArchiveStatusType = '1' // 数据归档中
const THOST_FTDC_SAS_UnArchived TThostFtdcSettArchiveStatusType = '0' // 未归档数据

func (TThostFtdcSettArchiveStatusType) String

type TThostFtdcSettleManagerGroupType

type TThostFtdcSettleManagerGroupType byte

模块分组类型

const THOST_FTDC_SMG_ASP TThostFtdcSettleManagerGroupType = '2' // 内部核对
const THOST_FTDC_SMG_CSRC TThostFtdcSettleManagerGroupType = '3' // 上报数据核对
const THOST_FTDC_SMG_Exhcange TThostFtdcSettleManagerGroupType = '1' // 交易所核对

func (TThostFtdcSettleManagerGroupType) String

type TThostFtdcSettleManagerIDType

type TThostFtdcSettleManagerIDType [33]byte

结算配置代码类型

func (TThostFtdcSettleManagerIDType) String

type TThostFtdcSettleManagerLevelType

type TThostFtdcSettleManagerLevelType byte

结算配置等级类型

const THOST_FTDC_SML_Alarm TThostFtdcSettleManagerLevelType = '2' // 警告
const THOST_FTDC_SML_Ignore TThostFtdcSettleManagerLevelType = '4' // 不检查
const THOST_FTDC_SML_Must TThostFtdcSettleManagerLevelType = '1' // 必要
const THOST_FTDC_SML_Prompt TThostFtdcSettleManagerLevelType = '3' // 提示

func (TThostFtdcSettleManagerLevelType) String

type TThostFtdcSettleManagerNameType

type TThostFtdcSettleManagerNameType [129]byte

结算配置名称类型

func (TThostFtdcSettleManagerNameType) String

type TThostFtdcSettleManagerTypeType

type TThostFtdcSettleManagerTypeType byte

结算配置类型类型

const THOST_FTDC_SMT_After TThostFtdcSettleManagerTypeType = '3' // 结算后核对
const THOST_FTDC_SMT_Before TThostFtdcSettleManagerTypeType = '1' // 结算前准备
const THOST_FTDC_SMT_Settlement TThostFtdcSettleManagerTypeType = '2' // 结算
const THOST_FTDC_SMT_Settlemented TThostFtdcSettleManagerTypeType = '4' // 结算后处理

func (TThostFtdcSettleManagerTypeType) String

type TThostFtdcSettlementBillTypeType

type TThostFtdcSettlementBillTypeType byte

结算单类型类型

const THOST_FTDC_ST_Day TThostFtdcSettlementBillTypeType = '0' // 日报
const THOST_FTDC_ST_Month TThostFtdcSettlementBillTypeType = '1' // 月报

func (TThostFtdcSettlementBillTypeType) String

type TThostFtdcSettlementGroupIDType

type TThostFtdcSettlementGroupIDType [9]byte

结算组代码类型

func (TThostFtdcSettlementGroupIDType) String

type TThostFtdcSettlementIDType

type TThostFtdcSettlementIDType int32

结算编号类型

type TThostFtdcSettlementParamValueType

type TThostFtdcSettlementParamValueType [256]byte

参数代码值类型

func (TThostFtdcSettlementParamValueType) String

type TThostFtdcSettlementStatusType

type TThostFtdcSettlementStatusType byte

结算状态类型

const THOST_FTDC_STS_Finished TThostFtdcSettlementStatusType = '3' // 结算完成
const THOST_FTDC_STS_Initialize TThostFtdcSettlementStatusType = '0' // 初始
const THOST_FTDC_STS_Settlemented TThostFtdcSettlementStatusType = '2' // 已结算
const THOST_FTDC_STS_Settlementing TThostFtdcSettlementStatusType = '1' // 结算中

func (TThostFtdcSettlementStatusType) String

type TThostFtdcSettlementStyleType

type TThostFtdcSettlementStyleType byte

结算单方式类型

const THOST_FTDC_SBS_Day TThostFtdcSettlementStyleType = '1' // 逐日盯市
const THOST_FTDC_SBS_Volume TThostFtdcSettlementStyleType = '2' // 逐笔对冲

func (TThostFtdcSettlementStyleType) String

type TThostFtdcSexType

type TThostFtdcSexType byte

性别类型

const THOST_FTDC_SEX_Man TThostFtdcSexType = '1' // 男
const THOST_FTDC_SEX_None TThostFtdcSexType = '0' // 未知
const THOST_FTDC_SEX_Woman TThostFtdcSexType = '2' // 女

func (TThostFtdcSexType) String

func (e TThostFtdcSexType) String() string

type TThostFtdcSingleMaxAmtType

type TThostFtdcSingleMaxAmtType float64

单笔最高限额类型

func (TThostFtdcSingleMaxAmtType) String

type TThostFtdcSingleMinAmtType

type TThostFtdcSingleMinAmtType float64

单笔最低限额类型

func (TThostFtdcSingleMinAmtType) String

type TThostFtdcSoftwareProviderIDType

type TThostFtdcSoftwareProviderIDType [22]byte

交易软件商ID类型

func (TThostFtdcSoftwareProviderIDType) String

type TThostFtdcSpecPosiTypeType

type TThostFtdcSpecPosiTypeType byte

特殊持仓明细标识类型

const THOST_FTDC_SPOST_Common TThostFtdcSpecPosiTypeType = '#' // 普通持仓明细
const THOST_FTDC_SPOST_Tas TThostFtdcSpecPosiTypeType = '0' // TAS合约成交产生的标的合约持仓明细

func (TThostFtdcSpecPosiTypeType) String

type TThostFtdcSpecProductTypeType

type TThostFtdcSpecProductTypeType byte

特殊产品类型类型

const THOST_FTDC_SPT_CzceHedge TThostFtdcSpecProductTypeType = '1' // 郑商所套保产品
const THOST_FTDC_SPT_DceOpenClose TThostFtdcSpecProductTypeType = '3' // 大连短线开平仓产品
const THOST_FTDC_SPT_IneForeignCurrency TThostFtdcSpecProductTypeType = '2' // 货币质押产品

func (TThostFtdcSpecProductTypeType) String

type TThostFtdcSpecialCreateRuleType

type TThostFtdcSpecialCreateRuleType byte

特殊的创建规则类型

const THOST_FTDC_SC_NoSpecialRule TThostFtdcSpecialCreateRuleType = '0' // 没有特殊创建规则
const THOST_FTDC_SC_NoSpringFestival TThostFtdcSpecialCreateRuleType = '1' // 不包含春节

func (TThostFtdcSpecialCreateRuleType) String

type TThostFtdcSponsorTypeType

type TThostFtdcSponsorTypeType byte

发起方类型

const THOST_FTDC_SPTYPE_Bank TThostFtdcSponsorTypeType = '1' // 银行
const THOST_FTDC_SPTYPE_Broker TThostFtdcSponsorTypeType = '0' // 期商

func (TThostFtdcSponsorTypeType) String

func (e TThostFtdcSponsorTypeType) String() string

type TThostFtdcSpreadIdType

type TThostFtdcSpreadIdType int32

抵扣组优先级类型

type TThostFtdcStandardStatusType

type TThostFtdcStandardStatusType byte

规范状态类型

const THOST_FTDC_STST_NonStandard TThostFtdcStandardStatusType = '1' // 未规范
const THOST_FTDC_STST_Standard TThostFtdcStandardStatusType = '0' // 已规范

func (TThostFtdcStandardStatusType) String

type TThostFtdcStartModeType

type TThostFtdcStartModeType byte

启动模式类型

const THOST_FTDC_SM_Emerge TThostFtdcStartModeType = '2' // 应急
const THOST_FTDC_SM_Normal TThostFtdcStartModeType = '1' // 正常
const THOST_FTDC_SM_Restore TThostFtdcStartModeType = '3' // 恢复

func (TThostFtdcStartModeType) String

func (e TThostFtdcStartModeType) String() string

type TThostFtdcStatModeType

type TThostFtdcStatModeType byte

统计方式类型

const THOST_FTDC_SM_Instrument TThostFtdcStatModeType = '1' // 按合约统计
const THOST_FTDC_SM_Investor TThostFtdcStatModeType = '3' // 按投资者统计
const THOST_FTDC_SM_Non TThostFtdcStatModeType = '0' // ----
const THOST_FTDC_SM_Product TThostFtdcStatModeType = '2' // 按产品统计

func (TThostFtdcStatModeType) String

func (e TThostFtdcStatModeType) String() string

type TThostFtdcStdPositionType added in v2.0.8

type TThostFtdcStdPositionType float64

标准持仓类型类型

func (TThostFtdcStdPositionType) String added in v2.0.8

func (f TThostFtdcStdPositionType) String() string

type TThostFtdcStrikeModeType

type TThostFtdcStrikeModeType byte

执行方式类型

const THOST_FTDC_STM_American TThostFtdcStrikeModeType = '1' // 美式
const THOST_FTDC_STM_Bermuda TThostFtdcStrikeModeType = '2' // 百慕大
const THOST_FTDC_STM_Continental TThostFtdcStrikeModeType = '0' // 欧式

func (TThostFtdcStrikeModeType) String

func (e TThostFtdcStrikeModeType) String() string

type TThostFtdcStrikeOffsetTypeType

type TThostFtdcStrikeOffsetTypeType byte

行权偏移类型类型

const THOST_FTDC_STOV_ProfitRatio TThostFtdcStrikeOffsetTypeType = '4' // 盈利比例
const THOST_FTDC_STOV_ProfitValue TThostFtdcStrikeOffsetTypeType = '2' // 盈利额
const THOST_FTDC_STOV_RealRatio TThostFtdcStrikeOffsetTypeType = '3' // 实值比例
const THOST_FTDC_STOV_RealValue TThostFtdcStrikeOffsetTypeType = '1' // 实值额

func (TThostFtdcStrikeOffsetTypeType) String

type TThostFtdcStrikeSequenceType

type TThostFtdcStrikeSequenceType int32

执行序号类型

type TThostFtdcStrikeTimeType

type TThostFtdcStrikeTimeType [13]byte

执行时间类型

func (TThostFtdcStrikeTimeType) String

func (s TThostFtdcStrikeTimeType) String() string

type TThostFtdcStrikeTypeType

type TThostFtdcStrikeTypeType byte

执行类型类型

const THOST_FTDC_STT_Hedge TThostFtdcStrikeTypeType = '0' // 自身对冲
const THOST_FTDC_STT_Match TThostFtdcStrikeTypeType = '1' // 匹配执行

func (TThostFtdcStrikeTypeType) String

func (e TThostFtdcStrikeTypeType) String() string

type TThostFtdcSubBranchIDType

type TThostFtdcSubBranchIDType [31]byte

分支机构类型

func (TThostFtdcSubBranchIDType) String

func (s TThostFtdcSubBranchIDType) String() string

type TThostFtdcSubBranchNameType

type TThostFtdcSubBranchNameType [71]byte

分支机构名称类型

func (TThostFtdcSubBranchNameType) String

type TThostFtdcSubEntryFundNoType

type TThostFtdcSubEntryFundNoType int32

分项资金流水号类型

type TThostFtdcSuperOrganCodeType

type TThostFtdcSuperOrganCodeType [12]byte

上级机构编码,即期货公司总部、银行总行类型

func (TThostFtdcSuperOrganCodeType) String

type TThostFtdcSwapBusinessTypeType

type TThostFtdcSwapBusinessTypeType [3]byte

换汇业务种类类型

func (TThostFtdcSwapBusinessTypeType) String

type TThostFtdcSwapSourceTypeType

type TThostFtdcSwapSourceTypeType byte

换汇数据来源类型

const THOST_FTDC_SST_Automatic TThostFtdcSwapSourceTypeType = '1' // 自动生成
const THOST_FTDC_SST_Manual TThostFtdcSwapSourceTypeType = '0' // 手工

func (TThostFtdcSwapSourceTypeType) String

type TThostFtdcSyncDataStatusType

type TThostFtdcSyncDataStatusType byte

主次用系统数据同步状态类型

const THOST_FTDC_SDS_Initialize TThostFtdcSyncDataStatusType = '0' // 未同步
const THOST_FTDC_SDS_Settlemented TThostFtdcSyncDataStatusType = '2' // 已同步
const THOST_FTDC_SDS_Settlementing TThostFtdcSyncDataStatusType = '1' // 同步中

func (TThostFtdcSyncDataStatusType) String

type TThostFtdcSyncDeltaStatusType

type TThostFtdcSyncDeltaStatusType byte

追平状态类型

const THOST_FTDC_SDS_OptErr TThostFtdcSyncDeltaStatusType = 'e' // 追平失败 交易本地状态结算不存在
const THOST_FTDC_SDS_Readable TThostFtdcSyncDeltaStatusType = '1' // 交易可读
const THOST_FTDC_SDS_Readend TThostFtdcSyncDeltaStatusType = '3' // 交易读取完成
const THOST_FTDC_SDS_Reading TThostFtdcSyncDeltaStatusType = '2' // 交易在读

func (TThostFtdcSyncDeltaStatusType) String

type TThostFtdcSyncDescriptionType

type TThostFtdcSyncDescriptionType [257]byte

追平描述类型

func (TThostFtdcSyncDescriptionType) String

type TThostFtdcSyncFlagType

type TThostFtdcSyncFlagType byte

同步标记类型

const THOST_FTDC_SYNF_No TThostFtdcSyncFlagType = '1' // 未同步
const THOST_FTDC_SYNF_Yes TThostFtdcSyncFlagType = '0' // 已同步

func (TThostFtdcSyncFlagType) String

func (e TThostFtdcSyncFlagType) String() string

type TThostFtdcSyncModeType

type TThostFtdcSyncModeType byte

套接字通信方式类型

const THOST_FTDC_SRM_ASync TThostFtdcSyncModeType = '0' // 异步
const THOST_FTDC_SRM_Sync TThostFtdcSyncModeType = '1' // 同步

func (TThostFtdcSyncModeType) String

func (e TThostFtdcSyncModeType) String() string

type TThostFtdcSyncTypeType

type TThostFtdcSyncTypeType byte

同步类型类型

const THOST_FTDC_SYNT_OneOffSync TThostFtdcSyncTypeType = '0' // 一次同步
const THOST_FTDC_SYNT_TimerFullSync TThostFtdcSyncTypeType = '2' // 定时完全同步
const THOST_FTDC_SYNT_TimerSync TThostFtdcSyncTypeType = '1' // 定时同步

func (TThostFtdcSyncTypeType) String

func (e TThostFtdcSyncTypeType) String() string

type TThostFtdcSysOperModeType

type TThostFtdcSysOperModeType byte

系统日志操作方法类型

const THOST_FTDC_SoM_AcTive TThostFtdcSysOperModeType = '5' // 激活
const THOST_FTDC_SoM_Add TThostFtdcSysOperModeType = '1' // 增加
const THOST_FTDC_SoM_CanCel TThostFtdcSysOperModeType = '6' // 注销
const THOST_FTDC_SoM_Copy TThostFtdcSysOperModeType = '4' // 复制
const THOST_FTDC_SoM_Delete TThostFtdcSysOperModeType = '3' // 删除
const THOST_FTDC_SoM_ReSet TThostFtdcSysOperModeType = '7' // 重置
const THOST_FTDC_SoM_Update TThostFtdcSysOperModeType = '2' // 修改

func (TThostFtdcSysOperModeType) String

func (e TThostFtdcSysOperModeType) String() string

type TThostFtdcSysOperTypeType

type TThostFtdcSysOperTypeType byte

系统日志操作类型类型

const THOST_FTDC_SoT_BaseParam TThostFtdcSysOperTypeType = '4' // 基础参数设置
const THOST_FTDC_SoT_DepartmentCopy TThostFtdcSysOperTypeType = '9' // 组织架构向查询分类复制
const THOST_FTDC_SoT_DepartmentManager TThostFtdcSysOperTypeType = '8' // 组织架构管理
const THOST_FTDC_SoT_InvestorAuthority TThostFtdcSysOperTypeType = 'C' // 投资者权限管理
const THOST_FTDC_SoT_InvestorPersonalityInfo TThostFtdcSysOperTypeType = 'F' // 投资者个性信息维护
const THOST_FTDC_SoT_InvestorStatus TThostFtdcSysOperTypeType = 'B' // 投资者状态维护
const THOST_FTDC_SoT_PropertySet TThostFtdcSysOperTypeType = 'D' // 属性设置
const THOST_FTDC_SoT_ReSetInvestorPasswd TThostFtdcSysOperTypeType = 'E' // 重置投资者密码
const THOST_FTDC_SoT_RoleFunction TThostFtdcSysOperTypeType = '3' // 角色功能设置
const THOST_FTDC_SoT_RoleManager TThostFtdcSysOperTypeType = '2' // 角色管理
const THOST_FTDC_SoT_SetUserID TThostFtdcSysOperTypeType = '5' // 设置操作员
const THOST_FTDC_SoT_SetUserRole TThostFtdcSysOperTypeType = '6' // 用户角色设置
const THOST_FTDC_SoT_Tradingcode TThostFtdcSysOperTypeType = 'A' // 交易编码管理
const THOST_FTDC_SoT_UpdatePassword TThostFtdcSysOperTypeType = '0' // 修改操作员密码
const THOST_FTDC_SoT_UserDepartment TThostFtdcSysOperTypeType = '1' // 操作员组织架构关系
const THOST_FTDC_SoT_UserIpRestriction TThostFtdcSysOperTypeType = '7' // 用户IP限制

func (TThostFtdcSysOperTypeType) String

func (e TThostFtdcSysOperTypeType) String() string

type TThostFtdcSysSettlementStatusType

type TThostFtdcSysSettlementStatusType byte

系统结算状态类型

const THOST_FTDC_SS_NonActive TThostFtdcSysSettlementStatusType = '1' // 不活跃
const THOST_FTDC_SS_Operating TThostFtdcSysSettlementStatusType = '3' // 操作
const THOST_FTDC_SS_Settlement TThostFtdcSysSettlementStatusType = '4' // 结算
const THOST_FTDC_SS_SettlementFinished TThostFtdcSysSettlementStatusType = '5' // 结算完成
const THOST_FTDC_SS_Startup TThostFtdcSysSettlementStatusType = '2' // 启动

func (TThostFtdcSysSettlementStatusType) String

type TThostFtdcSysVersionType

type TThostFtdcSysVersionType [41]byte

系统版本类型

func (TThostFtdcSysVersionType) String

func (s TThostFtdcSysVersionType) String() string

type TThostFtdcSystemIDType

type TThostFtdcSystemIDType [21]byte

系统编号类型

func (TThostFtdcSystemIDType) String

func (s TThostFtdcSystemIDType) String() string

type TThostFtdcSystemInfoLenType

type TThostFtdcSystemInfoLenType int32

系统信息长度类型

type TThostFtdcSystemNameType

type TThostFtdcSystemNameType [41]byte

系统名称类型

func (TThostFtdcSystemNameType) String

func (s TThostFtdcSystemNameType) String() string

type TThostFtdcSystemParamIDType

type TThostFtdcSystemParamIDType byte

系统参数代码类型

const THOST_FTDC_SPI_AccountIDMinLength TThostFtdcSystemParamIDType = '2' // 投资者帐号代码最小长度
const THOST_FTDC_SPI_CFFEXInvestorSettleFile TThostFtdcSystemParamIDType = 'F' // 投资者中金所结算文件下载路径
const THOST_FTDC_SPI_CSRCData TThostFtdcSystemParamIDType = 'R' // 全结经纪公司上传文件路径
const THOST_FTDC_SPI_CSRCOthersFile TThostFtdcSystemParamIDType = 'C' // 证监会文件标识
const THOST_FTDC_SPI_CZCENormalProductHedge TThostFtdcSystemParamIDType = 'B' // 郑商所是否开放所有品种套保交易
const THOST_FTDC_SPI_CheckFund TThostFtdcSystemParamIDType = '6' // 结算是否判断存在未复核的出入金和分项资金
const THOST_FTDC_SPI_CommModelRight TThostFtdcSystemParamIDType = '7' // 是否启用手续费模板数据权限
const THOST_FTDC_SPI_DownloadCSRCFile TThostFtdcSystemParamIDType = 'D' // 上报保证金监控中心文件路径
const THOST_FTDC_SPI_FreezeMaxReMain TThostFtdcSystemParamIDType = 'r' // 休眠户最高权益
const THOST_FTDC_SPI_InvestorIDMinLength TThostFtdcSystemParamIDType = '1' // 投资者代码最小长度
const THOST_FTDC_SPI_InvestorIDType TThostFtdcSystemParamIDType = 'a' // 投资者代码编码方式
const THOST_FTDC_SPI_InvestorPhoto TThostFtdcSystemParamIDType = 'P' // 投资者照片路径
const THOST_FTDC_SPI_InvestorPwdModel TThostFtdcSystemParamIDType = 'I' // 开户密码录入方式
const THOST_FTDC_SPI_IsStandardActive TThostFtdcSystemParamIDType = '8' // 是否规范用户才能激活
const THOST_FTDC_SPI_IsStandardFreeze TThostFtdcSystemParamIDType = 'X' // 是否规范用户才能休眠
const THOST_FTDC_SPI_IsSync TThostFtdcSystemParamIDType = 'A' // 手续费相关操作实时上场开关
const THOST_FTDC_SPI_MarginModelRight TThostFtdcSystemParamIDType = '9' // 是否启用保证金率模板数据权限
const THOST_FTDC_SPI_RelieveOpenLimit TThostFtdcSystemParamIDType = 'O' // 解除开仓权限限制
const THOST_FTDC_SPI_SettlementBillFile TThostFtdcSystemParamIDType = 'S' // 生成的结算单文件路径
const THOST_FTDC_SPI_SettlementBillTrade TThostFtdcSystemParamIDType = '4' // 投资者交易结算单成交汇总方式
const THOST_FTDC_SPI_TradingCode TThostFtdcSystemParamIDType = '5' // 统一开户更新交易编码方式
const THOST_FTDC_SPI_UploadSettlementFile TThostFtdcSystemParamIDType = 'U' // 上传的交易所结算文件路径
const THOST_FTDC_SPI_UserRightLogon TThostFtdcSystemParamIDType = '3' // 投资者开户默认登录权限

func (TThostFtdcSystemParamIDType) String

type TThostFtdcSystemStatusType

type TThostFtdcSystemStatusType byte

系统状态类型

const THOST_FTDC_ES_Close TThostFtdcSystemStatusType = '5' // 收市开始
const THOST_FTDC_ES_Closed TThostFtdcSystemStatusType = '6' // 收市完成
const THOST_FTDC_ES_Initialize TThostFtdcSystemStatusType = '3' // 交易开始初始化
const THOST_FTDC_ES_Initialized TThostFtdcSystemStatusType = '4' // 交易完成初始化
const THOST_FTDC_ES_NonActive TThostFtdcSystemStatusType = '1' // 不活跃
const THOST_FTDC_ES_Settlement TThostFtdcSystemStatusType = '7' // 结算
const THOST_FTDC_ES_Startup TThostFtdcSystemStatusType = '2' // 启动

func (TThostFtdcSystemStatusType) String

type TThostFtdcSystemTypeType

type TThostFtdcSystemTypeType byte

应用系统类型类型

const THOST_FTDC_SYT_FutureBankTransfer TThostFtdcSystemTypeType = '0' // 银期转帐
const THOST_FTDC_SYT_StockBankTransfer TThostFtdcSystemTypeType = '1' // 银证转帐
const THOST_FTDC_SYT_TheThirdPartStore TThostFtdcSystemTypeType = '2' // 第三方存管

func (TThostFtdcSystemTypeType) String

func (e TThostFtdcSystemTypeType) String() string

type TThostFtdcTIDType

type TThostFtdcTIDType int32

交易ID类型

type TThostFtdcTableNameType

type TThostFtdcTableNameType [61]byte

FBT表名类型

func (TThostFtdcTableNameType) String

func (s TThostFtdcTableNameType) String() string

type TThostFtdcTargetIDType

type TThostFtdcTargetIDType [4]byte

同步目标编号类型

func (TThostFtdcTargetIDType) String

func (s TThostFtdcTargetIDType) String() string

type TThostFtdcTaxNoType

type TThostFtdcTaxNoType [31]byte

税务登记号类型

func (TThostFtdcTaxNoType) String

func (s TThostFtdcTaxNoType) String() string

type TThostFtdcTelephoneType

type TThostFtdcTelephoneType [41]byte

联系电话类型

func (TThostFtdcTelephoneType) String

func (s TThostFtdcTelephoneType) String() string

type TThostFtdcTemplateTypeType

type TThostFtdcTemplateTypeType byte

模型类型类型

const THOST_FTDC_TPT_BackUp TThostFtdcTemplateTypeType = '3' // 备份
const THOST_FTDC_TPT_Full TThostFtdcTemplateTypeType = '1' // 全量
const THOST_FTDC_TPT_Increment TThostFtdcTemplateTypeType = '2' // 增量

func (TThostFtdcTemplateTypeType) String

type TThostFtdcThostFunctionCodeType added in v2.0.8

type TThostFtdcThostFunctionCodeType int32

Thost终端功能代码类型

type TThostFtdcTimeConditionType

type TThostFtdcTimeConditionType byte

有效期类型类型

const THOST_FTDC_TC_GFA TThostFtdcTimeConditionType = '6' // 集合竞价有效
const THOST_FTDC_TC_GFD TThostFtdcTimeConditionType = '3' // 当日有效
const THOST_FTDC_TC_GFS TThostFtdcTimeConditionType = '2' // 本节有效
const THOST_FTDC_TC_GTC TThostFtdcTimeConditionType = '5' // 撤销前有效
const THOST_FTDC_TC_GTD TThostFtdcTimeConditionType = '4' // 指定日期前有效
const THOST_FTDC_TC_IOC TThostFtdcTimeConditionType = '1' // 立即完成,否则撤销

func (TThostFtdcTimeConditionType) String

type TThostFtdcTimeRangeType

type TThostFtdcTimeRangeType byte

期货合约阶段标识类型

const THOST_FTDC_ETR_BNSP TThostFtdcTimeRangeType = '3' // 交割月前一个月下半月
const THOST_FTDC_ETR_FNSP TThostFtdcTimeRangeType = '2' // 交割月前一个月上半月
const THOST_FTDC_ETR_SPOT TThostFtdcTimeRangeType = '4' // 交割月份
const THOST_FTDC_ETR_USUAL TThostFtdcTimeRangeType = '1' // 一般月份

func (TThostFtdcTimeRangeType) String

func (e TThostFtdcTimeRangeType) String() string

type TThostFtdcTimeSpanType

type TThostFtdcTimeSpanType [9]byte

时间跨度类型

func (TThostFtdcTimeSpanType) String

func (s TThostFtdcTimeSpanType) String() string

type TThostFtdcTimeType

type TThostFtdcTimeType [9]byte

时间类型

func (TThostFtdcTimeType) String

func (s TThostFtdcTimeType) String() string

type TThostFtdcTimestampType

type TThostFtdcTimestampType int32

时间戳类型

type TThostFtdcToolIDType

type TThostFtdcToolIDType [9]byte

工具代码类型

func (TThostFtdcToolIDType) String

func (s TThostFtdcToolIDType) String() string

type TThostFtdcToolNameType

type TThostFtdcToolNameType [81]byte

工具名称类型

func (TThostFtdcToolNameType) String

func (s TThostFtdcToolNameType) String() string

type TThostFtdcTopicIDType

type TThostFtdcTopicIDType int32

主题代码类型

type TThostFtdcTotalAmtType

type TThostFtdcTotalAmtType float64

每日累计转帐额度类型

func (TThostFtdcTotalAmtType) String

func (f TThostFtdcTotalAmtType) String() string

type TThostFtdcTotalTimesType

type TThostFtdcTotalTimesType int32

每日累计转帐次数类型

type TThostFtdcTradeAmountType

type TThostFtdcTradeAmountType float64

交易金额(元)类型

func (TThostFtdcTradeAmountType) String

func (f TThostFtdcTradeAmountType) String() string

type TThostFtdcTradeAmtType

type TThostFtdcTradeAmtType [20]byte

银行总余额类型

func (TThostFtdcTradeAmtType) String

func (s TThostFtdcTradeAmtType) String() string

type TThostFtdcTradeCodeType

type TThostFtdcTradeCodeType [7]byte

交易代码类型

func (TThostFtdcTradeCodeType) String

func (s TThostFtdcTradeCodeType) String() string

type TThostFtdcTradeDateType

type TThostFtdcTradeDateType [9]byte

交易日期类型

func (TThostFtdcTradeDateType) String

func (s TThostFtdcTradeDateType) String() string

type TThostFtdcTradeGroupIDType

type TThostFtdcTradeGroupIDType int32

成交组号类型

type TThostFtdcTradeIDType

type TThostFtdcTradeIDType [21]byte

成交编号类型

func (TThostFtdcTradeIDType) String

func (s TThostFtdcTradeIDType) String() string

type TThostFtdcTradeParamIDType

type TThostFtdcTradeParamIDType byte

交易系统参数代码类型

const THOST_FTDC_TPID_BalanceMorgage TThostFtdcTradeParamIDType = 'a' // 自有资金质押比
const THOST_FTDC_TPID_EncryptionStandard TThostFtdcTradeParamIDType = 'E' // 系统加密算法
const THOST_FTDC_TPID_ForQuoteTimeInterval TThostFtdcTradeParamIDType = 'Q' // 郑商所询价时间间隔
const THOST_FTDC_TPID_IsAuthForce TThostFtdcTradeParamIDType = 'A' // 是否强制认证
const THOST_FTDC_TPID_IsCheckBankAcc TThostFtdcTradeParamIDType = 'I' // 银期开户是否验证开户银行卡号是否是预留银行账户
const THOST_FTDC_TPID_IsExecOrderProfit TThostFtdcTradeParamIDType = 'H' // 行权冻结是否计算盈利
const THOST_FTDC_TPID_IsFutureOrderFreq TThostFtdcTradeParamIDType = 'C' // 是否期货下单频率限制
const THOST_FTDC_TPID_IsFuturePosiLimit TThostFtdcTradeParamIDType = 'B' // 是否期货限仓
const THOST_FTDC_TPID_IsPosiFreeze TThostFtdcTradeParamIDType = 'F' // 是否冻结证券持仓
const THOST_FTDC_TPID_IsPosiLimit TThostFtdcTradeParamIDType = 'M' // 是否限仓
const THOST_FTDC_TPID_IsStrongPassword TThostFtdcTradeParamIDType = 'K' // 强密码校验
const THOST_FTDC_TPID_LoginFailMaxNum TThostFtdcTradeParamIDType = 'L' // 最大连续登录失败数
const THOST_FTDC_TPID_LoginFailMaxNumForIP TThostFtdcTradeParamIDType = 'U' // IP当日最大登陆失败次数
const THOST_FTDC_TPID_MinPwdLen TThostFtdcTradeParamIDType = 'O' // 最小密码长度
const THOST_FTDC_TPID_PasswordDeadLine TThostFtdcTradeParamIDType = 'J' // 弱密码最后修改日期
const THOST_FTDC_TPID_PasswordPeriod TThostFtdcTradeParamIDType = 'V' // 密码有效期
const THOST_FTDC_TPID_RiskMode TThostFtdcTradeParamIDType = 'R' // 系统风险算法
const THOST_FTDC_TPID_RiskModeGlobal TThostFtdcTradeParamIDType = 'G' // 系统风险算法是否全局 0-否 1-是
const THOST_FTDC_TPID_SingleUserSessionMaxNum TThostFtdcTradeParamIDType = 'S' // 用户最大会话数
const THOST_FTDC_TPID_modeEncode TThostFtdcTradeParamIDType = 'P' // 密码加密算法
const THOST_FTDC_TPID_tickMode TThostFtdcTradeParamIDType = 'T' // 价格小数位数参数

func (TThostFtdcTradeParamIDType) String

type TThostFtdcTradeSerialNoType

type TThostFtdcTradeSerialNoType int32

发起方流水号类型

type TThostFtdcTradeSerialType

type TThostFtdcTradeSerialType [9]byte

发起方流水号类型

func (TThostFtdcTradeSerialType) String

func (s TThostFtdcTradeSerialType) String() string

type TThostFtdcTradeSourceType

type TThostFtdcTradeSourceType byte

成交来源类型

const THOST_FTDC_TSRC_NORMAL TThostFtdcTradeSourceType = '0' // 来自交易所普通回报
const THOST_FTDC_TSRC_QUERY TThostFtdcTradeSourceType = '1' // 来自查询

func (TThostFtdcTradeSourceType) String

func (e TThostFtdcTradeSourceType) String() string

type TThostFtdcTradeSumStatModeType

type TThostFtdcTradeSumStatModeType byte

交易统计表按范围统计方式类型

const THOST_FTDC_TSSM_Exchange TThostFtdcTradeSumStatModeType = '3' // 按交易所统计
const THOST_FTDC_TSSM_Instrument TThostFtdcTradeSumStatModeType = '1' // 按合约统计
const THOST_FTDC_TSSM_Product TThostFtdcTradeSumStatModeType = '2' // 按产品统计

func (TThostFtdcTradeSumStatModeType) String

type TThostFtdcTradeTimeType

type TThostFtdcTradeTimeType [9]byte

交易时间类型

func (TThostFtdcTradeTimeType) String

func (s TThostFtdcTradeTimeType) String() string

type TThostFtdcTradeTypeType

type TThostFtdcTradeTypeType byte

成交类型类型

const THOST_FTDC_TRDT_BlockTrade TThostFtdcTradeTypeType = '5' // 大宗交易成交
const THOST_FTDC_TRDT_CombinationDerived TThostFtdcTradeTypeType = '4' // 组合衍生成交
const THOST_FTDC_TRDT_Common TThostFtdcTradeTypeType = '0' // 普通成交
const THOST_FTDC_TRDT_EFPDerived TThostFtdcTradeTypeType = '3' // 期转现衍生成交
const THOST_FTDC_TRDT_OTC TThostFtdcTradeTypeType = '2' // OTC成交
const THOST_FTDC_TRDT_OptionsExecution TThostFtdcTradeTypeType = '1' // 期权执行
const THOST_FTDC_TRDT_SplitCombination TThostFtdcTradeTypeType = '#' // 组合持仓拆分为单一持仓,初始化不应包含该类型的持仓

func (TThostFtdcTradeTypeType) String

func (e TThostFtdcTradeTypeType) String() string

type TThostFtdcTraderConnectStatusType

type TThostFtdcTraderConnectStatusType byte

交易所交易员连接状态类型

const THOST_FTDC_TCS_Connected TThostFtdcTraderConnectStatusType = '2' // 已经连接
const THOST_FTDC_TCS_NotConnected TThostFtdcTraderConnectStatusType = '1' // 没有任何连接
const THOST_FTDC_TCS_QryInstrumentSent TThostFtdcTraderConnectStatusType = '3' // 已经发出合约查询请求
const THOST_FTDC_TCS_SubPrivateFlow TThostFtdcTraderConnectStatusType = '4' // 订阅私有流

func (TThostFtdcTraderConnectStatusType) String

type TThostFtdcTraderIDType

type TThostFtdcTraderIDType [21]byte

交易所交易员代码类型

func (TThostFtdcTraderIDType) String

func (s TThostFtdcTraderIDType) String() string

type TThostFtdcTradingRightType

type TThostFtdcTradingRightType byte

交易权限类型

const THOST_FTDC_TR_Allow TThostFtdcTradingRightType = '0' // 可以交易
const THOST_FTDC_TR_CloseOnly TThostFtdcTradingRightType = '1' // 只能平仓
const THOST_FTDC_TR_Forbidden TThostFtdcTradingRightType = '2' // 不能交易

func (TThostFtdcTradingRightType) String

type TThostFtdcTradingRoleType

type TThostFtdcTradingRoleType byte

交易角色类型

const THOST_FTDC_ER_Broker TThostFtdcTradingRoleType = '1' // 代理
const THOST_FTDC_ER_Host TThostFtdcTradingRoleType = '2' // 自营
const THOST_FTDC_ER_Maker TThostFtdcTradingRoleType = '3' // 做市商

func (TThostFtdcTradingRoleType) String

func (e TThostFtdcTradingRoleType) String() string

type TThostFtdcTradingSegmentSNType

type TThostFtdcTradingSegmentSNType int32

交易阶段编号类型

type TThostFtdcTradingTypeType

type TThostFtdcTradingTypeType byte

合约交易状态分类方式类型

const THOST_FTDC_TD_ALL TThostFtdcTradingTypeType = '0' // 所有状态
const THOST_FTDC_TD_TRADE TThostFtdcTradingTypeType = '1' // 交易
const THOST_FTDC_TD_UNTRADE TThostFtdcTradingTypeType = '2' // 非交易

func (TThostFtdcTradingTypeType) String

func (e TThostFtdcTradingTypeType) String() string

type TThostFtdcTransferDirectionType

type TThostFtdcTransferDirectionType byte

移仓方向类型

const THOST_FTDC_TD_In TThostFtdcTransferDirectionType = '1' // 移入
const THOST_FTDC_TD_Out TThostFtdcTransferDirectionType = '0' // 移出

func (TThostFtdcTransferDirectionType) String

type TThostFtdcTransferStatusType

type TThostFtdcTransferStatusType byte

转账交易状态类型

const THOST_FTDC_TRFS_Normal TThostFtdcTransferStatusType = '0' // 正常
const THOST_FTDC_TRFS_Repealed TThostFtdcTransferStatusType = '1' // 被冲正

func (TThostFtdcTransferStatusType) String

type TThostFtdcTransferTypeType

type TThostFtdcTransferTypeType byte

银期转账类型类型

const THOST_FTDC_TT_BankToFuture TThostFtdcTransferTypeType = '0' // 银行转期货
const THOST_FTDC_TT_FutureToBank TThostFtdcTransferTypeType = '1' // 期货转银行

func (TThostFtdcTransferTypeType) String

type TThostFtdcTransferValidFlagType

type TThostFtdcTransferValidFlagType byte

转账有效标志类型

const THOST_FTDC_TVF_Invalid TThostFtdcTransferValidFlagType = '0' // 无效或失败
const THOST_FTDC_TVF_Reverse TThostFtdcTransferValidFlagType = '2' // 冲正
const THOST_FTDC_TVF_Valid TThostFtdcTransferValidFlagType = '1' // 有效

func (TThostFtdcTransferValidFlagType) String

type TThostFtdcTxnEndFlagType

type TThostFtdcTxnEndFlagType byte

银期转帐划转结果标志类型

const THOST_FTDC_TEF_Abnormal TThostFtdcTxnEndFlagType = '3' // 异常中
const THOST_FTDC_TEF_CommuFailedNeedManualProcess TThostFtdcTxnEndFlagType = '5' // 通讯异常 ,请人工处理
const THOST_FTDC_TEF_Failed TThostFtdcTxnEndFlagType = '2' // 失败结束
const THOST_FTDC_TEF_ManualProcessedForException TThostFtdcTxnEndFlagType = '4' // 已人工异常处理
const THOST_FTDC_TEF_NormalProcessing TThostFtdcTxnEndFlagType = '0' // 正常处理中
const THOST_FTDC_TEF_Success TThostFtdcTxnEndFlagType = '1' // 成功结束
const THOST_FTDC_TEF_SysErrorNeedManualProcess TThostFtdcTxnEndFlagType = '6' // 系统出错,请人工处理

func (TThostFtdcTxnEndFlagType) String

func (e TThostFtdcTxnEndFlagType) String() string

type TThostFtdcUOAAssetmgrTypeType

type TThostFtdcUOAAssetmgrTypeType byte

投资类型类型

const THOST_FTDC_UOAAT_Futures TThostFtdcUOAAssetmgrTypeType = '1' // 期货类
const THOST_FTDC_UOAAT_SpecialOrgan TThostFtdcUOAAssetmgrTypeType = '2' // 综合类

func (TThostFtdcUOAAssetmgrTypeType) String

type TThostFtdcUOAAutoSendType

type TThostFtdcUOAAutoSendType byte

统一开户申请自动发送类型

const THOST_FTDC_UOAA_ASNR TThostFtdcUOAAutoSendType = '2' // 自动发送,不自动接收
const THOST_FTDC_UOAA_ASR TThostFtdcUOAAutoSendType = '1' // 自动发送并接收
const THOST_FTDC_UOAA_NSAR TThostFtdcUOAAutoSendType = '3' // 不自动发送,自动接收
const THOST_FTDC_UOAA_NSR TThostFtdcUOAAutoSendType = '4' // 不自动发送,也不自动接收

func (TThostFtdcUOAAutoSendType) String

func (e TThostFtdcUOAAutoSendType) String() string

type TThostFtdcUOABrokerIDType

type TThostFtdcUOABrokerIDType [11]byte

境外中介机构ID类型

func (TThostFtdcUOABrokerIDType) String

func (s TThostFtdcUOABrokerIDType) String() string

type TThostFtdcUOACountryCodeType

type TThostFtdcUOACountryCodeType [11]byte

国家代码类型

func (TThostFtdcUOACountryCodeType) String

type TThostFtdcUOAEMailType

type TThostFtdcUOAEMailType [101]byte

电子邮箱类型

func (TThostFtdcUOAEMailType) String

func (s TThostFtdcUOAEMailType) String() string

type TThostFtdcUOAIdCardTypeType

type TThostFtdcUOAIdCardTypeType [3]byte

统一开户证件类型类型

func (TThostFtdcUOAIdCardTypeType) String

type TThostFtdcUOAOrganTypeType

type TThostFtdcUOAOrganTypeType [11]byte

单位性质类型

func (TThostFtdcUOAOrganTypeType) String

type TThostFtdcUOAProcessStatusType

type TThostFtdcUOAProcessStatusType [3]byte

流程状态类型

func (TThostFtdcUOAProcessStatusType) String

type TThostFtdcUOAZipCodeType

type TThostFtdcUOAZipCodeType [11]byte

邮政编码类型

func (TThostFtdcUOAZipCodeType) String

func (s TThostFtdcUOAZipCodeType) String() string

type TThostFtdcUOMType

type TThostFtdcUOMType [11]byte

计量单位类型

func (TThostFtdcUOMType) String

func (s TThostFtdcUOMType) String() string

type TThostFtdcURLLinkType

type TThostFtdcURLLinkType [201]byte

WEB地址类型

func (TThostFtdcURLLinkType) String

func (s TThostFtdcURLLinkType) String() string

type TThostFtdcUnderlyingMultipleType

type TThostFtdcUnderlyingMultipleType float64

基础商品乘数类型

func (TThostFtdcUnderlyingMultipleType) String

type TThostFtdcUpdateFlagType

type TThostFtdcUpdateFlagType byte

更新状态类型

const THOST_FTDC_UF_Cancel TThostFtdcUpdateFlagType = '5' // 已丢弃
const THOST_FTDC_UF_Fail TThostFtdcUpdateFlagType = '2' // 更新全部信息失败
const THOST_FTDC_UF_NoUpdate TThostFtdcUpdateFlagType = '0' // 未更新
const THOST_FTDC_UF_Success TThostFtdcUpdateFlagType = '1' // 更新全部信息成功
const THOST_FTDC_UF_TCFail TThostFtdcUpdateFlagType = '4' // 更新交易编码失败
const THOST_FTDC_UF_TCSuccess TThostFtdcUpdateFlagType = '3' // 更新交易编码成功

func (TThostFtdcUpdateFlagType) String

func (e TThostFtdcUpdateFlagType) String() string

type TThostFtdcUploadModeType

type TThostFtdcUploadModeType [21]byte

上传文件类型类型

func (TThostFtdcUploadModeType) String

func (s TThostFtdcUploadModeType) String() string

type TThostFtdcUseAmtType

type TThostFtdcUseAmtType [20]byte

银行可用余额类型

func (TThostFtdcUseAmtType) String

func (s TThostFtdcUseAmtType) String() string

type TThostFtdcUsedStatusType

type TThostFtdcUsedStatusType byte

生效状态类型

const THOST_FTDC_CHU_Fail TThostFtdcUsedStatusType = '2' // 生效失败
const THOST_FTDC_CHU_Unused TThostFtdcUsedStatusType = '0' // 未生效
const THOST_FTDC_CHU_Used TThostFtdcUsedStatusType = '1' // 已生效

func (TThostFtdcUsedStatusType) String

func (e TThostFtdcUsedStatusType) String() string

type TThostFtdcUserEventInfoType

type TThostFtdcUserEventInfoType [1025]byte

用户事件信息类型

func (TThostFtdcUserEventInfoType) String

type TThostFtdcUserEventTypeType

type TThostFtdcUserEventTypeType byte

用户事件类型类型

const THOST_FTDC_UET_Authenticate TThostFtdcUserEventTypeType = '6' // 客户端认证
const THOST_FTDC_UET_Login TThostFtdcUserEventTypeType = '1' // 登录
const THOST_FTDC_UET_Logout TThostFtdcUserEventTypeType = '2' // 登出
const THOST_FTDC_UET_Other TThostFtdcUserEventTypeType = '9' // 其他
const THOST_FTDC_UET_SubmitSysInfo TThostFtdcUserEventTypeType = '7' // 终端信息上报
const THOST_FTDC_UET_Trading TThostFtdcUserEventTypeType = '3' // CTP校验通过
const THOST_FTDC_UET_TradingError TThostFtdcUserEventTypeType = '4' // CTP校验失败
const THOST_FTDC_UET_Transfer TThostFtdcUserEventTypeType = '8' // 转账
const THOST_FTDC_UET_UpdatePassword TThostFtdcUserEventTypeType = '5' // 修改密码

func (TThostFtdcUserEventTypeType) String

type TThostFtdcUserIDType

type TThostFtdcUserIDType [16]byte

用户代码类型

func (TThostFtdcUserIDType) String

func (s TThostFtdcUserIDType) String() string

type TThostFtdcUserNameType

type TThostFtdcUserNameType [81]byte

用户名称类型

func (TThostFtdcUserNameType) String

func (s TThostFtdcUserNameType) String() string

type TThostFtdcUserProductIDType

type TThostFtdcUserProductIDType [33]byte

产品标识类型

func (TThostFtdcUserProductIDType) String

type TThostFtdcUserProductMemoType

type TThostFtdcUserProductMemoType [129]byte

产品说明类型

func (TThostFtdcUserProductMemoType) String

type TThostFtdcUserProductNameType

type TThostFtdcUserProductNameType [65]byte

产品名称类型

func (TThostFtdcUserProductNameType) String

type TThostFtdcUserRangeType

type TThostFtdcUserRangeType byte

操作员范围类型

const THOST_FTDC_UR_All TThostFtdcUserRangeType = '0' // 所有
const THOST_FTDC_UR_Single TThostFtdcUserRangeType = '1' // 单一操作员

func (TThostFtdcUserRangeType) String

func (e TThostFtdcUserRangeType) String() string

type TThostFtdcUserRightTypeType

type TThostFtdcUserRightTypeType byte

客户权限类型类型

const THOST_FTDC_URT_ConditionOrder TThostFtdcUserRightTypeType = '5' // 条件单
const THOST_FTDC_URT_EMail TThostFtdcUserRightTypeType = '3' // 邮寄结算单
const THOST_FTDC_URT_Fax TThostFtdcUserRightTypeType = '4' // 传真结算单
const THOST_FTDC_URT_Logon TThostFtdcUserRightTypeType = '1' // 登录
const THOST_FTDC_URT_Transfer TThostFtdcUserRightTypeType = '2' // 银期转帐

func (TThostFtdcUserRightTypeType) String

type TThostFtdcUserTextSeqType

type TThostFtdcUserTextSeqType int32

用户短信验证码的编号类型

type TThostFtdcUserTypeType

type TThostFtdcUserTypeType byte

用户类型类型

const THOST_FTDC_UT_Investor TThostFtdcUserTypeType = '0' // 投资者
const THOST_FTDC_UT_Operator TThostFtdcUserTypeType = '1' // 操作员
const THOST_FTDC_UT_SuperUser TThostFtdcUserTypeType = '2' // 管理员

func (TThostFtdcUserTypeType) String

func (e TThostFtdcUserTypeType) String() string

type TThostFtdcValueMethodType

type TThostFtdcValueMethodType byte

取值方式类型

const THOST_FTDC_VM_Absolute TThostFtdcValueMethodType = '0' // 按绝对值
const THOST_FTDC_VM_Ratio TThostFtdcValueMethodType = '1' // 按比率

func (TThostFtdcValueMethodType) String

func (e TThostFtdcValueMethodType) String() string

type TThostFtdcVersionType

type TThostFtdcVersionType [4]byte

版本号类型

func (TThostFtdcVersionType) String

func (s TThostFtdcVersionType) String() string

type TThostFtdcVirBankAccTypeType

type TThostFtdcVirBankAccTypeType byte

银行帐户类型类型

const THOST_FTDC_VBAT_BankBook TThostFtdcVirBankAccTypeType = '1' // 存折
const THOST_FTDC_VBAT_BankCard TThostFtdcVirBankAccTypeType = '2' // 储蓄卡
const THOST_FTDC_VBAT_CreditCard TThostFtdcVirBankAccTypeType = '3' // 信用卡

func (TThostFtdcVirBankAccTypeType) String

type TThostFtdcVirDealStatusType

type TThostFtdcVirDealStatusType byte

处理状态类型

const THOST_FTDC_VDS_DeaclSucceed TThostFtdcVirDealStatusType = '2' // 处理成功
const THOST_FTDC_VDS_Dealing TThostFtdcVirDealStatusType = '1' // 正在处理

func (TThostFtdcVirDealStatusType) String

type TThostFtdcVirTradeStatusType

type TThostFtdcVirTradeStatusType byte

交易状态类型

const THOST_FTDC_VTS_Exception TThostFtdcVirTradeStatusType = '3' // 异常中
const THOST_FTDC_VTS_FailedEND TThostFtdcVirTradeStatusType = '2' // 失败结束
const THOST_FTDC_VTS_ManualDeal TThostFtdcVirTradeStatusType = '4' // 已人工异常处理
const THOST_FTDC_VTS_MesException TThostFtdcVirTradeStatusType = '5' // 通讯异常 ,请人工处理
const THOST_FTDC_VTS_NaturalDeal TThostFtdcVirTradeStatusType = '0' // 正常处理中
const THOST_FTDC_VTS_SucceedEnd TThostFtdcVirTradeStatusType = '1' // 成功结束
const THOST_FTDC_VTS_SysException TThostFtdcVirTradeStatusType = '6' // 系统出错,请人工处理

func (TThostFtdcVirTradeStatusType) String

type TThostFtdcVirementAvailAbilityType

type TThostFtdcVirementAvailAbilityType byte

有效标志类型

const THOST_FTDC_VAA_AvailAbility TThostFtdcVirementAvailAbilityType = '1' // 有效
const THOST_FTDC_VAA_NoAvailAbility TThostFtdcVirementAvailAbilityType = '0' // 未确认
const THOST_FTDC_VAA_Repeal TThostFtdcVirementAvailAbilityType = '2' // 冲正

func (TThostFtdcVirementAvailAbilityType) String

type TThostFtdcVirementStatusType

type TThostFtdcVirementStatusType byte

银行帐户类型类型

const THOST_FTDC_VMS_Canceled TThostFtdcVirementStatusType = '9' // 销户
const THOST_FTDC_VMS_Natural TThostFtdcVirementStatusType = '0' // 正常

func (TThostFtdcVirementStatusType) String

type TThostFtdcVirementTradeCodeType

type TThostFtdcVirementTradeCodeType string

交易代码类型

const THOST_FTDC_VTC_BankBankToFuture TThostFtdcVirementTradeCodeType = "102001" // 银行发起银行资金转期货
const THOST_FTDC_VTC_BankFutureToBank TThostFtdcVirementTradeCodeType = "102002" // 银行发起期货资金转银行
const THOST_FTDC_VTC_FutureBankToFuture TThostFtdcVirementTradeCodeType = "202001" // 期货发起银行资金转期货
const THOST_FTDC_VTC_FutureFutureToBank TThostFtdcVirementTradeCodeType = "202002" // 期货发起期货资金转银行

func (TThostFtdcVirementTradeCodeType) String

type TThostFtdcVolumeConditionType

type TThostFtdcVolumeConditionType byte

成交量类型类型

const THOST_FTDC_VC_AV TThostFtdcVolumeConditionType = '1' // 任何数量
const THOST_FTDC_VC_CV TThostFtdcVolumeConditionType = '3' // 全部数量
const THOST_FTDC_VC_MV TThostFtdcVolumeConditionType = '2' // 最小数量

func (TThostFtdcVolumeConditionType) String

type TThostFtdcVolumeMultipleType

type TThostFtdcVolumeMultipleType int32

合约数量乘数类型

type TThostFtdcVolumeType

type TThostFtdcVolumeType int32

数量类型

type TThostFtdcWarehouseType

type TThostFtdcWarehouseType [257]byte

仓库类型

func (TThostFtdcWarehouseType) String

func (s TThostFtdcWarehouseType) String() string

type TThostFtdcWeakPasswordSourceType

type TThostFtdcWeakPasswordSourceType byte

弱密码来源类型

const THOST_FTDC_WPSR_Lib TThostFtdcWeakPasswordSourceType = '1' // 弱密码库
const THOST_FTDC_WPSR_Manual TThostFtdcWeakPasswordSourceType = '2' // 手工录入

func (TThostFtdcWeakPasswordSourceType) String

type TThostFtdcWebSiteType

type TThostFtdcWebSiteType [101]byte

网址类型

func (TThostFtdcWebSiteType) String

func (s TThostFtdcWebSiteType) String() string

type TThostFtdcWebsiteType

type TThostFtdcWebsiteType [51]byte

网站地址类型

func (TThostFtdcWebsiteType) String

func (s TThostFtdcWebsiteType) String() string

type TThostFtdcWeightType

type TThostFtdcWeightType [41]byte

公定重量类型

func (TThostFtdcWeightType) String

func (s TThostFtdcWeightType) String() string

type TThostFtdcWithDrawParamIDType added in v2.0.8

type TThostFtdcWithDrawParamIDType byte

可提参数代码类型

const THOST_FTDC_WDPID_CashIn TThostFtdcWithDrawParamIDType = 'C' // 权利金收支是否可提 1 代表可提 0 不可提

func (TThostFtdcWithDrawParamIDType) String added in v2.0.8

type TThostFtdcWithDrawParamValueType added in v2.0.8

type TThostFtdcWithDrawParamValueType [41]byte

可提控制参数内容类型

func (TThostFtdcWithDrawParamValueType) String added in v2.0.8

type TThostFtdcWorkPlaceType

type TThostFtdcWorkPlaceType [101]byte

工作单位类型

func (TThostFtdcWorkPlaceType) String

func (s TThostFtdcWorkPlaceType) String() string

type TThostFtdcYearType

type TThostFtdcYearType int32

年份类型

type TThostFtdcYesNoIndicatorType

type TThostFtdcYesNoIndicatorType byte

是或否标识类型

const THOST_FTDC_YNI_No TThostFtdcYesNoIndicatorType = '1' // 否
const THOST_FTDC_YNI_Yes TThostFtdcYesNoIndicatorType = '0' // 是

func (TThostFtdcYesNoIndicatorType) String

type TThostFtdcYieldlyType

type TThostFtdcYieldlyType [41]byte

产地类型

func (TThostFtdcYieldlyType) String

func (s TThostFtdcYieldlyType) String() string

type TThostFtdcZipCodeType

type TThostFtdcZipCodeType [7]byte

邮政编码类型

func (TThostFtdcZipCodeType) String

func (s TThostFtdcZipCodeType) String() string

type Trade

type Trade struct {
	Version string

	// //////////////////////////////////////////////////////////////////////
	OnFrontConnected func()
	// 当客户端与交易后台通信连接断开时,该方法被调用。当发生这个情况后,API会自动重新连接,客户端可不做处理。
	OnFrontDisconnected func(nReason int)
	// 心跳超时警告。当长时间未收到报文时,该方法被调用。
	OnHeartBeatWarning func(nTimeLapse int)
	// 客户端认证响应
	OnRspAuthenticate func(pRspAuthenticateField *CThostFtdcRspAuthenticateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 登录请求响应
	OnRspUserLogin func(pRspUserLogin *CThostFtdcRspUserLoginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 登出请求响应
	OnRspUserLogout func(pUserLogout *CThostFtdcUserLogoutField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 用户口令更新请求响应
	OnRspUserPasswordUpdate func(pUserPasswordUpdate *CThostFtdcUserPasswordUpdateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 资金账户口令更新请求响应
	OnRspTradingAccountPasswordUpdate func(pTradingAccountPasswordUpdate *CThostFtdcTradingAccountPasswordUpdateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 查询用户当前支持的认证模式的回复
	OnRspUserAuthMethod func(pRspUserAuthMethod *CThostFtdcRspUserAuthMethodField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 获取图形验证码请求的回复
	OnRspGenUserCaptcha func(pRspGenUserCaptcha *CThostFtdcRspGenUserCaptchaField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 获取短信验证码请求的回复
	OnRspGenUserText func(pRspGenUserText *CThostFtdcRspGenUserTextField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 报单录入请求响应
	OnRspOrderInsert func(pInputOrder *CThostFtdcInputOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 预埋单录入请求响应
	OnRspParkedOrderInsert func(pParkedOrder *CThostFtdcParkedOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 预埋撤单录入请求响应
	OnRspParkedOrderAction func(pParkedOrderAction *CThostFtdcParkedOrderActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 报单操作请求响应
	OnRspOrderAction func(pInputOrderAction *CThostFtdcInputOrderActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 查询最大报单数量响应
	OnRspQryMaxOrderVolume func(pQryMaxOrderVolume *CThostFtdcQryMaxOrderVolumeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者结算结果确认响应
	OnRspSettlementInfoConfirm func(pSettlementInfoConfirm *CThostFtdcSettlementInfoConfirmField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 删除预埋单响应
	OnRspRemoveParkedOrder func(pRemoveParkedOrder *CThostFtdcRemoveParkedOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 删除预埋撤单响应
	OnRspRemoveParkedOrderAction func(pRemoveParkedOrderAction *CThostFtdcRemoveParkedOrderActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 执行宣告录入请求响应
	OnRspExecOrderInsert func(pInputExecOrder *CThostFtdcInputExecOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 执行宣告操作请求响应
	OnRspExecOrderAction func(pInputExecOrderAction *CThostFtdcInputExecOrderActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 询价录入请求响应
	OnRspForQuoteInsert func(pInputForQuote *CThostFtdcInputForQuoteField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 报价录入请求响应
	OnRspQuoteInsert func(pInputQuote *CThostFtdcInputQuoteField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 报价操作请求响应
	OnRspQuoteAction func(pInputQuoteAction *CThostFtdcInputQuoteActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 批量报单操作请求响应
	OnRspBatchOrderAction func(pInputBatchOrderAction *CThostFtdcInputBatchOrderActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 期权自对冲录入请求响应
	OnRspOptionSelfCloseInsert func(pInputOptionSelfClose *CThostFtdcInputOptionSelfCloseField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 期权自对冲操作请求响应
	OnRspOptionSelfCloseAction func(pInputOptionSelfCloseAction *CThostFtdcInputOptionSelfCloseActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 申请组合录入请求响应
	OnRspCombActionInsert func(pInputCombAction *CThostFtdcInputCombActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询报单响应
	OnRspQryOrder func(pOrder *CThostFtdcOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询成交响应
	OnRspQryTrade func(pTrade *CThostFtdcTradeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资者持仓响应
	OnRspQryInvestorPosition func(pInvestorPosition *CThostFtdcInvestorPositionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询资金账户响应
	OnRspQryTradingAccount func(pTradingAccount *CThostFtdcTradingAccountField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资者响应
	OnRspQryInvestor func(pInvestor *CThostFtdcInvestorField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询交易编码响应
	OnRspQryTradingCode func(pTradingCode *CThostFtdcTradingCodeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询合约保证金率响应
	OnRspQryInstrumentMarginRate func(pInstrumentMarginRate *CThostFtdcInstrumentMarginRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询合约手续费率响应
	OnRspQryInstrumentCommissionRate func(pInstrumentCommissionRate *CThostFtdcInstrumentCommissionRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询交易所响应
	OnRspQryExchange func(pExchange *CThostFtdcExchangeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询产品响应
	OnRspQryProduct func(pProduct *CThostFtdcProductField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询合约响应
	OnRspQryInstrument func(pInstrument *CThostFtdcInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询行情响应
	OnRspQryDepthMarketData func(pDepthMarketData *CThostFtdcDepthMarketDataField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询交易员报盘机响应
	OnRspQryTraderOffer func(pTraderOffer *CThostFtdcTraderOfferField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资者结算结果响应
	OnRspQrySettlementInfo func(pSettlementInfo *CThostFtdcSettlementInfoField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询转帐银行响应
	OnRspQryTransferBank func(pTransferBank *CThostFtdcTransferBankField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资者持仓明细响应
	OnRspQryInvestorPositionDetail func(pInvestorPositionDetail *CThostFtdcInvestorPositionDetailField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询客户通知响应
	OnRspQryNotice func(pNotice *CThostFtdcNoticeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询结算信息确认响应
	OnRspQrySettlementInfoConfirm func(pSettlementInfoConfirm *CThostFtdcSettlementInfoConfirmField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资者持仓明细响应
	OnRspQryInvestorPositionCombineDetail func(pInvestorPositionCombineDetail *CThostFtdcInvestorPositionCombineDetailField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 查询保证金监管系统经纪公司资金账户密钥响应
	OnRspQryCFMMCTradingAccountKey func(pCFMMCTradingAccountKey *CThostFtdcCFMMCTradingAccountKeyField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询仓单折抵信息响应
	OnRspQryEWarrantOffset func(pEWarrantOffset *CThostFtdcEWarrantOffsetField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资者品种/跨品种保证金响应
	OnRspQryInvestorProductGroupMargin func(pInvestorProductGroupMargin *CThostFtdcInvestorProductGroupMarginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询交易所保证金率响应
	OnRspQryExchangeMarginRate func(pExchangeMarginRate *CThostFtdcExchangeMarginRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询交易所调整保证金率响应
	OnRspQryExchangeMarginRateAdjust func(pExchangeMarginRateAdjust *CThostFtdcExchangeMarginRateAdjustField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询汇率响应
	OnRspQryExchangeRate func(pExchangeRate *CThostFtdcExchangeRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询二级代理操作员银期权限响应
	OnRspQrySecAgentACIDMap func(pSecAgentACIDMap *CThostFtdcSecAgentACIDMapField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询产品报价汇率
	OnRspQryProductExchRate func(pProductExchRate *CThostFtdcProductExchRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询产品组
	OnRspQryProductGroup func(pProductGroup *CThostFtdcProductGroupField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询做市商合约手续费率响应
	OnRspQryMMInstrumentCommissionRate func(pMMInstrumentCommissionRate *CThostFtdcMMInstrumentCommissionRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询做市商期权合约手续费响应
	OnRspQryMMOptionInstrCommRate func(pMMOptionInstrCommRate *CThostFtdcMMOptionInstrCommRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询报单手续费响应
	OnRspQryInstrumentOrderCommRate func(pInstrumentOrderCommRate *CThostFtdcInstrumentOrderCommRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询资金账户响应
	OnRspQrySecAgentTradingAccount func(pTradingAccount *CThostFtdcTradingAccountField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询二级代理商资金校验模式响应
	OnRspQrySecAgentCheckMode func(pSecAgentCheckMode *CThostFtdcSecAgentCheckModeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询二级代理商信息响应
	OnRspQrySecAgentTradeInfo func(pSecAgentTradeInfo *CThostFtdcSecAgentTradeInfoField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询期权交易成本响应
	OnRspQryOptionInstrTradeCost func(pOptionInstrTradeCost *CThostFtdcOptionInstrTradeCostField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询期权合约手续费响应
	OnRspQryOptionInstrCommRate func(pOptionInstrCommRate *CThostFtdcOptionInstrCommRateField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询执行宣告响应
	OnRspQryExecOrder func(pExecOrder *CThostFtdcExecOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询询价响应
	OnRspQryForQuote func(pForQuote *CThostFtdcForQuoteField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询报价响应
	OnRspQryQuote func(pQuote *CThostFtdcQuoteField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询期权自对冲响应
	OnRspQryOptionSelfClose func(pOptionSelfClose *CThostFtdcOptionSelfCloseField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询投资单元响应
	OnRspQryInvestUnit func(pInvestUnit *CThostFtdcInvestUnitField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询组合合约安全系数响应
	OnRspQryCombInstrumentGuard func(pCombInstrumentGuard *CThostFtdcCombInstrumentGuardField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询申请组合响应
	OnRspQryCombAction func(pCombAction *CThostFtdcCombActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询转帐流水响应
	OnRspQryTransferSerial func(pTransferSerial *CThostFtdcTransferSerialField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询银期签约关系响应
	OnRspQryAccountregister func(pAccountregister *CThostFtdcAccountregisterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 错误应答
	OnRspError func(pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 报单通知
	OnRtnOrder func(pOrder *CThostFtdcOrderField)
	// 成交通知
	OnRtnTrade func(pTrade *CThostFtdcTradeField)
	// 报单录入错误回报
	OnErrRtnOrderInsert func(pInputOrder *CThostFtdcInputOrderField, pRspInfo *CThostFtdcRspInfoField)
	// 报单操作错误回报
	OnErrRtnOrderAction func(pOrderAction *CThostFtdcOrderActionField, pRspInfo *CThostFtdcRspInfoField)
	// 合约交易状态通知
	OnRtnInstrumentStatus func(pInstrumentStatus *CThostFtdcInstrumentStatusField)
	// 交易所公告通知
	OnRtnBulletin func(pBulletin *CThostFtdcBulletinField)
	// 交易通知
	OnRtnTradingNotice func(pTradingNoticeInfo *CThostFtdcTradingNoticeInfoField)
	// 提示条件单校验错误
	OnRtnErrorConditionalOrder func(pErrorConditionalOrder *CThostFtdcErrorConditionalOrderField)
	// 执行宣告通知
	OnRtnExecOrder func(pExecOrder *CThostFtdcExecOrderField)
	// 执行宣告录入错误回报
	OnErrRtnExecOrderInsert func(pInputExecOrder *CThostFtdcInputExecOrderField, pRspInfo *CThostFtdcRspInfoField)
	// 执行宣告操作错误回报
	OnErrRtnExecOrderAction func(pExecOrderAction *CThostFtdcExecOrderActionField, pRspInfo *CThostFtdcRspInfoField)
	// 询价录入错误回报
	OnErrRtnForQuoteInsert func(pInputForQuote *CThostFtdcInputForQuoteField, pRspInfo *CThostFtdcRspInfoField)
	// 报价通知
	OnRtnQuote func(pQuote *CThostFtdcQuoteField)
	// 报价录入错误回报
	OnErrRtnQuoteInsert func(pInputQuote *CThostFtdcInputQuoteField, pRspInfo *CThostFtdcRspInfoField)
	// 报价操作错误回报
	OnErrRtnQuoteAction func(pQuoteAction *CThostFtdcQuoteActionField, pRspInfo *CThostFtdcRspInfoField)
	// 询价通知
	OnRtnForQuoteRsp func(pForQuoteRsp *CThostFtdcForQuoteRspField)
	// 保证金监控中心用户令牌
	OnRtnCFMMCTradingAccountToken func(pCFMMCTradingAccountToken *CThostFtdcCFMMCTradingAccountTokenField)
	// 批量报单操作错误回报
	OnErrRtnBatchOrderAction func(pBatchOrderAction *CThostFtdcBatchOrderActionField, pRspInfo *CThostFtdcRspInfoField)
	// 期权自对冲通知
	OnRtnOptionSelfClose func(pOptionSelfClose *CThostFtdcOptionSelfCloseField)
	// 期权自对冲录入错误回报
	OnErrRtnOptionSelfCloseInsert func(pInputOptionSelfClose *CThostFtdcInputOptionSelfCloseField, pRspInfo *CThostFtdcRspInfoField)
	// 期权自对冲操作错误回报
	OnErrRtnOptionSelfCloseAction func(pOptionSelfCloseAction *CThostFtdcOptionSelfCloseActionField, pRspInfo *CThostFtdcRspInfoField)
	// 申请组合通知
	OnRtnCombAction func(pCombAction *CThostFtdcCombActionField)
	// 申请组合录入错误回报
	OnErrRtnCombActionInsert func(pInputCombAction *CThostFtdcInputCombActionField, pRspInfo *CThostFtdcRspInfoField)
	// 请求查询签约银行响应
	OnRspQryContractBank func(pContractBank *CThostFtdcContractBankField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询预埋单响应
	OnRspQryParkedOrder func(pParkedOrder *CThostFtdcParkedOrderField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询预埋撤单响应
	OnRspQryParkedOrderAction func(pParkedOrderAction *CThostFtdcParkedOrderActionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询交易通知响应
	OnRspQryTradingNotice func(pTradingNotice *CThostFtdcTradingNoticeField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询经纪公司交易参数响应
	OnRspQryBrokerTradingParams func(pBrokerTradingParams *CThostFtdcBrokerTradingParamsField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询经纪公司交易算法响应
	OnRspQryBrokerTradingAlgos func(pBrokerTradingAlgos *CThostFtdcBrokerTradingAlgosField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求查询监控中心用户令牌
	OnRspQueryCFMMCTradingAccountToken func(pQueryCFMMCTradingAccountToken *CThostFtdcQueryCFMMCTradingAccountTokenField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 银行发起银行资金转期货通知
	OnRtnFromBankToFutureByBank func(pRspTransfer *CThostFtdcRspTransferField)
	// 银行发起期货资金转银行通知
	OnRtnFromFutureToBankByBank func(pRspTransfer *CThostFtdcRspTransferField)
	// 银行发起冲正银行转期货通知
	OnRtnRepealFromBankToFutureByBank func(pRspRepeal *CThostFtdcRspRepealField)
	// 银行发起冲正期货转银行通知
	OnRtnRepealFromFutureToBankByBank func(pRspRepeal *CThostFtdcRspRepealField)
	// 期货发起银行资金转期货通知
	OnRtnFromBankToFutureByFuture func(pRspTransfer *CThostFtdcRspTransferField)
	// 期货发起期货资金转银行通知
	OnRtnFromFutureToBankByFuture func(pRspTransfer *CThostFtdcRspTransferField)
	// 系统运行时期货端手工发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
	OnRtnRepealFromBankToFutureByFutureManual func(pRspRepeal *CThostFtdcRspRepealField)
	// 系统运行时期货端手工发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
	OnRtnRepealFromFutureToBankByFutureManual func(pRspRepeal *CThostFtdcRspRepealField)
	// 期货发起查询银行余额通知
	OnRtnQueryBankBalanceByFuture func(pNotifyQueryAccount *CThostFtdcNotifyQueryAccountField)
	// 期货发起银行资金转期货错误回报
	OnErrRtnBankToFutureByFuture func(pReqTransfer *CThostFtdcReqTransferField, pRspInfo *CThostFtdcRspInfoField)
	// 期货发起期货资金转银行错误回报
	OnErrRtnFutureToBankByFuture func(pReqTransfer *CThostFtdcReqTransferField, pRspInfo *CThostFtdcRspInfoField)
	// 系统运行时期货端手工发起冲正银行转期货错误回报
	OnErrRtnRepealBankToFutureByFutureManual func(pReqRepeal *CThostFtdcReqRepealField, pRspInfo *CThostFtdcRspInfoField)
	// 系统运行时期货端手工发起冲正期货转银行错误回报
	OnErrRtnRepealFutureToBankByFutureManual func(pReqRepeal *CThostFtdcReqRepealField, pRspInfo *CThostFtdcRspInfoField)
	// 期货发起查询银行余额错误回报
	OnErrRtnQueryBankBalanceByFuture func(pReqQueryAccount *CThostFtdcReqQueryAccountField, pRspInfo *CThostFtdcRspInfoField)
	// 期货发起冲正银行转期货请求,银行处理完毕后报盘发回的通知
	OnRtnRepealFromBankToFutureByFuture func(pRspRepeal *CThostFtdcRspRepealField)
	// 期货发起冲正期货转银行请求,银行处理完毕后报盘发回的通知
	OnRtnRepealFromFutureToBankByFuture func(pRspRepeal *CThostFtdcRspRepealField)
	// 期货发起银行资金转期货应答
	OnRspFromBankToFutureByFuture func(pReqTransfer *CThostFtdcReqTransferField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 期货发起期货资金转银行应答
	OnRspFromFutureToBankByFuture func(pReqTransfer *CThostFtdcReqTransferField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 期货发起查询银行余额应答
	OnRspQueryBankAccountMoneyByFuture func(pReqQueryAccount *CThostFtdcReqQueryAccountField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 银行发起银期开户通知
	OnRtnOpenAccountByBank func(pOpenAccount *CThostFtdcOpenAccountField)
	// 银行发起银期销户通知
	OnRtnCancelAccountByBank func(pCancelAccount *CThostFtdcCancelAccountField)
	// 银行发起变更银行账号通知
	OnRtnChangeAccountByBank func(pChangeAccount *CThostFtdcChangeAccountField)
	// 请求查询分类合约响应
	OnRspQryClassifiedInstrument func(pInstrument *CThostFtdcInstrumentField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 请求组合优惠比例响应
	OnRspQryCombPromotionParam func(pCombPromotionParam *CThostFtdcCombPromotionParamField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者风险结算持仓查询响应
	OnRspQryRiskSettleInvstPosition func(pRiskSettleInvstPosition *CThostFtdcRiskSettleInvstPositionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 风险结算产品查询响应
	OnRspQryRiskSettleProductStatus func(pRiskSettleProductStatus *CThostFtdcRiskSettleProductStatusField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPBM期货合约参数查询响应
	OnRspQrySPBMFutureParameter func(pSPBMFutureParameter *CThostFtdcSPBMFutureParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPBM期权合约参数查询响应
	OnRspQrySPBMOptionParameter func(pSPBMOptionParameter *CThostFtdcSPBMOptionParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPBM品种内对锁仓折扣参数查询响应
	OnRspQrySPBMIntraParameter func(pSPBMIntraParameter *CThostFtdcSPBMIntraParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPBM跨品种抵扣参数查询响应
	OnRspQrySPBMInterParameter func(pSPBMInterParameter *CThostFtdcSPBMInterParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPBM组合保证金套餐查询响应
	OnRspQrySPBMPortfDefinition func(pSPBMPortfDefinition *CThostFtdcSPBMPortfDefinitionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者SPBM套餐选择查询响应
	OnRspQrySPBMInvestorPortfDef func(pSPBMInvestorPortfDef *CThostFtdcSPBMInvestorPortfDefField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者新型组合保证金系数查询响应
	OnRspQryInvestorPortfMarginRatio func(pInvestorPortfMarginRatio *CThostFtdcInvestorPortfMarginRatioField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者产品SPBM明细查询响应
	OnRspQryInvestorProdSPBMDetail func(pInvestorProdSPBMDetail *CThostFtdcInvestorProdSPBMDetailField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者商品组SPMM记录查询响应
	OnRspQryInvestorCommoditySPMMMargin func(pInvestorCommoditySPMMMargin *CThostFtdcInvestorCommoditySPMMMarginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者商品群SPMM记录查询响应
	OnRspQryInvestorCommodityGroupSPMMMargin func(pInvestorCommodityGroupSPMMMargin *CThostFtdcInvestorCommodityGroupSPMMMarginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPMM合约参数查询响应
	OnRspQrySPMMInstParam func(pSPMMInstParam *CThostFtdcSPMMInstParamField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPMM产品参数查询响应
	OnRspQrySPMMProductParam func(pSPMMProductParam *CThostFtdcSPMMProductParamField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// SPBM附加跨品种抵扣参数查询响应
	OnRspQrySPBMAddOnInterParameter func(pSPBMAddOnInterParameter *CThostFtdcSPBMAddOnInterParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RCAMS产品组合信息查询响应
	OnRspQryRCAMSCombProductInfo func(pRCAMSCombProductInfo *CThostFtdcRCAMSCombProductInfoField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RCAMS同合约风险对冲参数查询响应
	OnRspQryRCAMSInstrParameter func(pRCAMSInstrParameter *CThostFtdcRCAMSInstrParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RCAMS品种内风险对冲参数查询响应
	OnRspQryRCAMSIntraParameter func(pRCAMSIntraParameter *CThostFtdcRCAMSIntraParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RCAMS跨品种风险折抵参数查询响应
	OnRspQryRCAMSInterParameter func(pRCAMSInterParameter *CThostFtdcRCAMSInterParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RCAMS空头期权风险调整参数查询响应
	OnRspQryRCAMSShortOptAdjustParam func(pRCAMSShortOptAdjustParam *CThostFtdcRCAMSShortOptAdjustParamField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RCAMS策略组合持仓查询响应
	OnRspQryRCAMSInvestorCombPosition func(pRCAMSInvestorCombPosition *CThostFtdcRCAMSInvestorCombPositionField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者品种RCAMS保证金查询响应
	OnRspQryInvestorProdRCAMSMargin func(pInvestorProdRCAMSMargin *CThostFtdcInvestorProdRCAMSMarginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RULE合约保证金参数查询响应
	OnRspQryRULEInstrParameter func(pRULEInstrParameter *CThostFtdcRULEInstrParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RULE品种内对锁仓折扣参数查询响应
	OnRspQryRULEIntraParameter func(pRULEIntraParameter *CThostFtdcRULEIntraParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// RULE跨品种抵扣参数查询响应
	OnRspQryRULEInterParameter func(pRULEInterParameter *CThostFtdcRULEInterParameterField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// 投资者产品RULE保证金查询响应
	OnRspQryInvestorProdRULEMargin func(pInvestorProdRULEMargin *CThostFtdcInvestorProdRULEMarginField, pRspInfo *CThostFtdcRspInfoField, nRequestID int, bIsLast bool)
	// contains filtered or unexported fields
}

func NewTrade

func NewTrade() *Trade

func (*Trade) Init

func (t *Trade) Init()

初始化

func (*Trade) Join

func (t *Trade) Join() int

等待接口线程结束运行

func (*Trade) RegisterFensUserInfo

func (t *Trade) RegisterFensUserInfo(pFensUserInfo *CThostFtdcFensUserInfoField)

注册名字服务器用户信息

func (*Trade) RegisterFront

func (t *Trade) RegisterFront(pszFrontAddress string)

注册前置机网络地址

func (*Trade) RegisterNameServer

func (t *Trade) RegisterNameServer(pszNsAddress string)

@remark RegisterNameServer优先于RegisterFront

func (*Trade) RegisterSpi

func (t *Trade) RegisterSpi(pSpi unsafe.Pointer)

注册回调接口

func (*Trade) RegisterUserSystemInfo

func (t *Trade) RegisterUserSystemInfo(pUserSystemInfo *CThostFtdcUserSystemInfoField) int

注册用户终端信息,用于中继服务器多连接模式

func (*Trade) Release

func (t *Trade) Release()

创建TraderApi

func (*Trade) ReqAuthenticate

func (t *Trade) ReqAuthenticate(pReqAuthenticateField *CThostFtdcReqAuthenticateField, nRequestID int) int

客户端认证请求

func (*Trade) ReqBatchOrderAction

func (t *Trade) ReqBatchOrderAction(pInputBatchOrderAction *CThostFtdcInputBatchOrderActionField, nRequestID int) int

批量报单操作请求

func (*Trade) ReqCombActionInsert

func (t *Trade) ReqCombActionInsert(pInputCombAction *CThostFtdcInputCombActionField, nRequestID int) int

申请组合录入请求

func (*Trade) ReqExecOrderAction

func (t *Trade) ReqExecOrderAction(pInputExecOrderAction *CThostFtdcInputExecOrderActionField, nRequestID int) int

执行宣告操作请求

func (*Trade) ReqExecOrderInsert

func (t *Trade) ReqExecOrderInsert(pInputExecOrder *CThostFtdcInputExecOrderField, nRequestID int) int

执行宣告录入请求

func (*Trade) ReqForQuoteInsert

func (t *Trade) ReqForQuoteInsert(pInputForQuote *CThostFtdcInputForQuoteField, nRequestID int) int

询价录入请求

func (*Trade) ReqFromBankToFutureByFuture

func (t *Trade) ReqFromBankToFutureByFuture(pReqTransfer *CThostFtdcReqTransferField, nRequestID int) int

期货发起银行资金转期货请求

func (*Trade) ReqFromFutureToBankByFuture

func (t *Trade) ReqFromFutureToBankByFuture(pReqTransfer *CThostFtdcReqTransferField, nRequestID int) int

期货发起期货资金转银行请求

func (*Trade) ReqGenUserCaptcha

func (t *Trade) ReqGenUserCaptcha(pReqGenUserCaptcha *CThostFtdcReqGenUserCaptchaField, nRequestID int) int

用户发出获取图形验证码请求

func (*Trade) ReqGenUserText

func (t *Trade) ReqGenUserText(pReqGenUserText *CThostFtdcReqGenUserTextField, nRequestID int) int

用户发出获取短信验证码请求

func (*Trade) ReqOptionSelfCloseAction

func (t *Trade) ReqOptionSelfCloseAction(pInputOptionSelfCloseAction *CThostFtdcInputOptionSelfCloseActionField, nRequestID int) int

期权自对冲操作请求

func (*Trade) ReqOptionSelfCloseInsert

func (t *Trade) ReqOptionSelfCloseInsert(pInputOptionSelfClose *CThostFtdcInputOptionSelfCloseField, nRequestID int) int

期权自对冲录入请求

func (*Trade) ReqOrderAction

func (t *Trade) ReqOrderAction(pInputOrderAction *CThostFtdcInputOrderActionField, nRequestID int) int

报单操作请求

func (*Trade) ReqOrderInsert

func (t *Trade) ReqOrderInsert(pInputOrder *CThostFtdcInputOrderField, nRequestID int) int

报单录入请求

func (*Trade) ReqParkedOrderAction

func (t *Trade) ReqParkedOrderAction(pParkedOrderAction *CThostFtdcParkedOrderActionField, nRequestID int) int

预埋撤单录入请求

func (*Trade) ReqParkedOrderInsert

func (t *Trade) ReqParkedOrderInsert(pParkedOrder *CThostFtdcParkedOrderField, nRequestID int) int

预埋单录入请求

func (*Trade) ReqQryAccountregister

func (t *Trade) ReqQryAccountregister(pQryAccountregister *CThostFtdcQryAccountregisterField, nRequestID int) int

请求查询银期签约关系

func (*Trade) ReqQryBrokerTradingAlgos

func (t *Trade) ReqQryBrokerTradingAlgos(pQryBrokerTradingAlgos *CThostFtdcQryBrokerTradingAlgosField, nRequestID int) int

请求查询经纪公司交易算法

func (*Trade) ReqQryBrokerTradingParams

func (t *Trade) ReqQryBrokerTradingParams(pQryBrokerTradingParams *CThostFtdcQryBrokerTradingParamsField, nRequestID int) int

请求查询经纪公司交易参数

func (*Trade) ReqQryCFMMCTradingAccountKey

func (t *Trade) ReqQryCFMMCTradingAccountKey(pQryCFMMCTradingAccountKey *CThostFtdcQryCFMMCTradingAccountKeyField, nRequestID int) int

请求查询保证金监管系统经纪公司资金账户密钥

func (*Trade) ReqQryClassifiedInstrument

func (t *Trade) ReqQryClassifiedInstrument(pQryClassifiedInstrument *CThostFtdcQryClassifiedInstrumentField, nRequestID int) int

请求查询分类合约

func (*Trade) ReqQryCombAction

func (t *Trade) ReqQryCombAction(pQryCombAction *CThostFtdcQryCombActionField, nRequestID int) int

请求查询申请组合

func (*Trade) ReqQryCombInstrumentGuard

func (t *Trade) ReqQryCombInstrumentGuard(pQryCombInstrumentGuard *CThostFtdcQryCombInstrumentGuardField, nRequestID int) int

请求查询组合合约安全系数

func (*Trade) ReqQryCombPromotionParam

func (t *Trade) ReqQryCombPromotionParam(pQryCombPromotionParam *CThostFtdcQryCombPromotionParamField, nRequestID int) int

请求组合优惠比例

func (*Trade) ReqQryContractBank

func (t *Trade) ReqQryContractBank(pQryContractBank *CThostFtdcQryContractBankField, nRequestID int) int

请求查询签约银行

func (*Trade) ReqQryDepthMarketData

func (t *Trade) ReqQryDepthMarketData(pQryDepthMarketData *CThostFtdcQryDepthMarketDataField, nRequestID int) int

请求查询行情

func (*Trade) ReqQryEWarrantOffset

func (t *Trade) ReqQryEWarrantOffset(pQryEWarrantOffset *CThostFtdcQryEWarrantOffsetField, nRequestID int) int

请求查询仓单折抵信息

func (*Trade) ReqQryExchange

func (t *Trade) ReqQryExchange(pQryExchange *CThostFtdcQryExchangeField, nRequestID int) int

请求查询交易所

func (*Trade) ReqQryExchangeMarginRate

func (t *Trade) ReqQryExchangeMarginRate(pQryExchangeMarginRate *CThostFtdcQryExchangeMarginRateField, nRequestID int) int

请求查询交易所保证金率

func (*Trade) ReqQryExchangeMarginRateAdjust

func (t *Trade) ReqQryExchangeMarginRateAdjust(pQryExchangeMarginRateAdjust *CThostFtdcQryExchangeMarginRateAdjustField, nRequestID int) int

请求查询交易所调整保证金率

func (*Trade) ReqQryExchangeRate

func (t *Trade) ReqQryExchangeRate(pQryExchangeRate *CThostFtdcQryExchangeRateField, nRequestID int) int

请求查询汇率

func (*Trade) ReqQryExecOrder

func (t *Trade) ReqQryExecOrder(pQryExecOrder *CThostFtdcQryExecOrderField, nRequestID int) int

请求查询执行宣告

func (*Trade) ReqQryForQuote

func (t *Trade) ReqQryForQuote(pQryForQuote *CThostFtdcQryForQuoteField, nRequestID int) int

请求查询询价

func (*Trade) ReqQryInstrument

func (t *Trade) ReqQryInstrument(pQryInstrument *CThostFtdcQryInstrumentField, nRequestID int) int

请求查询合约

func (*Trade) ReqQryInstrumentCommissionRate

func (t *Trade) ReqQryInstrumentCommissionRate(pQryInstrumentCommissionRate *CThostFtdcQryInstrumentCommissionRateField, nRequestID int) int

请求查询合约手续费率

func (*Trade) ReqQryInstrumentMarginRate

func (t *Trade) ReqQryInstrumentMarginRate(pQryInstrumentMarginRate *CThostFtdcQryInstrumentMarginRateField, nRequestID int) int

请求查询合约保证金率

func (*Trade) ReqQryInstrumentOrderCommRate

func (t *Trade) ReqQryInstrumentOrderCommRate(pQryInstrumentOrderCommRate *CThostFtdcQryInstrumentOrderCommRateField, nRequestID int) int

请求查询报单手续费

func (*Trade) ReqQryInvestUnit

func (t *Trade) ReqQryInvestUnit(pQryInvestUnit *CThostFtdcQryInvestUnitField, nRequestID int) int

请求查询投资单元

func (*Trade) ReqQryInvestor

func (t *Trade) ReqQryInvestor(pQryInvestor *CThostFtdcQryInvestorField, nRequestID int) int

请求查询投资者

func (*Trade) ReqQryInvestorCommodityGroupSPMMMargin added in v2.0.8

func (t *Trade) ReqQryInvestorCommodityGroupSPMMMargin(pQryInvestorCommodityGroupSPMMMargin *CThostFtdcQryInvestorCommodityGroupSPMMMarginField, nRequestID int) int

投资者商品群SPMM记录查询

func (*Trade) ReqQryInvestorCommoditySPMMMargin added in v2.0.8

func (t *Trade) ReqQryInvestorCommoditySPMMMargin(pQryInvestorCommoditySPMMMargin *CThostFtdcQryInvestorCommoditySPMMMarginField, nRequestID int) int

投资者商品组SPMM记录查询

func (*Trade) ReqQryInvestorPortfMarginRatio

func (t *Trade) ReqQryInvestorPortfMarginRatio(pQryInvestorPortfMarginRatio *CThostFtdcQryInvestorPortfMarginRatioField, nRequestID int) int

投资者新型组合保证金系数查询

func (*Trade) ReqQryInvestorPosition

func (t *Trade) ReqQryInvestorPosition(pQryInvestorPosition *CThostFtdcQryInvestorPositionField, nRequestID int) int

请求查询投资者持仓

func (*Trade) ReqQryInvestorPositionCombineDetail

func (t *Trade) ReqQryInvestorPositionCombineDetail(pQryInvestorPositionCombineDetail *CThostFtdcQryInvestorPositionCombineDetailField, nRequestID int) int

请求查询投资者持仓明细

func (*Trade) ReqQryInvestorPositionDetail

func (t *Trade) ReqQryInvestorPositionDetail(pQryInvestorPositionDetail *CThostFtdcQryInvestorPositionDetailField, nRequestID int) int

请求查询投资者持仓明细

func (*Trade) ReqQryInvestorProdRCAMSMargin added in v2.0.8

func (t *Trade) ReqQryInvestorProdRCAMSMargin(pQryInvestorProdRCAMSMargin *CThostFtdcQryInvestorProdRCAMSMarginField, nRequestID int) int

投资者品种RCAMS保证金查询

func (*Trade) ReqQryInvestorProdRULEMargin added in v2.0.8

func (t *Trade) ReqQryInvestorProdRULEMargin(pQryInvestorProdRULEMargin *CThostFtdcQryInvestorProdRULEMarginField, nRequestID int) int

投资者产品RULE保证金查询

func (*Trade) ReqQryInvestorProdSPBMDetail

func (t *Trade) ReqQryInvestorProdSPBMDetail(pQryInvestorProdSPBMDetail *CThostFtdcQryInvestorProdSPBMDetailField, nRequestID int) int

投资者产品SPBM明细查询

func (*Trade) ReqQryInvestorProductGroupMargin

func (t *Trade) ReqQryInvestorProductGroupMargin(pQryInvestorProductGroupMargin *CThostFtdcQryInvestorProductGroupMarginField, nRequestID int) int

请求查询投资者品种/跨品种保证金

func (*Trade) ReqQryMMInstrumentCommissionRate

func (t *Trade) ReqQryMMInstrumentCommissionRate(pQryMMInstrumentCommissionRate *CThostFtdcQryMMInstrumentCommissionRateField, nRequestID int) int

请求查询做市商合约手续费率

func (*Trade) ReqQryMMOptionInstrCommRate

func (t *Trade) ReqQryMMOptionInstrCommRate(pQryMMOptionInstrCommRate *CThostFtdcQryMMOptionInstrCommRateField, nRequestID int) int

请求查询做市商期权合约手续费

func (*Trade) ReqQryMaxOrderVolume

func (t *Trade) ReqQryMaxOrderVolume(pQryMaxOrderVolume *CThostFtdcQryMaxOrderVolumeField, nRequestID int) int

查询最大报单数量请求

func (*Trade) ReqQryNotice

func (t *Trade) ReqQryNotice(pQryNotice *CThostFtdcQryNoticeField, nRequestID int) int

请求查询客户通知

func (*Trade) ReqQryOptionInstrCommRate

func (t *Trade) ReqQryOptionInstrCommRate(pQryOptionInstrCommRate *CThostFtdcQryOptionInstrCommRateField, nRequestID int) int

请求查询期权合约手续费

func (*Trade) ReqQryOptionInstrTradeCost

func (t *Trade) ReqQryOptionInstrTradeCost(pQryOptionInstrTradeCost *CThostFtdcQryOptionInstrTradeCostField, nRequestID int) int

请求查询期权交易成本

func (*Trade) ReqQryOptionSelfClose

func (t *Trade) ReqQryOptionSelfClose(pQryOptionSelfClose *CThostFtdcQryOptionSelfCloseField, nRequestID int) int

请求查询期权自对冲

func (*Trade) ReqQryOrder

func (t *Trade) ReqQryOrder(pQryOrder *CThostFtdcQryOrderField, nRequestID int) int

请求查询报单

func (*Trade) ReqQryParkedOrder

func (t *Trade) ReqQryParkedOrder(pQryParkedOrder *CThostFtdcQryParkedOrderField, nRequestID int) int

请求查询预埋单

func (*Trade) ReqQryParkedOrderAction

func (t *Trade) ReqQryParkedOrderAction(pQryParkedOrderAction *CThostFtdcQryParkedOrderActionField, nRequestID int) int

请求查询预埋撤单

func (*Trade) ReqQryProduct

func (t *Trade) ReqQryProduct(pQryProduct *CThostFtdcQryProductField, nRequestID int) int

请求查询产品

func (*Trade) ReqQryProductExchRate

func (t *Trade) ReqQryProductExchRate(pQryProductExchRate *CThostFtdcQryProductExchRateField, nRequestID int) int

请求查询产品报价汇率

func (*Trade) ReqQryProductGroup

func (t *Trade) ReqQryProductGroup(pQryProductGroup *CThostFtdcQryProductGroupField, nRequestID int) int

请求查询产品组

func (*Trade) ReqQryQuote

func (t *Trade) ReqQryQuote(pQryQuote *CThostFtdcQryQuoteField, nRequestID int) int

请求查询报价

func (*Trade) ReqQryRCAMSCombProductInfo added in v2.0.8

func (t *Trade) ReqQryRCAMSCombProductInfo(pQryRCAMSCombProductInfo *CThostFtdcQryRCAMSCombProductInfoField, nRequestID int) int

RCAMS产品组合信息查询

func (*Trade) ReqQryRCAMSInstrParameter added in v2.0.8

func (t *Trade) ReqQryRCAMSInstrParameter(pQryRCAMSInstrParameter *CThostFtdcQryRCAMSInstrParameterField, nRequestID int) int

RCAMS同合约风险对冲参数查询

func (*Trade) ReqQryRCAMSInterParameter added in v2.0.8

func (t *Trade) ReqQryRCAMSInterParameter(pQryRCAMSInterParameter *CThostFtdcQryRCAMSInterParameterField, nRequestID int) int

RCAMS跨品种风险折抵参数查询

func (*Trade) ReqQryRCAMSIntraParameter added in v2.0.8

func (t *Trade) ReqQryRCAMSIntraParameter(pQryRCAMSIntraParameter *CThostFtdcQryRCAMSIntraParameterField, nRequestID int) int

RCAMS品种内风险对冲参数查询

func (*Trade) ReqQryRCAMSInvestorCombPosition added in v2.0.8

func (t *Trade) ReqQryRCAMSInvestorCombPosition(pQryRCAMSInvestorCombPosition *CThostFtdcQryRCAMSInvestorCombPositionField, nRequestID int) int

RCAMS策略组合持仓查询

func (*Trade) ReqQryRCAMSShortOptAdjustParam added in v2.0.8

func (t *Trade) ReqQryRCAMSShortOptAdjustParam(pQryRCAMSShortOptAdjustParam *CThostFtdcQryRCAMSShortOptAdjustParamField, nRequestID int) int

RCAMS空头期权风险调整参数查询

func (*Trade) ReqQryRULEInstrParameter added in v2.0.8

func (t *Trade) ReqQryRULEInstrParameter(pQryRULEInstrParameter *CThostFtdcQryRULEInstrParameterField, nRequestID int) int

RULE合约保证金参数查询

func (*Trade) ReqQryRULEInterParameter added in v2.0.8

func (t *Trade) ReqQryRULEInterParameter(pQryRULEInterParameter *CThostFtdcQryRULEInterParameterField, nRequestID int) int

RULE跨品种抵扣参数查询

func (*Trade) ReqQryRULEIntraParameter added in v2.0.8

func (t *Trade) ReqQryRULEIntraParameter(pQryRULEIntraParameter *CThostFtdcQryRULEIntraParameterField, nRequestID int) int

RULE品种内对锁仓折扣参数查询

func (*Trade) ReqQryRiskSettleInvstPosition

func (t *Trade) ReqQryRiskSettleInvstPosition(pQryRiskSettleInvstPosition *CThostFtdcQryRiskSettleInvstPositionField, nRequestID int) int

投资者风险结算持仓查询

func (*Trade) ReqQryRiskSettleProductStatus

func (t *Trade) ReqQryRiskSettleProductStatus(pQryRiskSettleProductStatus *CThostFtdcQryRiskSettleProductStatusField, nRequestID int) int

风险结算产品查询

func (*Trade) ReqQrySPBMAddOnInterParameter added in v2.0.8

func (t *Trade) ReqQrySPBMAddOnInterParameter(pQrySPBMAddOnInterParameter *CThostFtdcQrySPBMAddOnInterParameterField, nRequestID int) int

SPBM附加跨品种抵扣参数查询

func (*Trade) ReqQrySPBMFutureParameter

func (t *Trade) ReqQrySPBMFutureParameter(pQrySPBMFutureParameter *CThostFtdcQrySPBMFutureParameterField, nRequestID int) int

SPBM期货合约参数查询

func (*Trade) ReqQrySPBMInterParameter

func (t *Trade) ReqQrySPBMInterParameter(pQrySPBMInterParameter *CThostFtdcQrySPBMInterParameterField, nRequestID int) int

SPBM跨品种抵扣参数查询

func (*Trade) ReqQrySPBMIntraParameter

func (t *Trade) ReqQrySPBMIntraParameter(pQrySPBMIntraParameter *CThostFtdcQrySPBMIntraParameterField, nRequestID int) int

SPBM品种内对锁仓折扣参数查询

func (*Trade) ReqQrySPBMInvestorPortfDef

func (t *Trade) ReqQrySPBMInvestorPortfDef(pQrySPBMInvestorPortfDef *CThostFtdcQrySPBMInvestorPortfDefField, nRequestID int) int

投资者SPBM套餐选择查询

func (*Trade) ReqQrySPBMOptionParameter

func (t *Trade) ReqQrySPBMOptionParameter(pQrySPBMOptionParameter *CThostFtdcQrySPBMOptionParameterField, nRequestID int) int

SPBM期权合约参数查询

func (*Trade) ReqQrySPBMPortfDefinition

func (t *Trade) ReqQrySPBMPortfDefinition(pQrySPBMPortfDefinition *CThostFtdcQrySPBMPortfDefinitionField, nRequestID int) int

SPBM组合保证金套餐查询

func (*Trade) ReqQrySPMMInstParam added in v2.0.8

func (t *Trade) ReqQrySPMMInstParam(pQrySPMMInstParam *CThostFtdcQrySPMMInstParamField, nRequestID int) int

SPMM合约参数查询

func (*Trade) ReqQrySPMMProductParam added in v2.0.8

func (t *Trade) ReqQrySPMMProductParam(pQrySPMMProductParam *CThostFtdcQrySPMMProductParamField, nRequestID int) int

SPMM产品参数查询

func (*Trade) ReqQrySecAgentACIDMap

func (t *Trade) ReqQrySecAgentACIDMap(pQrySecAgentACIDMap *CThostFtdcQrySecAgentACIDMapField, nRequestID int) int

请求查询二级代理操作员银期权限

func (*Trade) ReqQrySecAgentCheckMode

func (t *Trade) ReqQrySecAgentCheckMode(pQrySecAgentCheckMode *CThostFtdcQrySecAgentCheckModeField, nRequestID int) int

请求查询二级代理商资金校验模式

func (*Trade) ReqQrySecAgentTradeInfo

func (t *Trade) ReqQrySecAgentTradeInfo(pQrySecAgentTradeInfo *CThostFtdcQrySecAgentTradeInfoField, nRequestID int) int

请求查询二级代理商信息

func (*Trade) ReqQrySecAgentTradingAccount

func (t *Trade) ReqQrySecAgentTradingAccount(pQryTradingAccount *CThostFtdcQryTradingAccountField, nRequestID int) int

请求查询资金账户

func (*Trade) ReqQrySettlementInfo

func (t *Trade) ReqQrySettlementInfo(pQrySettlementInfo *CThostFtdcQrySettlementInfoField, nRequestID int) int

请求查询投资者结算结果

func (*Trade) ReqQrySettlementInfoConfirm

func (t *Trade) ReqQrySettlementInfoConfirm(pQrySettlementInfoConfirm *CThostFtdcQrySettlementInfoConfirmField, nRequestID int) int

请求查询结算信息确认

func (*Trade) ReqQryTrade

func (t *Trade) ReqQryTrade(pQryTrade *CThostFtdcQryTradeField, nRequestID int) int

请求查询成交

func (*Trade) ReqQryTraderOffer

func (t *Trade) ReqQryTraderOffer(pQryTraderOffer *CThostFtdcQryTraderOfferField, nRequestID int) int

请求查询交易员报盘机

func (*Trade) ReqQryTradingAccount

func (t *Trade) ReqQryTradingAccount(pQryTradingAccount *CThostFtdcQryTradingAccountField, nRequestID int) int

请求查询资金账户

func (*Trade) ReqQryTradingCode

func (t *Trade) ReqQryTradingCode(pQryTradingCode *CThostFtdcQryTradingCodeField, nRequestID int) int

请求查询交易编码

func (*Trade) ReqQryTradingNotice

func (t *Trade) ReqQryTradingNotice(pQryTradingNotice *CThostFtdcQryTradingNoticeField, nRequestID int) int

请求查询交易通知

func (*Trade) ReqQryTransferBank

func (t *Trade) ReqQryTransferBank(pQryTransferBank *CThostFtdcQryTransferBankField, nRequestID int) int

请求查询转帐银行

func (*Trade) ReqQryTransferSerial

func (t *Trade) ReqQryTransferSerial(pQryTransferSerial *CThostFtdcQryTransferSerialField, nRequestID int) int

请求查询转帐流水

func (*Trade) ReqQueryBankAccountMoneyByFuture

func (t *Trade) ReqQueryBankAccountMoneyByFuture(pReqQueryAccount *CThostFtdcReqQueryAccountField, nRequestID int) int

期货发起查询银行余额请求

func (*Trade) ReqQueryCFMMCTradingAccountToken

func (t *Trade) ReqQueryCFMMCTradingAccountToken(pQueryCFMMCTradingAccountToken *CThostFtdcQueryCFMMCTradingAccountTokenField, nRequestID int) int

请求查询监控中心用户令牌

func (*Trade) ReqQuoteAction

func (t *Trade) ReqQuoteAction(pInputQuoteAction *CThostFtdcInputQuoteActionField, nRequestID int) int

报价操作请求

func (*Trade) ReqQuoteInsert

func (t *Trade) ReqQuoteInsert(pInputQuote *CThostFtdcInputQuoteField, nRequestID int) int

报价录入请求

func (*Trade) ReqRemoveParkedOrder

func (t *Trade) ReqRemoveParkedOrder(pRemoveParkedOrder *CThostFtdcRemoveParkedOrderField, nRequestID int) int

请求删除预埋单

func (*Trade) ReqRemoveParkedOrderAction

func (t *Trade) ReqRemoveParkedOrderAction(pRemoveParkedOrderAction *CThostFtdcRemoveParkedOrderActionField, nRequestID int) int

请求删除预埋撤单

func (*Trade) ReqSettlementInfoConfirm

func (t *Trade) ReqSettlementInfoConfirm(pSettlementInfoConfirm *CThostFtdcSettlementInfoConfirmField, nRequestID int) int

投资者结算结果确认

func (*Trade) ReqTradingAccountPasswordUpdate

func (t *Trade) ReqTradingAccountPasswordUpdate(pTradingAccountPasswordUpdate *CThostFtdcTradingAccountPasswordUpdateField, nRequestID int) int

资金账户口令更新请求

func (*Trade) ReqUserAuthMethod

func (t *Trade) ReqUserAuthMethod(pReqUserAuthMethod *CThostFtdcReqUserAuthMethodField, nRequestID int) int

查询用户当前支持的认证模式

func (*Trade) ReqUserLogin

func (t *Trade) ReqUserLogin(pReqUserLoginField *CThostFtdcReqUserLoginField, nRequestID int) int

用户登录请求

func (*Trade) ReqUserLoginWithCaptcha

func (t *Trade) ReqUserLoginWithCaptcha(pReqUserLoginWithCaptcha *CThostFtdcReqUserLoginWithCaptchaField, nRequestID int) int

用户发出带有图片验证码的登陆请求

func (*Trade) ReqUserLoginWithOTP

func (t *Trade) ReqUserLoginWithOTP(pReqUserLoginWithOTP *CThostFtdcReqUserLoginWithOTPField, nRequestID int) int

用户发出带有动态口令的登陆请求

func (*Trade) ReqUserLoginWithText

func (t *Trade) ReqUserLoginWithText(pReqUserLoginWithText *CThostFtdcReqUserLoginWithTextField, nRequestID int) int

用户发出带有短信验证码的登陆请求

func (*Trade) ReqUserLogout

func (t *Trade) ReqUserLogout(pUserLogout *CThostFtdcUserLogoutField, nRequestID int) int

登出请求

func (*Trade) ReqUserPasswordUpdate

func (t *Trade) ReqUserPasswordUpdate(pUserPasswordUpdate *CThostFtdcUserPasswordUpdateField, nRequestID int) int

用户口令更新请求

func (*Trade) SubmitUserSystemInfo

func (t *Trade) SubmitUserSystemInfo(pUserSystemInfo *CThostFtdcUserSystemInfoField) int

上报用户终端信息,用于中继服务器操作员登录模式

func (*Trade) SubscribePrivateTopic

func (t *Trade) SubscribePrivateTopic(nResumeType THOST_TE_RESUME_TYPE)

订阅私有流。

func (*Trade) SubscribePublicTopic

func (t *Trade) SubscribePublicTopic(nResumeType THOST_TE_RESUME_TYPE)

订阅公共流。

type TradeExt

type TradeExt struct {
	*Trade
	Broker, UserID, InvestorID string
	// contains filtered or unexported fields
}

func NewTradeExt

func NewTradeExt() *TradeExt

NewTradeExt

@return *TradeExt 接口函数封装实例

func (*TradeExt) Release

func (t *TradeExt) Release()

Release 消毁接口

6.6.1说明中提到,会导致程序崩溃

若柜台前置开着,而交易核心服务关闭报错:

DesignError:pthread_mutex_unlock in line 116 of file ../../source/event/Mutex.h

@receiver t TradeExt

func (*TradeExt) ReqAuthenticate

func (t *TradeExt) ReqAuthenticate(broker, user, appID, authCode string)

ReqAuthenticate 认证

@receiver t TradeExt
@param broker 经纪公司代码
@param user 用户
@param appID 应用ID
@param authCode 认证码

func (*TradeExt) ReqFromBankToFutureByFuture

func (t *TradeExt) ReqFromBankToFutureByFuture(regInfo CThostFtdcAccountregisterField, bankPwd, accountPwd string, amount float64) int

ReqFromBankToFutureByFuture 入金

@receiver t TradeExt
@param regInfo
@param bankPwd
@param accountPwd
@param amount
@return int 0:正常;<0流控

func (*TradeExt) ReqFromFutureToBankByFuture

func (t *TradeExt) ReqFromFutureToBankByFuture(regInfo CThostFtdcAccountregisterField, accountPwd string, amount float64) int

ReqFromFutureToBankByFuture 出金

@receiver t TradeExt
@param regInfo
@param accountPwd 资金密码
@param amount
@return int 0:正常;<0流控

func (*TradeExt) ReqOrderAction

func (t *TradeExt) ReqOrderAction(InvestorID string, ExchangeID string, InstrumentID string, OrderRef string, SessionID int, FrontID int) int

ReqOrderAction 撤单

@receiver t TradeExt
@param InvestorID 投资者帐号
@param ExchangeID 交易所
@param InstrumentID 合约
@param OrderRef 报单引用(客户端)
@param SessionID
@param FrontID
@return int

func (*TradeExt) ReqOrderInsert

func (t *TradeExt) ReqOrderInsert(instrument string, buySell TThostFtdcDirectionType, openClose TThostFtdcOffsetFlagType, price float64, volume int, priceType TThostFtdcOrderPriceTypeType, timeType TThostFtdcTimeConditionType, volumeType TThostFtdcVolumeConditionType, contingentType TThostFtdcContingentConditionType, exchange string, investor string) int

ReqOrderInsert 委托

@receiver t TradeExt
@param buySell
@param openClose
@param instrument
@param exchange
@param price
@param volume
@param investor
@param priceType
@param timeType
@param volumeType
@param contingentType
@return int 0:正常;<0流控

func (*TradeExt) ReqQryAccountregister

func (t *TradeExt) ReqQryAccountregister() int

ReqQryAccountregister 查询银期签约关系

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryClassifiedInstrument

func (t *TradeExt) ReqQryClassifiedInstrument() int

ReqQryClassifiedInstrument 查可交易合约

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryDepthMarketData

func (t *TradeExt) ReqQryDepthMarketData(exchange, instrument string) int

ReqQryDepthMarketData 查最后一笔行情(会同时返回对应的期权合约的行情)

@receiver t TradeExt
@param exchange
@param instrument
@return int 0:正常;<0流控

func (*TradeExt) ReqQryInstrument

func (t *TradeExt) ReqQryInstrument() int

ReqQryInstrument 查合约

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryInvestor

func (t *TradeExt) ReqQryInvestor() int

ReqQryInvestor 查 Userid 管理的投资者信息

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryInvestorPosition added in v2.0.5

func (t *TradeExt) ReqQryInvestorPosition() int

ReqQryInvestorPosition 查持仓

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryInvestorPositionDetail added in v2.0.5

func (t *TradeExt) ReqQryInvestorPositionDetail() int

ReqQryInvestorPositionDetail 查持仓明细

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryOrder

func (t *TradeExt) ReqQryOrder() int

ReqQryOrder 查委托

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryTrade

func (t *TradeExt) ReqQryTrade() int

ReqQryTrade 查成交

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryTradingAccount

func (t *TradeExt) ReqQryTradingAccount() int

ReqQryTradingAccount 查资金帐号

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqQryTransferBank

func (t *TradeExt) ReqQryTransferBank() int

ReqQryTransferBank 查询转帐银行

@receiver t TradeExt
@return int 0:正常;<0流控

func (*TradeExt) ReqSettlementInfoConfirm

func (t *TradeExt) ReqSettlementInfoConfirm()

ReqSettlementInfoConfirm 确认结算结果

@receiver t TradeExt

func (*TradeExt) ReqTradingAccountPasswordUpdate added in v2.0.5

func (t *TradeExt) ReqTradingAccountPasswordUpdate(oldPwd, newPwd string) int

ReqTradingAccountPasswordUpdate 修改投资者密码

@receiver t TradeExt
@param oldPwd
@param newPwd
@return int 0:正常;<0流控

func (*TradeExt) ReqUserLogin

func (t *TradeExt) ReqUserLogin(pwd string)

ReqUserLogin 登录(认证后)

@receiver t TradeExt
@param pwd 密码

func (*TradeExt) ReqUserPasswordUpdate added in v2.0.5

func (t *TradeExt) ReqUserPasswordUpdate(oldPwd, newPwd string) int

ReqUserPasswordUpdate 修改用户密码

@receiver t TradeExt
@param oldPwd
@param newPwd
@return int 0:正常;<0流控

type TradePro

type TradePro struct {
	*TradeExt

	OnOrder func(pOrder *CThostFtdcOrderField)
	OnTrade func(pTrade *CThostFtdcTradeField)

	// 合约 key: InstrumentID
	Instruments map[string]CThostFtdcInstrumentField
	// 委托 key: OrderLocalID
	Orders map[string]CThostFtdcOrderField
	// 成交 key: OrderLocalID values: []TradeField
	Trades map[string][]CThostFtdcTradeField
	// 投资者 key:InvestorID
	Investors map[string]CThostFtdcInvestorField

	// 银行开户信息
	AccountRegisters map[string]CThostFtdcAccountregisterField
	// contains filtered or unexported fields
}

TradePro 业务逻辑封装

func NewTradePro

func NewTradePro() *TradePro

NewTradePro

@return *TradePro 简易封装 CTP

func (*TradePro) ReqFromBankToFutureByFuture

func (trd *TradePro) ReqFromBankToFutureByFuture(bankAccount, bankPwd, accountPwd string, amount float64) (rsp CThostFtdcRspInfoField)

ReqFromBankToFutureByFuture 入金

@receiver trd TradePro
@param bankAccount 银行帐号
@param bankPwd 银行密码
@param accountPwd 出入金密码
@param amount 出入金金额
@return rsp 错误响应

func (*TradePro) ReqFromFutureToBankByFuture

func (trd *TradePro) ReqFromFutureToBankByFuture(bankAccount, accountPwd string, amount float64) (rsp CThostFtdcRspInfoField)

ReqFromFutureToBankByFuture 出金

@receiver trd TradePro
@param bankAccount 银行帐号
@param bankPwd 银行密码
@param accountPwd 出入金密码
@param amount 出入金金额
@return rsp 错误响应

func (*TradePro) ReqOrderAction added in v2.0.5

func (trd *TradePro) ReqOrderAction(localID string) int

ReqOrderAction 撤单

@receiver trd TradePro
@param localID 本地报单编号
@return int -9:未查到localID对应的委托

func (*TradePro) ReqOrderInsertFAK

func (trd *TradePro) ReqOrderInsertFAK(instrument string, buySell TThostFtdcDirectionType, openClose TThostFtdcOffsetFlagType, price float64, volume int) (localID string, rsp CThostFtdcRspInfoField)

ReqOrderInsertFAK 部成全撤

@receiver trd TradePro
@param buySell 买卖
@param openClose 开平
@param instrument 合约
@param price 价格
@param volume 手数
@return localID 成功返回本地编号
@return rsp 错误信息

func (*TradePro) ReqOrderInsertFOK

func (trd *TradePro) ReqOrderInsertFOK(instrument string, buySell TThostFtdcDirectionType, openClose TThostFtdcOffsetFlagType, price float64, volume int) (localID string, rsp CThostFtdcRspInfoField)

ReqOrderInsertFOK 全成or撤单

@receiver trd TradePro
@param buySell 买卖
@param openClose 开平
@param instrument 合约
@param price 价格
@param volume 手数
@return localID 成功返回本地编号
@return rsp 错误信息

func (*TradePro) ReqOrderInsertLimit

func (trd *TradePro) ReqOrderInsertLimit(instrument string, buySell TThostFtdcDirectionType, openClose TThostFtdcOffsetFlagType, price float64, volume int) (localID string, rsp CThostFtdcRspInfoField)

ReqOrderInsertLimit 限价单

@receiver trd TradePro
@param buySell 买卖
@param openClose 开平
@param instrument 合约
@param price 价格
@param volume 手数
@return localID 成功返回本地编号
@return rsp 错误信息

func (*TradePro) ReqOrderInsertMarket

func (trd *TradePro) ReqOrderInsertMarket(instrument string, buySell TThostFtdcDirectionType, openClose TThostFtdcOffsetFlagType, volume int) (localID string, rsp CThostFtdcRspInfoField)

ReqOrderInsertMarket 市价单(不是所有交易所都支持)

@receiver trd TradePro
@param buySell 买卖
@param openClose 开平
@param instrument 合约
@param price 价格
@param volume 手数
@return localID 成功返回本地编号
@return rsp 错误信息

func (*TradePro) ReqQryPosition

func (trd *TradePro) ReqQryPosition() []CThostFtdcInvestorPositionField

ReqQryPosition 查持仓

@receiver trd TradePro
@return []CThostFtdcInvestorPositionField 返回 nil 时注意流控

func (*TradePro) ReqQryPositionDetail

func (trd *TradePro) ReqQryPositionDetail() []CThostFtdcInvestorPositionDetailField

ReqQryPositionDetail 查持仓明细

@receiver trd TradePro
@return []CThostFtdcInvestorPositionDetailField 持仓明细, 返回 nil 时注意流控

func (*TradePro) ReqQryTradingAccount

func (trd *TradePro) ReqQryTradingAccount() map[string]CThostFtdcTradingAccountField

ReqQryTradingAccount 查帐户权益

@receiver trd TradePro
@return map 投资者帐号:权益

func (*TradePro) Start

Start 接口启动/登录/查询客户基础信息/查询委托/成交/权益

@receiver trd TradePro
@param cfg 登录配置
@return loginInfo 登录响应
@return rsp 错误响应

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL