Documentation
¶
Index ¶
- Constants
- Variables
- type Boundary
- type C2S
- func (*C2S) Descriptor() ([]byte, []int)deprecated
- func (x *C2S) GetFilterList() []*FilterGroup
- func (x *C2S) GetMarketCategoryList() []int32
- func (x *C2S) GetOptionRetrieveList() []int32
- func (x *C2S) GetPageCount() int32
- func (x *C2S) GetPageFrom() int32
- func (x *C2S) GetSortList() []*Sort
- func (x *C2S) GetUnderlyingRetrieveList() []int32
- func (*C2S) ProtoMessage()
- func (x *C2S) ProtoReflect() protoreflect.Message
- func (x *C2S) Reset()
- func (x *C2S) String() string
- type FilterGroup
- func (*FilterGroup) Descriptor() ([]byte, []int)deprecated
- func (x *FilterGroup) GetOptionList() []*OptionIndicator
- func (x *FilterGroup) GetUnderlyingList() []*UnderlyingIndicator
- func (*FilterGroup) ProtoMessage()
- func (x *FilterGroup) ProtoReflect() protoreflect.Message
- func (x *FilterGroup) Reset()
- func (x *FilterGroup) String() string
- type IndicatorValue
- func (*IndicatorValue) Descriptor() ([]byte, []int)deprecated
- func (x *IndicatorValue) GetStrValueList() []string
- func (x *IndicatorValue) GetValueInterval() *Interval
- func (x *IndicatorValue) GetValueList() []int64
- func (*IndicatorValue) ProtoMessage()
- func (x *IndicatorValue) ProtoReflect() protoreflect.Message
- func (x *IndicatorValue) Reset()
- func (x *IndicatorValue) String() string
- type Interval
- type MarketCategory
- func (MarketCategory) Descriptor() protoreflect.EnumDescriptor
- func (x MarketCategory) Enum() *MarketCategory
- func (MarketCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x MarketCategory) Number() protoreflect.EnumNumber
- func (x MarketCategory) String() string
- func (MarketCategory) Type() protoreflect.EnumType
- func (x *MarketCategory) UnmarshalJSON(b []byte) errordeprecated
- type OptionIndicator
- func (*OptionIndicator) Descriptor() ([]byte, []int)deprecated
- func (x *OptionIndicator) GetIndicatorType() int32
- func (x *OptionIndicator) GetIndicatorValue() *IndicatorValue
- func (*OptionIndicator) ProtoMessage()
- func (x *OptionIndicator) ProtoReflect() protoreflect.Message
- func (x *OptionIndicator) Reset()
- func (x *OptionIndicator) String() string
- type OptionIndicatorType
- func (OptionIndicatorType) Descriptor() protoreflect.EnumDescriptor
- func (x OptionIndicatorType) Enum() *OptionIndicatorType
- func (OptionIndicatorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OptionIndicatorType) Number() protoreflect.EnumNumber
- func (x OptionIndicatorType) String() string
- func (OptionIndicatorType) Type() protoreflect.EnumType
- func (x *OptionIndicatorType) UnmarshalJSON(b []byte) errordeprecated
- type OptionPlate
- func (*OptionPlate) Descriptor() ([]byte, []int)deprecated
- func (x *OptionPlate) GetParentPlateId() string
- func (x *OptionPlate) GetPlateIdList() []string
- func (*OptionPlate) ProtoMessage()
- func (x *OptionPlate) ProtoReflect() protoreflect.Message
- func (x *OptionPlate) Reset()
- func (x *OptionPlate) String() string
- type OptionScreenItem
- func (*OptionScreenItem) Descriptor() ([]byte, []int)deprecated
- func (x *OptionScreenItem) GetAskPrice() float64
- func (x *OptionScreenItem) GetAskVolume() int64
- func (x *OptionScreenItem) GetBidAskSpread() float64
- func (x *OptionScreenItem) GetBidAskVolumeRatio() float64
- func (x *OptionScreenItem) GetBidPrice() float64
- func (x *OptionScreenItem) GetBidVolume() int64
- func (x *OptionScreenItem) GetBuyBreakEvenPoint() float64deprecated
- func (x *OptionScreenItem) GetBuyProfitProbability() float64
- func (x *OptionScreenItem) GetBuyToBep() float64
- func (x *OptionScreenItem) GetChangeRatio() float64
- func (x *OptionScreenItem) GetDelta() float64
- func (x *OptionScreenItem) GetEffectiveGearing() float64
- func (x *OptionScreenItem) GetExerciseType() int32
- func (x *OptionScreenItem) GetExpirationType() int32
- func (x *OptionScreenItem) GetGamma() float64
- func (x *OptionScreenItem) GetHistoryVolatility() float64
- func (x *OptionScreenItem) GetImpliedVolatility() float64
- func (x *OptionScreenItem) GetInTheMoney() int32
- func (x *OptionScreenItem) GetIntervalReturn() float64
- func (x *OptionScreenItem) GetIntrinsicValuePer() float64
- func (x *OptionScreenItem) GetItmDegree() float64
- func (x *OptionScreenItem) GetItmProbability() float64
- func (x *OptionScreenItem) GetIvHvRatio() float64
- func (x *OptionScreenItem) GetLeftDay() int32
- func (x *OptionScreenItem) GetLeverageRatio() float64
- func (x *OptionScreenItem) GetMidPrice() float64
- func (x *OptionScreenItem) GetOpenInterest() int64
- func (x *OptionScreenItem) GetOpenInterestMarketCap() float64
- func (x *OptionScreenItem) GetOptionName() string
- func (x *OptionScreenItem) GetOptionType() int32
- func (x *OptionScreenItem) GetOtmDegree() float64
- func (x *OptionScreenItem) GetOtmProbability() float64
- func (x *OptionScreenItem) GetPremium() float64
- func (x *OptionScreenItem) GetPrice() float64
- func (x *OptionScreenItem) GetRho() float64
- func (x *OptionScreenItem) GetSecurity() *qotcommon.Security
- func (x *OptionScreenItem) GetSellAnnualizedReturn() float64
- func (x *OptionScreenItem) GetSellProfitProbability() float64
- func (x *OptionScreenItem) GetSellToBep() float64
- func (x *OptionScreenItem) GetStrikeDate() int64
- func (x *OptionScreenItem) GetStrikePrice() float64
- func (x *OptionScreenItem) GetTheta() float64
- func (x *OptionScreenItem) GetTimeValuePer() float64
- func (x *OptionScreenItem) GetTurnover() float64
- func (x *OptionScreenItem) GetUnderlyingInfo() *UnderlyingInfo
- func (x *OptionScreenItem) GetVega() float64
- func (x *OptionScreenItem) GetVolOIRatio() float64
- func (x *OptionScreenItem) GetVolume() int64
- func (*OptionScreenItem) ProtoMessage()
- func (x *OptionScreenItem) ProtoReflect() protoreflect.Message
- func (x *OptionScreenItem) Reset()
- func (x *OptionScreenItem) 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 Sort
- type UnderlyingIndicator
- func (*UnderlyingIndicator) Descriptor() ([]byte, []int)deprecated
- func (x *UnderlyingIndicator) GetIndicatorType() int32
- func (x *UnderlyingIndicator) GetIndicatorValue() *IndicatorValue
- func (x *UnderlyingIndicator) GetPlateList() []*OptionPlate
- func (*UnderlyingIndicator) ProtoMessage()
- func (x *UnderlyingIndicator) ProtoReflect() protoreflect.Message
- func (x *UnderlyingIndicator) Reset()
- func (x *UnderlyingIndicator) String() string
- type UnderlyingIndicatorType
- func (UnderlyingIndicatorType) Descriptor() protoreflect.EnumDescriptor
- func (x UnderlyingIndicatorType) Enum() *UnderlyingIndicatorType
- func (UnderlyingIndicatorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UnderlyingIndicatorType) Number() protoreflect.EnumNumber
- func (x UnderlyingIndicatorType) String() string
- func (UnderlyingIndicatorType) Type() protoreflect.EnumType
- func (x *UnderlyingIndicatorType) UnmarshalJSON(b []byte) errordeprecated
- type UnderlyingInfo
- func (*UnderlyingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UnderlyingInfo) GetChangeRatio() float64
- func (x *UnderlyingInfo) GetHv() float64
- func (x *UnderlyingInfo) GetIv() float64
- func (x *UnderlyingInfo) GetIvPercentile() float64
- func (x *UnderlyingInfo) GetIvRank() float64
- func (x *UnderlyingInfo) GetMarketCap() float64
- func (x *UnderlyingInfo) GetPrice() float64
- func (x *UnderlyingInfo) GetStockID() uint64
- func (*UnderlyingInfo) ProtoMessage()
- func (x *UnderlyingInfo) ProtoReflect() protoreflect.Message
- func (x *UnderlyingInfo) Reset()
- func (x *UnderlyingInfo) String() string
Constants ¶
const (
Default_Response_RetType = int32(-400)
)
Default values for Response fields.
Variables ¶
var ( MarketCategory_name = map[int32]string{ 0: "MarketCategory_US_Stock", 1: "MarketCategory_US_Index", 2: "MarketCategory_US_Future", 3: "MarketCategory_HK_Stock", 4: "MarketCategory_HK_Index", 5: "MarketCategory_JP_Stock", 6: "MarketCategory_JP_Index", } MarketCategory_value = map[string]int32{ "MarketCategory_US_Stock": 0, "MarketCategory_US_Index": 1, "MarketCategory_US_Future": 2, "MarketCategory_HK_Stock": 3, "MarketCategory_HK_Index": 4, "MarketCategory_JP_Stock": 5, "MarketCategory_JP_Index": 6, } )
Enum value maps for MarketCategory.
var ( UnderlyingIndicatorType_name = map[int32]string{ 0: "UnderlyingIndicatorType_Unknown", 101: "UnderlyingIndicatorType_StockList", 103: "UnderlyingIndicatorType_Plate", 106: "UnderlyingIndicatorType_IndexList", 201: "UnderlyingIndicatorType_Volume", 202: "UnderlyingIndicatorType_OpenInterest", 203: "UnderlyingIndicatorType_IV", 204: "UnderlyingIndicatorType_HV", 205: "UnderlyingIndicatorType_IVRank", 206: "UnderlyingIndicatorType_IVPercentile", 207: "UnderlyingIndicatorType_IVChange", 208: "UnderlyingIndicatorType_IVChangeRatio", 209: "UnderlyingIndicatorType_IVHVRatio", 210: "UnderlyingIndicatorType_IVHVSpread", 401: "UnderlyingIndicatorType_MarketCap", 402: "UnderlyingIndicatorType_StockPrice", 403: "UnderlyingIndicatorType_ChangeRatio", } UnderlyingIndicatorType_value = map[string]int32{ "UnderlyingIndicatorType_Unknown": 0, "UnderlyingIndicatorType_StockList": 101, "UnderlyingIndicatorType_Plate": 103, "UnderlyingIndicatorType_IndexList": 106, "UnderlyingIndicatorType_Volume": 201, "UnderlyingIndicatorType_OpenInterest": 202, "UnderlyingIndicatorType_IV": 203, "UnderlyingIndicatorType_HV": 204, "UnderlyingIndicatorType_IVRank": 205, "UnderlyingIndicatorType_IVPercentile": 206, "UnderlyingIndicatorType_IVChange": 207, "UnderlyingIndicatorType_IVChangeRatio": 208, "UnderlyingIndicatorType_IVHVRatio": 209, "UnderlyingIndicatorType_IVHVSpread": 210, "UnderlyingIndicatorType_MarketCap": 401, "UnderlyingIndicatorType_StockPrice": 402, "UnderlyingIndicatorType_ChangeRatio": 403, } )
Enum value maps for UnderlyingIndicatorType.
var ( OptionIndicatorType_name = map[int32]string{ 0: "OptionIndicatorType_Unknown", 1001: "OptionIndicatorType_StrikePrice", 1002: "OptionIndicatorType_LeftDay", 1003: "OptionIndicatorType_OptionType", 1004: "OptionIndicatorType_ExerciseType", 1005: "OptionIndicatorType_ExpirationType", 1007: "OptionIndicatorType_StrikeDateTimestamp", 2001: "OptionIndicatorType_InTheMoney", 2002: "OptionIndicatorType_Price", 2003: "OptionIndicatorType_MidPrice", 2004: "OptionIndicatorType_BidPrice", 2005: "OptionIndicatorType_AskPrice", 2006: "OptionIndicatorType_BidAskSpread", 2007: "OptionIndicatorType_BidVolume", 2008: "OptionIndicatorType_AskVolume", 2009: "OptionIndicatorType_BidAskVolumeRatio", 2010: "OptionIndicatorType_ChangeRatio", 2011: "OptionIndicatorType_Volume", 2012: "OptionIndicatorType_Turnover", 2013: "OptionIndicatorType_OpenInterest", 2014: "OptionIndicatorType_OpenInterestMarketCap", 2018: "OptionIndicatorType_VolOIRatio", 2021: "OptionIndicatorType_Premium", 3001: "OptionIndicatorType_ImpliedVolatility", 3002: "OptionIndicatorType_HistoryVolatility", 3003: "OptionIndicatorType_IVHVRatio", 3004: "OptionIndicatorType_Delta", 3005: "OptionIndicatorType_Gamma", 3006: "OptionIndicatorType_Vega", 3007: "OptionIndicatorType_Theta", 3008: "OptionIndicatorType_Rho", 3009: "OptionIndicatorType_LeverageRatio", 3010: "OptionIndicatorType_EffectiveGearing", 3011: "OptionIndicatorType_BuyToBep", 3012: "OptionIndicatorType_SellToBep", 3013: "OptionIndicatorType_BuyProfitProbability", 3014: "OptionIndicatorType_SellProfitProbability", 3015: "OptionIndicatorType_IntrinsicValuePer", 3016: "OptionIndicatorType_TimeValuePer", 3017: "OptionIndicatorType_ITMDegree", 3018: "OptionIndicatorType_OTMDegree", 3019: "OptionIndicatorType_ITMProbability", 3020: "OptionIndicatorType_OTMProbability", 3021: "OptionIndicatorType_SellAnnualizedReturn", 3022: "OptionIndicatorType_IntervalReturn", 3023: "OptionIndicatorType_BuyBreakEvenPoint", } OptionIndicatorType_value = map[string]int32{ "OptionIndicatorType_Unknown": 0, "OptionIndicatorType_StrikePrice": 1001, "OptionIndicatorType_LeftDay": 1002, "OptionIndicatorType_OptionType": 1003, "OptionIndicatorType_ExerciseType": 1004, "OptionIndicatorType_ExpirationType": 1005, "OptionIndicatorType_StrikeDateTimestamp": 1007, "OptionIndicatorType_InTheMoney": 2001, "OptionIndicatorType_Price": 2002, "OptionIndicatorType_MidPrice": 2003, "OptionIndicatorType_BidPrice": 2004, "OptionIndicatorType_AskPrice": 2005, "OptionIndicatorType_BidAskSpread": 2006, "OptionIndicatorType_BidVolume": 2007, "OptionIndicatorType_AskVolume": 2008, "OptionIndicatorType_BidAskVolumeRatio": 2009, "OptionIndicatorType_ChangeRatio": 2010, "OptionIndicatorType_Volume": 2011, "OptionIndicatorType_Turnover": 2012, "OptionIndicatorType_OpenInterest": 2013, "OptionIndicatorType_OpenInterestMarketCap": 2014, "OptionIndicatorType_VolOIRatio": 2018, "OptionIndicatorType_Premium": 2021, "OptionIndicatorType_ImpliedVolatility": 3001, "OptionIndicatorType_HistoryVolatility": 3002, "OptionIndicatorType_IVHVRatio": 3003, "OptionIndicatorType_Delta": 3004, "OptionIndicatorType_Gamma": 3005, "OptionIndicatorType_Vega": 3006, "OptionIndicatorType_Theta": 3007, "OptionIndicatorType_Rho": 3008, "OptionIndicatorType_LeverageRatio": 3009, "OptionIndicatorType_EffectiveGearing": 3010, "OptionIndicatorType_BuyToBep": 3011, "OptionIndicatorType_SellToBep": 3012, "OptionIndicatorType_BuyProfitProbability": 3013, "OptionIndicatorType_SellProfitProbability": 3014, "OptionIndicatorType_IntrinsicValuePer": 3015, "OptionIndicatorType_TimeValuePer": 3016, "OptionIndicatorType_ITMDegree": 3017, "OptionIndicatorType_OTMDegree": 3018, "OptionIndicatorType_ITMProbability": 3019, "OptionIndicatorType_OTMProbability": 3020, "OptionIndicatorType_SellAnnualizedReturn": 3021, "OptionIndicatorType_IntervalReturn": 3022, "OptionIndicatorType_BuyBreakEvenPoint": 3023, } )
Enum value maps for OptionIndicatorType.
var File_Qot_OptionScreen_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Boundary ¶
type Boundary struct {
Value *float64 `protobuf:"fixed64,1,req,name=value" json:"value,omitempty"` // 边界值 (double, 用户直接传原始值)
Includes *bool `protobuf:"varint,2,req,name=includes" json:"includes,omitempty"` // 是否包含此值
// contains filtered or unexported fields
}
func (*Boundary) Descriptor
deprecated
func (*Boundary) GetIncludes ¶
func (*Boundary) ProtoMessage ¶
func (*Boundary) ProtoMessage()
func (*Boundary) ProtoReflect ¶
func (x *Boundary) ProtoReflect() protoreflect.Message
type C2S ¶
type C2S struct {
MarketCategoryList []int32 `protobuf:"varint,1,rep,name=marketCategoryList" json:"marketCategoryList,omitempty"` // MarketCategory 市场品类列表(至少一个)
FilterList []*FilterGroup `protobuf:"bytes,2,rep,name=filterList" json:"filterList,omitempty"` // 筛选条件组(组间AND)
SortList []*Sort `protobuf:"bytes,3,rep,name=sortList" json:"sortList,omitempty"` // 排序
PageFrom *int32 `protobuf:"varint,4,opt,name=pageFrom" json:"pageFrom,omitempty"` // 数据偏移位,从0开始
PageCount *int32 `protobuf:"varint,5,opt,name=pageCount" json:"pageCount,omitempty"` // 最大数量(最大1000)
// 返回字段声明(类似StockScreen的retrieve),值为 OptionIndicatorType/UnderlyingIndicatorType
// 不填则返回默认基础字段集;code/option_name/strike_date/underlying stock_id 始终返回
OptionRetrieveList []int32 `protobuf:"varint,6,rep,name=optionRetrieveList" json:"optionRetrieveList,omitempty"` // 期权字段, 值为 OptionIndicatorType
UnderlyingRetrieveList []int32 `protobuf:"varint,7,rep,name=underlyingRetrieveList" json:"underlyingRetrieveList,omitempty"` // 标的字段, 值为 UnderlyingIndicatorType
// contains filtered or unexported fields
}
func (*C2S) Descriptor
deprecated
func (*C2S) GetFilterList ¶
func (x *C2S) GetFilterList() []*FilterGroup
func (*C2S) GetMarketCategoryList ¶
func (*C2S) GetOptionRetrieveList ¶
func (*C2S) GetPageCount ¶
func (*C2S) GetPageFrom ¶
func (*C2S) GetSortList ¶
func (*C2S) GetUnderlyingRetrieveList ¶
func (*C2S) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) ProtoReflect ¶
func (x *C2S) ProtoReflect() protoreflect.Message
type FilterGroup ¶
type FilterGroup struct {
UnderlyingList []*UnderlyingIndicator `protobuf:"bytes,1,rep,name=underlyingList" json:"underlyingList,omitempty"` // 标的筛选条件
OptionList []*OptionIndicator `protobuf:"bytes,2,rep,name=optionList" json:"optionList,omitempty"` // 期权筛选条件
// contains filtered or unexported fields
}
筛选条件组(组内OR, 组间AND)
func (*FilterGroup) Descriptor
deprecated
func (*FilterGroup) Descriptor() ([]byte, []int)
Deprecated: Use FilterGroup.ProtoReflect.Descriptor instead.
func (*FilterGroup) GetOptionList ¶
func (x *FilterGroup) GetOptionList() []*OptionIndicator
func (*FilterGroup) GetUnderlyingList ¶
func (x *FilterGroup) GetUnderlyingList() []*UnderlyingIndicator
func (*FilterGroup) ProtoMessage ¶
func (*FilterGroup) ProtoMessage()
func (*FilterGroup) ProtoReflect ¶
func (x *FilterGroup) ProtoReflect() protoreflect.Message
func (*FilterGroup) Reset ¶
func (x *FilterGroup) Reset()
func (*FilterGroup) String ¶
func (x *FilterGroup) String() string
type IndicatorValue ¶
type IndicatorValue struct {
ValueList []int64 `protobuf:"varint,1,rep,name=valueList" json:"valueList,omitempty"` // 确切值列表(用于枚举型筛选, 无倍率)
ValueInterval *Interval `protobuf:"bytes,2,opt,name=valueInterval" json:"valueInterval,omitempty"` // 值区间(用于范围型筛选, double 值)
StrValueList []string `protobuf:"bytes,3,rep,name=strValueList" json:"strValueList,omitempty"` // 字符串确切值列表(用于PLATE等, 如 ["BK1001"])
// contains filtered or unexported fields
}
func (*IndicatorValue) Descriptor
deprecated
func (*IndicatorValue) Descriptor() ([]byte, []int)
Deprecated: Use IndicatorValue.ProtoReflect.Descriptor instead.
func (*IndicatorValue) GetStrValueList ¶
func (x *IndicatorValue) GetStrValueList() []string
func (*IndicatorValue) GetValueInterval ¶
func (x *IndicatorValue) GetValueInterval() *Interval
func (*IndicatorValue) GetValueList ¶
func (x *IndicatorValue) GetValueList() []int64
func (*IndicatorValue) ProtoMessage ¶
func (*IndicatorValue) ProtoMessage()
func (*IndicatorValue) ProtoReflect ¶
func (x *IndicatorValue) ProtoReflect() protoreflect.Message
func (*IndicatorValue) Reset ¶
func (x *IndicatorValue) Reset()
func (*IndicatorValue) String ¶
func (x *IndicatorValue) String() string
type Interval ¶
type Interval struct {
FilterMin *Boundary `protobuf:"bytes,1,opt,name=filterMin" json:"filterMin,omitempty"` // 区间下限
FilterMax *Boundary `protobuf:"bytes,2,opt,name=filterMax" json:"filterMax,omitempty"` // 区间上限
// contains filtered or unexported fields
}
func (*Interval) Descriptor
deprecated
func (*Interval) GetFilterMax ¶
func (*Interval) GetFilterMin ¶
func (*Interval) ProtoMessage ¶
func (*Interval) ProtoMessage()
func (*Interval) ProtoReflect ¶
func (x *Interval) ProtoReflect() protoreflect.Message
type MarketCategory ¶
type MarketCategory int32
期权市场品类 (枚举值与后台 FTCmdOptionMarket.MarketCategory 一致, 直接透传)
const ( MarketCategory_MarketCategory_US_Stock MarketCategory = 0 // 美股股票期权 MarketCategory_MarketCategory_US_Index MarketCategory = 1 // 美股指数期权 MarketCategory_MarketCategory_US_Future MarketCategory = 2 // 美股期货期权 MarketCategory_MarketCategory_HK_Stock MarketCategory = 3 // 港股股票期权 MarketCategory_MarketCategory_HK_Index MarketCategory = 4 // 港股指数期权 MarketCategory_MarketCategory_JP_Stock MarketCategory = 5 // 日股股票期权 MarketCategory_MarketCategory_JP_Index MarketCategory = 6 // 日股指数期权 )
func (MarketCategory) Descriptor ¶
func (MarketCategory) Descriptor() protoreflect.EnumDescriptor
func (MarketCategory) Enum ¶
func (x MarketCategory) Enum() *MarketCategory
func (MarketCategory) EnumDescriptor
deprecated
func (MarketCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use MarketCategory.Descriptor instead.
func (MarketCategory) Number ¶
func (x MarketCategory) Number() protoreflect.EnumNumber
func (MarketCategory) String ¶
func (x MarketCategory) String() string
func (MarketCategory) Type ¶
func (MarketCategory) Type() protoreflect.EnumType
func (*MarketCategory) UnmarshalJSON
deprecated
func (x *MarketCategory) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type OptionIndicator ¶
type OptionIndicator struct {
IndicatorType *int32 `protobuf:"varint,1,req,name=indicatorType" json:"indicatorType,omitempty"` // OptionIndicatorType
IndicatorValue *IndicatorValue `protobuf:"bytes,2,opt,name=indicatorValue" json:"indicatorValue,omitempty"` // 筛选条件
// contains filtered or unexported fields
}
期权筛选条件
func (*OptionIndicator) Descriptor
deprecated
func (*OptionIndicator) Descriptor() ([]byte, []int)
Deprecated: Use OptionIndicator.ProtoReflect.Descriptor instead.
func (*OptionIndicator) GetIndicatorType ¶
func (x *OptionIndicator) GetIndicatorType() int32
func (*OptionIndicator) GetIndicatorValue ¶
func (x *OptionIndicator) GetIndicatorValue() *IndicatorValue
func (*OptionIndicator) ProtoMessage ¶
func (*OptionIndicator) ProtoMessage()
func (*OptionIndicator) ProtoReflect ¶
func (x *OptionIndicator) ProtoReflect() protoreflect.Message
func (*OptionIndicator) Reset ¶
func (x *OptionIndicator) Reset()
func (*OptionIndicator) String ¶
func (x *OptionIndicator) String() string
type OptionIndicatorType ¶
type OptionIndicatorType int32
期权筛选因子类型
const ( OptionIndicatorType_OptionIndicatorType_Unknown OptionIndicatorType = 0 // 未知 // 期权静态信息 OptionIndicatorType_OptionIndicatorType_StrikePrice OptionIndicatorType = 1001 // 【范围】行权价 OptionIndicatorType_OptionIndicatorType_LeftDay OptionIndicatorType = 1002 // 【范围】距离到期日天数 OptionIndicatorType_OptionIndicatorType_OptionType OptionIndicatorType = 1003 // 【确切值】期权类型(CALL/PUT) OptionIndicatorType_OptionIndicatorType_ExerciseType OptionIndicatorType = 1004 // 【确切值】行权方式(美式/欧式) OptionIndicatorType_OptionIndicatorType_ExpirationType OptionIndicatorType = 1005 // 【确切值】到期类型(周/月/季) OptionIndicatorType_OptionIndicatorType_StrikeDateTimestamp OptionIndicatorType = 1007 // 【确切值】到期日时间戳(秒) // 期权实时行情 OptionIndicatorType_OptionIndicatorType_InTheMoney OptionIndicatorType = 2001 // 【确切值】价内/价外(0:价外,1:价内) OptionIndicatorType_OptionIndicatorType_Price OptionIndicatorType = 2002 // 【范围】期权价格 OptionIndicatorType_OptionIndicatorType_MidPrice OptionIndicatorType = 2003 // 【范围】期权中间价 OptionIndicatorType_OptionIndicatorType_BidPrice OptionIndicatorType = 2004 // 【范围】买价 OptionIndicatorType_OptionIndicatorType_AskPrice OptionIndicatorType = 2005 // 【范围】卖价 OptionIndicatorType_OptionIndicatorType_BidAskSpread OptionIndicatorType = 2006 // 【范围】买卖价差 OptionIndicatorType_OptionIndicatorType_BidVolume OptionIndicatorType = 2007 // 【范围】买量 OptionIndicatorType_OptionIndicatorType_AskVolume OptionIndicatorType = 2008 // 【范围】卖量 OptionIndicatorType_OptionIndicatorType_BidAskVolumeRatio OptionIndicatorType = 2009 // 【范围】买卖量比 OptionIndicatorType_OptionIndicatorType_ChangeRatio OptionIndicatorType = 2010 // 【范围】涨跌幅 OptionIndicatorType_OptionIndicatorType_Volume OptionIndicatorType = 2011 // 【范围】成交量 OptionIndicatorType_OptionIndicatorType_Turnover OptionIndicatorType = 2012 // 【范围】成交额 OptionIndicatorType_OptionIndicatorType_OpenInterest OptionIndicatorType = 2013 // 【范围】持仓量 OptionIndicatorType_OptionIndicatorType_OpenInterestMarketCap OptionIndicatorType = 2014 // 【范围】持仓市值 OptionIndicatorType_OptionIndicatorType_VolOIRatio OptionIndicatorType = 2018 // 【范围】成交量/持仓量 // ⚠️ filter 不支持(后端 option_screener_svc 未实装, 入口拦截报错); sort/retrieve 可用 OptionIndicatorType_OptionIndicatorType_Premium OptionIndicatorType = 2021 // 【范围】权利金, 仅 sort/retrieve // 期权分析指标 OptionIndicatorType_OptionIndicatorType_ImpliedVolatility OptionIndicatorType = 3001 // 【范围】隐含波动率 OptionIndicatorType_OptionIndicatorType_HistoryVolatility OptionIndicatorType = 3002 // 【范围】历史波动率 OptionIndicatorType_OptionIndicatorType_IVHVRatio OptionIndicatorType = 3003 // 【范围】IV/HV OptionIndicatorType_OptionIndicatorType_Delta OptionIndicatorType = 3004 // 【范围】Delta OptionIndicatorType_OptionIndicatorType_Gamma OptionIndicatorType = 3005 // 【范围】Gamma OptionIndicatorType_OptionIndicatorType_Vega OptionIndicatorType = 3006 // 【范围】Vega OptionIndicatorType_OptionIndicatorType_Theta OptionIndicatorType = 3007 // 【范围】Theta OptionIndicatorType_OptionIndicatorType_Rho OptionIndicatorType = 3008 // 【范围】Rho OptionIndicatorType_OptionIndicatorType_LeverageRatio OptionIndicatorType = 3009 // 【范围】杠杆比率 OptionIndicatorType_OptionIndicatorType_EffectiveGearing OptionIndicatorType = 3010 // 【范围】有效杠杆 OptionIndicatorType_OptionIndicatorType_BuyToBep OptionIndicatorType = 3011 // 【范围】买入到盈亏平衡点比率 OptionIndicatorType_OptionIndicatorType_SellToBep OptionIndicatorType = 3012 // 【范围】卖出到盈亏平衡点比率 OptionIndicatorType_OptionIndicatorType_BuyProfitProbability OptionIndicatorType = 3013 // 【范围】买入盈利概率 OptionIndicatorType_OptionIndicatorType_SellProfitProbability OptionIndicatorType = 3014 // 【范围】卖出盈利概率 OptionIndicatorType_OptionIndicatorType_IntrinsicValuePer OptionIndicatorType = 3015 // 【范围】内在价值百分比 OptionIndicatorType_OptionIndicatorType_TimeValuePer OptionIndicatorType = 3016 // 【范围】时间价值百分比 OptionIndicatorType_OptionIndicatorType_ITMDegree OptionIndicatorType = 3017 // 【范围】价内程度 OptionIndicatorType_OptionIndicatorType_OTMDegree OptionIndicatorType = 3018 // 【范围】价外程度 OptionIndicatorType_OptionIndicatorType_ITMProbability OptionIndicatorType = 3019 // 【范围】价内概率 OptionIndicatorType_OptionIndicatorType_OTMProbability OptionIndicatorType = 3020 // 【范围】价外概率 OptionIndicatorType_OptionIndicatorType_SellAnnualizedReturn OptionIndicatorType = 3021 // 【范围】卖出年化收益率 OptionIndicatorType_OptionIndicatorType_IntervalReturn OptionIndicatorType = 3022 // 【范围】卖出区间收益率 // ⚠️ 已废弃: 不支持 filter/sort/retrieve, 传入会报错。新代码请使用 BuyToBep(3011)。 // // Deprecated: Marked as deprecated in Qot_OptionScreen.proto. OptionIndicatorType_OptionIndicatorType_BuyBreakEvenPoint OptionIndicatorType = 3023 // 已废弃, 传入会报错 )
func (OptionIndicatorType) Descriptor ¶
func (OptionIndicatorType) Descriptor() protoreflect.EnumDescriptor
func (OptionIndicatorType) Enum ¶
func (x OptionIndicatorType) Enum() *OptionIndicatorType
func (OptionIndicatorType) EnumDescriptor
deprecated
func (OptionIndicatorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OptionIndicatorType.Descriptor instead.
func (OptionIndicatorType) Number ¶
func (x OptionIndicatorType) Number() protoreflect.EnumNumber
func (OptionIndicatorType) String ¶
func (x OptionIndicatorType) String() string
func (OptionIndicatorType) Type ¶
func (OptionIndicatorType) Type() protoreflect.EnumType
func (*OptionIndicatorType) UnmarshalJSON
deprecated
func (x *OptionIndicatorType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type OptionPlate ¶
type OptionPlate struct {
ParentPlateId *string `protobuf:"bytes,1,opt,name=parentPlateId" json:"parentPlateId,omitempty"` // 父板块ID (如 "BK1000")
PlateIdList []string `protobuf:"bytes,2,rep,name=plateIdList" json:"plateIdList,omitempty"` // 板块ID列表 (并集关系, 如 ["BK1001","BK1002"])
// contains filtered or unexported fields
}
板块
func (*OptionPlate) Descriptor
deprecated
func (*OptionPlate) Descriptor() ([]byte, []int)
Deprecated: Use OptionPlate.ProtoReflect.Descriptor instead.
func (*OptionPlate) GetParentPlateId ¶
func (x *OptionPlate) GetParentPlateId() string
func (*OptionPlate) GetPlateIdList ¶
func (x *OptionPlate) GetPlateIdList() []string
func (*OptionPlate) ProtoMessage ¶
func (*OptionPlate) ProtoMessage()
func (*OptionPlate) ProtoReflect ¶
func (x *OptionPlate) ProtoReflect() protoreflect.Message
func (*OptionPlate) Reset ¶
func (x *OptionPlate) Reset()
func (*OptionPlate) String ¶
func (x *OptionPlate) String() string
type OptionScreenItem ¶
type OptionScreenItem struct {
Security *qotcommon.Security `protobuf:"bytes,1,opt,name=security" json:"security,omitempty"` // 期权证券信息
OptionName *string `protobuf:"bytes,2,opt,name=optionName" json:"optionName,omitempty"` // 期权名称
StrikePrice *float64 `protobuf:"fixed64,3,opt,name=strikePrice" json:"strikePrice,omitempty"` // 行权价
StrikeDate *int64 `protobuf:"varint,4,opt,name=strikeDate" json:"strikeDate,omitempty"` // 行权日(格式YYYYMMDD)
OptionType *int32 `protobuf:"varint,5,opt,name=optionType" json:"optionType,omitempty"` // 期权类型(CALL/PUT)
ExerciseType *int32 `protobuf:"varint,6,opt,name=exerciseType" json:"exerciseType,omitempty"` // 行权方式
ExpirationType *int32 `protobuf:"varint,7,opt,name=expirationType" json:"expirationType,omitempty"` // 到期类型
InTheMoney *int32 `protobuf:"varint,8,opt,name=inTheMoney" json:"inTheMoney,omitempty"` // 价内/价外(0:价外,1:价内)
LeftDay *int32 `protobuf:"varint,9,opt,name=leftDay" json:"leftDay,omitempty"` // 距到期天数
// 行情数据
Price *float64 `protobuf:"fixed64,20,opt,name=price" json:"price,omitempty"` // 期权价格
MidPrice *float64 `protobuf:"fixed64,21,opt,name=midPrice" json:"midPrice,omitempty"` // 中间价
BidPrice *float64 `protobuf:"fixed64,22,opt,name=bidPrice" json:"bidPrice,omitempty"` // 买价
AskPrice *float64 `protobuf:"fixed64,23,opt,name=askPrice" json:"askPrice,omitempty"` // 卖价
BidAskSpread *float64 `protobuf:"fixed64,24,opt,name=bidAskSpread" json:"bidAskSpread,omitempty"` // 买卖价差
BidVolume *int64 `protobuf:"varint,25,opt,name=bidVolume" json:"bidVolume,omitempty"` // 买量
AskVolume *int64 `protobuf:"varint,26,opt,name=askVolume" json:"askVolume,omitempty"` // 卖量
ChangeRatio *float64 `protobuf:"fixed64,27,opt,name=changeRatio" json:"changeRatio,omitempty"` // 涨跌幅
Volume *int64 `protobuf:"varint,28,opt,name=volume" json:"volume,omitempty"` // 成交量
Turnover *float64 `protobuf:"fixed64,29,opt,name=turnover" json:"turnover,omitempty"` // 成交额
OpenInterest *int64 `protobuf:"varint,30,opt,name=openInterest" json:"openInterest,omitempty"` // 持仓量
BidAskVolumeRatio *float64 `protobuf:"fixed64,31,opt,name=bidAskVolumeRatio" json:"bidAskVolumeRatio,omitempty"` // 买卖量比
OpenInterestMarketCap *float64 `protobuf:"fixed64,32,opt,name=openInterestMarketCap" json:"openInterestMarketCap,omitempty"` // 持仓市值
VolOIRatio *float64 `protobuf:"fixed64,33,opt,name=volOIRatio" json:"volOIRatio,omitempty"` // 成交量/持仓量
Premium *float64 `protobuf:"fixed64,34,opt,name=premium" json:"premium,omitempty"` // 权利金
// Greeks
ImpliedVolatility *float64 `protobuf:"fixed64,40,opt,name=impliedVolatility" json:"impliedVolatility,omitempty"` // 隐含波动率
Delta *float64 `protobuf:"fixed64,41,opt,name=delta" json:"delta,omitempty"` // Delta
Gamma *float64 `protobuf:"fixed64,42,opt,name=gamma" json:"gamma,omitempty"` // Gamma
Vega *float64 `protobuf:"fixed64,43,opt,name=vega" json:"vega,omitempty"` // Vega
Theta *float64 `protobuf:"fixed64,44,opt,name=theta" json:"theta,omitempty"` // Theta
Rho *float64 `protobuf:"fixed64,45,opt,name=rho" json:"rho,omitempty"` // Rho
LeverageRatio *float64 `protobuf:"fixed64,46,opt,name=leverageRatio" json:"leverageRatio,omitempty"` // 杠杆比率
EffectiveGearing *float64 `protobuf:"fixed64,47,opt,name=effectiveGearing" json:"effectiveGearing,omitempty"` // 有效杠杆
ItmProbability *float64 `protobuf:"fixed64,48,opt,name=itmProbability" json:"itmProbability,omitempty"` // 价内概率
// ⚠️ 历史字段: 后端未返回对应数据, 已弃用, 始终不填充
// 新代码请用 buyToBep (字段 53)
//
// Deprecated: Marked as deprecated in Qot_OptionScreen.proto.
BuyBreakEvenPoint *float64 `protobuf:"fixed64,49,opt,name=buyBreakEvenPoint" json:"buyBreakEvenPoint,omitempty"` // 已弃用, 始终为空
// 标的信息
UnderlyingInfo *UnderlyingInfo `protobuf:"bytes,50,opt,name=underlyingInfo" json:"underlyingInfo,omitempty"` // 标的信息
// 期权分析指标 (续)
HistoryVolatility *float64 `protobuf:"fixed64,51,opt,name=historyVolatility" json:"historyVolatility,omitempty"` // 历史波动率
IvHvRatio *float64 `protobuf:"fixed64,52,opt,name=ivHvRatio" json:"ivHvRatio,omitempty"` // IV/HV
BuyToBep *float64 `protobuf:"fixed64,53,opt,name=buyToBep" json:"buyToBep,omitempty"` // 买入到盈亏平衡点比率
SellToBep *float64 `protobuf:"fixed64,54,opt,name=sellToBep" json:"sellToBep,omitempty"` // 卖出到盈亏平衡点比率
BuyProfitProbability *float64 `protobuf:"fixed64,55,opt,name=buyProfitProbability" json:"buyProfitProbability,omitempty"` // 买入盈利概率
SellProfitProbability *float64 `protobuf:"fixed64,56,opt,name=sellProfitProbability" json:"sellProfitProbability,omitempty"` // 卖出盈利概率
IntrinsicValuePer *float64 `protobuf:"fixed64,57,opt,name=intrinsicValuePer" json:"intrinsicValuePer,omitempty"` // 内在价值百分比
TimeValuePer *float64 `protobuf:"fixed64,58,opt,name=timeValuePer" json:"timeValuePer,omitempty"` // 时间价值百分比
ItmDegree *float64 `protobuf:"fixed64,59,opt,name=itmDegree" json:"itmDegree,omitempty"` // 价内程度
OtmDegree *float64 `protobuf:"fixed64,60,opt,name=otmDegree" json:"otmDegree,omitempty"` // 价外程度
OtmProbability *float64 `protobuf:"fixed64,61,opt,name=otmProbability" json:"otmProbability,omitempty"` // 价外概率
SellAnnualizedReturn *float64 `protobuf:"fixed64,62,opt,name=sellAnnualizedReturn" json:"sellAnnualizedReturn,omitempty"` // 卖出年化收益率
IntervalReturn *float64 `protobuf:"fixed64,63,opt,name=intervalReturn" json:"intervalReturn,omitempty"` // 卖出区间收益率
// contains filtered or unexported fields
}
期权数据项
func (*OptionScreenItem) Descriptor
deprecated
func (*OptionScreenItem) Descriptor() ([]byte, []int)
Deprecated: Use OptionScreenItem.ProtoReflect.Descriptor instead.
func (*OptionScreenItem) GetAskPrice ¶
func (x *OptionScreenItem) GetAskPrice() float64
func (*OptionScreenItem) GetAskVolume ¶
func (x *OptionScreenItem) GetAskVolume() int64
func (*OptionScreenItem) GetBidAskSpread ¶
func (x *OptionScreenItem) GetBidAskSpread() float64
func (*OptionScreenItem) GetBidAskVolumeRatio ¶
func (x *OptionScreenItem) GetBidAskVolumeRatio() float64
func (*OptionScreenItem) GetBidPrice ¶
func (x *OptionScreenItem) GetBidPrice() float64
func (*OptionScreenItem) GetBidVolume ¶
func (x *OptionScreenItem) GetBidVolume() int64
func (*OptionScreenItem) GetBuyBreakEvenPoint
deprecated
func (x *OptionScreenItem) GetBuyBreakEvenPoint() float64
Deprecated: Marked as deprecated in Qot_OptionScreen.proto.
func (*OptionScreenItem) GetBuyProfitProbability ¶
func (x *OptionScreenItem) GetBuyProfitProbability() float64
func (*OptionScreenItem) GetBuyToBep ¶
func (x *OptionScreenItem) GetBuyToBep() float64
func (*OptionScreenItem) GetChangeRatio ¶
func (x *OptionScreenItem) GetChangeRatio() float64
func (*OptionScreenItem) GetDelta ¶
func (x *OptionScreenItem) GetDelta() float64
func (*OptionScreenItem) GetEffectiveGearing ¶
func (x *OptionScreenItem) GetEffectiveGearing() float64
func (*OptionScreenItem) GetExerciseType ¶
func (x *OptionScreenItem) GetExerciseType() int32
func (*OptionScreenItem) GetExpirationType ¶
func (x *OptionScreenItem) GetExpirationType() int32
func (*OptionScreenItem) GetGamma ¶
func (x *OptionScreenItem) GetGamma() float64
func (*OptionScreenItem) GetHistoryVolatility ¶
func (x *OptionScreenItem) GetHistoryVolatility() float64
func (*OptionScreenItem) GetImpliedVolatility ¶
func (x *OptionScreenItem) GetImpliedVolatility() float64
func (*OptionScreenItem) GetInTheMoney ¶
func (x *OptionScreenItem) GetInTheMoney() int32
func (*OptionScreenItem) GetIntervalReturn ¶
func (x *OptionScreenItem) GetIntervalReturn() float64
func (*OptionScreenItem) GetIntrinsicValuePer ¶
func (x *OptionScreenItem) GetIntrinsicValuePer() float64
func (*OptionScreenItem) GetItmDegree ¶
func (x *OptionScreenItem) GetItmDegree() float64
func (*OptionScreenItem) GetItmProbability ¶
func (x *OptionScreenItem) GetItmProbability() float64
func (*OptionScreenItem) GetIvHvRatio ¶
func (x *OptionScreenItem) GetIvHvRatio() float64
func (*OptionScreenItem) GetLeftDay ¶
func (x *OptionScreenItem) GetLeftDay() int32
func (*OptionScreenItem) GetLeverageRatio ¶
func (x *OptionScreenItem) GetLeverageRatio() float64
func (*OptionScreenItem) GetMidPrice ¶
func (x *OptionScreenItem) GetMidPrice() float64
func (*OptionScreenItem) GetOpenInterest ¶
func (x *OptionScreenItem) GetOpenInterest() int64
func (*OptionScreenItem) GetOpenInterestMarketCap ¶
func (x *OptionScreenItem) GetOpenInterestMarketCap() float64
func (*OptionScreenItem) GetOptionName ¶
func (x *OptionScreenItem) GetOptionName() string
func (*OptionScreenItem) GetOptionType ¶
func (x *OptionScreenItem) GetOptionType() int32
func (*OptionScreenItem) GetOtmDegree ¶
func (x *OptionScreenItem) GetOtmDegree() float64
func (*OptionScreenItem) GetOtmProbability ¶
func (x *OptionScreenItem) GetOtmProbability() float64
func (*OptionScreenItem) GetPremium ¶
func (x *OptionScreenItem) GetPremium() float64
func (*OptionScreenItem) GetPrice ¶
func (x *OptionScreenItem) GetPrice() float64
func (*OptionScreenItem) GetRho ¶
func (x *OptionScreenItem) GetRho() float64
func (*OptionScreenItem) GetSecurity ¶
func (x *OptionScreenItem) GetSecurity() *qotcommon.Security
func (*OptionScreenItem) GetSellAnnualizedReturn ¶
func (x *OptionScreenItem) GetSellAnnualizedReturn() float64
func (*OptionScreenItem) GetSellProfitProbability ¶
func (x *OptionScreenItem) GetSellProfitProbability() float64
func (*OptionScreenItem) GetSellToBep ¶
func (x *OptionScreenItem) GetSellToBep() float64
func (*OptionScreenItem) GetStrikeDate ¶
func (x *OptionScreenItem) GetStrikeDate() int64
func (*OptionScreenItem) GetStrikePrice ¶
func (x *OptionScreenItem) GetStrikePrice() float64
func (*OptionScreenItem) GetTheta ¶
func (x *OptionScreenItem) GetTheta() float64
func (*OptionScreenItem) GetTimeValuePer ¶
func (x *OptionScreenItem) GetTimeValuePer() float64
func (*OptionScreenItem) GetTurnover ¶
func (x *OptionScreenItem) GetTurnover() float64
func (*OptionScreenItem) GetUnderlyingInfo ¶
func (x *OptionScreenItem) GetUnderlyingInfo() *UnderlyingInfo
func (*OptionScreenItem) GetVega ¶
func (x *OptionScreenItem) GetVega() float64
func (*OptionScreenItem) GetVolOIRatio ¶
func (x *OptionScreenItem) GetVolOIRatio() float64
func (*OptionScreenItem) GetVolume ¶
func (x *OptionScreenItem) GetVolume() int64
func (*OptionScreenItem) ProtoMessage ¶
func (*OptionScreenItem) ProtoMessage()
func (*OptionScreenItem) ProtoReflect ¶
func (x *OptionScreenItem) ProtoReflect() protoreflect.Message
func (*OptionScreenItem) Reset ¶
func (x *OptionScreenItem) Reset()
func (*OptionScreenItem) String ¶
func (x *OptionScreenItem) 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 {
LastPage *bool `protobuf:"varint,1,req,name=lastPage" json:"lastPage,omitempty"` // 是否最后一页
AllCount *int32 `protobuf:"varint,2,req,name=allCount" json:"allCount,omitempty"` // 数据总量
DataList []*OptionScreenItem `protobuf:"bytes,3,rep,name=dataList" json:"dataList,omitempty"` // 返回的期权数据列表
// contains filtered or unexported fields
}
func (*S2C) Descriptor
deprecated
func (*S2C) GetAllCount ¶
func (*S2C) GetDataList ¶
func (x *S2C) GetDataList() []*OptionScreenItem
func (*S2C) GetLastPage ¶
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
type Sort ¶
type Sort struct {
IndicatorType *int32 `protobuf:"varint,1,req,name=indicatorType" json:"indicatorType,omitempty"` // OptionIndicatorType(排序字段)
Direction *int32 `protobuf:"varint,2,req,name=direction" json:"direction,omitempty"` // 0=升序, 1=降序
// contains filtered or unexported fields
}
排序
func (*Sort) Descriptor
deprecated
func (*Sort) GetDirection ¶
func (*Sort) GetIndicatorType ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type UnderlyingIndicator ¶
type UnderlyingIndicator struct {
IndicatorType *int32 `protobuf:"varint,1,req,name=indicatorType" json:"indicatorType,omitempty"` // UnderlyingIndicatorType
IndicatorValue *IndicatorValue `protobuf:"bytes,2,opt,name=indicatorValue" json:"indicatorValue,omitempty"` // 筛选条件
PlateList []*OptionPlate `protobuf:"bytes,4,rep,name=plateList" json:"plateList,omitempty"` // 板块列表, 仅PLATE(103)类型使用
// contains filtered or unexported fields
}
标的筛选条件
func (*UnderlyingIndicator) Descriptor
deprecated
func (*UnderlyingIndicator) Descriptor() ([]byte, []int)
Deprecated: Use UnderlyingIndicator.ProtoReflect.Descriptor instead.
func (*UnderlyingIndicator) GetIndicatorType ¶
func (x *UnderlyingIndicator) GetIndicatorType() int32
func (*UnderlyingIndicator) GetIndicatorValue ¶
func (x *UnderlyingIndicator) GetIndicatorValue() *IndicatorValue
func (*UnderlyingIndicator) GetPlateList ¶
func (x *UnderlyingIndicator) GetPlateList() []*OptionPlate
func (*UnderlyingIndicator) ProtoMessage ¶
func (*UnderlyingIndicator) ProtoMessage()
func (*UnderlyingIndicator) ProtoReflect ¶
func (x *UnderlyingIndicator) ProtoReflect() protoreflect.Message
func (*UnderlyingIndicator) Reset ¶
func (x *UnderlyingIndicator) Reset()
func (*UnderlyingIndicator) String ¶
func (x *UnderlyingIndicator) String() string
type UnderlyingIndicatorType ¶
type UnderlyingIndicatorType int32
标的筛选因子类型
const ( UnderlyingIndicatorType_UnderlyingIndicatorType_Unknown UnderlyingIndicatorType = 0 // 未知 // 标的基本信息 UnderlyingIndicatorType_UnderlyingIndicatorType_StockList UnderlyingIndicatorType = 101 // 【确切值】指定标的范围(股票ID列表) // ⚠️ 不支持: 后端 option_screener_svc 未实装, 传入会被 OpenD 入口拦截并返回错误 // // Deprecated: Marked as deprecated in Qot_OptionScreen.proto. UnderlyingIndicatorType_UnderlyingIndicatorType_Plate UnderlyingIndicatorType = 103 // 【已废弃】指定板块, 后端不支持 UnderlyingIndicatorType_UnderlyingIndicatorType_IndexList UnderlyingIndicatorType = 106 // 【确切值】指定指数类型 // 标的期权统计 UnderlyingIndicatorType_UnderlyingIndicatorType_Volume UnderlyingIndicatorType = 201 // 【范围】总成交量 UnderlyingIndicatorType_UnderlyingIndicatorType_OpenInterest UnderlyingIndicatorType = 202 // 【范围】总持仓量 UnderlyingIndicatorType_UnderlyingIndicatorType_IV UnderlyingIndicatorType = 203 // 【范围】标的IV UnderlyingIndicatorType_UnderlyingIndicatorType_HV UnderlyingIndicatorType = 204 // 【范围】标的HV UnderlyingIndicatorType_UnderlyingIndicatorType_IVRank UnderlyingIndicatorType = 205 // 【范围】标的IV Rank UnderlyingIndicatorType_UnderlyingIndicatorType_IVPercentile UnderlyingIndicatorType = 206 // 【范围】标的IV Percentile UnderlyingIndicatorType_UnderlyingIndicatorType_IVChange UnderlyingIndicatorType = 207 // 【范围】标的IV变化量 UnderlyingIndicatorType_UnderlyingIndicatorType_IVChangeRatio UnderlyingIndicatorType = 208 // 【范围】标的IV变化率 UnderlyingIndicatorType_UnderlyingIndicatorType_IVHVRatio UnderlyingIndicatorType = 209 // 【范围】标的IV/HV UnderlyingIndicatorType_UnderlyingIndicatorType_IVHVSpread UnderlyingIndicatorType = 210 // 【范围】标的IV-HV // 行情指标 UnderlyingIndicatorType_UnderlyingIndicatorType_MarketCap UnderlyingIndicatorType = 401 // 【范围】标的市值 UnderlyingIndicatorType_UnderlyingIndicatorType_StockPrice UnderlyingIndicatorType = 402 // 【范围】标的最新价 UnderlyingIndicatorType_UnderlyingIndicatorType_ChangeRatio UnderlyingIndicatorType = 403 // 【范围】涨跌幅 )
func (UnderlyingIndicatorType) Descriptor ¶
func (UnderlyingIndicatorType) Descriptor() protoreflect.EnumDescriptor
func (UnderlyingIndicatorType) Enum ¶
func (x UnderlyingIndicatorType) Enum() *UnderlyingIndicatorType
func (UnderlyingIndicatorType) EnumDescriptor
deprecated
func (UnderlyingIndicatorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UnderlyingIndicatorType.Descriptor instead.
func (UnderlyingIndicatorType) Number ¶
func (x UnderlyingIndicatorType) Number() protoreflect.EnumNumber
func (UnderlyingIndicatorType) String ¶
func (x UnderlyingIndicatorType) String() string
func (UnderlyingIndicatorType) Type ¶
func (UnderlyingIndicatorType) Type() protoreflect.EnumType
func (*UnderlyingIndicatorType) UnmarshalJSON
deprecated
func (x *UnderlyingIndicatorType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type UnderlyingInfo ¶
type UnderlyingInfo struct {
StockID *uint64 `protobuf:"varint,1,opt,name=stockID" json:"stockID,omitempty"` // 标的股票ID
Iv *float64 `protobuf:"fixed64,2,opt,name=iv" json:"iv,omitempty"` // 标的IV
Hv *float64 `protobuf:"fixed64,3,opt,name=hv" json:"hv,omitempty"` // 标的HV
IvRank *float64 `protobuf:"fixed64,4,opt,name=ivRank" json:"ivRank,omitempty"` // IV Rank
IvPercentile *float64 `protobuf:"fixed64,5,opt,name=ivPercentile" json:"ivPercentile,omitempty"` // IV Percentile
MarketCap *float64 `protobuf:"fixed64,6,opt,name=marketCap" json:"marketCap,omitempty"` // 市值
Price *float64 `protobuf:"fixed64,7,opt,name=price" json:"price,omitempty"` // 标的价格
ChangeRatio *float64 `protobuf:"fixed64,8,opt,name=changeRatio" json:"changeRatio,omitempty"` // 涨跌幅
// contains filtered or unexported fields
}
标的统计信息
func (*UnderlyingInfo) Descriptor
deprecated
func (*UnderlyingInfo) Descriptor() ([]byte, []int)
Deprecated: Use UnderlyingInfo.ProtoReflect.Descriptor instead.
func (*UnderlyingInfo) GetChangeRatio ¶
func (x *UnderlyingInfo) GetChangeRatio() float64
func (*UnderlyingInfo) GetHv ¶
func (x *UnderlyingInfo) GetHv() float64
func (*UnderlyingInfo) GetIv ¶
func (x *UnderlyingInfo) GetIv() float64
func (*UnderlyingInfo) GetIvPercentile ¶
func (x *UnderlyingInfo) GetIvPercentile() float64
func (*UnderlyingInfo) GetIvRank ¶
func (x *UnderlyingInfo) GetIvRank() float64
func (*UnderlyingInfo) GetMarketCap ¶
func (x *UnderlyingInfo) GetMarketCap() float64
func (*UnderlyingInfo) GetPrice ¶
func (x *UnderlyingInfo) GetPrice() float64
func (*UnderlyingInfo) GetStockID ¶
func (x *UnderlyingInfo) GetStockID() uint64
func (*UnderlyingInfo) ProtoMessage ¶
func (*UnderlyingInfo) ProtoMessage()
func (*UnderlyingInfo) ProtoReflect ¶
func (x *UnderlyingInfo) ProtoReflect() protoreflect.Message
func (*UnderlyingInfo) Reset ¶
func (x *UnderlyingInfo) Reset()
func (*UnderlyingInfo) String ¶
func (x *UnderlyingInfo) String() string