Documentation
¶
Index ¶
- Constants
- Variables
- type C2S
- type FutureInfo
- func (*FutureInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FutureInfo) GetContractSize() float64
- func (x *FutureInfo) GetContractSizeUnit() string
- func (x *FutureInfo) GetContractType() string
- func (x *FutureInfo) GetExchange() string
- func (x *FutureInfo) GetExchangeFormatUrl() string
- func (x *FutureInfo) GetLastTradeTime() string
- func (x *FutureInfo) GetLastTradeTimestamp() float64
- func (x *FutureInfo) GetMinVar() float64
- func (x *FutureInfo) GetMinVarUnit() string
- func (x *FutureInfo) GetName() string
- func (x *FutureInfo) GetOrigin() *qotcommon.Security
- func (x *FutureInfo) GetOwner() *qotcommon.Security
- func (x *FutureInfo) GetOwnerOther() string
- func (x *FutureInfo) GetQuoteCurrency() string
- func (x *FutureInfo) GetQuoteUnit() string
- func (x *FutureInfo) GetSecurity() *qotcommon.Security
- func (x *FutureInfo) GetTimeZone() string
- func (x *FutureInfo) GetTradeTime() []*TradeTime
- func (*FutureInfo) ProtoMessage()
- func (x *FutureInfo) ProtoReflect() protoreflect.Message
- func (x *FutureInfo) Reset()
- func (x *FutureInfo) String() string
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetErrCode() int32
- func (x *Response) GetRetMsg() string
- func (x *Response) GetRetType() int32
- func (x *Response) GetS2C() *S2C
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type S2C
- type TradeTime
Constants ¶
View Source
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
View Source
var File_Qot_GetFutureInfo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { SecurityList []*qotcommon.Security `protobuf:"bytes,1,rep,name=securityList" json:"securityList,omitempty"` //股票列表 // contains filtered or unexported fields }
func (*C2S) Descriptor
deprecated
func (*C2S) GetSecurityList ¶
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) ProtoReflect ¶
func (x *C2S) ProtoReflect() protoreflect.Message
type FutureInfo ¶
type FutureInfo struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` // 合约名称 Security *qotcommon.Security `protobuf:"bytes,2,req,name=security" json:"security,omitempty"` // 合约代码 LastTradeTime *string `protobuf:"bytes,3,req,name=lastTradeTime" json:"lastTradeTime,omitempty"` //最后交易日,只有非主连期货合约才有该字段 LastTradeTimestamp *float64 `protobuf:"fixed64,4,opt,name=lastTradeTimestamp" json:"lastTradeTimestamp,omitempty"` //最后交易日时间戳,只有非主连期货合约才有该字段 Owner *qotcommon.Security `protobuf:"bytes,5,opt,name=owner" json:"owner,omitempty"` //标的股 股票期货和股指期货才有该字段 OwnerOther *string `protobuf:"bytes,6,req,name=ownerOther" json:"ownerOther,omitempty"` //标的 Exchange *string `protobuf:"bytes,7,req,name=exchange" json:"exchange,omitempty"` //交易所 ContractType *string `protobuf:"bytes,8,req,name=contractType" json:"contractType,omitempty"` //合约类型 ContractSize *float64 `protobuf:"fixed64,9,req,name=contractSize" json:"contractSize,omitempty"` //合约规模 ContractSizeUnit *string `protobuf:"bytes,10,req,name=contractSizeUnit" json:"contractSizeUnit,omitempty"` //合约规模的单位 QuoteCurrency *string `protobuf:"bytes,11,req,name=quoteCurrency" json:"quoteCurrency,omitempty"` //报价货币 MinVar *float64 `protobuf:"fixed64,12,req,name=minVar" json:"minVar,omitempty"` //最小变动单位 MinVarUnit *string `protobuf:"bytes,13,req,name=minVarUnit" json:"minVarUnit,omitempty"` //最小变动单位的单位 QuoteUnit *string `protobuf:"bytes,14,opt,name=quoteUnit" json:"quoteUnit,omitempty"` //报价单位 TradeTime []*TradeTime `protobuf:"bytes,15,rep,name=tradeTime" json:"tradeTime,omitempty"` //交易时间 TimeZone *string `protobuf:"bytes,16,req,name=timeZone" json:"timeZone,omitempty"` //所在时区 ExchangeFormatUrl *string `protobuf:"bytes,17,req,name=exchangeFormatUrl" json:"exchangeFormatUrl,omitempty"` //交易所规格 Origin *qotcommon.Security `protobuf:"bytes,18,opt,name=origin" json:"origin,omitempty"` //实际合约代码 // contains filtered or unexported fields }
期货合约资料的列表
func (*FutureInfo) Descriptor
deprecated
func (*FutureInfo) Descriptor() ([]byte, []int)
Deprecated: Use FutureInfo.ProtoReflect.Descriptor instead.
func (*FutureInfo) GetContractSize ¶
func (x *FutureInfo) GetContractSize() float64
func (*FutureInfo) GetContractSizeUnit ¶
func (x *FutureInfo) GetContractSizeUnit() string
func (*FutureInfo) GetContractType ¶
func (x *FutureInfo) GetContractType() string
func (*FutureInfo) GetExchange ¶
func (x *FutureInfo) GetExchange() string
func (*FutureInfo) GetExchangeFormatUrl ¶
func (x *FutureInfo) GetExchangeFormatUrl() string
func (*FutureInfo) GetLastTradeTime ¶
func (x *FutureInfo) GetLastTradeTime() string
func (*FutureInfo) GetLastTradeTimestamp ¶
func (x *FutureInfo) GetLastTradeTimestamp() float64
func (*FutureInfo) GetMinVar ¶
func (x *FutureInfo) GetMinVar() float64
func (*FutureInfo) GetMinVarUnit ¶
func (x *FutureInfo) GetMinVarUnit() string
func (*FutureInfo) GetName ¶
func (x *FutureInfo) GetName() string
func (*FutureInfo) GetOrigin ¶
func (x *FutureInfo) GetOrigin() *qotcommon.Security
func (*FutureInfo) GetOwner ¶
func (x *FutureInfo) GetOwner() *qotcommon.Security
func (*FutureInfo) GetOwnerOther ¶
func (x *FutureInfo) GetOwnerOther() string
func (*FutureInfo) GetQuoteCurrency ¶
func (x *FutureInfo) GetQuoteCurrency() string
func (*FutureInfo) GetQuoteUnit ¶
func (x *FutureInfo) GetQuoteUnit() string
func (*FutureInfo) GetSecurity ¶
func (x *FutureInfo) GetSecurity() *qotcommon.Security
func (*FutureInfo) GetTimeZone ¶
func (x *FutureInfo) GetTimeZone() string
func (*FutureInfo) GetTradeTime ¶
func (x *FutureInfo) GetTradeTime() []*TradeTime
func (*FutureInfo) ProtoMessage ¶
func (*FutureInfo) ProtoMessage()
func (*FutureInfo) ProtoReflect ¶
func (x *FutureInfo) ProtoReflect() protoreflect.Message
func (*FutureInfo) Reset ¶
func (x *FutureInfo) Reset()
func (*FutureInfo) String ¶
func (x *FutureInfo) String() string
type Request ¶
type Request struct { C2S *C2S `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { RetType *int32 `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"` //RetType,返回结果 RetMsg *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"` ErrCode *int32 `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"` S2C *S2C `protobuf:"bytes,4,opt,name=s2c" json:"s2c,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetErrCode ¶
func (*Response) GetRetType ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type S2C ¶
type S2C struct { FutureInfoList []*FutureInfo `protobuf:"bytes,1,rep,name=futureInfoList" json:"futureInfoList,omitempty"` //期货合约资料的列表 // contains filtered or unexported fields }
func (*S2C) Descriptor
deprecated
func (*S2C) GetFutureInfoList ¶
func (x *S2C) GetFutureInfoList() []*FutureInfo
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
type TradeTime ¶
type TradeTime struct { Begin *float64 `protobuf:"fixed64,1,opt,name=begin" json:"begin,omitempty"` // 开始时间,以分钟为单位 End *float64 `protobuf:"fixed64,2,opt,name=end" json:"end,omitempty"` // 结束时间,以分钟为单位 // contains filtered or unexported fields }
交易时间
func (*TradeTime) Descriptor
deprecated
func (*TradeTime) ProtoMessage ¶
func (*TradeTime) ProtoMessage()
func (*TradeTime) ProtoReflect ¶
func (x *TradeTime) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.