qotgetfutureinfo

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use C2S.ProtoReflect.Descriptor instead.

func (*C2S) GetSecurityList

func (x *C2S) GetSecurityList() []*qotcommon.Security

func (*C2S) ProtoMessage

func (*C2S) ProtoMessage()

func (*C2S) ProtoReflect

func (x *C2S) ProtoReflect() protoreflect.Message

func (*C2S) Reset

func (x *C2S) Reset()

func (*C2S) String

func (x *C2S) String() string

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"`    //交易所规格
	// 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) 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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetC2S

func (x *Request) GetC2S() *C2S

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetErrCode

func (x *Response) GetErrCode() int32

func (*Response) GetRetMsg

func (x *Response) GetRetMsg() string

func (*Response) GetRetType

func (x *Response) GetRetType() int32

func (*Response) GetS2C

func (x *Response) GetS2C() *S2C

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ResponseChan

type ResponseChan chan *Response

func (ResponseChan) Close

func (ch ResponseChan) Close()

func (ResponseChan) Send

func (ch ResponseChan) Send(b []byte) error

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) Descriptor() ([]byte, []int)

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

func (*S2C) GetFutureInfoList

func (x *S2C) GetFutureInfoList() []*FutureInfo

func (*S2C) ProtoMessage

func (*S2C) ProtoMessage()

func (*S2C) ProtoReflect

func (x *S2C) ProtoReflect() protoreflect.Message

func (*S2C) Reset

func (x *S2C) Reset()

func (*S2C) String

func (x *S2C) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TradeTime.ProtoReflect.Descriptor instead.

func (*TradeTime) GetBegin

func (x *TradeTime) GetBegin() float64

func (*TradeTime) GetEnd

func (x *TradeTime) GetEnd() float64

func (*TradeTime) ProtoMessage

func (*TradeTime) ProtoMessage()

func (*TradeTime) ProtoReflect

func (x *TradeTime) ProtoReflect() protoreflect.Message

func (*TradeTime) Reset

func (x *TradeTime) Reset()

func (*TradeTime) String

func (x *TradeTime) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL