Documentation ¶
Index ¶
- Constants
- Variables
- type C2S
- func (*C2S) Descriptor() ([]byte, []int)deprecated
- func (x *C2S) GetBeginTime() string
- func (x *C2S) GetCondition() int32
- func (x *C2S) GetDataFilter() *DataFilter
- func (x *C2S) GetEndTime() string
- func (x *C2S) GetIndexOptionType() int32
- func (x *C2S) GetOwner() *qotcommon.Security
- func (x *C2S) GetType() int32
- func (*C2S) ProtoMessage()
- func (x *C2S) ProtoReflect() protoreflect.Message
- func (x *C2S) Reset()
- func (x *C2S) String() string
- type DataFilter
- func (*DataFilter) Descriptor() ([]byte, []int)deprecated
- func (x *DataFilter) GetDeltaMax() float64
- func (x *DataFilter) GetDeltaMin() float64
- func (x *DataFilter) GetGammaMax() float64
- func (x *DataFilter) GetGammaMin() float64
- func (x *DataFilter) GetImpliedVolatilityMax() float64
- func (x *DataFilter) GetImpliedVolatilityMin() float64
- func (x *DataFilter) GetNetOpenInterestMax() float64
- func (x *DataFilter) GetNetOpenInterestMin() float64
- func (x *DataFilter) GetOpenInterestMax() float64
- func (x *DataFilter) GetOpenInterestMin() float64
- func (x *DataFilter) GetRhoMax() float64
- func (x *DataFilter) GetRhoMin() float64
- func (x *DataFilter) GetThetaMax() float64
- func (x *DataFilter) GetThetaMin() float64
- func (x *DataFilter) GetVegaMax() float64
- func (x *DataFilter) GetVegaMin() float64
- func (x *DataFilter) GetVolMax() float64
- func (x *DataFilter) GetVolMin() float64
- func (*DataFilter) ProtoMessage()
- func (x *DataFilter) ProtoReflect() protoreflect.Message
- func (x *DataFilter) Reset()
- func (x *DataFilter) String() string
- type OptionChain
- func (*OptionChain) Descriptor() ([]byte, []int)deprecated
- func (x *OptionChain) GetOption() []*OptionItem
- func (x *OptionChain) GetStrikeTime() string
- func (x *OptionChain) GetStrikeTimestamp() float64
- func (*OptionChain) ProtoMessage()
- func (x *OptionChain) ProtoReflect() protoreflect.Message
- func (x *OptionChain) Reset()
- func (x *OptionChain) String() string
- type OptionCondType
- func (OptionCondType) Descriptor() protoreflect.EnumDescriptor
- func (x OptionCondType) Enum() *OptionCondType
- func (OptionCondType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OptionCondType) Number() protoreflect.EnumNumber
- func (x OptionCondType) String() string
- func (OptionCondType) Type() protoreflect.EnumType
- func (x *OptionCondType) UnmarshalJSON(b []byte) errordeprecated
- type OptionItem
- func (*OptionItem) Descriptor() ([]byte, []int)deprecated
- func (x *OptionItem) GetCall() *qotcommon.SecurityStaticInfo
- func (x *OptionItem) GetPut() *qotcommon.SecurityStaticInfo
- func (*OptionItem) ProtoMessage()
- func (x *OptionItem) ProtoReflect() protoreflect.Message
- func (x *OptionItem) Reset()
- func (x *OptionItem) 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 ResponseChan
- type S2C
Constants ¶
View Source
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
View Source
var ( OptionCondType_name = map[int32]string{ 0: "OptionCondType_Unknow", 1: "OptionCondType_WithIn", 2: "OptionCondType_Outside", } OptionCondType_value = map[string]int32{ "OptionCondType_Unknow": 0, "OptionCondType_WithIn": 1, "OptionCondType_Outside": 2, } )
Enum value maps for OptionCondType.
View Source
var File_Qot_GetOptionChain_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S struct { Owner *qotcommon.Security `protobuf:"bytes,1,req,name=owner" json:"owner,omitempty"` //期权标的股,目前仅支持传入港美正股以及恒指国指 IndexOptionType *int32 `protobuf:"varint,6,opt,name=indexOptionType" json:"indexOptionType,omitempty"` //Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指 Type *int32 `protobuf:"varint,2,opt,name=type" json:"type,omitempty"` //Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回 Condition *int32 `protobuf:"varint,3,opt,name=condition" json:"condition,omitempty"` //OptionCondType,价内价外,可选字段,不指定则表示都返回 BeginTime *string `protobuf:"bytes,4,req,name=beginTime" json:"beginTime,omitempty"` //期权到期日开始时间 EndTime *string `protobuf:"bytes,5,req,name=endTime" json:"endTime,omitempty"` //期权到期日结束时间,时间跨度最多一个月 DataFilter *DataFilter `protobuf:"bytes,7,opt,name=dataFilter" json:"dataFilter,omitempty"` //数据字段筛选 // contains filtered or unexported fields }
func (*C2S) Descriptor
deprecated
func (*C2S) GetBeginTime ¶
func (*C2S) GetCondition ¶
func (*C2S) GetDataFilter ¶
func (x *C2S) GetDataFilter() *DataFilter
func (*C2S) GetEndTime ¶
func (*C2S) GetIndexOptionType ¶
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) ProtoReflect ¶
func (x *C2S) ProtoReflect() protoreflect.Message
type DataFilter ¶
type DataFilter struct { ImpliedVolatilityMin *float64 `protobuf:"fixed64,1,opt,name=impliedVolatilityMin" json:"impliedVolatilityMin,omitempty"` //隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃) ImpliedVolatilityMax *float64 `protobuf:"fixed64,2,opt,name=impliedVolatilityMax" json:"impliedVolatilityMax,omitempty"` //隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃) DeltaMin *float64 `protobuf:"fixed64,3,opt,name=deltaMin" json:"deltaMin,omitempty"` //希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃) DeltaMax *float64 `protobuf:"fixed64,4,opt,name=deltaMax" json:"deltaMax,omitempty"` //希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃) GammaMin *float64 `protobuf:"fixed64,5,opt,name=gammaMin" json:"gammaMin,omitempty"` //希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃) GammaMax *float64 `protobuf:"fixed64,6,opt,name=gammaMax" json:"gammaMax,omitempty"` //希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃) VegaMin *float64 `protobuf:"fixed64,7,opt,name=vegaMin" json:"vegaMin,omitempty"` //希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃) VegaMax *float64 `protobuf:"fixed64,8,opt,name=vegaMax" json:"vegaMax,omitempty"` //希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃) ThetaMin *float64 `protobuf:"fixed64,9,opt,name=thetaMin" json:"thetaMin,omitempty"` //希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃) ThetaMax *float64 `protobuf:"fixed64,10,opt,name=thetaMax" json:"thetaMax,omitempty"` //希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃) RhoMin *float64 `protobuf:"fixed64,11,opt,name=rhoMin" json:"rhoMin,omitempty"` //希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃) RhoMax *float64 `protobuf:"fixed64,12,opt,name=rhoMax" json:"rhoMax,omitempty"` //希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃) NetOpenInterestMin *float64 `protobuf:"fixed64,13,opt,name=netOpenInterestMin" json:"netOpenInterestMin,omitempty"` //净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃) NetOpenInterestMax *float64 `protobuf:"fixed64,14,opt,name=netOpenInterestMax" json:"netOpenInterestMax,omitempty"` //净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃) OpenInterestMin *float64 `protobuf:"fixed64,15,opt,name=openInterestMin" json:"openInterestMin,omitempty"` //未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃) OpenInterestMax *float64 `protobuf:"fixed64,16,opt,name=openInterestMax" json:"openInterestMax,omitempty"` //未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃) VolMin *float64 `protobuf:"fixed64,17,opt,name=volMin" json:"volMin,omitempty"` //成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃) VolMax *float64 `protobuf:"fixed64,18,opt,name=volMax" json:"volMax,omitempty"` //成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃) // contains filtered or unexported fields }
以下为数据字段筛选,可选字段,不填表示不过滤
func (*DataFilter) Descriptor
deprecated
func (*DataFilter) Descriptor() ([]byte, []int)
Deprecated: Use DataFilter.ProtoReflect.Descriptor instead.
func (*DataFilter) GetDeltaMax ¶
func (x *DataFilter) GetDeltaMax() float64
func (*DataFilter) GetDeltaMin ¶
func (x *DataFilter) GetDeltaMin() float64
func (*DataFilter) GetGammaMax ¶
func (x *DataFilter) GetGammaMax() float64
func (*DataFilter) GetGammaMin ¶
func (x *DataFilter) GetGammaMin() float64
func (*DataFilter) GetImpliedVolatilityMax ¶
func (x *DataFilter) GetImpliedVolatilityMax() float64
func (*DataFilter) GetImpliedVolatilityMin ¶
func (x *DataFilter) GetImpliedVolatilityMin() float64
func (*DataFilter) GetNetOpenInterestMax ¶
func (x *DataFilter) GetNetOpenInterestMax() float64
func (*DataFilter) GetNetOpenInterestMin ¶
func (x *DataFilter) GetNetOpenInterestMin() float64
func (*DataFilter) GetOpenInterestMax ¶
func (x *DataFilter) GetOpenInterestMax() float64
func (*DataFilter) GetOpenInterestMin ¶
func (x *DataFilter) GetOpenInterestMin() float64
func (*DataFilter) GetRhoMax ¶
func (x *DataFilter) GetRhoMax() float64
func (*DataFilter) GetRhoMin ¶
func (x *DataFilter) GetRhoMin() float64
func (*DataFilter) GetThetaMax ¶
func (x *DataFilter) GetThetaMax() float64
func (*DataFilter) GetThetaMin ¶
func (x *DataFilter) GetThetaMin() float64
func (*DataFilter) GetVegaMax ¶
func (x *DataFilter) GetVegaMax() float64
func (*DataFilter) GetVegaMin ¶
func (x *DataFilter) GetVegaMin() float64
func (*DataFilter) GetVolMax ¶
func (x *DataFilter) GetVolMax() float64
func (*DataFilter) GetVolMin ¶
func (x *DataFilter) GetVolMin() float64
func (*DataFilter) ProtoMessage ¶
func (*DataFilter) ProtoMessage()
func (*DataFilter) ProtoReflect ¶
func (x *DataFilter) ProtoReflect() protoreflect.Message
func (*DataFilter) Reset ¶
func (x *DataFilter) Reset()
func (*DataFilter) String ¶
func (x *DataFilter) String() string
type OptionChain ¶
type OptionChain struct { StrikeTime *string `protobuf:"bytes,1,req,name=strikeTime" json:"strikeTime,omitempty"` //行权日 Option []*OptionItem `protobuf:"bytes,2,rep,name=option" json:"option,omitempty"` //期权信息 StrikeTimestamp *float64 `protobuf:"fixed64,3,opt,name=strikeTimestamp" json:"strikeTimestamp,omitempty"` //行权日时间戳 // contains filtered or unexported fields }
func (*OptionChain) Descriptor
deprecated
func (*OptionChain) Descriptor() ([]byte, []int)
Deprecated: Use OptionChain.ProtoReflect.Descriptor instead.
func (*OptionChain) GetOption ¶
func (x *OptionChain) GetOption() []*OptionItem
func (*OptionChain) GetStrikeTime ¶
func (x *OptionChain) GetStrikeTime() string
func (*OptionChain) GetStrikeTimestamp ¶
func (x *OptionChain) GetStrikeTimestamp() float64
func (*OptionChain) ProtoMessage ¶
func (*OptionChain) ProtoMessage()
func (*OptionChain) ProtoReflect ¶
func (x *OptionChain) ProtoReflect() protoreflect.Message
func (*OptionChain) Reset ¶
func (x *OptionChain) Reset()
func (*OptionChain) String ¶
func (x *OptionChain) String() string
type OptionCondType ¶
type OptionCondType int32
const ( OptionCondType_OptionCondType_Unknow OptionCondType = 0 OptionCondType_OptionCondType_WithIn OptionCondType = 1 //价内 OptionCondType_OptionCondType_Outside OptionCondType = 2 //价外 )
func (OptionCondType) Descriptor ¶
func (OptionCondType) Descriptor() protoreflect.EnumDescriptor
func (OptionCondType) Enum ¶
func (x OptionCondType) Enum() *OptionCondType
func (OptionCondType) EnumDescriptor
deprecated
func (OptionCondType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OptionCondType.Descriptor instead.
func (OptionCondType) Number ¶
func (x OptionCondType) Number() protoreflect.EnumNumber
func (OptionCondType) String ¶
func (x OptionCondType) String() string
func (OptionCondType) Type ¶
func (OptionCondType) Type() protoreflect.EnumType
func (*OptionCondType) UnmarshalJSON
deprecated
func (x *OptionCondType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type OptionItem ¶
type OptionItem struct { Call *qotcommon.SecurityStaticInfo `protobuf:"bytes,1,opt,name=call" json:"call,omitempty"` //看涨期权,不一定有该字段,由请求条件决定 Put *qotcommon.SecurityStaticInfo `protobuf:"bytes,2,opt,name=put" json:"put,omitempty"` //看跌期权,不一定有该字段,由请求条件决定 // contains filtered or unexported fields }
func (*OptionItem) Descriptor
deprecated
func (*OptionItem) Descriptor() ([]byte, []int)
Deprecated: Use OptionItem.ProtoReflect.Descriptor instead.
func (*OptionItem) GetCall ¶
func (x *OptionItem) GetCall() *qotcommon.SecurityStaticInfo
func (*OptionItem) GetPut ¶
func (x *OptionItem) GetPut() *qotcommon.SecurityStaticInfo
func (*OptionItem) ProtoMessage ¶
func (*OptionItem) ProtoMessage()
func (*OptionItem) ProtoReflect ¶
func (x *OptionItem) ProtoReflect() protoreflect.Message
func (*OptionItem) Reset ¶
func (x *OptionItem) Reset()
func (*OptionItem) String ¶
func (x *OptionItem) 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 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 { OptionChain []*OptionChain `protobuf:"bytes,1,rep,name=optionChain" json:"optionChain,omitempty"` //期权链 // contains filtered or unexported fields }
func (*S2C) Descriptor
deprecated
func (*S2C) GetOptionChain ¶
func (x *S2C) GetOptionChain() []*OptionChain
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.