Documentation
¶
Index ¶
- Constants
- Variables
- type C2S
- func (*C2S) Descriptor() ([]byte, []int)deprecated
- func (x *C2S) GetKlType() int32
- func (x *C2S) GetMaxReqSecurityNum() int32
- func (x *C2S) GetNeedKLFieldsFlag() int64
- func (x *C2S) GetNoDataMode() int32
- func (x *C2S) GetRehabType() int32
- func (x *C2S) GetSecurityList() []*qotcommon.Security
- func (x *C2S) GetTimeList() []string
- func (*C2S) ProtoMessage()
- func (x *C2S) ProtoReflect() protoreflect.Message
- func (x *C2S) Reset()
- func (x *C2S) String() string
- type DataStatus
- func (DataStatus) Descriptor() protoreflect.EnumDescriptor
- func (x DataStatus) Enum() *DataStatus
- func (DataStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x DataStatus) Number() protoreflect.EnumNumber
- func (x DataStatus) String() string
- func (DataStatus) Type() protoreflect.EnumType
- func (x *DataStatus) UnmarshalJSON(b []byte) errordeprecated
- type HistoryPointsKL
- func (*HistoryPointsKL) Descriptor() ([]byte, []int)deprecated
- func (x *HistoryPointsKL) GetKl() *qotcommon.KLine
- func (x *HistoryPointsKL) GetReqTime() string
- func (x *HistoryPointsKL) GetStatus() int32
- func (*HistoryPointsKL) ProtoMessage()
- func (x *HistoryPointsKL) ProtoReflect() protoreflect.Message
- func (x *HistoryPointsKL) Reset()
- func (x *HistoryPointsKL) String() string
- type NoDataMode
- func (NoDataMode) Descriptor() protoreflect.EnumDescriptor
- func (x NoDataMode) Enum() *NoDataMode
- func (NoDataMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x NoDataMode) Number() protoreflect.EnumNumber
- func (x NoDataMode) String() string
- func (NoDataMode) Type() protoreflect.EnumType
- func (x *NoDataMode) UnmarshalJSON(b []byte) errordeprecated
- 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 ResponseChan
- type S2C
- type SecurityHistoryKLPoints
- func (*SecurityHistoryKLPoints) Descriptor() ([]byte, []int)deprecated
- func (x *SecurityHistoryKLPoints) GetKlList() []*HistoryPointsKL
- func (x *SecurityHistoryKLPoints) GetSecurity() *qotcommon.Security
- func (*SecurityHistoryKLPoints) ProtoMessage()
- func (x *SecurityHistoryKLPoints) ProtoReflect() protoreflect.Message
- func (x *SecurityHistoryKLPoints) Reset()
- func (x *SecurityHistoryKLPoints) String() string
Constants ¶
View Source
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
View Source
var ( NoDataMode_name = map[int32]string{ 0: "NoDataMode_Null", 1: "NoDataMode_Forward", 2: "NoDataMode_Backward", } NoDataMode_value = map[string]int32{ "NoDataMode_Null": 0, "NoDataMode_Forward": 1, "NoDataMode_Backward": 2, } )
Enum value maps for NoDataMode.
View Source
var ( DataStatus_name = map[int32]string{ 0: "DataStatus_Null", 1: "DataStatus_Current", 2: "DataStatus_Previous", 3: "DataStatus_Back", } DataStatus_value = map[string]int32{ "DataStatus_Null": 0, "DataStatus_Current": 1, "DataStatus_Previous": 2, "DataStatus_Back": 3, } )
Enum value maps for DataStatus.
View Source
var File_Qot_GetHistoryKLPoints_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { RehabType *int32 `protobuf:"varint,1,req,name=rehabType" json:"rehabType,omitempty"` //Qot_Common.RehabType,复权类型 KlType *int32 `protobuf:"varint,2,req,name=klType" json:"klType,omitempty"` //Qot_Common.KLType,K线类型 NoDataMode *int32 `protobuf:"varint,3,req,name=noDataMode" json:"noDataMode,omitempty"` //NoDataMode,当请求时间点数据为空时,如何返回数据 SecurityList []*qotcommon.Security `protobuf:"bytes,4,rep,name=securityList" json:"securityList,omitempty"` //股票市场以及股票代码 TimeList []string `protobuf:"bytes,5,rep,name=timeList" json:"timeList,omitempty"` //时间字符串 MaxReqSecurityNum *int32 `protobuf:"varint,6,opt,name=maxReqSecurityNum" json:"maxReqSecurityNum,omitempty"` //最多返回多少只股票的数据,如果未指定表示不限制 NeedKLFieldsFlag *int64 `protobuf:"varint,7,opt,name=needKLFieldsFlag" json:"needKLFieldsFlag,omitempty"` //指定返回K线结构体特定某几项数据,KLFields枚举值或组合,如果未指定返回全部字段 // contains filtered or unexported fields }
func (*C2S) Descriptor
deprecated
func (*C2S) GetMaxReqSecurityNum ¶
func (*C2S) GetNeedKLFieldsFlag ¶
func (*C2S) GetNoDataMode ¶
func (*C2S) GetRehabType ¶
func (*C2S) GetSecurityList ¶
func (*C2S) GetTimeList ¶
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) ProtoReflect ¶
func (x *C2S) ProtoReflect() protoreflect.Message
type DataStatus ¶
type DataStatus int32
这个时间点返回数据的状态以及来源
const ( DataStatus_DataStatus_Null DataStatus = 0 //空数据 DataStatus_DataStatus_Current DataStatus = 1 //当前时间点数据 DataStatus_DataStatus_Previous DataStatus = 2 //前一个时间点数据 DataStatus_DataStatus_Back DataStatus = 3 //后一个时间点数据 )
func (DataStatus) Descriptor ¶
func (DataStatus) Descriptor() protoreflect.EnumDescriptor
func (DataStatus) Enum ¶
func (x DataStatus) Enum() *DataStatus
func (DataStatus) EnumDescriptor
deprecated
func (DataStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use DataStatus.Descriptor instead.
func (DataStatus) Number ¶
func (x DataStatus) Number() protoreflect.EnumNumber
func (DataStatus) String ¶
func (x DataStatus) String() string
func (DataStatus) Type ¶
func (DataStatus) Type() protoreflect.EnumType
func (*DataStatus) UnmarshalJSON
deprecated
func (x *DataStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type HistoryPointsKL ¶
type HistoryPointsKL struct { Status *int32 `protobuf:"varint,1,req,name=status" json:"status,omitempty"` //DataStatus,数据状态 ReqTime *string `protobuf:"bytes,2,req,name=reqTime" json:"reqTime,omitempty"` //请求的时间 Kl *qotcommon.KLine `protobuf:"bytes,3,req,name=kl" json:"kl,omitempty"` //K线数据 // contains filtered or unexported fields }
func (*HistoryPointsKL) Descriptor
deprecated
func (*HistoryPointsKL) Descriptor() ([]byte, []int)
Deprecated: Use HistoryPointsKL.ProtoReflect.Descriptor instead.
func (*HistoryPointsKL) GetKl ¶
func (x *HistoryPointsKL) GetKl() *qotcommon.KLine
func (*HistoryPointsKL) GetReqTime ¶
func (x *HistoryPointsKL) GetReqTime() string
func (*HistoryPointsKL) GetStatus ¶
func (x *HistoryPointsKL) GetStatus() int32
func (*HistoryPointsKL) ProtoMessage ¶
func (*HistoryPointsKL) ProtoMessage()
func (*HistoryPointsKL) ProtoReflect ¶
func (x *HistoryPointsKL) ProtoReflect() protoreflect.Message
func (*HistoryPointsKL) Reset ¶
func (x *HistoryPointsKL) Reset()
func (*HistoryPointsKL) String ¶
func (x *HistoryPointsKL) String() string
type NoDataMode ¶
type NoDataMode int32
当请求时间点数据为空时,如何返回数据
const ( NoDataMode_NoDataMode_Null NoDataMode = 0 //直接返回空数据 NoDataMode_NoDataMode_Forward NoDataMode = 1 //往前取值,返回前一个时间点数据 NoDataMode_NoDataMode_Backward NoDataMode = 2 //向后取值,返回后一个时间点数据 )
func (NoDataMode) Descriptor ¶
func (NoDataMode) Descriptor() protoreflect.EnumDescriptor
func (NoDataMode) Enum ¶
func (x NoDataMode) Enum() *NoDataMode
func (NoDataMode) EnumDescriptor
deprecated
func (NoDataMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use NoDataMode.Descriptor instead.
func (NoDataMode) Number ¶
func (x NoDataMode) Number() protoreflect.EnumNumber
func (NoDataMode) String ¶
func (x NoDataMode) String() string
func (NoDataMode) Type ¶
func (NoDataMode) Type() protoreflect.EnumType
func (*NoDataMode) UnmarshalJSON
deprecated
func (x *NoDataMode) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
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 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 { KlPointList []*SecurityHistoryKLPoints `protobuf:"bytes,1,rep,name=klPointList" json:"klPointList,omitempty"` //多只股票的多点历史K线点 HasNext *bool `protobuf:"varint,2,opt,name=hasNext" json:"hasNext,omitempty"` //如请求不指定maxReqSecurityNum值,则不会返回该字段,该字段表示请求是否还有超过指定限制的数据 // contains filtered or unexported fields }
func (*S2C) Descriptor
deprecated
func (*S2C) GetHasNext ¶
func (*S2C) GetKlPointList ¶
func (x *S2C) GetKlPointList() []*SecurityHistoryKLPoints
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
type SecurityHistoryKLPoints ¶
type SecurityHistoryKLPoints struct { Security *qotcommon.Security `protobuf:"bytes,1,req,name=security" json:"security,omitempty"` //股票 KlList []*HistoryPointsKL `protobuf:"bytes,2,rep,name=klList" json:"klList,omitempty"` //K线数据 // contains filtered or unexported fields }
func (*SecurityHistoryKLPoints) Descriptor
deprecated
func (*SecurityHistoryKLPoints) Descriptor() ([]byte, []int)
Deprecated: Use SecurityHistoryKLPoints.ProtoReflect.Descriptor instead.
func (*SecurityHistoryKLPoints) GetKlList ¶
func (x *SecurityHistoryKLPoints) GetKlList() []*HistoryPointsKL
func (*SecurityHistoryKLPoints) GetSecurity ¶
func (x *SecurityHistoryKLPoints) GetSecurity() *qotcommon.Security
func (*SecurityHistoryKLPoints) ProtoMessage ¶
func (*SecurityHistoryKLPoints) ProtoMessage()
func (*SecurityHistoryKLPoints) ProtoReflect ¶
func (x *SecurityHistoryKLPoints) ProtoReflect() protoreflect.Message
func (*SecurityHistoryKLPoints) Reset ¶
func (x *SecurityHistoryKLPoints) Reset()
func (*SecurityHistoryKLPoints) String ¶
func (x *SecurityHistoryKLPoints) String() string
Click to show internal directories.
Click to hide internal directories.