123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741 |
- // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
- package gocctp
- //CThostFtdcRspUserLoginField
- //CThostFtdcRspInfoField
- //CThostFtdcDepthMarketDataField
- type TThostFtdcDateType [9]byte
- type TThostFtdcTimeType [9]byte
- type TThostFtdcBrokerIDType [11]byte
- type TThostFtdcUserIDType [16]byte
- type TThostFtdcSystemNameType [41]byte
- type TThostFtdcFrontIDType int32
- type TThostFtdcSessionIDType int32
- type TThostFtdcOrderRefType [13]byte
- func (b TThostFtdcDateType) String() string {
- c := [9]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcTimeType) String() string {
- c := [9]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcBrokerIDType) String() string {
- c := [11]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcUserIDType) String() string {
- c := [16]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcSystemNameType) String() string {
- c := [41]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcOrderRefType) String() string {
- c := [13]byte(b)
- return cstring(c[:])
- }
- ///用户登录应答
- type CThostFtdcRspUserLoginField struct {
- ///交易日 c9
- TradingDay TThostFtdcDateType
- ///登录成功时间 c9
- LoginTime TThostFtdcTimeType
- ///经纪公司代码 c11
- BrokerID TThostFtdcBrokerIDType
- ///用户代码 c16
- UserID TThostFtdcUserIDType
- ///交易系统名称 c41
- SystemName TThostFtdcSystemNameType
- ///前置编号 int32
- FrontID TThostFtdcFrontIDType
- ///会话编号 int32
- SessionID TThostFtdcSessionIDType
- ///最大报单引用 c13
- MaxOrderRef TThostFtdcOrderRefType
- ///上期所时间 c9
- SHFETime TThostFtdcTimeType
- ///大商所时间 c9
- DCETime TThostFtdcTimeType
- ///郑商所时间 c9
- CZCETime TThostFtdcTimeType
- ///中金所时间 c9
- FFEXTime TThostFtdcTimeType
- }
- type TThostFtdcErrorIDType int32
- type TThostFtdcErrorMsgType [81]byte
- func (b TThostFtdcErrorMsgType) String() string {
- c := [81]byte(b)
- return cstring(c[:])
- }
- ///响应信息
- type CThostFtdcRspInfoField struct {
- ///错误代码
- ErrorID TThostFtdcErrorIDType
- ///错误信息
- ErrorMsg TThostFtdcErrorMsgType
- }
- type TThostFtdcInstrumentIDType [31]byte
- type TThostFtdcExchangeIDType [9]byte
- type TThostFtdcExchangeInstIDType [31]byte
- type TThostFtdcPriceType float64
- type TThostFtdcLargeVolumeType float64
- type TThostFtdcVolumeType int32
- type TThostFtdcMoneyType float64
- type TThostFtdcRatioType float64
- type TThostFtdcMillisecType int32
- func (b TThostFtdcInstrumentIDType) String() string {
- c := [31]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcExchangeIDType) String() string {
- c := [9]byte(b)
- return cstring(c[:])
- }
- func (b TThostFtdcExchangeInstIDType) String() string {
- c := [31]byte(b)
- return cstring(c[:])
- }
- ///深度行情
- type CThostFtdcDepthMarketDataField 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
- _ int32
- ///成交金额
- Turnover TThostFtdcMoneyType
- ///持仓量
- OpenInterest TThostFtdcLargeVolumeType
- ///今收盘
- ClosePrice TThostFtdcPriceType
- ///本次结算价
- SettlementPrice TThostFtdcPriceType
- ///涨停板价
- UpperLimitPrice TThostFtdcPriceType
- ///跌停板价
- LowerLimitPrice TThostFtdcPriceType
- ///昨虚实度
- PreDelta TThostFtdcRatioType
- ///今虚实度
- CurrDelta TThostFtdcRatioType
- ///最后修改时间
- UpdateTime TThostFtdcTimeType
- ///最后修改毫秒
- UpdateMillisec TThostFtdcMillisecType
- ///申买价一
- BidPrice1 TThostFtdcPriceType
- ///申买量一
- BidVolume1 TThostFtdcVolumeType
- _ int32
- ///申卖价一
- AskPrice1 TThostFtdcPriceType
- ///申卖量一
- AskVolume1 TThostFtdcVolumeType
- _ int32
- ///申买价二
- BidPrice2 TThostFtdcPriceType
- ///申买量二
- BidVolume2 TThostFtdcVolumeType
- _ int32
- ///申卖价二
- AskPrice2 TThostFtdcPriceType
- ///申卖量二
- AskVolume2 TThostFtdcVolumeType
- _ int32
- ///申买价三
- BidPrice3 TThostFtdcPriceType
- ///申买量三
- BidVolume3 TThostFtdcVolumeType
- _ int32
- ///申卖价三
- AskPrice3 TThostFtdcPriceType
- ///申卖量三
- AskVolume3 TThostFtdcVolumeType
- _ int32
- ///申买价四
- BidPrice4 TThostFtdcPriceType
- ///申买量四
- BidVolume4 TThostFtdcVolumeType
- _ int32
- ///申卖价四
- AskPrice4 TThostFtdcPriceType
- ///申卖量四
- AskVolume4 TThostFtdcVolumeType
- _ int32
- ///申买价五
- BidPrice5 TThostFtdcPriceType
- ///申买量五
- BidVolume5 TThostFtdcVolumeType
- _ int32
- ///申卖价五
- AskPrice5 TThostFtdcPriceType
- ///申卖量五
- AskVolume5 TThostFtdcVolumeType
- _ int32
- ///当日均价
- AveragePrice TThostFtdcPriceType
- }
- type TThostFtdcInvestorIDType [13]byte
- func (b TThostFtdcInvestorIDType) String() string {
- c := [13]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcOrderActionRefType int32
- type TThostFtdcRequestIDType int32
- type TThostFtdcOrderSysIDType [21]byte
- func (b TThostFtdcOrderSysIDType) String() string {
- c := [21]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcActionFlagType byte
- type TThostFtdcTraderIDType [21]byte
- func (b TThostFtdcTraderIDType) String() string {
- c := [21]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcInstallIDType int32
- type TThostFtdcOrderLocalIDType [13]byte
- func (b TThostFtdcOrderLocalIDType) String() string {
- c := [13]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcParticipantIDType [11]byte
- func (b TThostFtdcParticipantIDType) String() string {
- c := [11]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcClientIDType [11]byte
- func (b TThostFtdcClientIDType) String() string {
- c := [11]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcBusinessUnitType [21]byte
- func (b TThostFtdcBusinessUnitType) String() string {
- c := [21]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcOrderActionStatusType byte
- 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
- InstrumentID TThostFtdcInstrumentIDType
- }
- type TThostFtdcOrderPriceTypeType byte
- type TThostFtdcDirectionType byte
- type TThostFtdcTimeConditionType byte
- type TThostFtdcVolumeConditionType byte
- type TThostFtdcContingentConditionType byte
- type TThostFtdcForceCloseReasonType byte
- type TThostFtdcBoolType int32
- type TThostFtdcCombOffsetFlagType [5]byte
- func (b TThostFtdcCombOffsetFlagType) String() string {
- c := [5]byte(b)
- return cstring(c[:])
- }
- type TThostFtdcCombHedgeFlagType [5]byte
- func (b TThostFtdcCombHedgeFlagType) String() string {
- c := [5]byte(b)
- return cstring(c[:])
- }
- type CThostFtdcInputOrderField struct {
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- InstrumentID TThostFtdcInstrumentIDType
- OrderRef TThostFtdcOrderRefType
- UserID TThostFtdcUserIDType
- OrderPriceType TThostFtdcOrderPriceTypeType
- Direction TThostFtdcDirectionType
- CombOffsetFlag TThostFtdcCombOffsetFlagType
- CombHedgeFlag TThostFtdcCombHedgeFlagType
- LimitPrice TThostFtdcPriceType
- VolumeTotalOriginal TThostFtdcVolumeType
- TimeCondition TThostFtdcTimeConditionType
- GTDDate TThostFtdcDateType
- VolumeCondition TThostFtdcVolumeConditionType
- MinVolume TThostFtdcVolumeType
- ContingentCondition TThostFtdcContingentConditionType
- StopPrice TThostFtdcPriceType
- ForceCloseReason TThostFtdcForceCloseReasonType
- IsAutoSuspend TThostFtdcBoolType
- BusinessUnit TThostFtdcBusinessUnitType
- RequestID TThostFtdcRequestIDType
- UserForceClose TThostFtdcBoolType
- IsSwapOrder TThostFtdcBoolType
- }
- 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
- InstrumentID TThostFtdcInstrumentIDType
- }
- type TThostFtdcProductClassType byte
- type TThostFtdcYearType int32
- type TThostFtdcMonthType int32
- type TThostFtdcVolumeMultipleType int32
- type TThostFtdcInstLifePhaseType byte
- type TThostFtdcPositionTypeType byte
- type TThostFtdcPositionDateTypeType byte
- type TThostFtdcInstrumentNameType [21]byte
- func (b TThostFtdcInstrumentNameType) String() string {
- c := [21]byte(b)
- return cstring(c[:])
- }
- type CThostFtdcInstrumentField struct {
- InstrumentID TThostFtdcInstrumentIDType
- ExchangeID TThostFtdcExchangeIDType
- InstrumentName TThostFtdcInstrumentNameType
- ExchangeInstID TThostFtdcExchangeInstIDType
- ProductID TThostFtdcInstrumentIDType
- 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
- }
- type TThostFtdcInvestorRangeType byte
- type CThostFtdcInstrumentCommissionRateField struct {
- InstrumentID TThostFtdcInstrumentIDType
- InvestorRange TThostFtdcInvestorRangeType
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- OpenRatioByMoney TThostFtdcRatioType
- OpenRatioByVolume TThostFtdcRatioType
- CloseRatioByMoney TThostFtdcRatioType
- CloseRatioByVolume TThostFtdcRatioType
- CloseTodayRatioByMoney TThostFtdcRatioType
- CloseTodayRatioByVolume TThostFtdcRatioType
- }
- type TThostFtdcHedgeFlagType byte
- type CThostFtdcInstrumentMarginRateField struct {
- InstrumentID TThostFtdcInstrumentIDType
- InvestorRange TThostFtdcInvestorRangeType
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- HedgeFlag TThostFtdcHedgeFlagType
- LongMarginRatioByMoney TThostFtdcRatioType
- LongMarginRatioByVolume TThostFtdcMoneyType
- ShortMarginRatioByMoney TThostFtdcRatioType
- ShortMarginRatioByVolume TThostFtdcMoneyType
- IsRelative TThostFtdcBoolType
- }
- type CThostFtdcQueryMaxOrderVolumeField struct {
- ///经纪公司代码
- BrokerID TThostFtdcBrokerIDType
- ///投资者代码
- InvestorID TThostFtdcInvestorIDType
- ///合约代码
- InstrumentID TThostFtdcInstrumentIDType
- ///买卖方向
- Direction TThostFtdcDirectionType
- ///开平标志
- OffsetFlag TThostFtdcOffsetFlagType
- ///投机套保标志
- HedgeFlag TThostFtdcHedgeFlagType
- ///最大允许报单数量
- MaxVolume TThostFtdcVolumeType
- }
- type TThostFtdcPosiDirectionType byte
- type TThostFtdcPositionDateType byte
- type TThostFtdcSettlementIDType int32
- type CThostFtdcInvestorPositionField struct {
- InstrumentID TThostFtdcInstrumentIDType
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- PosiDirection TThostFtdcPosiDirectionType
- HedgeFlag TThostFtdcHedgeFlagType
- PositionDate TThostFtdcPositionDateType
- YdPosition TThostFtdcVolumeType
- Position TThostFtdcVolumeType
- LongFrozen TThostFtdcVolumeType
- ShortFrozen TThostFtdcVolumeType
- _ int32
- 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
- _ int32
- CloseProfitByDate TThostFtdcMoneyType
- CloseProfitByTrade TThostFtdcMoneyType
- TodayPosition TThostFtdcVolumeType
- _ int32
- MarginRateByMoney TThostFtdcRatioType
- MarginRateByVolume TThostFtdcRatioType
- }
- type TThostFtdcTradeTypeType byte
- type TThostFtdcTradeIDType [21]byte
- func (b TThostFtdcTradeIDType) String() string {
- c := [21]byte(b)
- return cstring(c[:])
- }
- type CThostFtdcInvestorPositionDetailField struct {
- InstrumentID TThostFtdcInstrumentIDType
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- HedgeFlag TThostFtdcHedgeFlagType
- Direction TThostFtdcDirectionType
- OpenDate TThostFtdcDateType
- TradeID TThostFtdcTradeIDType
- Volume TThostFtdcVolumeType
- _ int32
- OpenPrice TThostFtdcPriceType
- TradingDay TThostFtdcDateType
- SettlementID TThostFtdcSettlementIDType
- TradeType TThostFtdcTradeTypeType
- CombInstrumentID TThostFtdcInstrumentIDType
- ExchangeID TThostFtdcExchangeIDType
- _ int32
- CloseProfitByDate TThostFtdcMoneyType
- CloseProfitByTrade TThostFtdcMoneyType
- PositionProfitByDate TThostFtdcMoneyType
- PositionProfitByTrade TThostFtdcMoneyType
- Margin TThostFtdcMoneyType
- ExchMargin TThostFtdcMoneyType
- MarginRateByMoney TThostFtdcRatioType
- MarginRateByVolume TThostFtdcRatioType
- LastSettlementPrice TThostFtdcPriceType
- SettlementPrice TThostFtdcPriceType
- CloseVolume TThostFtdcVolumeType
- _ int32
- CloseAmount TThostFtdcMoneyType
- }
- type TThostFtdcSequenceNoType int32
- type TThostFtdcOrderTypeType byte
- type TThostFtdcOrderStatusType byte
- type TThostFtdcOrderSourceType byte
- type TThostFtdcOrderSubmitStatusType byte
- type TThostFtdcProductInfoType [11]byte
- func (b TThostFtdcProductInfoType) String() string {
- c := [11]byte(b)
- return cstring(c[:])
- }
- type CThostFtdcOrderField struct {
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- InstrumentID TThostFtdcInstrumentIDType
- OrderRef TThostFtdcOrderRefType
- UserID TThostFtdcUserIDType
- OrderPriceType TThostFtdcOrderPriceTypeType
- Direction TThostFtdcDirectionType
- CombOffsetFlag TThostFtdcCombOffsetFlagType
- CombHedgeFlag TThostFtdcCombHedgeFlagType
- LimitPrice TThostFtdcPriceType
- VolumeTotalOriginal TThostFtdcVolumeType
- TimeCondition TThostFtdcTimeConditionType
- 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
- ExchangeInstID TThostFtdcExchangeInstIDType
- 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
- }
- type TThostFtdcTradeSourceType byte
- type TThostFtdcPriceSourceType byte
- type TThostFtdcOffsetFlagType byte
- type TThostFtdcTradingRoleType byte
- type CThostFtdcTradeField struct {
- BrokerID TThostFtdcBrokerIDType
- InvestorID TThostFtdcInvestorIDType
- InstrumentID TThostFtdcInstrumentIDType
- OrderRef TThostFtdcOrderRefType
- UserID TThostFtdcUserIDType
- ExchangeID TThostFtdcExchangeIDType
- TradeID TThostFtdcTradeIDType
- Direction TThostFtdcDirectionType
- OrderSysID TThostFtdcOrderSysIDType
- ParticipantID TThostFtdcParticipantIDType
- ClientID TThostFtdcClientIDType
- TradingRole TThostFtdcTradingRoleType
- ExchangeInstID TThostFtdcExchangeInstIDType
- 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
- }
- type TThostFtdcAccountIDType [13]byte
- func (b TThostFtdcAccountIDType) String() string {
- c := [13]byte(b)
- return cstring(c[:])
- }
- 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
- }
- type TThostFtdcInstStatusEnterReasonType byte
- type TThostFtdcTradingSegmentSNType int32
- type TThostFtdcInstrumentStatusType byte
- type TThostFtdcSettlementGroupIDType [9]byte
- func (b TThostFtdcSettlementGroupIDType) String() string {
- c := [9]byte(b)
- return cstring(c[:])
- }
- type CThostFtdcInstrumentStatusField struct {
- ExchangeID TThostFtdcExchangeIDType
- ExchangeInstID TThostFtdcExchangeInstIDType
- SettlementGroupID TThostFtdcSettlementGroupIDType
- InstrumentID TThostFtdcInstrumentIDType
- InstrumentStatus TThostFtdcInstrumentStatusType
- TradingSegmentSN TThostFtdcTradingSegmentSNType
- EnterTime TThostFtdcTimeType
- EnterReason TThostFtdcInstStatusEnterReasonType
- }
- type TThostFtdcExchangeNameType [61]byte
- func (t TThostFtdcExchangeNameType) String() string {
- return cstring(t[:])
- }
- type CThostFtdcExchangeField struct {
- ExchangeID TThostFtdcExchangeIDType
- ExchangeName TThostFtdcExchangeNameType
- ExchangeProperty byte
- }
- func cstring(s []byte) string {
- for i := range s {
- if s[i] == 0 {
- return string(s[0:i])
- }
- }
- return string(s)
- }
|