// 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) }