"""
@generated by mypy-protobuf.  Do not edit manually!
isort:skip_file
//////////////////////////////////////////////////////////////////////////////
Server行情接口定义
//////////////////////////////////////////////////////////////////////////////
"""

import builtins
import collections.abc
import common_pb2
import google.protobuf.descriptor
import google.protobuf.internal.containers
import google.protobuf.internal.enum_type_wrapper
import google.protobuf.message
import sys
import typing

if sys.version_info >= (3, 10):
    import typing as typing_extensions
else:
    import typing_extensions

DESCRIPTOR: google.protobuf.descriptor.FileDescriptor

class _CandlePeriod:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CandlePeriodEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CandlePeriod.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CP_UNKNOWN: _CandlePeriod.ValueType  # 0
    """占位"""
    CP_ONE_MINUTE: _CandlePeriod.ValueType  # 60
    """1分"""
    CP_TWO_MINUTES: _CandlePeriod.ValueType  # 120
    """2分"""
    CP_THREE_MINUTES: _CandlePeriod.ValueType  # 180
    """3分"""
    CP_FIVE_MINUTES: _CandlePeriod.ValueType  # 300
    """5分"""
    CP_TEN_MINUTES: _CandlePeriod.ValueType  # 600
    """10分"""
    CP_FIFTEEN_MINUTES: _CandlePeriod.ValueType  # 900
    """15分"""
    CP_THIRTY_MINUTES: _CandlePeriod.ValueType  # 1800
    """30分"""
    CP_ONE_HOUR: _CandlePeriod.ValueType  # 3600
    """1小时"""
    CP_TWO_HOURS: _CandlePeriod.ValueType  # 7200
    """2小时"""
    CP_THREE_HOURS: _CandlePeriod.ValueType  # 10800
    """3小时"""
    CP_FOUR_HOURS: _CandlePeriod.ValueType  # 14400
    """4小时"""
    CP_ONE_DAY: _CandlePeriod.ValueType  # 86400
    """1日"""
    CP_ONE_WEEK: _CandlePeriod.ValueType  # 604800
    """1周"""
    CP_ONE_MONTH: _CandlePeriod.ValueType  # 2592000
    """1月"""
    CP_THREE_MONTHS: _CandlePeriod.ValueType  # 7776000
    """3月"""
    CP_SIX_MONTHS: _CandlePeriod.ValueType  # 15552000
    """6月"""
    CP_ONE_YEAR: _CandlePeriod.ValueType  # 31104000
    """1年"""

class CandlePeriod(_CandlePeriod, metaclass=_CandlePeriodEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    通用数据定义
    //////////////////////////////////////////////////////////////////////////////

    K线周期
    """

CP_UNKNOWN: CandlePeriod.ValueType  # 0
"""占位"""
CP_ONE_MINUTE: CandlePeriod.ValueType  # 60
"""1分"""
CP_TWO_MINUTES: CandlePeriod.ValueType  # 120
"""2分"""
CP_THREE_MINUTES: CandlePeriod.ValueType  # 180
"""3分"""
CP_FIVE_MINUTES: CandlePeriod.ValueType  # 300
"""5分"""
CP_TEN_MINUTES: CandlePeriod.ValueType  # 600
"""10分"""
CP_FIFTEEN_MINUTES: CandlePeriod.ValueType  # 900
"""15分"""
CP_THIRTY_MINUTES: CandlePeriod.ValueType  # 1800
"""30分"""
CP_ONE_HOUR: CandlePeriod.ValueType  # 3600
"""1小时"""
CP_TWO_HOURS: CandlePeriod.ValueType  # 7200
"""2小时"""
CP_THREE_HOURS: CandlePeriod.ValueType  # 10800
"""3小时"""
CP_FOUR_HOURS: CandlePeriod.ValueType  # 14400
"""4小时"""
CP_ONE_DAY: CandlePeriod.ValueType  # 86400
"""1日"""
CP_ONE_WEEK: CandlePeriod.ValueType  # 604800
"""1周"""
CP_ONE_MONTH: CandlePeriod.ValueType  # 2592000
"""1月"""
CP_THREE_MONTHS: CandlePeriod.ValueType  # 7776000
"""3月"""
CP_SIX_MONTHS: CandlePeriod.ValueType  # 15552000
"""6月"""
CP_ONE_YEAR: CandlePeriod.ValueType  # 31104000
"""1年"""
global___CandlePeriod = CandlePeriod

class _CandleAlignType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CandleAlignTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CandleAlignType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CAT_STANDARD: _CandleAlignType.ValueType  # 0
    """标准"""
    CAT_DOMESTIC_STOCK: _CandleAlignType.ValueType  # 1
    """国内股票算法"""
    CAT_DOMESTIC_FUTURE: _CandleAlignType.ValueType  # 2
    """国内期货算法"""

class CandleAlignType(_CandleAlignType, metaclass=_CandleAlignTypeEnumTypeWrapper):
    """K线对齐类型"""

CAT_STANDARD: CandleAlignType.ValueType  # 0
"""标准"""
CAT_DOMESTIC_STOCK: CandleAlignType.ValueType  # 1
"""国内股票算法"""
CAT_DOMESTIC_FUTURE: CandleAlignType.ValueType  # 2
"""国内期货算法"""
global___CandleAlignType = CandleAlignType

class _CandleAdjustType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CandleAdjustTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CandleAdjustType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CAT_NONE: _CandleAdjustType.ValueType  # 0
    """不复权"""
    CAT_FORWORD: _CandleAdjustType.ValueType  # 1
    """前复权"""
    CAT_BACKWORD: _CandleAdjustType.ValueType  # 2
    """后复权"""

class CandleAdjustType(_CandleAdjustType, metaclass=_CandleAdjustTypeEnumTypeWrapper):
    """K线复权类型"""

CAT_NONE: CandleAdjustType.ValueType  # 0
"""不复权"""
CAT_FORWORD: CandleAdjustType.ValueType  # 1
"""前复权"""
CAT_BACKWORD: CandleAdjustType.ValueType  # 2
"""后复权"""
global___CandleAdjustType = CandleAdjustType

class _SortDirection:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _SortDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SortDirection.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    SD_ASC: _SortDirection.ValueType  # 0
    """升序"""
    SD_DEC: _SortDirection.ValueType  # 1
    """降序"""

class SortDirection(_SortDirection, metaclass=_SortDirectionEnumTypeWrapper):
    """排序方向"""

SD_ASC: SortDirection.ValueType  # 0
"""升序"""
SD_DEC: SortDirection.ValueType  # 1
"""降序"""
global___SortDirection = SortDirection

class _BuySellDirection:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _BuySellDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BuySellDirection.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    BSD_UNKNOWN: _BuySellDirection.ValueType  # 0
    """未知"""
    BSD_BUY: _BuySellDirection.ValueType  # 1
    """买"""
    BSD_SELL: _BuySellDirection.ValueType  # 2
    """卖"""

class BuySellDirection(_BuySellDirection, metaclass=_BuySellDirectionEnumTypeWrapper):
    """买卖方向"""

BSD_UNKNOWN: BuySellDirection.ValueType  # 0
"""未知"""
BSD_BUY: BuySellDirection.ValueType  # 1
"""买"""
BSD_SELL: BuySellDirection.ValueType  # 2
"""卖"""
global___BuySellDirection = BuySellDirection

class _LongShortDirection:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _LongShortDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LongShortDirection.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    LSD_UNKNOWN: _LongShortDirection.ValueType  # 0
    """未知"""
    LSD_LONG: _LongShortDirection.ValueType  # 1
    """多"""
    LSD_SHORT: _LongShortDirection.ValueType  # 2
    """空"""

class LongShortDirection(_LongShortDirection, metaclass=_LongShortDirectionEnumTypeWrapper):
    """多空方向"""

LSD_UNKNOWN: LongShortDirection.ValueType  # 0
"""未知"""
LSD_LONG: LongShortDirection.ValueType  # 1
"""多"""
LSD_SHORT: LongShortDirection.ValueType  # 2
"""空"""
global___LongShortDirection = LongShortDirection

class _OpenCloseDirection:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _OpenCloseDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OpenCloseDirection.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    OCD_UNKNOWN: _OpenCloseDirection.ValueType  # 0
    """未知"""
    OCD_OPEN: _OpenCloseDirection.ValueType  # 1
    """开"""
    OCD_CLOSE: _OpenCloseDirection.ValueType  # 2
    """平"""

class OpenCloseDirection(_OpenCloseDirection, metaclass=_OpenCloseDirectionEnumTypeWrapper):
    """开平方向"""

OCD_UNKNOWN: OpenCloseDirection.ValueType  # 0
"""未知"""
OCD_OPEN: OpenCloseDirection.ValueType  # 1
"""开"""
OCD_CLOSE: OpenCloseDirection.ValueType  # 2
"""平"""
global___OpenCloseDirection = OpenCloseDirection

class _InsideOutsideFlag:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _InsideOutsideFlagEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_InsideOutsideFlag.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    IOF_UNKNOWN: _InsideOutsideFlag.ValueType  # 0
    """未知"""
    IOF_INSIDE: _InsideOutsideFlag.ValueType  # 1
    """内盘（卖盘）"""
    IOF_OUTSIDE: _InsideOutsideFlag.ValueType  # 2
    """外盘（买盘）"""

class InsideOutsideFlag(_InsideOutsideFlag, metaclass=_InsideOutsideFlagEnumTypeWrapper):
    """内外盘标志"""

IOF_UNKNOWN: InsideOutsideFlag.ValueType  # 0
"""未知"""
IOF_INSIDE: InsideOutsideFlag.ValueType  # 1
"""内盘（卖盘）"""
IOF_OUTSIDE: InsideOutsideFlag.ValueType  # 2
"""外盘（买盘）"""
global___InsideOutsideFlag = InsideOutsideFlag

class _TradeNature:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _TradeNatureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TradeNature.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    TN_UNKNOWN: _TradeNature.ValueType  # 0
    """未知"""
    TN_LONG_OPEN: _TradeNature.ValueType  # 1
    """多开"""
    TN_SHORT_OPEN: _TradeNature.ValueType  # 2
    """空开"""
    TN_DOUBLE_OPEN: _TradeNature.ValueType  # 3
    """双开"""
    TN_LONG_CLOSE: _TradeNature.ValueType  # 4
    """多平"""
    TN_SHORT_CLOSE: _TradeNature.ValueType  # 5
    """空平"""
    TN_DOUBLE_CLOSE: _TradeNature.ValueType  # 6
    """双平"""
    TN_LONG_CHANGE: _TradeNature.ValueType  # 7
    """多换"""
    TN_SHORT_CHANGE: _TradeNature.ValueType  # 8
    """空换"""

class TradeNature(_TradeNature, metaclass=_TradeNatureEnumTypeWrapper):
    """成交性质"""

TN_UNKNOWN: TradeNature.ValueType  # 0
"""未知"""
TN_LONG_OPEN: TradeNature.ValueType  # 1
"""多开"""
TN_SHORT_OPEN: TradeNature.ValueType  # 2
"""空开"""
TN_DOUBLE_OPEN: TradeNature.ValueType  # 3
"""双开"""
TN_LONG_CLOSE: TradeNature.ValueType  # 4
"""多平"""
TN_SHORT_CLOSE: TradeNature.ValueType  # 5
"""空平"""
TN_DOUBLE_CLOSE: TradeNature.ValueType  # 6
"""双平"""
TN_LONG_CHANGE: TradeNature.ValueType  # 7
"""多换"""
TN_SHORT_CHANGE: TradeNature.ValueType  # 8
"""空换"""
global___TradeNature = TradeNature

class _MarketCategory:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _MarketCategoryEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MarketCategory.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    MC_UNKNOWN: _MarketCategory.ValueType  # 0
    """占位"""
    MC_DOMESTIC_STOCK: _MarketCategory.ValueType  # 2001
    """国内股票"""
    MC_DOMESTIC_STOCK_BLOCK: _MarketCategory.ValueType  # 2004
    """国内股票板块"""
    MC_DOMESTIC_FUTURE: _MarketCategory.ValueType  # 3001
    """国内期货"""
    MC_DOMESTIC_STOCK_OPTION: _MarketCategory.ValueType  # 4001
    """国内股票期权"""
    MC_DOMESTIC_FUTURE_OPTION: _MarketCategory.ValueType  # 4002
    """国内期货期权"""

class MarketCategory(_MarketCategory, metaclass=_MarketCategoryEnumTypeWrapper):
    """市场分类
    编码定义：商品类型(1位数字) + 分类编号(3位数字)
    商品类型：通用(1)，股票(2)，期货(3)，期权(4)
    分类编：编号(001-999)
    """

MC_UNKNOWN: MarketCategory.ValueType  # 0
"""占位"""
MC_DOMESTIC_STOCK: MarketCategory.ValueType  # 2001
"""国内股票"""
MC_DOMESTIC_STOCK_BLOCK: MarketCategory.ValueType  # 2004
"""国内股票板块"""
MC_DOMESTIC_FUTURE: MarketCategory.ValueType  # 3001
"""国内期货"""
MC_DOMESTIC_STOCK_OPTION: MarketCategory.ValueType  # 4001
"""国内股票期权"""
MC_DOMESTIC_FUTURE_OPTION: MarketCategory.ValueType  # 4002
"""国内期货期权"""
global___MarketCategory = MarketCategory

class _CommodityType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CommodityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CommodityType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CT_STOCK: _CommodityType.ValueType  # 0
    """股票(.S)"""
    CT_FUTURE: _CommodityType.ValueType  # 1
    """期货(.F)"""
    CT_OPTION: _CommodityType.ValueType  # 2
    """期权(.O)"""

class CommodityType(_CommodityType, metaclass=_CommodityTypeEnumTypeWrapper):
    """商品类型"""

CT_STOCK: CommodityType.ValueType  # 0
"""股票(.S)"""
CT_FUTURE: CommodityType.ValueType  # 1
"""期货(.F)"""
CT_OPTION: CommodityType.ValueType  # 2
"""期权(.O)"""
global___CommodityType = CommodityType

class _CommodityListField:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CommodityListFieldEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CommodityListField.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CLF_UNKNOWN: _CommodityListField.ValueType  # 0
    """占位"""
    CLF_CATEGORY: _CommodityListField.ValueType  # 1101
    """市场分类"""
    CLF_KEY: _CommodityListField.ValueType  # 1102
    """商品键值"""
    CLF_DISPLAY_CODE: _CommodityListField.ValueType  # 1103
    """商品显示代码"""
    CLF_NAME: _CommodityListField.ValueType  # 1104
    """商品名称"""
    CLF_PY_NAME: _CommodityListField.ValueType  # 1105
    """商品拼音简称"""
    CLF_PRECISION: _CommodityListField.ValueType  # 1106
    """价格小数位数"""
    CLF_PRICE_TICK: _CommodityListField.ValueType  # 1107
    """最小变动价位"""
    CLF_TRADING_TIMES: _CommodityListField.ValueType  # 1108
    """交易时间段"""
    CLF_CANDLE_ALIGN_TYPE: _CommodityListField.ValueType  # 1109
    """K线对齐类型"""
    CLF_TIME_ZONE: _CommodityListField.ValueType  # 1110
    """时区"""
    CLF_CURRENCY: _CommodityListField.ValueType  # 1111
    """币种"""
    CLF_STATUS_CODE: _CommodityListField.ValueType  # 1112
    """状态代码"""
    CLF_SORT_WEIGHT: _CommodityListField.ValueType  # 1113
    """排序权重"""
    CLF_TIMESTAMP: _CommodityListField.ValueType  # 1201
    """时间戳"""
    CLF_TRADING_DAY: _CommodityListField.ValueType  # 1202
    """所属交易日期"""
    CLF_LAST_PRICE: _CommodityListField.ValueType  # 1203
    """最新价"""
    CLF_BID_PRICE1: _CommodityListField.ValueType  # 1204
    """申买价一"""
    CLF_BID_VOLUME1: _CommodityListField.ValueType  # 1205
    """申买量一"""
    CLF_ASK_PRICE1: _CommodityListField.ValueType  # 1206
    """申卖价一"""
    CLF_ASK_VOLUME1: _CommodityListField.ValueType  # 1207
    """申卖量一"""
    CLF_OPEN_PRICE: _CommodityListField.ValueType  # 1208
    """开盘价"""
    CLF_HIGHEST_PRICE: _CommodityListField.ValueType  # 1209
    """最高价"""
    CLF_LOWEST_PRICE: _CommodityListField.ValueType  # 1210
    """最低价"""
    CLF_VOLUME: _CommodityListField.ValueType  # 1211
    """现手"""
    CLF_TOTAL_VOLUME: _CommodityListField.ValueType  # 1212
    """总成交量"""
    CLF_TURNOVER: _CommodityListField.ValueType  # 1213
    """现额"""
    CLF_TOTAL_TURNOVER: _CommodityListField.ValueType  # 1214
    """总成交金额"""
    CLF_PRE_CLOSE_PRICE: _CommodityListField.ValueType  # 1215
    """昨收盘"""
    CLF_CLOSE_PRICE: _CommodityListField.ValueType  # 1216
    """收盘价"""
    CLF_UPPER_LIMIT_PRICE: _CommodityListField.ValueType  # 1217
    """涨停板价"""
    CLF_LOWER_LIMIT_PRICE: _CommodityListField.ValueType  # 1218
    """跌停板价"""
    CLF_AVERAGE_PRICE: _CommodityListField.ValueType  # 1219
    """均价"""
    CLF_CHANGE: _CommodityListField.ValueType  # 1220
    """涨跌额（当日）"""
    CLF_CHANGE_PERCENT: _CommodityListField.ValueType  # 1221
    """涨跌幅（当日%）"""
    CLF_DIRECTION: _CommodityListField.ValueType  # 1222
    """买卖方向"""
    CLF_NATURE: _CommodityListField.ValueType  # 1223
    """成交性质"""
    CLF_INSIDE: _CommodityListField.ValueType  # 1224
    """内盘（卖盘）"""
    CLF_OUTSIDE: _CommodityListField.ValueType  # 1225
    """外盘（买盘）"""
    CLF_INT_OUT_FLAG: _CommodityListField.ValueType  # 1226
    """内外盘标志"""
    CLF_AMPLITUDE: _CommodityListField.ValueType  # 1227
    """振幅（当日%）"""
    CLF_ORDER_RATIO: _CommodityListField.ValueType  # 1228
    """委比（%）"""
    CLF_ORDER_DIFF: _CommodityListField.ValueType  # 1229
    """委差"""
    CLF_VOLUME_RATIO: _CommodityListField.ValueType  # 1230
    """量比"""
    CLF_LAST_TRADE_VOLUME: _CommodityListField.ValueType  # 1231
    """最新成交手数"""
    CLF_BID_PRICES: _CommodityListField.ValueType  # 1232
    """申买价"""
    CLF_BID_VOLUMES: _CommodityListField.ValueType  # 1233
    """申买量"""
    CLF_ASK_PRICES: _CommodityListField.ValueType  # 1234
    """申卖价"""
    CLF_ASK_VOLUMES: _CommodityListField.ValueType  # 1235
    """申卖量"""
    CLF_TRADING_PHASE_CODE: _CommodityListField.ValueType  # 1236
    """交易状态代码"""
    CLF_IS_DEAL: _CommodityListField.ValueType  # 1237
    """是否成交"""
    CLF_STOCK_TYPE: _CommodityListField.ValueType  # 2101
    """股票类型（股票专有）"""
    CLF_STOCK_STATUS: _CommodityListField.ValueType  # 2102
    """股票状态（股票专有）"""
    CLF_LIST_DATE: _CommodityListField.ValueType  # 2103
    """上市日（YYYYMMDD）（股票专有）"""
    CLF_TOTAL_STOCK: _CommodityListField.ValueType  # 2104
    """总股本（股票专有）"""
    CLF_CIRCULATION_STOCK: _CommodityListField.ValueType  # 2105
    """流通股（股票专有）"""
    CLF_NET_ASSET: _CommodityListField.ValueType  # 2106
    """净资产（股票专有）"""
    CLF_NET_PROFIT: _CommodityListField.ValueType  # 2107
    """净利润（股票专有）"""
    CLF_NET_ASSET_PER_SHARE: _CommodityListField.ValueType  # 2108
    """每股净资产（股票专有）"""
    CLF_MARGIN_TRADING: _CommodityListField.ValueType  # 2109
    """是否融资融券（股票专有）"""
    CLF_LOT_SIZE: _CommodityListField.ValueType  # 2110
    """每手股数（股票专有）"""
    CLF_LIST_DAY_COUNT: _CommodityListField.ValueType  # 2111
    """上市天数（股票专有）"""
    CLF_NQ_TRANSFER_STATUS: _CommodityListField.ValueType  # 2112
    """新三板证券转让状态（新三板股票专有）"""
    CLF_ISSUE_PRICE: _CommodityListField.ValueType  # 2113
    """发行价（股票专有）"""
    CLF_NQ_TRANSFER_TYPE: _CommodityListField.ValueType  # 2114
    """新三板证券转让类型（新三板股票专有）"""
    CLF_STOCK_EXCHANGE_TYPE: _CommodityListField.ValueType  # 2115
    """股票交易类型（股票专有）"""
    CLF_REVERSE_REPO_TRADING_DATE: _CommodityListField.ValueType  # 2116
    """国债逆回购交易日（YYYYMMDD）（国债逆回购专有）"""
    CLF_REVERSE_REPO_DATED_DATE: _CommodityListField.ValueType  # 2117
    """国债逆回购记息日（YYYYMMDD）（国债逆回购专有）"""
    CLF_REVERSE_REPO_PAYMENT_DATE: _CommodityListField.ValueType  # 2118
    """国债逆回购到账日（YYYYMMDD）（国债逆回购专有）"""
    CLF_REVERSE_REPO_WITHDRAW_DATE: _CommodityListField.ValueType  # 2119
    """国债逆回购可取日（YYYYMMDD）（国债逆回购专有）"""
    CLF_REVERSE_REPO_OCCUPATION_DAYS: _CommodityListField.ValueType  # 2120
    """国债逆回购占款天数（国债逆回购专有）"""
    CLF_PRE_NET_PROFIT: _CommodityListField.ValueType  # 2121
    """上一年净利润（股票专有）"""
    CLF_TOTAL_VALUE: _CommodityListField.ValueType  # 2208
    """总市值（股票专有）"""
    CLF_CIRCULATION_MARKET_VALUE: _CommodityListField.ValueType  # 2209
    """流通市值（股票专有）"""
    CLF_PRICE_EARNING_RATIO: _CommodityListField.ValueType  # 2210
    """动态市盈率PE（股票专有）"""
    CLF_PRICE_BOOK_VALUE_RATIO: _CommodityListField.ValueType  # 2211
    """市净率PBV（股票专有）"""
    CLF_TURNOVER_RATE: _CommodityListField.ValueType  # 2212
    """换手率（当日%）（股票专有）"""
    CLF_FUND_IN: _CommodityListField.ValueType  # 2213
    """资金流入（股票专有）"""
    CLF_FUND_OUT: _CommodityListField.ValueType  # 2214
    """资金流出（股票专有）"""
    CLF_UP_COUNT: _CommodityListField.ValueType  # 2215
    """涨家数（指数）（股票专有）"""
    CLF_DOWN_COUNT: _CommodityListField.ValueType  # 2216
    """跌家数（指数）（股票专有）"""
    CLF_FLAT_COUNT: _CommodityListField.ValueType  # 2217
    """平家数（指数）（股票专有）"""
    CLF_CHANGE_PERCENT_FROM_LIST: _CommodityListField.ValueType  # 2218
    """涨跌幅（上市以来%）（新股）（股票专有）"""
    CLF_UP_PERCENT: _CommodityListField.ValueType  # 2220
    """涨股比（%）（指数）（股票专有）"""
    CLF_NET_FUND_IN: _CommodityListField.ValueType  # 2221
    """资金净流入（股票专有）"""
    CLF_AFTER_HOURS_TOTAL_VOLUME: _CommodityListField.ValueType  # 2222
    """盘后总成交量（科创板股票专有）"""
    CLF_AFTER_HOURS_TOTAL_TURNOVER: _CommodityListField.ValueType  # 2223
    """盘后总成交金额（科创板股票专有）"""
    CLF_AFTER_HOURS_BID_VOLUME: _CommodityListField.ValueType  # 2224
    """盘后申买量（科创板股票专有）"""
    CLF_AFTER_HOURS_ASK_VOLUME: _CommodityListField.ValueType  # 2225
    """盘后申卖量（科创板股票专有）"""
    CLF_STATIC_PRICE_EARNING_RATIO: _CommodityListField.ValueType  # 2226
    """静态市盈率PE（股票专有）"""
    CLF_MATCH_TRANSACTION_PRICE: _CommodityListField.ValueType  # 2227
    """匹配成交价（债券专有）"""
    CLF_CHANGE_PERCENT_5MIN: _CommodityListField.ValueType  # 2401
    """五分钟涨速（%）（股票专有）"""
    CLF_HIGHEST_PRICE_52WEEK: _CommodityListField.ValueType  # 2402
    """最高价（52周）（港股专有）"""
    CLF_LOWEST_PRICE_52WEEK: _CommodityListField.ValueType  # 2403
    """最低价（52周）（港股专有）"""
    CLF_CHANGE_PERCENT_1MIN: _CommodityListField.ValueType  # 2404
    """一分钟涨速（%）（股票专有）"""
    CLF_CHANGE_PERCENT_3MIN: _CommodityListField.ValueType  # 2405
    """三分钟涨速（%）（股票专有）"""
    CLF_CHANGE_PERCENT_10MIN: _CommodityListField.ValueType  # 2406
    """十分钟涨速（%）（股票专有）"""
    CLF_CHANGE_PERCENT_15MIN: _CommodityListField.ValueType  # 2407
    """十五分钟涨速（%）（股票专有）"""
    CLF_RAISING_LIMIT_DAY_COUNT: _CommodityListField.ValueType  # 2408
    """连板天数（新股）（股票专有）"""
    CLF_NQ_REFERENCE_PRICE: _CommodityListField.ValueType  # 2409
    """新三板参考成交价（新三板股票专有）"""
    CLF_NQ_MATCHING_VOLUME: _CommodityListField.ValueType  # 2410
    """新三板匹配量（新三板股票专有）"""
    CLF_NQ_UNMATCHING_VOLUME: _CommodityListField.ValueType  # 2411
    """新三板未匹配量（新三板股票专有）"""
    CLF_NQ_AFTER_HOURS_TRADING: _CommodityListField.ValueType  # 2412
    """新三板盘后交易状态（新三板股票专有）"""
    CLF_EXCHANGE_PRICE: _CommodityListField.ValueType  # 2413
    """交易价格"""
    CLF_INDUSTRY_NAME: _CommodityListField.ValueType  # 2501
    """所属行业名称（股票专有）"""
    CLF_REGION_NAME: _CommodityListField.ValueType  # 2502
    """所属地区名称（股票专有）"""
    CLF_FUTURE_TYPE: _CommodityListField.ValueType  # 3101
    """期货类型（期货专有）"""
    CLF_PRODUCT_CODE: _CommodityListField.ValueType  # 3102
    """产品代码（期货、期权专有）"""
    CLF_PRODUCT_NAME: _CommodityListField.ValueType  # 3103
    """产品名称（期货、期权专有）"""
    CLF_MAX_MARKET_ORDER_VOLUME: _CommodityListField.ValueType  # 3104
    """市价单最大下单量（期货、期权专有）"""
    CLF_MIN_MARKET_ORDER_VOLUME: _CommodityListField.ValueType  # 3105
    """市价单最小下单量（期货、期权专有）"""
    CLF_MAX_LIMIT_ORDER_VOLUME: _CommodityListField.ValueType  # 3106
    """限价单最大下单量（期货、期权专有）"""
    CLF_MIN_LIMIT_ORDER_VOLUME: _CommodityListField.ValueType  # 3107
    """限价单最小下单量（期货、期权专有）"""
    CLF_VOLUME_MULTIPLE: _CommodityListField.ValueType  # 3108
    """合约数量乘数（期货、期权专有）"""
    CLF_CREATE_DATE: _CommodityListField.ValueType  # 3109
    """创建日（YYYYMMDD）（期货、期权专有）"""
    CLF_OPEN_DATE: _CommodityListField.ValueType  # 3110
    """上市日（YYYYMMDD）（期货、期权专有）"""
    CLF_EXPIRE_DATE: _CommodityListField.ValueType  # 3111
    """到期日（YYYYMMDD）（期货、期权专有）"""
    CLF_START_DELIV_DATE: _CommodityListField.ValueType  # 3112
    """开始交割日（YYYYMMDD）（期货、期权专有）"""
    CLF_END_DELIV_DATE: _CommodityListField.ValueType  # 3113
    """结束交割日（YYYYMMDD）（期货、期权专有）"""
    CLF_FUTURE_STATUS: _CommodityListField.ValueType  # 3114
    """合约状态（期货专有）"""
    CLF_POSITION_TYPE: _CommodityListField.ValueType  # 3115
    """持仓类型（期货专有）"""
    CLF_POSITION_DATE_TYPE: _CommodityListField.ValueType  # 3116
    """持仓日期类型（期货专有）"""
    CLF_LONG_MARGIN_RATIO: _CommodityListField.ValueType  # 3117
    """多头保证金率（期货专有）"""
    CLF_SHORT_MARGIN_RATIO: _CommodityListField.ValueType  # 3118
    """空头保证金率（期货专有）"""
    CLF_MARGIN_TYPE: _CommodityListField.ValueType  # 3119
    """保证金算法（期货专有）"""
    CLF_MAIN_TYPE: _CommodityListField.ValueType  # 3120
    """主力合约类型（期货专有）"""
    CLF_REMAINING_DAY_COUNT: _CommodityListField.ValueType  # 3121
    """剩余天数（期货、期权专有）"""
    CLF_PRE_OPEN_INTEREST: _CommodityListField.ValueType  # 3201
    """昨持仓量（期货、期权专有）"""
    CLF_OPEN_INTEREST: _CommodityListField.ValueType  # 3202
    """仓差（期货、期权专有）"""
    CLF_TOTAL_OPEN_INTEREST: _CommodityListField.ValueType  # 3203
    """总持仓量（期货、期权专有）"""
    CLF_DAILY_OPEN_INTEREST_DIFF: _CommodityListField.ValueType  # 3204
    """日增仓（期货、期权专有）"""
    CLF_OPEN_POSITION: _CommodityListField.ValueType  # 3205
    """开仓（期货、期权专有）"""
    CLF_CLOSE_POSITION: _CommodityListField.ValueType  # 3206
    """平仓（期货、期权专有）"""
    CLF_PRE_SETTLEMENT_PRICE: _CommodityListField.ValueType  # 3207
    """昨结算价（期货、期权专有）"""
    CLF_SETTLEMENT_PRICE: _CommodityListField.ValueType  # 3208
    """结算价（期货、期权专有）"""
    CLF_FUTURE_CALC1: _CommodityListField.ValueType  # 3401
    """计算指标1（期货、期权专有）"""
    CLF_FUTURE_CALC2: _CommodityListField.ValueType  # 3402
    """计算指标2（期货、期权专有）"""
    CLF_OPTION_TYPE: _CommodityListField.ValueType  # 4101
    """期权类型（期权专有）"""
    CLF_UNDERLYING_COMMODITY_KEY: _CommodityListField.ValueType  # 4102
    """基础商品键值（期权专有）"""
    CLF_CALL_PUT_TYPE: _CommodityListField.ValueType  # 4103
    """期权认购认估类型（期权专有）"""
    CLF_STRIKE_PRICE: _CommodityListField.ValueType  # 4104
    """执行价（期权专有）"""
    CLF_STRIKE_MODE: _CommodityListField.ValueType  # 4105
    """期权执行类型（期权专有）"""
    CLF_OPTION_STATUS: _CommodityListField.ValueType  # 4106
    """期权状态（期权专有）"""
    CLF_OPTION_MONTH: _CommodityListField.ValueType  # 4107
    """期权月份（YYYYMM）（期权专有）"""
    CLF_RELATED_COMMODITY_KEY: _CommodityListField.ValueType  # 4108
    """关联商品键值（期权专有）"""
    CLF_OPTION_MONEY_TYPE: _CommodityListField.ValueType  # 4201
    """期权实值虚值类型（期权专有）"""
    CLF_IMPLIED_VOLATILITY: _CommodityListField.ValueType  # 4202
    """隐含波动率（%）（期权专有）"""
    CLF_INTRINSIC_VALUE: _CommodityListField.ValueType  # 4203
    """内在价值（期权专有）"""
    CLF_TIME_VALUE: _CommodityListField.ValueType  # 4204
    """时间价值（期权专有）"""
    CLF_GEARING: _CommodityListField.ValueType  # 4205
    """杠杆比率（期权专有）"""
    CLF_EFFECTIVE_GEARING: _CommodityListField.ValueType  # 4206
    """实际杠杆比率（期权专有）"""
    CLF_PREMIUM_RATE: _CommodityListField.ValueType  # 4207
    """溢价率（%）（期权专有）"""
    CLF_DELTA: _CommodityListField.ValueType  # 4208
    """DELTA（期权专有）"""
    CLF_PRE_DELTA: _CommodityListField.ValueType  # 4209
    """昨DELTA（期权专有）"""
    CLF_GAMMA: _CommodityListField.ValueType  # 4210
    """GAMMA（期权专有）"""
    CLF_RHO: _CommodityListField.ValueType  # 4211
    """RHO（期权专有）"""
    CLF_THETA: _CommodityListField.ValueType  # 4212
    """THETA（期权专有）"""
    CLF_VEGA: _CommodityListField.ValueType  # 4213
    """VEGA（期权专有）"""
    CLF_VIRTUAL_RATE: _CommodityListField.ValueType  # 4214
    """虚值度（期权专有）"""
    CLF_ESTIMATE_MARGIN: _CommodityListField.ValueType  # 4215
    """预估保证金（期权专有）"""
    CLF_UNDERLYING_LAST_PRICE: _CommodityListField.ValueType  # 4216
    """基础商品最新价（期权专有）"""
    CLF_UNDERLYING_PRE_SETTLEMENT_PRICE: _CommodityListField.ValueType  # 4217
    """基础商品昨结算价（期权专有）"""
    CLF_IMPLIED_VOLATILITY_BID: _CommodityListField.ValueType  # 4218
    """隐含波动率BID（%）（期权专有）"""
    CLF_IMPLIED_VOLATILITY_ASK: _CommodityListField.ValueType  # 4219
    """隐含波动率ASK（%）（期权专有）"""
    CLF_IMPLIED_VOLATILITY_MID: _CommodityListField.ValueType  # 4220
    """隐含波动率MID（%）（期权专有）"""
    CLF_SPOT_TYPE: _CommodityListField.ValueType  # 6101
    """现货类型（现货专有）"""

class CommodityListField(_CommodityListField, metaclass=_CommodityListFieldEnumTypeWrapper):
    """商品列表字段
    编码定义：商品类型(1位数字) + 字段类型(1位数字) + 字段编号(2位数字)
    商品类型：通用(1)，股票(2)，期货(3)，期权(4)，外汇(5)，现货(6)
    字段类型：信息(1)，行情(2)，财务(3)，其它(4)
    字段编号：编号(01-99)
    """

CLF_UNKNOWN: CommodityListField.ValueType  # 0
"""占位"""
CLF_CATEGORY: CommodityListField.ValueType  # 1101
"""市场分类"""
CLF_KEY: CommodityListField.ValueType  # 1102
"""商品键值"""
CLF_DISPLAY_CODE: CommodityListField.ValueType  # 1103
"""商品显示代码"""
CLF_NAME: CommodityListField.ValueType  # 1104
"""商品名称"""
CLF_PY_NAME: CommodityListField.ValueType  # 1105
"""商品拼音简称"""
CLF_PRECISION: CommodityListField.ValueType  # 1106
"""价格小数位数"""
CLF_PRICE_TICK: CommodityListField.ValueType  # 1107
"""最小变动价位"""
CLF_TRADING_TIMES: CommodityListField.ValueType  # 1108
"""交易时间段"""
CLF_CANDLE_ALIGN_TYPE: CommodityListField.ValueType  # 1109
"""K线对齐类型"""
CLF_TIME_ZONE: CommodityListField.ValueType  # 1110
"""时区"""
CLF_CURRENCY: CommodityListField.ValueType  # 1111
"""币种"""
CLF_STATUS_CODE: CommodityListField.ValueType  # 1112
"""状态代码"""
CLF_SORT_WEIGHT: CommodityListField.ValueType  # 1113
"""排序权重"""
CLF_TIMESTAMP: CommodityListField.ValueType  # 1201
"""时间戳"""
CLF_TRADING_DAY: CommodityListField.ValueType  # 1202
"""所属交易日期"""
CLF_LAST_PRICE: CommodityListField.ValueType  # 1203
"""最新价"""
CLF_BID_PRICE1: CommodityListField.ValueType  # 1204
"""申买价一"""
CLF_BID_VOLUME1: CommodityListField.ValueType  # 1205
"""申买量一"""
CLF_ASK_PRICE1: CommodityListField.ValueType  # 1206
"""申卖价一"""
CLF_ASK_VOLUME1: CommodityListField.ValueType  # 1207
"""申卖量一"""
CLF_OPEN_PRICE: CommodityListField.ValueType  # 1208
"""开盘价"""
CLF_HIGHEST_PRICE: CommodityListField.ValueType  # 1209
"""最高价"""
CLF_LOWEST_PRICE: CommodityListField.ValueType  # 1210
"""最低价"""
CLF_VOLUME: CommodityListField.ValueType  # 1211
"""现手"""
CLF_TOTAL_VOLUME: CommodityListField.ValueType  # 1212
"""总成交量"""
CLF_TURNOVER: CommodityListField.ValueType  # 1213
"""现额"""
CLF_TOTAL_TURNOVER: CommodityListField.ValueType  # 1214
"""总成交金额"""
CLF_PRE_CLOSE_PRICE: CommodityListField.ValueType  # 1215
"""昨收盘"""
CLF_CLOSE_PRICE: CommodityListField.ValueType  # 1216
"""收盘价"""
CLF_UPPER_LIMIT_PRICE: CommodityListField.ValueType  # 1217
"""涨停板价"""
CLF_LOWER_LIMIT_PRICE: CommodityListField.ValueType  # 1218
"""跌停板价"""
CLF_AVERAGE_PRICE: CommodityListField.ValueType  # 1219
"""均价"""
CLF_CHANGE: CommodityListField.ValueType  # 1220
"""涨跌额（当日）"""
CLF_CHANGE_PERCENT: CommodityListField.ValueType  # 1221
"""涨跌幅（当日%）"""
CLF_DIRECTION: CommodityListField.ValueType  # 1222
"""买卖方向"""
CLF_NATURE: CommodityListField.ValueType  # 1223
"""成交性质"""
CLF_INSIDE: CommodityListField.ValueType  # 1224
"""内盘（卖盘）"""
CLF_OUTSIDE: CommodityListField.ValueType  # 1225
"""外盘（买盘）"""
CLF_INT_OUT_FLAG: CommodityListField.ValueType  # 1226
"""内外盘标志"""
CLF_AMPLITUDE: CommodityListField.ValueType  # 1227
"""振幅（当日%）"""
CLF_ORDER_RATIO: CommodityListField.ValueType  # 1228
"""委比（%）"""
CLF_ORDER_DIFF: CommodityListField.ValueType  # 1229
"""委差"""
CLF_VOLUME_RATIO: CommodityListField.ValueType  # 1230
"""量比"""
CLF_LAST_TRADE_VOLUME: CommodityListField.ValueType  # 1231
"""最新成交手数"""
CLF_BID_PRICES: CommodityListField.ValueType  # 1232
"""申买价"""
CLF_BID_VOLUMES: CommodityListField.ValueType  # 1233
"""申买量"""
CLF_ASK_PRICES: CommodityListField.ValueType  # 1234
"""申卖价"""
CLF_ASK_VOLUMES: CommodityListField.ValueType  # 1235
"""申卖量"""
CLF_TRADING_PHASE_CODE: CommodityListField.ValueType  # 1236
"""交易状态代码"""
CLF_IS_DEAL: CommodityListField.ValueType  # 1237
"""是否成交"""
CLF_STOCK_TYPE: CommodityListField.ValueType  # 2101
"""股票类型（股票专有）"""
CLF_STOCK_STATUS: CommodityListField.ValueType  # 2102
"""股票状态（股票专有）"""
CLF_LIST_DATE: CommodityListField.ValueType  # 2103
"""上市日（YYYYMMDD）（股票专有）"""
CLF_TOTAL_STOCK: CommodityListField.ValueType  # 2104
"""总股本（股票专有）"""
CLF_CIRCULATION_STOCK: CommodityListField.ValueType  # 2105
"""流通股（股票专有）"""
CLF_NET_ASSET: CommodityListField.ValueType  # 2106
"""净资产（股票专有）"""
CLF_NET_PROFIT: CommodityListField.ValueType  # 2107
"""净利润（股票专有）"""
CLF_NET_ASSET_PER_SHARE: CommodityListField.ValueType  # 2108
"""每股净资产（股票专有）"""
CLF_MARGIN_TRADING: CommodityListField.ValueType  # 2109
"""是否融资融券（股票专有）"""
CLF_LOT_SIZE: CommodityListField.ValueType  # 2110
"""每手股数（股票专有）"""
CLF_LIST_DAY_COUNT: CommodityListField.ValueType  # 2111
"""上市天数（股票专有）"""
CLF_NQ_TRANSFER_STATUS: CommodityListField.ValueType  # 2112
"""新三板证券转让状态（新三板股票专有）"""
CLF_ISSUE_PRICE: CommodityListField.ValueType  # 2113
"""发行价（股票专有）"""
CLF_NQ_TRANSFER_TYPE: CommodityListField.ValueType  # 2114
"""新三板证券转让类型（新三板股票专有）"""
CLF_STOCK_EXCHANGE_TYPE: CommodityListField.ValueType  # 2115
"""股票交易类型（股票专有）"""
CLF_REVERSE_REPO_TRADING_DATE: CommodityListField.ValueType  # 2116
"""国债逆回购交易日（YYYYMMDD）（国债逆回购专有）"""
CLF_REVERSE_REPO_DATED_DATE: CommodityListField.ValueType  # 2117
"""国债逆回购记息日（YYYYMMDD）（国债逆回购专有）"""
CLF_REVERSE_REPO_PAYMENT_DATE: CommodityListField.ValueType  # 2118
"""国债逆回购到账日（YYYYMMDD）（国债逆回购专有）"""
CLF_REVERSE_REPO_WITHDRAW_DATE: CommodityListField.ValueType  # 2119
"""国债逆回购可取日（YYYYMMDD）（国债逆回购专有）"""
CLF_REVERSE_REPO_OCCUPATION_DAYS: CommodityListField.ValueType  # 2120
"""国债逆回购占款天数（国债逆回购专有）"""
CLF_PRE_NET_PROFIT: CommodityListField.ValueType  # 2121
"""上一年净利润（股票专有）"""
CLF_TOTAL_VALUE: CommodityListField.ValueType  # 2208
"""总市值（股票专有）"""
CLF_CIRCULATION_MARKET_VALUE: CommodityListField.ValueType  # 2209
"""流通市值（股票专有）"""
CLF_PRICE_EARNING_RATIO: CommodityListField.ValueType  # 2210
"""动态市盈率PE（股票专有）"""
CLF_PRICE_BOOK_VALUE_RATIO: CommodityListField.ValueType  # 2211
"""市净率PBV（股票专有）"""
CLF_TURNOVER_RATE: CommodityListField.ValueType  # 2212
"""换手率（当日%）（股票专有）"""
CLF_FUND_IN: CommodityListField.ValueType  # 2213
"""资金流入（股票专有）"""
CLF_FUND_OUT: CommodityListField.ValueType  # 2214
"""资金流出（股票专有）"""
CLF_UP_COUNT: CommodityListField.ValueType  # 2215
"""涨家数（指数）（股票专有）"""
CLF_DOWN_COUNT: CommodityListField.ValueType  # 2216
"""跌家数（指数）（股票专有）"""
CLF_FLAT_COUNT: CommodityListField.ValueType  # 2217
"""平家数（指数）（股票专有）"""
CLF_CHANGE_PERCENT_FROM_LIST: CommodityListField.ValueType  # 2218
"""涨跌幅（上市以来%）（新股）（股票专有）"""
CLF_UP_PERCENT: CommodityListField.ValueType  # 2220
"""涨股比（%）（指数）（股票专有）"""
CLF_NET_FUND_IN: CommodityListField.ValueType  # 2221
"""资金净流入（股票专有）"""
CLF_AFTER_HOURS_TOTAL_VOLUME: CommodityListField.ValueType  # 2222
"""盘后总成交量（科创板股票专有）"""
CLF_AFTER_HOURS_TOTAL_TURNOVER: CommodityListField.ValueType  # 2223
"""盘后总成交金额（科创板股票专有）"""
CLF_AFTER_HOURS_BID_VOLUME: CommodityListField.ValueType  # 2224
"""盘后申买量（科创板股票专有）"""
CLF_AFTER_HOURS_ASK_VOLUME: CommodityListField.ValueType  # 2225
"""盘后申卖量（科创板股票专有）"""
CLF_STATIC_PRICE_EARNING_RATIO: CommodityListField.ValueType  # 2226
"""静态市盈率PE（股票专有）"""
CLF_MATCH_TRANSACTION_PRICE: CommodityListField.ValueType  # 2227
"""匹配成交价（债券专有）"""
CLF_CHANGE_PERCENT_5MIN: CommodityListField.ValueType  # 2401
"""五分钟涨速（%）（股票专有）"""
CLF_HIGHEST_PRICE_52WEEK: CommodityListField.ValueType  # 2402
"""最高价（52周）（港股专有）"""
CLF_LOWEST_PRICE_52WEEK: CommodityListField.ValueType  # 2403
"""最低价（52周）（港股专有）"""
CLF_CHANGE_PERCENT_1MIN: CommodityListField.ValueType  # 2404
"""一分钟涨速（%）（股票专有）"""
CLF_CHANGE_PERCENT_3MIN: CommodityListField.ValueType  # 2405
"""三分钟涨速（%）（股票专有）"""
CLF_CHANGE_PERCENT_10MIN: CommodityListField.ValueType  # 2406
"""十分钟涨速（%）（股票专有）"""
CLF_CHANGE_PERCENT_15MIN: CommodityListField.ValueType  # 2407
"""十五分钟涨速（%）（股票专有）"""
CLF_RAISING_LIMIT_DAY_COUNT: CommodityListField.ValueType  # 2408
"""连板天数（新股）（股票专有）"""
CLF_NQ_REFERENCE_PRICE: CommodityListField.ValueType  # 2409
"""新三板参考成交价（新三板股票专有）"""
CLF_NQ_MATCHING_VOLUME: CommodityListField.ValueType  # 2410
"""新三板匹配量（新三板股票专有）"""
CLF_NQ_UNMATCHING_VOLUME: CommodityListField.ValueType  # 2411
"""新三板未匹配量（新三板股票专有）"""
CLF_NQ_AFTER_HOURS_TRADING: CommodityListField.ValueType  # 2412
"""新三板盘后交易状态（新三板股票专有）"""
CLF_EXCHANGE_PRICE: CommodityListField.ValueType  # 2413
"""交易价格"""
CLF_INDUSTRY_NAME: CommodityListField.ValueType  # 2501
"""所属行业名称（股票专有）"""
CLF_REGION_NAME: CommodityListField.ValueType  # 2502
"""所属地区名称（股票专有）"""
CLF_FUTURE_TYPE: CommodityListField.ValueType  # 3101
"""期货类型（期货专有）"""
CLF_PRODUCT_CODE: CommodityListField.ValueType  # 3102
"""产品代码（期货、期权专有）"""
CLF_PRODUCT_NAME: CommodityListField.ValueType  # 3103
"""产品名称（期货、期权专有）"""
CLF_MAX_MARKET_ORDER_VOLUME: CommodityListField.ValueType  # 3104
"""市价单最大下单量（期货、期权专有）"""
CLF_MIN_MARKET_ORDER_VOLUME: CommodityListField.ValueType  # 3105
"""市价单最小下单量（期货、期权专有）"""
CLF_MAX_LIMIT_ORDER_VOLUME: CommodityListField.ValueType  # 3106
"""限价单最大下单量（期货、期权专有）"""
CLF_MIN_LIMIT_ORDER_VOLUME: CommodityListField.ValueType  # 3107
"""限价单最小下单量（期货、期权专有）"""
CLF_VOLUME_MULTIPLE: CommodityListField.ValueType  # 3108
"""合约数量乘数（期货、期权专有）"""
CLF_CREATE_DATE: CommodityListField.ValueType  # 3109
"""创建日（YYYYMMDD）（期货、期权专有）"""
CLF_OPEN_DATE: CommodityListField.ValueType  # 3110
"""上市日（YYYYMMDD）（期货、期权专有）"""
CLF_EXPIRE_DATE: CommodityListField.ValueType  # 3111
"""到期日（YYYYMMDD）（期货、期权专有）"""
CLF_START_DELIV_DATE: CommodityListField.ValueType  # 3112
"""开始交割日（YYYYMMDD）（期货、期权专有）"""
CLF_END_DELIV_DATE: CommodityListField.ValueType  # 3113
"""结束交割日（YYYYMMDD）（期货、期权专有）"""
CLF_FUTURE_STATUS: CommodityListField.ValueType  # 3114
"""合约状态（期货专有）"""
CLF_POSITION_TYPE: CommodityListField.ValueType  # 3115
"""持仓类型（期货专有）"""
CLF_POSITION_DATE_TYPE: CommodityListField.ValueType  # 3116
"""持仓日期类型（期货专有）"""
CLF_LONG_MARGIN_RATIO: CommodityListField.ValueType  # 3117
"""多头保证金率（期货专有）"""
CLF_SHORT_MARGIN_RATIO: CommodityListField.ValueType  # 3118
"""空头保证金率（期货专有）"""
CLF_MARGIN_TYPE: CommodityListField.ValueType  # 3119
"""保证金算法（期货专有）"""
CLF_MAIN_TYPE: CommodityListField.ValueType  # 3120
"""主力合约类型（期货专有）"""
CLF_REMAINING_DAY_COUNT: CommodityListField.ValueType  # 3121
"""剩余天数（期货、期权专有）"""
CLF_PRE_OPEN_INTEREST: CommodityListField.ValueType  # 3201
"""昨持仓量（期货、期权专有）"""
CLF_OPEN_INTEREST: CommodityListField.ValueType  # 3202
"""仓差（期货、期权专有）"""
CLF_TOTAL_OPEN_INTEREST: CommodityListField.ValueType  # 3203
"""总持仓量（期货、期权专有）"""
CLF_DAILY_OPEN_INTEREST_DIFF: CommodityListField.ValueType  # 3204
"""日增仓（期货、期权专有）"""
CLF_OPEN_POSITION: CommodityListField.ValueType  # 3205
"""开仓（期货、期权专有）"""
CLF_CLOSE_POSITION: CommodityListField.ValueType  # 3206
"""平仓（期货、期权专有）"""
CLF_PRE_SETTLEMENT_PRICE: CommodityListField.ValueType  # 3207
"""昨结算价（期货、期权专有）"""
CLF_SETTLEMENT_PRICE: CommodityListField.ValueType  # 3208
"""结算价（期货、期权专有）"""
CLF_FUTURE_CALC1: CommodityListField.ValueType  # 3401
"""计算指标1（期货、期权专有）"""
CLF_FUTURE_CALC2: CommodityListField.ValueType  # 3402
"""计算指标2（期货、期权专有）"""
CLF_OPTION_TYPE: CommodityListField.ValueType  # 4101
"""期权类型（期权专有）"""
CLF_UNDERLYING_COMMODITY_KEY: CommodityListField.ValueType  # 4102
"""基础商品键值（期权专有）"""
CLF_CALL_PUT_TYPE: CommodityListField.ValueType  # 4103
"""期权认购认估类型（期权专有）"""
CLF_STRIKE_PRICE: CommodityListField.ValueType  # 4104
"""执行价（期权专有）"""
CLF_STRIKE_MODE: CommodityListField.ValueType  # 4105
"""期权执行类型（期权专有）"""
CLF_OPTION_STATUS: CommodityListField.ValueType  # 4106
"""期权状态（期权专有）"""
CLF_OPTION_MONTH: CommodityListField.ValueType  # 4107
"""期权月份（YYYYMM）（期权专有）"""
CLF_RELATED_COMMODITY_KEY: CommodityListField.ValueType  # 4108
"""关联商品键值（期权专有）"""
CLF_OPTION_MONEY_TYPE: CommodityListField.ValueType  # 4201
"""期权实值虚值类型（期权专有）"""
CLF_IMPLIED_VOLATILITY: CommodityListField.ValueType  # 4202
"""隐含波动率（%）（期权专有）"""
CLF_INTRINSIC_VALUE: CommodityListField.ValueType  # 4203
"""内在价值（期权专有）"""
CLF_TIME_VALUE: CommodityListField.ValueType  # 4204
"""时间价值（期权专有）"""
CLF_GEARING: CommodityListField.ValueType  # 4205
"""杠杆比率（期权专有）"""
CLF_EFFECTIVE_GEARING: CommodityListField.ValueType  # 4206
"""实际杠杆比率（期权专有）"""
CLF_PREMIUM_RATE: CommodityListField.ValueType  # 4207
"""溢价率（%）（期权专有）"""
CLF_DELTA: CommodityListField.ValueType  # 4208
"""DELTA（期权专有）"""
CLF_PRE_DELTA: CommodityListField.ValueType  # 4209
"""昨DELTA（期权专有）"""
CLF_GAMMA: CommodityListField.ValueType  # 4210
"""GAMMA（期权专有）"""
CLF_RHO: CommodityListField.ValueType  # 4211
"""RHO（期权专有）"""
CLF_THETA: CommodityListField.ValueType  # 4212
"""THETA（期权专有）"""
CLF_VEGA: CommodityListField.ValueType  # 4213
"""VEGA（期权专有）"""
CLF_VIRTUAL_RATE: CommodityListField.ValueType  # 4214
"""虚值度（期权专有）"""
CLF_ESTIMATE_MARGIN: CommodityListField.ValueType  # 4215
"""预估保证金（期权专有）"""
CLF_UNDERLYING_LAST_PRICE: CommodityListField.ValueType  # 4216
"""基础商品最新价（期权专有）"""
CLF_UNDERLYING_PRE_SETTLEMENT_PRICE: CommodityListField.ValueType  # 4217
"""基础商品昨结算价（期权专有）"""
CLF_IMPLIED_VOLATILITY_BID: CommodityListField.ValueType  # 4218
"""隐含波动率BID（%）（期权专有）"""
CLF_IMPLIED_VOLATILITY_ASK: CommodityListField.ValueType  # 4219
"""隐含波动率ASK（%）（期权专有）"""
CLF_IMPLIED_VOLATILITY_MID: CommodityListField.ValueType  # 4220
"""隐含波动率MID（%）（期权专有）"""
CLF_SPOT_TYPE: CommodityListField.ValueType  # 6101
"""现货类型（现货专有）"""
global___CommodityListField = CommodityListField

class _CommodityTickField:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CommodityTickFieldEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CommodityTickField.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CTF_UNKNOWN: _CommodityTickField.ValueType  # 0
    """占位"""
    CTF_KEY: _CommodityTickField.ValueType  # 1
    """商品键值"""
    CTF_TIMESTAMP: _CommodityTickField.ValueType  # 2
    """时间戳"""
    CTF_TRADING_DAY: _CommodityTickField.ValueType  # 3
    """所属交易日期（YYYYMMDD）"""
    CTF_LAST_PRICE: _CommodityTickField.ValueType  # 4
    """最新价"""
    CTF_BID_PRICES: _CommodityTickField.ValueType  # 5
    """申买价"""
    CTF_BID_VOLUMES: _CommodityTickField.ValueType  # 6
    """申买量"""
    CTF_ASK_PRICES: _CommodityTickField.ValueType  # 7
    """申卖价"""
    CTF_ASK_VOLUMES: _CommodityTickField.ValueType  # 8
    """申卖量"""
    CTF_OPEN_PRICE: _CommodityTickField.ValueType  # 9
    """开盘价"""
    CTF_HIGHEST_PRICE: _CommodityTickField.ValueType  # 10
    """最高价"""
    CTF_LOWEST_PRICE: _CommodityTickField.ValueType  # 11
    """最低价"""
    CTF_VOLUME: _CommodityTickField.ValueType  # 12
    """现手"""
    CTF_TOTAL_VOLUME: _CommodityTickField.ValueType  # 13
    """总成交量"""
    CTF_TURNOVER: _CommodityTickField.ValueType  # 14
    """现额"""
    CTF_TOTAL_TURNOVER: _CommodityTickField.ValueType  # 15
    """总成交金额"""
    CTF_PRE_CLOSE_PRICE: _CommodityTickField.ValueType  # 16
    """昨收盘"""
    CTF_CLOSE_PRICE: _CommodityTickField.ValueType  # 17
    """收盘价"""
    CTF_UPPER_LIMIT_PRICE: _CommodityTickField.ValueType  # 18
    """涨停板价"""
    CTF_LOWER_LIMIT_PRICE: _CommodityTickField.ValueType  # 19
    """跌停板价"""
    CTF_AVERAGE_PRICE: _CommodityTickField.ValueType  # 20
    """均价"""
    CTF_CHANGE: _CommodityTickField.ValueType  # 21
    """涨跌额（当日）"""
    CTF_CHANGE_PERCENT: _CommodityTickField.ValueType  # 22
    """涨跌幅（当日%）"""
    CTF_DIRECTION: _CommodityTickField.ValueType  # 23
    """买卖方向"""
    CTF_NATURE: _CommodityTickField.ValueType  # 24
    """成交性质"""
    CTF_INSIDE: _CommodityTickField.ValueType  # 25
    """内盘（卖盘）"""
    CTF_OUTSIDE: _CommodityTickField.ValueType  # 26
    """外盘（买盘）"""
    CTF_INT_OUT_FLAG: _CommodityTickField.ValueType  # 27
    """内外盘标志"""
    CTF_AMPLITUDE: _CommodityTickField.ValueType  # 28
    """振幅（当日%）"""
    CTF_ORDER_RATIO: _CommodityTickField.ValueType  # 29
    """委比（%）"""
    CTF_ORDER_DIFF: _CommodityTickField.ValueType  # 30
    """委差"""
    CTF_VOLUME_RATIO: _CommodityTickField.ValueType  # 31
    """量比"""
    CTF_LAST_TRADE_VOLUME: _CommodityTickField.ValueType  # 32
    """最新成交手数"""
    CTF_TRADING_PHASE_CODE: _CommodityTickField.ValueType  # 33
    """交易状态代码"""
    CTF_IS_DEAL: _CommodityTickField.ValueType  # 34
    """是否成交"""
    CTF_TOTAL_VALUE: _CommodityTickField.ValueType  # 107
    """总市值（股票专有）"""
    CTF_CIRCULATION_MARKET_VALUE: _CommodityTickField.ValueType  # 108
    """流通市值（股票专有）"""
    CTF_PRICE_EARNING_RATIO: _CommodityTickField.ValueType  # 109
    """动态市盈率PE（股票专有）"""
    CTF_PRICE_BOOK_VALUE_RATIO: _CommodityTickField.ValueType  # 110
    """市净率PBV（股票专有）"""
    CTF_TURNOVER_RATE: _CommodityTickField.ValueType  # 111
    """换手率（当日%）（股票专有）"""
    CTF_FUND_IN: _CommodityTickField.ValueType  # 112
    """资金流入（股票专有）"""
    CTF_FUND_OUT: _CommodityTickField.ValueType  # 113
    """资金流出（股票专有）"""
    CTF_UP_COUNT: _CommodityTickField.ValueType  # 114
    """涨家数（指数）（股票专有）"""
    CTF_DOWN_COUNT: _CommodityTickField.ValueType  # 115
    """跌家数（指数）（股票专有）"""
    CTF_FLAT_COUNT: _CommodityTickField.ValueType  # 116
    """平家数（指数）（股票专有）"""
    CTF_CHANGE_PERCENT_FROM_LIST: _CommodityTickField.ValueType  # 117
    """涨跌幅（上市以来%）（新股）（股票专有）"""
    CTF_UP_PERCENT: _CommodityTickField.ValueType  # 119
    """涨股比（%）（指数）（股票专有）"""
    CTF_AFTER_HOURS_TOTAL_VOLUME: _CommodityTickField.ValueType  # 120
    """盘后总成交量（科创板股票专有）"""
    CTF_AFTER_HOURS_TOTAL_TURNOVER: _CommodityTickField.ValueType  # 121
    """盘后总成交金额（科创板股票专有）"""
    CTF_AFTER_HOURS_BID_VOLUME: _CommodityTickField.ValueType  # 122
    """盘后申买量（科创板股票专有）"""
    CTF_AFTER_HOURS_ASK_VOLUME: _CommodityTickField.ValueType  # 123
    """盘后申卖量（科创板股票专有）"""
    CTF_STATIC_PRICE_EARNING_RATIO: _CommodityTickField.ValueType  # 124
    """静态市盈率PE（股票专有）"""
    CTF_MATCH_TRANSACTION_PRICE: _CommodityTickField.ValueType  # 125
    """匹配成交价（债券专有）"""
    CTF_PRE_OPEN_INTEREST: _CommodityTickField.ValueType  # 200
    """昨持仓量（期货、期权专有）"""
    CTF_OPEN_INTEREST: _CommodityTickField.ValueType  # 201
    """仓差（期货、期权专有）"""
    CTF_TOTAL_OPEN_INTEREST: _CommodityTickField.ValueType  # 202
    """总持仓量（期货、期权专有）"""
    CTF_OPEN_POSITION: _CommodityTickField.ValueType  # 203
    """开仓（期货、期权专有）"""
    CTF_CLOSE_POSITION: _CommodityTickField.ValueType  # 204
    """平仓（期货、期权专有）"""
    CTF_DAILY_OPEN_INTEREST_DIFF: _CommodityTickField.ValueType  # 205
    """日增仓（期货、期权专有）"""
    CTF_PRE_SETTLEMENT_PRICE: _CommodityTickField.ValueType  # 206
    """昨结算价（期货、期权专有）"""
    CTF_SETTLEMENT_PRICE: _CommodityTickField.ValueType  # 207
    """结算价（期货、期权专有）"""
    CTF_OPTION_MONEY_TYPE: _CommodityTickField.ValueType  # 300
    """实值虚值类型（期权专有）"""
    CTF_IMPLIED_VOLATILITY: _CommodityTickField.ValueType  # 301
    """隐含波动率（%）（期权专有）"""
    CTF_INTRINSIC_VALUE: _CommodityTickField.ValueType  # 302
    """内在价值（期权专有）"""
    CTF_TIME_VALUE: _CommodityTickField.ValueType  # 303
    """时间价值（期权专有）"""
    CTF_GEARING: _CommodityTickField.ValueType  # 304
    """杠杆比率（期权专有）"""
    CTF_EFFECTIVE_GEARING: _CommodityTickField.ValueType  # 305
    """实际杠杆比率（期权专有）"""
    CTF_PREMIUM_RATE: _CommodityTickField.ValueType  # 306
    """溢价率（%）（期权专有）"""
    CTF_DELTA: _CommodityTickField.ValueType  # 307
    """DELTA（期权专有）"""
    CTF_PRE_DELTA: _CommodityTickField.ValueType  # 308
    """昨DELTA（期权专有）"""
    CTF_GAMMA: _CommodityTickField.ValueType  # 309
    """GAMMA（期权专有）"""
    CTF_RHO: _CommodityTickField.ValueType  # 310
    """RHO（期权专有）"""
    CTF_THETA: _CommodityTickField.ValueType  # 311
    """THETA（期权专有）"""
    CTF_VEGA: _CommodityTickField.ValueType  # 312
    """VEGA（期权专有）"""
    CTF_UNDERLYING_LAST_PRICE: _CommodityTickField.ValueType  # 313
    """基础商品最新价（期权专有）"""
    CTF_UNDERLYING_PRE_SETTLEMENT_PRICE: _CommodityTickField.ValueType  # 314
    """基础商品昨结算价（期权专有）"""
    CTF_VIRTUAL_RATE: _CommodityTickField.ValueType  # 315
    """虚值度（期权专有）"""
    CTF_ESTIMATE_MARGIN: _CommodityTickField.ValueType  # 316
    """预估保证金（期权专有）"""
    CTF_IMPLIED_VOLATILITY_BID: _CommodityTickField.ValueType  # 317
    """隐含波动率BID（%）（期权专有）"""
    CTF_IMPLIED_VOLATILITY_ASK: _CommodityTickField.ValueType  # 318
    """隐含波动率ASK（%）（期权专有）"""
    CTF_IMPLIED_VOLATILITY_MID: _CommodityTickField.ValueType  # 319
    """隐含波动率MID（%）（期权专有）"""

class CommodityTickField(_CommodityTickField, metaclass=_CommodityTickFieldEnumTypeWrapper):
    """商品Tick字段"""

CTF_UNKNOWN: CommodityTickField.ValueType  # 0
"""占位"""
CTF_KEY: CommodityTickField.ValueType  # 1
"""商品键值"""
CTF_TIMESTAMP: CommodityTickField.ValueType  # 2
"""时间戳"""
CTF_TRADING_DAY: CommodityTickField.ValueType  # 3
"""所属交易日期（YYYYMMDD）"""
CTF_LAST_PRICE: CommodityTickField.ValueType  # 4
"""最新价"""
CTF_BID_PRICES: CommodityTickField.ValueType  # 5
"""申买价"""
CTF_BID_VOLUMES: CommodityTickField.ValueType  # 6
"""申买量"""
CTF_ASK_PRICES: CommodityTickField.ValueType  # 7
"""申卖价"""
CTF_ASK_VOLUMES: CommodityTickField.ValueType  # 8
"""申卖量"""
CTF_OPEN_PRICE: CommodityTickField.ValueType  # 9
"""开盘价"""
CTF_HIGHEST_PRICE: CommodityTickField.ValueType  # 10
"""最高价"""
CTF_LOWEST_PRICE: CommodityTickField.ValueType  # 11
"""最低价"""
CTF_VOLUME: CommodityTickField.ValueType  # 12
"""现手"""
CTF_TOTAL_VOLUME: CommodityTickField.ValueType  # 13
"""总成交量"""
CTF_TURNOVER: CommodityTickField.ValueType  # 14
"""现额"""
CTF_TOTAL_TURNOVER: CommodityTickField.ValueType  # 15
"""总成交金额"""
CTF_PRE_CLOSE_PRICE: CommodityTickField.ValueType  # 16
"""昨收盘"""
CTF_CLOSE_PRICE: CommodityTickField.ValueType  # 17
"""收盘价"""
CTF_UPPER_LIMIT_PRICE: CommodityTickField.ValueType  # 18
"""涨停板价"""
CTF_LOWER_LIMIT_PRICE: CommodityTickField.ValueType  # 19
"""跌停板价"""
CTF_AVERAGE_PRICE: CommodityTickField.ValueType  # 20
"""均价"""
CTF_CHANGE: CommodityTickField.ValueType  # 21
"""涨跌额（当日）"""
CTF_CHANGE_PERCENT: CommodityTickField.ValueType  # 22
"""涨跌幅（当日%）"""
CTF_DIRECTION: CommodityTickField.ValueType  # 23
"""买卖方向"""
CTF_NATURE: CommodityTickField.ValueType  # 24
"""成交性质"""
CTF_INSIDE: CommodityTickField.ValueType  # 25
"""内盘（卖盘）"""
CTF_OUTSIDE: CommodityTickField.ValueType  # 26
"""外盘（买盘）"""
CTF_INT_OUT_FLAG: CommodityTickField.ValueType  # 27
"""内外盘标志"""
CTF_AMPLITUDE: CommodityTickField.ValueType  # 28
"""振幅（当日%）"""
CTF_ORDER_RATIO: CommodityTickField.ValueType  # 29
"""委比（%）"""
CTF_ORDER_DIFF: CommodityTickField.ValueType  # 30
"""委差"""
CTF_VOLUME_RATIO: CommodityTickField.ValueType  # 31
"""量比"""
CTF_LAST_TRADE_VOLUME: CommodityTickField.ValueType  # 32
"""最新成交手数"""
CTF_TRADING_PHASE_CODE: CommodityTickField.ValueType  # 33
"""交易状态代码"""
CTF_IS_DEAL: CommodityTickField.ValueType  # 34
"""是否成交"""
CTF_TOTAL_VALUE: CommodityTickField.ValueType  # 107
"""总市值（股票专有）"""
CTF_CIRCULATION_MARKET_VALUE: CommodityTickField.ValueType  # 108
"""流通市值（股票专有）"""
CTF_PRICE_EARNING_RATIO: CommodityTickField.ValueType  # 109
"""动态市盈率PE（股票专有）"""
CTF_PRICE_BOOK_VALUE_RATIO: CommodityTickField.ValueType  # 110
"""市净率PBV（股票专有）"""
CTF_TURNOVER_RATE: CommodityTickField.ValueType  # 111
"""换手率（当日%）（股票专有）"""
CTF_FUND_IN: CommodityTickField.ValueType  # 112
"""资金流入（股票专有）"""
CTF_FUND_OUT: CommodityTickField.ValueType  # 113
"""资金流出（股票专有）"""
CTF_UP_COUNT: CommodityTickField.ValueType  # 114
"""涨家数（指数）（股票专有）"""
CTF_DOWN_COUNT: CommodityTickField.ValueType  # 115
"""跌家数（指数）（股票专有）"""
CTF_FLAT_COUNT: CommodityTickField.ValueType  # 116
"""平家数（指数）（股票专有）"""
CTF_CHANGE_PERCENT_FROM_LIST: CommodityTickField.ValueType  # 117
"""涨跌幅（上市以来%）（新股）（股票专有）"""
CTF_UP_PERCENT: CommodityTickField.ValueType  # 119
"""涨股比（%）（指数）（股票专有）"""
CTF_AFTER_HOURS_TOTAL_VOLUME: CommodityTickField.ValueType  # 120
"""盘后总成交量（科创板股票专有）"""
CTF_AFTER_HOURS_TOTAL_TURNOVER: CommodityTickField.ValueType  # 121
"""盘后总成交金额（科创板股票专有）"""
CTF_AFTER_HOURS_BID_VOLUME: CommodityTickField.ValueType  # 122
"""盘后申买量（科创板股票专有）"""
CTF_AFTER_HOURS_ASK_VOLUME: CommodityTickField.ValueType  # 123
"""盘后申卖量（科创板股票专有）"""
CTF_STATIC_PRICE_EARNING_RATIO: CommodityTickField.ValueType  # 124
"""静态市盈率PE（股票专有）"""
CTF_MATCH_TRANSACTION_PRICE: CommodityTickField.ValueType  # 125
"""匹配成交价（债券专有）"""
CTF_PRE_OPEN_INTEREST: CommodityTickField.ValueType  # 200
"""昨持仓量（期货、期权专有）"""
CTF_OPEN_INTEREST: CommodityTickField.ValueType  # 201
"""仓差（期货、期权专有）"""
CTF_TOTAL_OPEN_INTEREST: CommodityTickField.ValueType  # 202
"""总持仓量（期货、期权专有）"""
CTF_OPEN_POSITION: CommodityTickField.ValueType  # 203
"""开仓（期货、期权专有）"""
CTF_CLOSE_POSITION: CommodityTickField.ValueType  # 204
"""平仓（期货、期权专有）"""
CTF_DAILY_OPEN_INTEREST_DIFF: CommodityTickField.ValueType  # 205
"""日增仓（期货、期权专有）"""
CTF_PRE_SETTLEMENT_PRICE: CommodityTickField.ValueType  # 206
"""昨结算价（期货、期权专有）"""
CTF_SETTLEMENT_PRICE: CommodityTickField.ValueType  # 207
"""结算价（期货、期权专有）"""
CTF_OPTION_MONEY_TYPE: CommodityTickField.ValueType  # 300
"""实值虚值类型（期权专有）"""
CTF_IMPLIED_VOLATILITY: CommodityTickField.ValueType  # 301
"""隐含波动率（%）（期权专有）"""
CTF_INTRINSIC_VALUE: CommodityTickField.ValueType  # 302
"""内在价值（期权专有）"""
CTF_TIME_VALUE: CommodityTickField.ValueType  # 303
"""时间价值（期权专有）"""
CTF_GEARING: CommodityTickField.ValueType  # 304
"""杠杆比率（期权专有）"""
CTF_EFFECTIVE_GEARING: CommodityTickField.ValueType  # 305
"""实际杠杆比率（期权专有）"""
CTF_PREMIUM_RATE: CommodityTickField.ValueType  # 306
"""溢价率（%）（期权专有）"""
CTF_DELTA: CommodityTickField.ValueType  # 307
"""DELTA（期权专有）"""
CTF_PRE_DELTA: CommodityTickField.ValueType  # 308
"""昨DELTA（期权专有）"""
CTF_GAMMA: CommodityTickField.ValueType  # 309
"""GAMMA（期权专有）"""
CTF_RHO: CommodityTickField.ValueType  # 310
"""RHO（期权专有）"""
CTF_THETA: CommodityTickField.ValueType  # 311
"""THETA（期权专有）"""
CTF_VEGA: CommodityTickField.ValueType  # 312
"""VEGA（期权专有）"""
CTF_UNDERLYING_LAST_PRICE: CommodityTickField.ValueType  # 313
"""基础商品最新价（期权专有）"""
CTF_UNDERLYING_PRE_SETTLEMENT_PRICE: CommodityTickField.ValueType  # 314
"""基础商品昨结算价（期权专有）"""
CTF_VIRTUAL_RATE: CommodityTickField.ValueType  # 315
"""虚值度（期权专有）"""
CTF_ESTIMATE_MARGIN: CommodityTickField.ValueType  # 316
"""预估保证金（期权专有）"""
CTF_IMPLIED_VOLATILITY_BID: CommodityTickField.ValueType  # 317
"""隐含波动率BID（%）（期权专有）"""
CTF_IMPLIED_VOLATILITY_ASK: CommodityTickField.ValueType  # 318
"""隐含波动率ASK（%）（期权专有）"""
CTF_IMPLIED_VOLATILITY_MID: CommodityTickField.ValueType  # 319
"""隐含波动率MID（%）（期权专有）"""
global___CommodityTickField = CommodityTickField

class _CommodityFilterType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _CommodityFilterTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CommodityFilterType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    CFT_LIMITE_UP: _CommodityFilterType.ValueType  # 0
    """涨停"""
    CFT_LIMITE_UP_DOMESTIC_NEW_STOCK: _CommodityFilterType.ValueType  # 1
    """涨停（国内新股）"""
    CFT_LIMITE_UP_WITHOUT_DOMESTIC_NEW_STOCK: _CommodityFilterType.ValueType  # 2
    """涨停（国内非新股）"""
    CFT_LIMITE_UP_DOMESTIC_NEW_STOCK_CONTINUE: _CommodityFilterType.ValueType  # 3
    """涨停（国内新股连续涨停）"""
    CFT_LIMITE_UP_WITHOUT_DOMESTIC_NEW_STOCK_CONTINUE: _CommodityFilterType.ValueType  # 4
    """涨停（非国内新股连续涨停）"""

class CommodityFilterType(_CommodityFilterType, metaclass=_CommodityFilterTypeEnumTypeWrapper):
    """商品过滤类型"""

CFT_LIMITE_UP: CommodityFilterType.ValueType  # 0
"""涨停"""
CFT_LIMITE_UP_DOMESTIC_NEW_STOCK: CommodityFilterType.ValueType  # 1
"""涨停（国内新股）"""
CFT_LIMITE_UP_WITHOUT_DOMESTIC_NEW_STOCK: CommodityFilterType.ValueType  # 2
"""涨停（国内非新股）"""
CFT_LIMITE_UP_DOMESTIC_NEW_STOCK_CONTINUE: CommodityFilterType.ValueType  # 3
"""涨停（国内新股连续涨停）"""
CFT_LIMITE_UP_WITHOUT_DOMESTIC_NEW_STOCK_CONTINUE: CommodityFilterType.ValueType  # 4
"""涨停（非国内新股连续涨停）"""
global___CommodityFilterType = CommodityFilterType

class _TickDataCompressType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _TickDataCompressTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TickDataCompressType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    TDCT_NO_COMPRESS: _TickDataCompressType.ValueType  # 0
    """不压缩"""
    TDCT_FULL_COMPRESS: _TickDataCompressType.ValueType  # 1
    """全字段压缩"""
    TDCT_LITE_COMPRESS: _TickDataCompressType.ValueType  # 2
    """精减字段压缩"""

class TickDataCompressType(_TickDataCompressType, metaclass=_TickDataCompressTypeEnumTypeWrapper):
    """Tick数据压缩类型"""

TDCT_NO_COMPRESS: TickDataCompressType.ValueType  # 0
"""不压缩"""
TDCT_FULL_COMPRESS: TickDataCompressType.ValueType  # 1
"""全字段压缩"""
TDCT_LITE_COMPRESS: TickDataCompressType.ValueType  # 2
"""精减字段压缩"""
global___TickDataCompressType = TickDataCompressType

class _StockType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _StockTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StockType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    ST_SHEN_ZHEN_A: _StockType.ValueType  # 0
    """深圳A股"""
    ST_SHEN_ZHEN_B: _StockType.ValueType  # 1
    """深圳B股"""
    ST_ZHONG_XIAO_BAN: _StockType.ValueType  # 2
    """中小板股"""
    ST_SHEN_ZHEN_KAI_FANG_SHI_JI_JIN: _StockType.ValueType  # 3
    """深圳开放式基金"""
    ST_SHEN_ZHEN_FENG_BI_SHI_JI_JIN: _StockType.ValueType  # 4
    """深圳封闭式基金"""
    ST_SHEN_ZHEN_QUAN_ZHENG: _StockType.ValueType  # 5
    """深圳权证"""
    ST_SHEN_ZHEN_ZHAI_QUAN: _StockType.ValueType  # 6
    """深圳债券"""
    ST_SHEN_ZHEN_ZHI_SHU: _StockType.ValueType  # 7
    """深圳指数"""
    ST_SHEN_ZHEN_QI_TA: _StockType.ValueType  # 8
    """深圳其他类别"""
    ST_SHANG_HAI_AGU: _StockType.ValueType  # 9
    """上海A股"""
    ST_SHANG_HAI_BGU: _StockType.ValueType  # 10
    """上海B股"""
    ST_SHANG_HAI_KAI_FANG_SHI_JI_JIN: _StockType.ValueType  # 11
    """上海开放式基金"""
    ST_SHANG_HAI_FENG_BI_SHI_JI_JIN: _StockType.ValueType  # 12
    """上海封闭式基金"""
    ST_SHANG_HAI_QUAN_ZHENG: _StockType.ValueType  # 13
    """上海权证"""
    ST_SHANG_HAI_ZHAI_QUAN: _StockType.ValueType  # 14
    """上海债券"""
    ST_SHANG_HAI_ZHI_SHU: _StockType.ValueType  # 15
    """上海指数"""
    ST_SHANG_HAI_QI_TA: _StockType.ValueType  # 16
    """上海其他"""
    ST_SAN_BAN: _StockType.ValueType  # 17
    """三板"""
    ST_CHUANG_YE_BAN_GU: _StockType.ValueType  # 18
    """创业板股"""
    ST_SHEN_ZHEN_LOF_JI_JIN: _StockType.ValueType  # 19
    """深圳LOF基金"""
    ST_SHANG_HAI_JIAO_YI_XING_JI_JIN: _StockType.ValueType  # 20
    """上海交易型基金"""
    ST_SHEN_ZHEN_GUO_ZHAI: _StockType.ValueType  # 21
    """深圳国债"""
    ST_SHEN_ZHEN_QI_ZHAI: _StockType.ValueType  # 22
    """深圳企债"""
    ST_SHEN_ZHEN_KE_ZHUAN_ZHAI: _StockType.ValueType  # 23
    """深圳可转债"""
    ST_SHEN_ZHEN_HUI_GOU: _StockType.ValueType  # 24
    """深圳回购（该类型包括深圳逆回购数据）"""
    ST_SHANG_HAI_GUO_ZHAI: _StockType.ValueType  # 25
    """上海国债"""
    ST_SHANG_HAI_QI_ZHAI: _StockType.ValueType  # 26
    """上海企债"""
    ST_SHANG_HAI_KE_ZHUAN_ZHAI: _StockType.ValueType  # 27
    """上海可转债"""
    ST_SHANG_HAI_LOF_JI_JIN: _StockType.ValueType  # 28
    """上海LOF基金"""
    ST_SHANG_HAI_HUI_GOU: _StockType.ValueType  # 30
    """上海回购（该类型包括上海逆回购数据）"""
    ST_CHUANG_XIN_CENG_XIE_YI_ZHUAN_RANG: _StockType.ValueType  # 31
    """创新层-协议转让"""
    ST_CHUANG_XIN_CENG_ZUO_SHI_ZHUAN_RANG: _StockType.ValueType  # 32
    """创新层-做市转让"""
    ST_JI_CHU_CENG_XIE_YI_ZHUAN_RANG: _StockType.ValueType  # 33
    """基础层-协议转让"""
    ST_JI_CHU_CENG_ZUO_SHI_ZHUAN_RANG: _StockType.ValueType  # 34
    """基础层-做市转让"""
    ST_QI_TA_CENG_XIE_YI_ZHUAN_RANG: _StockType.ValueType  # 35
    """其它层-协议转让"""
    ST_QI_TA_CENG_ZUO_SHI_ZHUAN_RANG: _StockType.ValueType  # 36
    """其它层-做市转让"""
    ST_JING_JIA_ZHUAN_RANG: _StockType.ValueType  # 37
    """竞价转让"""
    ST_QI_TA_ZHUAN_RANG: _StockType.ValueType  # 38
    """其他转让"""
    ST_YOU_XIAN_GU: _StockType.ValueType  # 39
    """优先股(也属于协议转让范围)"""
    ST_LIANG_WANG_JI_TUI_SHI_A: _StockType.ValueType  # 40
    """两网及退市A股"""
    ST_LIANG_WANG_JI_TUI_SHI_B: _StockType.ValueType  # 41
    """两网及退市B股"""
    ST_SAN_BAN_ZHI_SHU: _StockType.ValueType  # 42
    """三板指数"""
    ST_SHANG_HAI_ETFJI_JIN_QI_QUAN: _StockType.ValueType  # 60
    """上海ETF基金期权"""
    ST_SHANG_HAI_AGU_QI_QUAN: _StockType.ValueType  # 61
    """上海A股期权"""
    ST_SHEN_ZHEN_QI_QUAN: _StockType.ValueType  # 62
    """深圳期权"""
    ST_SHEN_ZHEN_TUI_SHI: _StockType.ValueType  # 64
    """深圳退市"""
    ST_SHANG_HAI_TUI_SHI: _StockType.ValueType  # 65
    """上海退市"""
    ST_SHANG_HAI_JING_SHI: _StockType.ValueType  # 66
    """上海警示"""
    ST_BAN_KUAI: _StockType.ValueType  # 71
    """板块"""
    ST_CHANG_WAI_JI_JIN: _StockType.ValueType  # 80
    """场外基金"""
    ST_SHEN_GANG_TONG: _StockType.ValueType  # 98
    """深港通"""
    ST_HU_GANG_TONG: _StockType.ValueType  # 99
    """沪港通"""
    ST_KE_CHUANG_BAN_ZHI_SHU: _StockType.ValueType  # 100
    """科创版指数"""
    ST_KE_CHUANG_BAN_GU_PIAO: _StockType.ValueType  # 101
    """科创版股票"""
    ST_SHANG_HAI_SHEN_GOU: _StockType.ValueType  # 102
    """上海申购"""
    ST_SHEN_GANG_TONG_TUI_SHI: _StockType.ValueType  # 103
    """深港通退市"""
    ST_HU_GANG_TONG_TUI_SHI: _StockType.ValueType  # 104
    """沪港通退市"""
    ST_HONGKONG_STOCK: _StockType.ValueType  # 200
    """港股"""
    ST_HONGKONG_INDEX: _StockType.ValueType  # 201
    """港股指数"""
    ST_HONGKONG_MAIN: _StockType.ValueType  # 202
    """港股主板"""
    ST_HONGKONG_GEM: _StockType.ValueType  # 203
    """港股创业板"""
    ST_HONGKONG_ETF: _StockType.ValueType  # 204
    """港股ETF"""
    ST_AMERICAN_STOCK: _StockType.ValueType  # 300
    """美股"""
    ST_AMERICAN_INDEX: _StockType.ValueType  # 301
    """美股指数"""
    ST_BLOCK_INDUSTRY: _StockType.ValueType  # 400
    """国内行业板块"""
    ST_BLOCK_REGION: _StockType.ValueType  # 401
    """国内地域板块"""
    ST_BLOCK_CONCEPT: _StockType.ValueType  # 402
    """国内概念板块"""
    ST_HKBLOCK_INDUSTRY: _StockType.ValueType  # 500
    """港股行业板块"""
    ST_HKBLOCK_REGION: _StockType.ValueType  # 501
    """港股地域板块"""
    ST_HKBLOCK_CONCEPT: _StockType.ValueType  # 502
    """港股概念板块"""

class StockType(_StockType, metaclass=_StockTypeEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    股票数据定义
    //////////////////////////////////////////////////////////////////////////////

    股票类型
    """

ST_SHEN_ZHEN_A: StockType.ValueType  # 0
"""深圳A股"""
ST_SHEN_ZHEN_B: StockType.ValueType  # 1
"""深圳B股"""
ST_ZHONG_XIAO_BAN: StockType.ValueType  # 2
"""中小板股"""
ST_SHEN_ZHEN_KAI_FANG_SHI_JI_JIN: StockType.ValueType  # 3
"""深圳开放式基金"""
ST_SHEN_ZHEN_FENG_BI_SHI_JI_JIN: StockType.ValueType  # 4
"""深圳封闭式基金"""
ST_SHEN_ZHEN_QUAN_ZHENG: StockType.ValueType  # 5
"""深圳权证"""
ST_SHEN_ZHEN_ZHAI_QUAN: StockType.ValueType  # 6
"""深圳债券"""
ST_SHEN_ZHEN_ZHI_SHU: StockType.ValueType  # 7
"""深圳指数"""
ST_SHEN_ZHEN_QI_TA: StockType.ValueType  # 8
"""深圳其他类别"""
ST_SHANG_HAI_AGU: StockType.ValueType  # 9
"""上海A股"""
ST_SHANG_HAI_BGU: StockType.ValueType  # 10
"""上海B股"""
ST_SHANG_HAI_KAI_FANG_SHI_JI_JIN: StockType.ValueType  # 11
"""上海开放式基金"""
ST_SHANG_HAI_FENG_BI_SHI_JI_JIN: StockType.ValueType  # 12
"""上海封闭式基金"""
ST_SHANG_HAI_QUAN_ZHENG: StockType.ValueType  # 13
"""上海权证"""
ST_SHANG_HAI_ZHAI_QUAN: StockType.ValueType  # 14
"""上海债券"""
ST_SHANG_HAI_ZHI_SHU: StockType.ValueType  # 15
"""上海指数"""
ST_SHANG_HAI_QI_TA: StockType.ValueType  # 16
"""上海其他"""
ST_SAN_BAN: StockType.ValueType  # 17
"""三板"""
ST_CHUANG_YE_BAN_GU: StockType.ValueType  # 18
"""创业板股"""
ST_SHEN_ZHEN_LOF_JI_JIN: StockType.ValueType  # 19
"""深圳LOF基金"""
ST_SHANG_HAI_JIAO_YI_XING_JI_JIN: StockType.ValueType  # 20
"""上海交易型基金"""
ST_SHEN_ZHEN_GUO_ZHAI: StockType.ValueType  # 21
"""深圳国债"""
ST_SHEN_ZHEN_QI_ZHAI: StockType.ValueType  # 22
"""深圳企债"""
ST_SHEN_ZHEN_KE_ZHUAN_ZHAI: StockType.ValueType  # 23
"""深圳可转债"""
ST_SHEN_ZHEN_HUI_GOU: StockType.ValueType  # 24
"""深圳回购（该类型包括深圳逆回购数据）"""
ST_SHANG_HAI_GUO_ZHAI: StockType.ValueType  # 25
"""上海国债"""
ST_SHANG_HAI_QI_ZHAI: StockType.ValueType  # 26
"""上海企债"""
ST_SHANG_HAI_KE_ZHUAN_ZHAI: StockType.ValueType  # 27
"""上海可转债"""
ST_SHANG_HAI_LOF_JI_JIN: StockType.ValueType  # 28
"""上海LOF基金"""
ST_SHANG_HAI_HUI_GOU: StockType.ValueType  # 30
"""上海回购（该类型包括上海逆回购数据）"""
ST_CHUANG_XIN_CENG_XIE_YI_ZHUAN_RANG: StockType.ValueType  # 31
"""创新层-协议转让"""
ST_CHUANG_XIN_CENG_ZUO_SHI_ZHUAN_RANG: StockType.ValueType  # 32
"""创新层-做市转让"""
ST_JI_CHU_CENG_XIE_YI_ZHUAN_RANG: StockType.ValueType  # 33
"""基础层-协议转让"""
ST_JI_CHU_CENG_ZUO_SHI_ZHUAN_RANG: StockType.ValueType  # 34
"""基础层-做市转让"""
ST_QI_TA_CENG_XIE_YI_ZHUAN_RANG: StockType.ValueType  # 35
"""其它层-协议转让"""
ST_QI_TA_CENG_ZUO_SHI_ZHUAN_RANG: StockType.ValueType  # 36
"""其它层-做市转让"""
ST_JING_JIA_ZHUAN_RANG: StockType.ValueType  # 37
"""竞价转让"""
ST_QI_TA_ZHUAN_RANG: StockType.ValueType  # 38
"""其他转让"""
ST_YOU_XIAN_GU: StockType.ValueType  # 39
"""优先股(也属于协议转让范围)"""
ST_LIANG_WANG_JI_TUI_SHI_A: StockType.ValueType  # 40
"""两网及退市A股"""
ST_LIANG_WANG_JI_TUI_SHI_B: StockType.ValueType  # 41
"""两网及退市B股"""
ST_SAN_BAN_ZHI_SHU: StockType.ValueType  # 42
"""三板指数"""
ST_SHANG_HAI_ETFJI_JIN_QI_QUAN: StockType.ValueType  # 60
"""上海ETF基金期权"""
ST_SHANG_HAI_AGU_QI_QUAN: StockType.ValueType  # 61
"""上海A股期权"""
ST_SHEN_ZHEN_QI_QUAN: StockType.ValueType  # 62
"""深圳期权"""
ST_SHEN_ZHEN_TUI_SHI: StockType.ValueType  # 64
"""深圳退市"""
ST_SHANG_HAI_TUI_SHI: StockType.ValueType  # 65
"""上海退市"""
ST_SHANG_HAI_JING_SHI: StockType.ValueType  # 66
"""上海警示"""
ST_BAN_KUAI: StockType.ValueType  # 71
"""板块"""
ST_CHANG_WAI_JI_JIN: StockType.ValueType  # 80
"""场外基金"""
ST_SHEN_GANG_TONG: StockType.ValueType  # 98
"""深港通"""
ST_HU_GANG_TONG: StockType.ValueType  # 99
"""沪港通"""
ST_KE_CHUANG_BAN_ZHI_SHU: StockType.ValueType  # 100
"""科创版指数"""
ST_KE_CHUANG_BAN_GU_PIAO: StockType.ValueType  # 101
"""科创版股票"""
ST_SHANG_HAI_SHEN_GOU: StockType.ValueType  # 102
"""上海申购"""
ST_SHEN_GANG_TONG_TUI_SHI: StockType.ValueType  # 103
"""深港通退市"""
ST_HU_GANG_TONG_TUI_SHI: StockType.ValueType  # 104
"""沪港通退市"""
ST_HONGKONG_STOCK: StockType.ValueType  # 200
"""港股"""
ST_HONGKONG_INDEX: StockType.ValueType  # 201
"""港股指数"""
ST_HONGKONG_MAIN: StockType.ValueType  # 202
"""港股主板"""
ST_HONGKONG_GEM: StockType.ValueType  # 203
"""港股创业板"""
ST_HONGKONG_ETF: StockType.ValueType  # 204
"""港股ETF"""
ST_AMERICAN_STOCK: StockType.ValueType  # 300
"""美股"""
ST_AMERICAN_INDEX: StockType.ValueType  # 301
"""美股指数"""
ST_BLOCK_INDUSTRY: StockType.ValueType  # 400
"""国内行业板块"""
ST_BLOCK_REGION: StockType.ValueType  # 401
"""国内地域板块"""
ST_BLOCK_CONCEPT: StockType.ValueType  # 402
"""国内概念板块"""
ST_HKBLOCK_INDUSTRY: StockType.ValueType  # 500
"""港股行业板块"""
ST_HKBLOCK_REGION: StockType.ValueType  # 501
"""港股地域板块"""
ST_HKBLOCK_CONCEPT: StockType.ValueType  # 502
"""港股概念板块"""
global___StockType = StockType

class _StockStatus:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _StockStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StockStatus.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    ST_UNLISTED: _StockStatus.ValueType  # 0
    """未上市"""
    ST_SUSPEND_LISTING: _StockStatus.ValueType  # 1
    """暂停上市"""
    ST_LISTED: _StockStatus.ValueType  # 2
    """上市"""
    ST_RIGHT_ISSUE: _StockStatus.ValueType  # 3
    """配股"""
    ST_PAUSE: _StockStatus.ValueType  # 4
    """停牌"""
    ST_DELISTED: _StockStatus.ValueType  # 5
    """退市"""

class StockStatus(_StockStatus, metaclass=_StockStatusEnumTypeWrapper):
    """股票状态"""

ST_UNLISTED: StockStatus.ValueType  # 0
"""未上市"""
ST_SUSPEND_LISTING: StockStatus.ValueType  # 1
"""暂停上市"""
ST_LISTED: StockStatus.ValueType  # 2
"""上市"""
ST_RIGHT_ISSUE: StockStatus.ValueType  # 3
"""配股"""
ST_PAUSE: StockStatus.ValueType  # 4
"""停牌"""
ST_DELISTED: StockStatus.ValueType  # 5
"""退市"""
global___StockStatus = StockStatus

class _FutureType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _FutureTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FutureType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FT_NORMAL: _FutureType.ValueType  # 0
    """普通合约"""
    FT_INDEX: _FutureType.ValueType  # 1
    """指数合约"""
    FT_MAIN: _FutureType.ValueType  # 2
    """主连合约"""
    FT_NEARBY: _FutureType.ValueType  # 3
    """近月合约"""
    FT_SPD: _FutureType.ValueType  # 4
    """跨期套利"""
    FT_IPS: _FutureType.ValueType  # 5
    """跨产品套利"""
    FT_FOREIGN_OPTION: _FutureType.ValueType  # 6
    """外盘期权"""

class FutureType(_FutureType, metaclass=_FutureTypeEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    期货数据定义
    //////////////////////////////////////////////////////////////////////////////

    期货类型
    """

FT_NORMAL: FutureType.ValueType  # 0
"""普通合约"""
FT_INDEX: FutureType.ValueType  # 1
"""指数合约"""
FT_MAIN: FutureType.ValueType  # 2
"""主连合约"""
FT_NEARBY: FutureType.ValueType  # 3
"""近月合约"""
FT_SPD: FutureType.ValueType  # 4
"""跨期套利"""
FT_IPS: FutureType.ValueType  # 5
"""跨产品套利"""
FT_FOREIGN_OPTION: FutureType.ValueType  # 6
"""外盘期权"""
global___FutureType = FutureType

class _FutureStatus:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _FutureStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FutureStatus.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FS_NOT_START: _FutureStatus.ValueType  # 0
    """未上市"""
    FS_STARTED: _FutureStatus.ValueType  # 1
    """上市"""
    FS_PAUSE: _FutureStatus.ValueType  # 2
    """停牌"""
    FS_EXPIRED: _FutureStatus.ValueType  # 3
    """到期"""

class FutureStatus(_FutureStatus, metaclass=_FutureStatusEnumTypeWrapper):
    """期货状态"""

FS_NOT_START: FutureStatus.ValueType  # 0
"""未上市"""
FS_STARTED: FutureStatus.ValueType  # 1
"""上市"""
FS_PAUSE: FutureStatus.ValueType  # 2
"""停牌"""
FS_EXPIRED: FutureStatus.ValueType  # 3
"""到期"""
global___FutureStatus = FutureStatus

class _FuturePositionType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _FuturePositionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FuturePositionType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FPT_NET: _FuturePositionType.ValueType  # 0
    """净持仓"""
    FPT_GROSS: _FuturePositionType.ValueType  # 1
    """综合持仓"""

class FuturePositionType(_FuturePositionType, metaclass=_FuturePositionTypeEnumTypeWrapper):
    """期货持仓类型"""

FPT_NET: FuturePositionType.ValueType  # 0
"""净持仓"""
FPT_GROSS: FuturePositionType.ValueType  # 1
"""综合持仓"""
global___FuturePositionType = FuturePositionType

class _FuturePositionDateType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _FuturePositionDateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FuturePositionDateType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FPDT_USE_HISTORY: _FuturePositionDateType.ValueType  # 0
    """使用历史持仓"""
    FPDT_NO_USE_HISTORY: _FuturePositionDateType.ValueType  # 1
    """不使用历史持仓"""

class FuturePositionDateType(_FuturePositionDateType, metaclass=_FuturePositionDateTypeEnumTypeWrapper):
    """期货持仓日期类型"""

FPDT_USE_HISTORY: FuturePositionDateType.ValueType  # 0
"""使用历史持仓"""
FPDT_NO_USE_HISTORY: FuturePositionDateType.ValueType  # 1
"""不使用历史持仓"""
global___FuturePositionDateType = FuturePositionDateType

class _FutureMarginType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _FutureMarginTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FutureMarginType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FMT_NORMAL_MARGIN: _FutureMarginType.ValueType  # 0
    """普通"""
    FMT_MAX_MARGIN_SIDE: _FutureMarginType.ValueType  # 1
    """大额单边保证金"""

class FutureMarginType(_FutureMarginType, metaclass=_FutureMarginTypeEnumTypeWrapper):
    """期货保证金类型"""

FMT_NORMAL_MARGIN: FutureMarginType.ValueType  # 0
"""普通"""
FMT_MAX_MARGIN_SIDE: FutureMarginType.ValueType  # 1
"""大额单边保证金"""
global___FutureMarginType = FutureMarginType

class _FutureMainType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _FutureMainTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FutureMainType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FMT_NONE: _FutureMainType.ValueType  # 0
    """非主力合约"""
    FMT_SUB: _FutureMainType.ValueType  # 1
    """次主力合约"""
    FMT_MAIN: _FutureMainType.ValueType  # 2
    """主力合约"""

class FutureMainType(_FutureMainType, metaclass=_FutureMainTypeEnumTypeWrapper):
    """期货主力合约类型"""

FMT_NONE: FutureMainType.ValueType  # 0
"""非主力合约"""
FMT_SUB: FutureMainType.ValueType  # 1
"""次主力合约"""
FMT_MAIN: FutureMainType.ValueType  # 2
"""主力合约"""
global___FutureMainType = FutureMainType

class _OptionType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _OptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OptionType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    OT_STOCKOPTION: _OptionType.ValueType  # 0
    """股票期权"""
    OT_FUTUREOPTION: _OptionType.ValueType  # 1
    """期货期权"""

class OptionType(_OptionType, metaclass=_OptionTypeEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    期权数据定义
    //////////////////////////////////////////////////////////////////////////////

    期权类型
    """

OT_STOCKOPTION: OptionType.ValueType  # 0
"""股票期权"""
OT_FUTUREOPTION: OptionType.ValueType  # 1
"""期货期权"""
global___OptionType = OptionType

class _OptionCallPutType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _OptionCallPutTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OptionCallPutType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    OCPT_CALL: _OptionCallPutType.ValueType  # 0
    """认购"""
    OCPT_PUT: _OptionCallPutType.ValueType  # 1
    """认估"""

class OptionCallPutType(_OptionCallPutType, metaclass=_OptionCallPutTypeEnumTypeWrapper):
    """期权认购认估类型"""

OCPT_CALL: OptionCallPutType.ValueType  # 0
"""认购"""
OCPT_PUT: OptionCallPutType.ValueType  # 1
"""认估"""
global___OptionCallPutType = OptionCallPutType

class _OptionStrikeMode:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _OptionStrikeModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OptionStrikeMode.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    OSM_CONTINENTAL: _OptionStrikeMode.ValueType  # 0
    """欧式"""
    OSM_AMERICAN: _OptionStrikeMode.ValueType  # 1
    """美式"""
    OSM_BERMUDA: _OptionStrikeMode.ValueType  # 2
    """百慕大"""

class OptionStrikeMode(_OptionStrikeMode, metaclass=_OptionStrikeModeEnumTypeWrapper):
    """期权执行类型"""

OSM_CONTINENTAL: OptionStrikeMode.ValueType  # 0
"""欧式"""
OSM_AMERICAN: OptionStrikeMode.ValueType  # 1
"""美式"""
OSM_BERMUDA: OptionStrikeMode.ValueType  # 2
"""百慕大"""
global___OptionStrikeMode = OptionStrikeMode

class _OptionMoneyType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _OptionMoneyTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OptionMoneyType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    AtTheMoney: _OptionMoneyType.ValueType  # 0
    """平值期权"""
    InTheMoney: _OptionMoneyType.ValueType  # 1
    """实值期权"""
    OutOfTheMoney: _OptionMoneyType.ValueType  # 2
    """虚值期权"""

class OptionMoneyType(_OptionMoneyType, metaclass=_OptionMoneyTypeEnumTypeWrapper):
    """期权实值虚值类型"""

AtTheMoney: OptionMoneyType.ValueType  # 0
"""平值期权"""
InTheMoney: OptionMoneyType.ValueType  # 1
"""实值期权"""
OutOfTheMoney: OptionMoneyType.ValueType  # 2
"""虚值期权"""
global___OptionMoneyType = OptionMoneyType

class _OptionStatus:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _OptionStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OptionStatus.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    OS_NOTSTART: _OptionStatus.ValueType  # 0
    """未上市"""
    OS_STARTED: _OptionStatus.ValueType  # 1
    """上市"""
    OS_PAUSE: _OptionStatus.ValueType  # 2
    """停牌"""
    OS_EXPIRED: _OptionStatus.ValueType  # 3
    """到期"""

class OptionStatus(_OptionStatus, metaclass=_OptionStatusEnumTypeWrapper):
    """期权状态"""

OS_NOTSTART: OptionStatus.ValueType  # 0
"""未上市"""
OS_STARTED: OptionStatus.ValueType  # 1
"""上市"""
OS_PAUSE: OptionStatus.ValueType  # 2
"""停牌"""
OS_EXPIRED: OptionStatus.ValueType  # 3
"""到期"""
global___OptionStatus = OptionStatus

class _ForexType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _ForexTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ForexType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    FXT_NORMAL: _ForexType.ValueType  # 0
    """普通"""

class ForexType(_ForexType, metaclass=_ForexTypeEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    外汇数据定义
    //////////////////////////////////////////////////////////////////////////////

    外汇类型
    """

FXT_NORMAL: ForexType.ValueType  # 0
"""普通"""
global___ForexType = ForexType

class _SpotType:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _SpotTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SpotType.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    SPT_SHAU_SPOT: _SpotType.ValueType  # 0
    """上海黄金现货"""
    SPT_SHAU_TPD: _SpotType.ValueType  # 1
    """上海黄金T+D"""
    SPT_SHAU_TPN: _SpotType.ValueType  # 2
    """上海黄金T+N"""

class SpotType(_SpotType, metaclass=_SpotTypeEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    现货数据定义
    //////////////////////////////////////////////////////////////////////////////

    现货类型
    """

SPT_SHAU_SPOT: SpotType.ValueType  # 0
"""上海黄金现货"""
SPT_SHAU_TPD: SpotType.ValueType  # 1
"""上海黄金T+D"""
SPT_SHAU_TPN: SpotType.ValueType  # 2
"""上海黄金T+N"""
global___SpotType = SpotType

class _MarketInterface:
    ValueType = typing.NewType("ValueType", builtins.int)
    V: typing_extensions.TypeAlias = ValueType

class _MarketInterfaceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MarketInterface.ValueType], builtins.type):
    DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
    MI_UNKNOWN: _MarketInterface.ValueType  # 0
    """占位"""
    MI_GET_COMMODITY_INFO: _MarketInterface.ValueType  # 121001
    """取商品信息"""
    MI_GET_COMMODITY_LIST: _MarketInterface.ValueType  # 121002
    """取商品列表"""
    MI_GET_CANDLE_DATA: _MarketInterface.ValueType  # 121003
    """取商品K线数据"""
    MI_GET_MINUTE_DATA: _MarketInterface.ValueType  # 121004
    """取商品分时数据"""
    MI_GET_TRADE_DETAIL_DATA: _MarketInterface.ValueType  # 121005
    """取商品成交明细数据"""
    MI_GET_PRICE_VOLUME_DATA: _MarketInterface.ValueType  # 121006
    """取商品量价分布数据"""
    MI_SEARCH_COMMODITY: _MarketInterface.ValueType  # 121007
    """检索商品"""
    MI_GET_CUSTOM_COMMODITY_LIST: _MarketInterface.ValueType  # 121008
    """取自选商品列表"""
    MI_GET_MULTI_MARKET_COMMODITY_INFO: _MarketInterface.ValueType  # 121009
    """取多市场商品信息"""
    MI_GET_MULTI_CANDLE_DATA: _MarketInterface.ValueType  # 121010
    """取多商品K线数据"""
    MI_GET_CANDLE_DATA2: _MarketInterface.ValueType  # 121011
    """取商品K线数据"""
    MI_GET_MINUTE_DATA2: _MarketInterface.ValueType  # 121012
    """取商品分时数据"""
    MI_GET_MARKET_SUMMARY: _MarketInterface.ValueType  # 121013
    """取市场概览"""
    MI_GET_STOCK_CAPITAL_FLOW_DATA: _MarketInterface.ValueType  # 122001
    """取股票资金流向数据"""
    MI_GET_STOCK_BLOCK_LIST: _MarketInterface.ValueType  # 122003
    """取股票所属板块列表"""
    MI_GET_STOCK_BLOCK_RANKING: _MarketInterface.ValueType  # 122004
    """取股票板块排名"""
    MI_GET_MULTI_STOCK_CAPITAL_FLOW_DATA: _MarketInterface.ValueType  # 122005
    """取多股票资金流向数据"""
    MI_GET_FUTURE_POSITION_BILLBOARD: _MarketInterface.ValueType  # 123001
    """取期货持仓龙虎"""
    MI_GET_FUTURE_WARRANT_INVENTORY: _MarketInterface.ValueType  # 123002
    """取期货仓单库存"""
    MI_GET_FUTURE_CAPITAL_FLOW: _MarketInterface.ValueType  # 123003
    """取期货资金流向"""
    MI_GET_FUTURE_PRODUCT_LIST: _MarketInterface.ValueType  # 123004
    """取期货产品列表"""
    MI_GET_FUTURE_BLOCK_DATA: _MarketInterface.ValueType  # 123005
    """取期货板块数据"""
    MI_GET_OPTION_MONTH_LIST: _MarketInterface.ValueType  # 124001
    """取期权月份列表"""
    MI_GET_OPTION_PRODUCT_LIST: _MarketInterface.ValueType  # 124002
    """取期权产品列表"""
    MI_GET_OPTION_PROFIT_CHART_DATA: _MarketInterface.ValueType  # 124003
    """取期权盈亏分析图数据"""
    MI_SUBSCRIBE_TICK_DATA: _MarketInterface.ValueType  # 221001
    """定阅商品Tick数据"""
    MI_UNSUBSCRIBE_TICK_DATA: _MarketInterface.ValueType  # 221002
    """取消定阅商品Tick数据"""
    MI_SUBSCRIBE_RAW_DATA: _MarketInterface.ValueType  # 221003
    """定阅商品原始数据"""
    MI_UNSUBSCRIBE_RAW_DATA: _MarketInterface.ValueType  # 221004
    """取消定阅商品原始数据"""
    MI_PUSH_TICK_DATA: _MarketInterface.ValueType  # 321001
    """推送商品Tick数据"""
    MI_PUSH_TICK_DATA2: _MarketInterface.ValueType  # 321002
    """推送商品Tick数据（压缩）"""
    MI_PUSH_RAW_DATA: _MarketInterface.ValueType  # 321003
    """推送商品原始数据"""

class MarketInterface(_MarketInterface, metaclass=_MarketInterfaceEnumTypeWrapper):
    """//////////////////////////////////////////////////////////////////////////////
    接口定义
    //////////////////////////////////////////////////////////////////////////////

    接口编码定义：协议类型(0) + 消息类型(0) + 商品类型(0) + 消息编号(000)
    协议类型：请求/应答(1)，定阅/应答(2)，推送(3)，
    消息类型：通用(1)，行情((2))，交易(3)，资讯(4)
    商品类型：通用(1)，股票(2)，期货(3)，期权(4)，外汇(5)，现货(6)
    消息编号：编号(001-999)
    """

MI_UNKNOWN: MarketInterface.ValueType  # 0
"""占位"""
MI_GET_COMMODITY_INFO: MarketInterface.ValueType  # 121001
"""取商品信息"""
MI_GET_COMMODITY_LIST: MarketInterface.ValueType  # 121002
"""取商品列表"""
MI_GET_CANDLE_DATA: MarketInterface.ValueType  # 121003
"""取商品K线数据"""
MI_GET_MINUTE_DATA: MarketInterface.ValueType  # 121004
"""取商品分时数据"""
MI_GET_TRADE_DETAIL_DATA: MarketInterface.ValueType  # 121005
"""取商品成交明细数据"""
MI_GET_PRICE_VOLUME_DATA: MarketInterface.ValueType  # 121006
"""取商品量价分布数据"""
MI_SEARCH_COMMODITY: MarketInterface.ValueType  # 121007
"""检索商品"""
MI_GET_CUSTOM_COMMODITY_LIST: MarketInterface.ValueType  # 121008
"""取自选商品列表"""
MI_GET_MULTI_MARKET_COMMODITY_INFO: MarketInterface.ValueType  # 121009
"""取多市场商品信息"""
MI_GET_MULTI_CANDLE_DATA: MarketInterface.ValueType  # 121010
"""取多商品K线数据"""
MI_GET_CANDLE_DATA2: MarketInterface.ValueType  # 121011
"""取商品K线数据"""
MI_GET_MINUTE_DATA2: MarketInterface.ValueType  # 121012
"""取商品分时数据"""
MI_GET_MARKET_SUMMARY: MarketInterface.ValueType  # 121013
"""取市场概览"""
MI_GET_STOCK_CAPITAL_FLOW_DATA: MarketInterface.ValueType  # 122001
"""取股票资金流向数据"""
MI_GET_STOCK_BLOCK_LIST: MarketInterface.ValueType  # 122003
"""取股票所属板块列表"""
MI_GET_STOCK_BLOCK_RANKING: MarketInterface.ValueType  # 122004
"""取股票板块排名"""
MI_GET_MULTI_STOCK_CAPITAL_FLOW_DATA: MarketInterface.ValueType  # 122005
"""取多股票资金流向数据"""
MI_GET_FUTURE_POSITION_BILLBOARD: MarketInterface.ValueType  # 123001
"""取期货持仓龙虎"""
MI_GET_FUTURE_WARRANT_INVENTORY: MarketInterface.ValueType  # 123002
"""取期货仓单库存"""
MI_GET_FUTURE_CAPITAL_FLOW: MarketInterface.ValueType  # 123003
"""取期货资金流向"""
MI_GET_FUTURE_PRODUCT_LIST: MarketInterface.ValueType  # 123004
"""取期货产品列表"""
MI_GET_FUTURE_BLOCK_DATA: MarketInterface.ValueType  # 123005
"""取期货板块数据"""
MI_GET_OPTION_MONTH_LIST: MarketInterface.ValueType  # 124001
"""取期权月份列表"""
MI_GET_OPTION_PRODUCT_LIST: MarketInterface.ValueType  # 124002
"""取期权产品列表"""
MI_GET_OPTION_PROFIT_CHART_DATA: MarketInterface.ValueType  # 124003
"""取期权盈亏分析图数据"""
MI_SUBSCRIBE_TICK_DATA: MarketInterface.ValueType  # 221001
"""定阅商品Tick数据"""
MI_UNSUBSCRIBE_TICK_DATA: MarketInterface.ValueType  # 221002
"""取消定阅商品Tick数据"""
MI_SUBSCRIBE_RAW_DATA: MarketInterface.ValueType  # 221003
"""定阅商品原始数据"""
MI_UNSUBSCRIBE_RAW_DATA: MarketInterface.ValueType  # 221004
"""取消定阅商品原始数据"""
MI_PUSH_TICK_DATA: MarketInterface.ValueType  # 321001
"""推送商品Tick数据"""
MI_PUSH_TICK_DATA2: MarketInterface.ValueType  # 321002
"""推送商品Tick数据（压缩）"""
MI_PUSH_RAW_DATA: MarketInterface.ValueType  # 321003
"""推送商品原始数据"""
global___MarketInterface = MarketInterface

@typing.final
class CommodityKey(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    通用消息定义
    //////////////////////////////////////////////////////////////////////////////

    商品键值
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TYPE_FIELD_NUMBER: builtins.int
    EXCHANGE_CODE_FIELD_NUMBER: builtins.int
    CODE_FIELD_NUMBER: builtins.int
    type: global___CommodityType.ValueType
    """商品类型"""
    exchange_code: builtins.str
    """交易所代码"""
    code: builtins.str
    """商品代码"""
    def __init__(
        self,
        *,
        type: global___CommodityType.ValueType = ...,
        exchange_code: builtins.str = ...,
        code: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["code", b"code", "exchange_code", b"exchange_code", "type", b"type"]) -> None: ...

global___CommodityKey = CommodityKey

@typing.final
class CommodityInfo(google.protobuf.message.Message):
    """商品信息"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    DISPLAY_CODE_FIELD_NUMBER: builtins.int
    NAME_FIELD_NUMBER: builtins.int
    PY_NAME_FIELD_NUMBER: builtins.int
    PRECISION_FIELD_NUMBER: builtins.int
    PRICE_TICK_FIELD_NUMBER: builtins.int
    TRADING_TIMES_FIELD_NUMBER: builtins.int
    CANDLE_ALIGN_TYPE_FIELD_NUMBER: builtins.int
    TIME_ZONE_FIELD_NUMBER: builtins.int
    CURRENCY_FIELD_NUMBER: builtins.int
    STATUS_CODE_FIELD_NUMBER: builtins.int
    SORT_WEIGHT_FIELD_NUMBER: builtins.int
    STOCK_TYPE_FIELD_NUMBER: builtins.int
    STOCK_STATUS_FIELD_NUMBER: builtins.int
    LIST_DATE_FIELD_NUMBER: builtins.int
    TOTAL_STOCK_FIELD_NUMBER: builtins.int
    CIRCULATION_STOCK_FIELD_NUMBER: builtins.int
    NET_ASSET_FIELD_NUMBER: builtins.int
    NET_PROFIT_FIELD_NUMBER: builtins.int
    NET_ASSET_PER_SHARE_FIELD_NUMBER: builtins.int
    MARGIN_TRADING_FIELD_NUMBER: builtins.int
    LOT_SIZE_FIELD_NUMBER: builtins.int
    LIST_DAY_COUNT_FIELD_NUMBER: builtins.int
    NQ_TRANSFER_STATUS_FIELD_NUMBER: builtins.int
    ISSUE_PRICE_FIELD_NUMBER: builtins.int
    NQ_TRANSFER_TYPE_FIELD_NUMBER: builtins.int
    STOCK_EXCHANGE_TYPE_FIELD_NUMBER: builtins.int
    PRE_NET_PROFIT_FIELD_NUMBER: builtins.int
    FUTURE_TYPE_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_NAME_FIELD_NUMBER: builtins.int
    MAX_MARKET_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    MIN_MARKET_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    MAX_LIMIT_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    MIN_LIMIT_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    VOLUME_MULTIPLE_FIELD_NUMBER: builtins.int
    CREATE_DATE_FIELD_NUMBER: builtins.int
    OPEN_DATE_FIELD_NUMBER: builtins.int
    EXPIRE_DATE_FIELD_NUMBER: builtins.int
    START_DELIV_DATE_FIELD_NUMBER: builtins.int
    END_DELIV_DATE_FIELD_NUMBER: builtins.int
    FUTURE_STATUS_FIELD_NUMBER: builtins.int
    POSITION_TYPE_FIELD_NUMBER: builtins.int
    POSITION_DATE_TYPE_FIELD_NUMBER: builtins.int
    LONG_MARGIN_RATIO_FIELD_NUMBER: builtins.int
    SHORT_MARGIN_RATIO_FIELD_NUMBER: builtins.int
    MARGIN_TYPE_FIELD_NUMBER: builtins.int
    MAIN_TYPE_FIELD_NUMBER: builtins.int
    REMAINING_DAY_COUNT_FIELD_NUMBER: builtins.int
    OPTION_TYPE_FIELD_NUMBER: builtins.int
    UNDERLYING_COMMODITY_KEY_FIELD_NUMBER: builtins.int
    CALL_PUT_TYPE_FIELD_NUMBER: builtins.int
    STRIKE_PRICE_FIELD_NUMBER: builtins.int
    STRIKE_MODE_FIELD_NUMBER: builtins.int
    OPTION_STATUS_FIELD_NUMBER: builtins.int
    OPTION_MONTH_FIELD_NUMBER: builtins.int
    RELATED_COMMODITY_KEY_FIELD_NUMBER: builtins.int
    FOREX_TYPE_FIELD_NUMBER: builtins.int
    SPOT_TYPE_FIELD_NUMBER: builtins.int
    display_code: builtins.str
    """商品显示代码"""
    name: builtins.str
    """商品名称"""
    py_name: builtins.str
    """商品拼音简称"""
    precision: builtins.int
    """价格小数位数"""
    price_tick: builtins.float
    """最小变动价位"""
    candle_align_type: global___CandleAlignType.ValueType
    """K线对齐类型"""
    time_zone: builtins.int
    """时区"""
    currency: builtins.str
    """币种"""
    status_code: builtins.str
    """状态代码"""
    sort_weight: builtins.int
    """排序权重"""
    stock_type: global___StockType.ValueType
    """股票类型（股票专有）"""
    stock_status: global___StockStatus.ValueType
    """股票状态（股票专有）"""
    list_date: builtins.int
    """上市日（YYYYMMDD）（股票专有）"""
    total_stock: builtins.int
    """总股本（股票专有）"""
    circulation_stock: builtins.int
    """流通股（股票专有）"""
    net_asset: builtins.float
    """净资产（股票专有）"""
    net_profit: builtins.float
    """净利润（股票专有）"""
    net_asset_per_share: builtins.float
    """每股净资产（股票专有）"""
    margin_trading: builtins.bool
    """是否融资融券（股票专有）"""
    lot_size: builtins.int
    """每手股数（股票专有）"""
    list_day_count: builtins.int
    """上市天数（股票专有）"""
    nq_transfer_status: builtins.str
    """新三板证券转让状态（新三板股票专有）"""
    issue_price: builtins.float
    """发行价（股票专有）"""
    nq_transfer_type: builtins.str
    """新三板证券转让类型（新三板股票专有）"""
    stock_exchange_type: builtins.str
    """股票交易类型"""
    pre_net_profit: builtins.float
    """上一年净利润（股票专有）"""
    future_type: global___FutureType.ValueType
    """期货类型（期货专有）"""
    product_code: builtins.str
    """产品代码（期货、期权专有）"""
    product_name: builtins.str
    """产品名称（期货、期权专有）"""
    max_market_order_volume: builtins.int
    """市价单最大下单量（期货、期权专有）"""
    min_market_order_volume: builtins.int
    """市价单最小下单量（期货、期权专有）"""
    max_limit_order_volume: builtins.int
    """限价单最大下单量（期货、期权专有）"""
    min_limit_order_volume: builtins.int
    """限价单最小下单量（期货、期权专有）"""
    volume_multiple: builtins.int
    """合约数量乘数（期货、期权专有）"""
    create_date: builtins.int
    """创建日（YYYYMMDD）（期货、期权专有）"""
    open_date: builtins.int
    """上市日（YYYYMMDD）（期货、期权专有）"""
    expire_date: builtins.int
    """到期日（YYYYMMDD）（期货、期权专有）"""
    start_deliv_date: builtins.int
    """开始交割日（YYYYMMDD）（期货、期权专有）"""
    end_deliv_date: builtins.int
    """结束交割日（YYYYMMDD）（期货、期权专有）"""
    future_status: global___FutureStatus.ValueType
    """期货状态（期货专有）"""
    position_type: global___FuturePositionType.ValueType
    """持仓类型（期货专有）"""
    position_date_type: global___FuturePositionDateType.ValueType
    """持仓日期类型（期货专有）"""
    long_margin_ratio: builtins.float
    """多头保证金率（期货专有）"""
    short_margin_ratio: builtins.float
    """空头保证金率（期货专有）"""
    margin_type: global___FutureMarginType.ValueType
    """保证金算法（期货专有）"""
    main_type: global___FutureMainType.ValueType
    """主力合约类型（期货专有）"""
    remaining_day_count: builtins.int
    """剩余天数（期货、期权专有）"""
    option_type: global___OptionType.ValueType
    """期权类型（期权专有）"""
    call_put_type: global___OptionCallPutType.ValueType
    """期权认购认估类型（期权专有）"""
    strike_price: builtins.float
    """执行价（期权专有）"""
    strike_mode: global___OptionStrikeMode.ValueType
    """期权执行类型（期权专有）"""
    option_status: global___OptionStatus.ValueType
    """期权状态（期权专有）"""
    option_month: builtins.int
    """期权月份（YYYYMM）（期权专有）"""
    forex_type: global___ForexType.ValueType
    """外汇类型（外汇专有）"""
    spot_type: global___SpotType.ValueType
    """现货类型（现货专有）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def trading_times(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """交易时间段"""

    @property
    def underlying_commodity_key(self) -> global___CommodityKey:
        """基础商品键值（期权专有）"""

    @property
    def related_commodity_key(self) -> global___CommodityKey:
        """关联商品键值（期权专有）"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        display_code: builtins.str = ...,
        name: builtins.str = ...,
        py_name: builtins.str = ...,
        precision: builtins.int = ...,
        price_tick: builtins.float = ...,
        trading_times: collections.abc.Iterable[builtins.int] | None = ...,
        candle_align_type: global___CandleAlignType.ValueType = ...,
        time_zone: builtins.int = ...,
        currency: builtins.str = ...,
        status_code: builtins.str = ...,
        sort_weight: builtins.int = ...,
        stock_type: global___StockType.ValueType = ...,
        stock_status: global___StockStatus.ValueType = ...,
        list_date: builtins.int = ...,
        total_stock: builtins.int = ...,
        circulation_stock: builtins.int = ...,
        net_asset: builtins.float = ...,
        net_profit: builtins.float = ...,
        net_asset_per_share: builtins.float = ...,
        margin_trading: builtins.bool = ...,
        lot_size: builtins.int = ...,
        list_day_count: builtins.int = ...,
        nq_transfer_status: builtins.str = ...,
        issue_price: builtins.float = ...,
        nq_transfer_type: builtins.str = ...,
        stock_exchange_type: builtins.str = ...,
        pre_net_profit: builtins.float = ...,
        future_type: global___FutureType.ValueType = ...,
        product_code: builtins.str = ...,
        product_name: builtins.str = ...,
        max_market_order_volume: builtins.int = ...,
        min_market_order_volume: builtins.int = ...,
        max_limit_order_volume: builtins.int = ...,
        min_limit_order_volume: builtins.int = ...,
        volume_multiple: builtins.int = ...,
        create_date: builtins.int = ...,
        open_date: builtins.int = ...,
        expire_date: builtins.int = ...,
        start_deliv_date: builtins.int = ...,
        end_deliv_date: builtins.int = ...,
        future_status: global___FutureStatus.ValueType = ...,
        position_type: global___FuturePositionType.ValueType = ...,
        position_date_type: global___FuturePositionDateType.ValueType = ...,
        long_margin_ratio: builtins.float = ...,
        short_margin_ratio: builtins.float = ...,
        margin_type: global___FutureMarginType.ValueType = ...,
        main_type: global___FutureMainType.ValueType = ...,
        remaining_day_count: builtins.int = ...,
        option_type: global___OptionType.ValueType = ...,
        underlying_commodity_key: global___CommodityKey | None = ...,
        call_put_type: global___OptionCallPutType.ValueType = ...,
        strike_price: builtins.float = ...,
        strike_mode: global___OptionStrikeMode.ValueType = ...,
        option_status: global___OptionStatus.ValueType = ...,
        option_month: builtins.int = ...,
        related_commodity_key: global___CommodityKey | None = ...,
        forex_type: global___ForexType.ValueType = ...,
        spot_type: global___SpotType.ValueType = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "related_commodity_key", b"related_commodity_key", "underlying_commodity_key", b"underlying_commodity_key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["call_put_type", b"call_put_type", "candle_align_type", b"candle_align_type", "circulation_stock", b"circulation_stock", "create_date", b"create_date", "currency", b"currency", "display_code", b"display_code", "end_deliv_date", b"end_deliv_date", "expire_date", b"expire_date", "forex_type", b"forex_type", "future_status", b"future_status", "future_type", b"future_type", "issue_price", b"issue_price", "key", b"key", "list_date", b"list_date", "list_day_count", b"list_day_count", "long_margin_ratio", b"long_margin_ratio", "lot_size", b"lot_size", "main_type", b"main_type", "margin_trading", b"margin_trading", "margin_type", b"margin_type", "max_limit_order_volume", b"max_limit_order_volume", "max_market_order_volume", b"max_market_order_volume", "min_limit_order_volume", b"min_limit_order_volume", "min_market_order_volume", b"min_market_order_volume", "name", b"name", "net_asset", b"net_asset", "net_asset_per_share", b"net_asset_per_share", "net_profit", b"net_profit", "nq_transfer_status", b"nq_transfer_status", "nq_transfer_type", b"nq_transfer_type", "open_date", b"open_date", "option_month", b"option_month", "option_status", b"option_status", "option_type", b"option_type", "position_date_type", b"position_date_type", "position_type", b"position_type", "pre_net_profit", b"pre_net_profit", "precision", b"precision", "price_tick", b"price_tick", "product_code", b"product_code", "product_name", b"product_name", "py_name", b"py_name", "related_commodity_key", b"related_commodity_key", "remaining_day_count", b"remaining_day_count", "short_margin_ratio", b"short_margin_ratio", "sort_weight", b"sort_weight", "spot_type", b"spot_type", "start_deliv_date", b"start_deliv_date", "status_code", b"status_code", "stock_exchange_type", b"stock_exchange_type", "stock_status", b"stock_status", "stock_type", b"stock_type", "strike_mode", b"strike_mode", "strike_price", b"strike_price", "time_zone", b"time_zone", "total_stock", b"total_stock", "trading_times", b"trading_times", "underlying_commodity_key", b"underlying_commodity_key", "volume_multiple", b"volume_multiple"]) -> None: ...

global___CommodityInfo = CommodityInfo

@typing.final
class CommodityListItem(google.protobuf.message.Message):
    """商品列表项
    编码定义：商品类型(1位数字) + 字段类型(1位数字) + 字段编号(2位数字)
    商品类型：通用(1)，股票(2)，期货(3)，期权(4)，外汇(5)，现货(6)
    字段类型：信息(1)，行情(2)，财务(3)，其它(4)
    字段编号：编号(01-99)
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    DISPLAY_CODE_FIELD_NUMBER: builtins.int
    NAME_FIELD_NUMBER: builtins.int
    PY_NAME_FIELD_NUMBER: builtins.int
    PRECISION_FIELD_NUMBER: builtins.int
    PRICE_TICK_FIELD_NUMBER: builtins.int
    TRADING_TIMES_FIELD_NUMBER: builtins.int
    CANDLE_ALIGN_TYPE_FIELD_NUMBER: builtins.int
    TIME_ZONE_FIELD_NUMBER: builtins.int
    CURRENCY_FIELD_NUMBER: builtins.int
    STATUS_CODE_FIELD_NUMBER: builtins.int
    SORT_WEIGHT_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    LAST_PRICE_FIELD_NUMBER: builtins.int
    BID_PRICE1_FIELD_NUMBER: builtins.int
    BID_VOLUME1_FIELD_NUMBER: builtins.int
    ASK_PRICE1_FIELD_NUMBER: builtins.int
    ASK_VOLUME1_FIELD_NUMBER: builtins.int
    OPEN_PRICE_FIELD_NUMBER: builtins.int
    HIGHEST_PRICE_FIELD_NUMBER: builtins.int
    LOWEST_PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    CLOSE_PRICE_FIELD_NUMBER: builtins.int
    UPPER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    LOWER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    AVERAGE_PRICE_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FIELD_NUMBER: builtins.int
    DIRECTION_FIELD_NUMBER: builtins.int
    NATURE_FIELD_NUMBER: builtins.int
    INSIDE_FIELD_NUMBER: builtins.int
    OUTSIDE_FIELD_NUMBER: builtins.int
    INT_OUT_FLAG_FIELD_NUMBER: builtins.int
    AMPLITUDE_FIELD_NUMBER: builtins.int
    ORDER_RATIO_FIELD_NUMBER: builtins.int
    ORDER_DIFF_FIELD_NUMBER: builtins.int
    VOLUME_RATIO_FIELD_NUMBER: builtins.int
    LAST_TRADE_VOLUME_FIELD_NUMBER: builtins.int
    BID_PRICES_FIELD_NUMBER: builtins.int
    BID_VOLUMES_FIELD_NUMBER: builtins.int
    ASK_PRICES_FIELD_NUMBER: builtins.int
    ASK_VOLUMES_FIELD_NUMBER: builtins.int
    TRADING_PHASE_CODE_FIELD_NUMBER: builtins.int
    IS_DEAL_FIELD_NUMBER: builtins.int
    STOCK_TYPE_FIELD_NUMBER: builtins.int
    STOCK_STATUS_FIELD_NUMBER: builtins.int
    LIST_DATE_FIELD_NUMBER: builtins.int
    TOTAL_STOCK_FIELD_NUMBER: builtins.int
    CIRCULATION_STOCK_FIELD_NUMBER: builtins.int
    NET_ASSET_FIELD_NUMBER: builtins.int
    NET_PROFIT_FIELD_NUMBER: builtins.int
    NET_ASSET_PER_SHARE_FIELD_NUMBER: builtins.int
    MARGIN_TRADING_FIELD_NUMBER: builtins.int
    LOT_SIZE_FIELD_NUMBER: builtins.int
    LIST_DAY_COUNT_FIELD_NUMBER: builtins.int
    NQ_TRANSFER_STATUS_FIELD_NUMBER: builtins.int
    ISSUE_PRICE_FIELD_NUMBER: builtins.int
    NQ_TRANSFER_TYPE_FIELD_NUMBER: builtins.int
    STOCK_EXCHANGE_TYPE_FIELD_NUMBER: builtins.int
    REVERSE_REPO_TRADING_DATE_FIELD_NUMBER: builtins.int
    REVERSE_REPO_DATED_DATE_FIELD_NUMBER: builtins.int
    REVERSE_REPO_PAYMENT_DATE_FIELD_NUMBER: builtins.int
    REVERSE_REPO_WITHDRAW_DATE_FIELD_NUMBER: builtins.int
    REVERSE_REPO_OCCUPATION_DAYS_FIELD_NUMBER: builtins.int
    PRE_NET_PROFIT_FIELD_NUMBER: builtins.int
    TOTAL_VALUE_FIELD_NUMBER: builtins.int
    CIRCULATION_MARKET_VALUE_FIELD_NUMBER: builtins.int
    PRICE_EARNING_RATIO_FIELD_NUMBER: builtins.int
    PRICE_BOOK_VALUE_RATIO_FIELD_NUMBER: builtins.int
    TURNOVER_RATE_FIELD_NUMBER: builtins.int
    FUND_IN_FIELD_NUMBER: builtins.int
    FUND_OUT_FIELD_NUMBER: builtins.int
    UP_COUNT_FIELD_NUMBER: builtins.int
    DOWN_COUNT_FIELD_NUMBER: builtins.int
    FLAT_COUNT_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FROM_LIST_FIELD_NUMBER: builtins.int
    UP_PERCENT_FIELD_NUMBER: builtins.int
    NET_FUND_IN_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    AFTER_HOURS_BID_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_ASK_VOLUME_FIELD_NUMBER: builtins.int
    STATIC_PRICE_EARNING_RATIO_FIELD_NUMBER: builtins.int
    MATCH_TRANSACTION_PRICE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_5MIN_FIELD_NUMBER: builtins.int
    HIGHEST_PRICE_52WEEK_FIELD_NUMBER: builtins.int
    LOWEST_PRICE_52WEEK_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_1MIN_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_3MIN_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_10MIN_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_15MIN_FIELD_NUMBER: builtins.int
    RAISING_LIMIT_DAY_COUNT_FIELD_NUMBER: builtins.int
    NQ_REFERENCE_PRICE_FIELD_NUMBER: builtins.int
    NQ_MATCHING_VOLUME_FIELD_NUMBER: builtins.int
    NQ_UNMATCHING_VOLUME_FIELD_NUMBER: builtins.int
    NQ_AFTER_HOURS_TRADING_FIELD_NUMBER: builtins.int
    EXCHANGE_PRICE_FIELD_NUMBER: builtins.int
    INDUSTRY_NAME_FIELD_NUMBER: builtins.int
    REGION_NAME_FIELD_NUMBER: builtins.int
    FUTURE_TYPE_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_NAME_FIELD_NUMBER: builtins.int
    MAX_MARKET_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    MIN_MARKET_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    MAX_LIMIT_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    MIN_LIMIT_ORDER_VOLUME_FIELD_NUMBER: builtins.int
    VOLUME_MULTIPLE_FIELD_NUMBER: builtins.int
    CREATE_DATE_FIELD_NUMBER: builtins.int
    OPEN_DATE_FIELD_NUMBER: builtins.int
    EXPIRE_DATE_FIELD_NUMBER: builtins.int
    START_DELIV_DATE_FIELD_NUMBER: builtins.int
    END_DELIV_DATE_FIELD_NUMBER: builtins.int
    FUTURE_STATUS_FIELD_NUMBER: builtins.int
    POSITION_TYPE_FIELD_NUMBER: builtins.int
    POSITION_DATE_TYPE_FIELD_NUMBER: builtins.int
    LONG_MARGIN_RATIO_FIELD_NUMBER: builtins.int
    SHORT_MARGIN_RATIO_FIELD_NUMBER: builtins.int
    MARGIN_TYPE_FIELD_NUMBER: builtins.int
    MAIN_TYPE_FIELD_NUMBER: builtins.int
    REMAINING_DAY_COUNT_FIELD_NUMBER: builtins.int
    PRE_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    DAILY_OPEN_INTEREST_DIFF_FIELD_NUMBER: builtins.int
    OPEN_POSITION_FIELD_NUMBER: builtins.int
    CLOSE_POSITION_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    FUTURE_CALC1_FIELD_NUMBER: builtins.int
    FUTURE_CALC2_FIELD_NUMBER: builtins.int
    OPTION_TYPE_FIELD_NUMBER: builtins.int
    UNDERLYING_COMMODITY_KEY_FIELD_NUMBER: builtins.int
    CALL_PUT_TYPE_FIELD_NUMBER: builtins.int
    STRIKE_PRICE_FIELD_NUMBER: builtins.int
    STRIKE_MODE_FIELD_NUMBER: builtins.int
    OPTION_STATUS_FIELD_NUMBER: builtins.int
    OPTION_MONTH_FIELD_NUMBER: builtins.int
    RELATED_COMMODITY_KEY_FIELD_NUMBER: builtins.int
    OPTION_MONEY_TYPE_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_FIELD_NUMBER: builtins.int
    INTRINSIC_VALUE_FIELD_NUMBER: builtins.int
    TIME_VALUE_FIELD_NUMBER: builtins.int
    GEARING_FIELD_NUMBER: builtins.int
    EFFECTIVE_GEARING_FIELD_NUMBER: builtins.int
    PREMIUM_RATE_FIELD_NUMBER: builtins.int
    DELTA_FIELD_NUMBER: builtins.int
    PRE_DELTA_FIELD_NUMBER: builtins.int
    GAMMA_FIELD_NUMBER: builtins.int
    RHO_FIELD_NUMBER: builtins.int
    THETA_FIELD_NUMBER: builtins.int
    VEGA_FIELD_NUMBER: builtins.int
    VIRTUAL_RATE_FIELD_NUMBER: builtins.int
    ESTIMATE_MARGIN_FIELD_NUMBER: builtins.int
    UNDERLYING_LAST_PRICE_FIELD_NUMBER: builtins.int
    UNDERLYING_PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_BID_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_ASK_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_MID_FIELD_NUMBER: builtins.int
    SPOT_TYPE_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    display_code: builtins.str
    """商品显示代码"""
    name: builtins.str
    """商品名称"""
    py_name: builtins.str
    """商品拼音简称"""
    precision: builtins.int
    """价格小数位数"""
    price_tick: builtins.float
    """最小变动价位"""
    candle_align_type: global___CandleAlignType.ValueType
    """K线对齐类型"""
    time_zone: builtins.int
    """时区"""
    currency: builtins.str
    """币种"""
    status_code: builtins.str
    """状态代码"""
    sort_weight: builtins.int
    """排序权重"""
    timestamp: builtins.int
    """时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    last_price: builtins.float
    """最新价"""
    bid_price1: builtins.float
    """申买价一"""
    bid_volume1: builtins.int
    """申买量一"""
    ask_price1: builtins.float
    """申卖价一"""
    ask_volume1: builtins.int
    """申卖量一"""
    open_price: builtins.float
    """开盘价"""
    highest_price: builtins.float
    """最高价"""
    lowest_price: builtins.float
    """最低价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """总成交量"""
    turnover: builtins.float
    """现额"""
    total_turnover: builtins.float
    """总成交金额"""
    pre_close_price: builtins.float
    """昨收盘"""
    close_price: builtins.float
    """收盘价"""
    upper_limit_price: builtins.float
    """涨停板价"""
    lower_limit_price: builtins.float
    """跌停板价"""
    average_price: builtins.float
    """均价"""
    change: builtins.float
    """涨跌额（当日）"""
    change_percent: builtins.float
    """涨跌幅（当日%）"""
    direction: global___BuySellDirection.ValueType
    """买卖方向"""
    nature: global___TradeNature.ValueType
    """成交性质"""
    inside: builtins.int
    """内盘（卖盘）"""
    outside: builtins.int
    """外盘（买盘）"""
    int_out_flag: global___InsideOutsideFlag.ValueType
    """内外盘标志"""
    amplitude: builtins.float
    """振幅（当日%）"""
    order_ratio: builtins.float
    """委比（%）"""
    order_diff: builtins.int
    """委差"""
    volume_ratio: builtins.float
    """量比"""
    last_trade_volume: builtins.int
    """最新成交手数"""
    trading_phase_code: builtins.str
    """交易状态代码"""
    is_deal: builtins.bool
    """是否成交"""
    stock_type: global___StockType.ValueType
    """股票类型（股票专有）"""
    stock_status: global___StockStatus.ValueType
    """股票状态（股票专有）"""
    list_date: builtins.int
    """上市日（YYYYMMDD）（股票专有）"""
    total_stock: builtins.int
    """总股本（股票专有）"""
    circulation_stock: builtins.int
    """流通股（股票专有）"""
    net_asset: builtins.float
    """净资产（股票专有）"""
    net_profit: builtins.float
    """净利润（股票专有）"""
    net_asset_per_share: builtins.float
    """每股净资产（股票专有）"""
    margin_trading: builtins.bool
    """是否融资融券（股票专有）"""
    lot_size: builtins.int
    """每手股数（股票专有）"""
    list_day_count: builtins.int
    """上市天数（股票专有）"""
    nq_transfer_status: builtins.str
    """新三板证券转让状态（新三板股票专有）"""
    issue_price: builtins.float
    """发行价（股票专有）"""
    nq_transfer_type: builtins.str
    """新三板证券转让类型（新三板股票专有）"""
    stock_exchange_type: builtins.str
    """股票交易类型（股票专有）"""
    reverse_repo_trading_date: builtins.int
    """国债逆回购交易日（YYYYMMDD）（国债逆回购专有）"""
    reverse_repo_dated_date: builtins.int
    """国债逆回购记息日（YYYYMMDD）（国债逆回购专有）"""
    reverse_repo_payment_date: builtins.int
    """国债逆回购到账日（YYYYMMDD）（国债逆回购专有）"""
    reverse_repo_withdraw_date: builtins.int
    """国债逆回购可取日（YYYYMMDD）（国债逆回购专有）"""
    reverse_repo_occupation_days: builtins.int
    """国债逆回购占款天数（国债逆回购专有）"""
    pre_net_profit: builtins.float
    """上一年净利润（股票专有）"""
    total_value: builtins.float
    """总市值（股票专有）"""
    circulation_market_value: builtins.float
    """流通市值（股票专有）"""
    price_earning_ratio: builtins.float
    """动态市盈率PE（股票专有）"""
    price_book_value_ratio: builtins.float
    """市净率PBV（股票专有）"""
    turnover_rate: builtins.float
    """换手率（当日%）（股票专有）"""
    fund_in: builtins.float
    """资金流入（股票专有）"""
    fund_out: builtins.float
    """资金流出（股票专有）"""
    up_count: builtins.int
    """涨家数（指数）（股票专有）"""
    down_count: builtins.int
    """跌家数（指数）（股票专有）"""
    flat_count: builtins.int
    """平家数（指数）（股票专有）"""
    change_percent_from_list: builtins.float
    """涨跌幅（上市以来%）（新股）（股票专有）"""
    up_percent: builtins.float
    """涨股比（%）（指数）（股票专有）"""
    net_fund_in: builtins.float
    """资金净流入（股票专有）"""
    after_hours_total_volume: builtins.int
    """盘后总成交量（科创板股票专有）"""
    after_hours_total_turnover: builtins.float
    """盘后总成交金额（科创板股票专有）"""
    after_hours_bid_volume: builtins.int
    """盘后申买量（科创板股票专有）"""
    after_hours_ask_volume: builtins.int
    """盘后申卖量（科创板股票专有）"""
    static_price_earning_ratio: builtins.float
    """静态市盈率PE（股票专有）"""
    match_transaction_price: builtins.float
    """匹配成交价（债券专有）"""
    change_percent_5min: builtins.float
    """五分钟涨速（%）（股票专有）"""
    highest_price_52week: builtins.float
    """最高价（52周）（港股专有）"""
    lowest_price_52week: builtins.float
    """最低价（52周）（港股专有）"""
    change_percent_1min: builtins.float
    """一分钟涨速（%）（股票专有）"""
    change_percent_3min: builtins.float
    """三分钟涨速（%）（股票专有）"""
    change_percent_10min: builtins.float
    """十分钟涨速（%）（股票专有）"""
    change_percent_15min: builtins.float
    """十五分钟涨速（%）（股票专有）"""
    raising_limit_day_count: builtins.int
    """连板天数（新股）（股票专有）"""
    nq_reference_price: builtins.float
    """新三板参考成交价（新三板股票专有）"""
    nq_matching_volume: builtins.int
    """新三板匹配量（新三板股票专有）"""
    nq_unmatching_volume: builtins.int
    """新三板未匹配量（新三板股票专有）"""
    nq_after_hours_trading: builtins.bool
    """新三板盘后交易状态（新三板股票专有）"""
    exchange_price: builtins.float
    """交易价格"""
    industry_name: builtins.str
    """所属行业名称（股票专有）"""
    region_name: builtins.str
    """所属地区名称（股票专有）"""
    future_type: global___FutureType.ValueType
    """期货类型（期货专有）"""
    product_code: builtins.str
    """产品代码（期货、期权专有）"""
    product_name: builtins.str
    """产品名称（期货、期权专有）"""
    max_market_order_volume: builtins.int
    """市价单最大下单量（期货、期权专有）"""
    min_market_order_volume: builtins.int
    """市价单最小下单量（期货、期权专有）"""
    max_limit_order_volume: builtins.int
    """限价单最大下单量（期货、期权专有）"""
    min_limit_order_volume: builtins.int
    """限价单最小下单量（期货、期权专有）"""
    volume_multiple: builtins.int
    """合约数量乘数（期货、期权专有）"""
    create_date: builtins.int
    """创建日（YYYYMMDD）（期货、期权专有）"""
    open_date: builtins.int
    """上市日（YYYYMMDD）（期货、期权专有）"""
    expire_date: builtins.int
    """到期日（YYYYMMDD）（期货、期权专有）"""
    start_deliv_date: builtins.int
    """开始交割日（YYYYMMDD）（期货、期权专有）"""
    end_deliv_date: builtins.int
    """结束交割日（YYYYMMDD）（期货、期权专有）"""
    future_status: global___FutureStatus.ValueType
    """合约状态（期货专有）"""
    position_type: global___FuturePositionType.ValueType
    """持仓类型（期货专有）"""
    position_date_type: global___FuturePositionDateType.ValueType
    """持仓日期类型（期货专有）"""
    long_margin_ratio: builtins.float
    """多头保证金率（期货专有）"""
    short_margin_ratio: builtins.float
    """空头保证金率（期货专有）"""
    margin_type: global___FutureMarginType.ValueType
    """保证金算法（期货专有）"""
    main_type: global___FutureMainType.ValueType
    """主力合约类型（期货专有）"""
    remaining_day_count: builtins.int
    """剩余天数（期货、期权专有）"""
    pre_open_interest: builtins.int
    """昨持仓量（期货、期权专有）"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    daily_open_interest_diff: builtins.int
    """日增仓（期货、期权专有）"""
    open_position: builtins.int
    """开仓（期货、期权专有）"""
    close_position: builtins.int
    """平仓（期货、期权专有）"""
    pre_settlement_price: builtins.float
    """昨结算价（期货、期权专有）"""
    settlement_price: builtins.float
    """结算价（期货、期权专有）"""
    future_calc1: builtins.float
    """计算指标1（期货、期权专有）"""
    future_calc2: builtins.float
    """计算指标2（期货、期权专有）"""
    option_type: global___OptionType.ValueType
    """期权类型（期权专有）"""
    call_put_type: global___OptionCallPutType.ValueType
    """期权认购认估类型（期权专有）"""
    strike_price: builtins.float
    """执行价（期权专有）"""
    strike_mode: global___OptionStrikeMode.ValueType
    """期权执行类型（期权专有）"""
    option_status: global___OptionStatus.ValueType
    """期权状态（期权专有）"""
    option_month: builtins.int
    """期权月份（YYYYMM）（期权专有）"""
    option_money_type: global___OptionMoneyType.ValueType
    """期权实值虚值类型（期权专有）"""
    implied_volatility: builtins.float
    """隐含波动率（%）（期权专有）"""
    intrinsic_value: builtins.float
    """内在价值（期权专有）"""
    time_value: builtins.float
    """时间价值（期权专有）"""
    gearing: builtins.float
    """杠杆比率（期权专有）"""
    effective_gearing: builtins.float
    """实际杠杆比率（期权专有）"""
    premium_rate: builtins.float
    """溢价率（%）（期权专有）"""
    delta: builtins.float
    """Delta（期权专有）"""
    pre_delta: builtins.float
    """昨Delta（期权专有）"""
    gamma: builtins.float
    """Gamma（期权专有）"""
    rho: builtins.float
    """Rho（期权专有）"""
    theta: builtins.float
    """Theta（期权专有）"""
    vega: builtins.float
    """Vega（期权专有）"""
    virtual_rate: builtins.float
    """虚值度（期权专有）"""
    estimate_margin: builtins.float
    """预估保证金（期权专有）"""
    underlying_last_price: builtins.float
    """基础商品最新价（期权专有）"""
    underlying_pre_settlement_price: builtins.float
    """基础商品昨结算价（期权专有）"""
    implied_volatility_bid: builtins.float
    """隐含波动率BID（%）（期权专有）"""
    implied_volatility_ask: builtins.float
    """隐含波动率ASK（%）（期权专有）"""
    implied_volatility_mid: builtins.float
    """隐含波动率MID（%）（期权专有）"""
    spot_type: global___SpotType.ValueType
    """现货类型（现货专有）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def trading_times(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """交易时间段"""

    @property
    def bid_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申买价"""

    @property
    def bid_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申买量"""

    @property
    def ask_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申卖价"""

    @property
    def ask_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申卖量"""

    @property
    def underlying_commodity_key(self) -> global___CommodityKey:
        """基础商品键值（期权专有）"""

    @property
    def related_commodity_key(self) -> global___CommodityKey:
        """关联商品键值（期权专有）"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        key: global___CommodityKey | None = ...,
        display_code: builtins.str = ...,
        name: builtins.str = ...,
        py_name: builtins.str = ...,
        precision: builtins.int = ...,
        price_tick: builtins.float = ...,
        trading_times: collections.abc.Iterable[builtins.int] | None = ...,
        candle_align_type: global___CandleAlignType.ValueType = ...,
        time_zone: builtins.int = ...,
        currency: builtins.str = ...,
        status_code: builtins.str = ...,
        sort_weight: builtins.int = ...,
        timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        last_price: builtins.float = ...,
        bid_price1: builtins.float = ...,
        bid_volume1: builtins.int = ...,
        ask_price1: builtins.float = ...,
        ask_volume1: builtins.int = ...,
        open_price: builtins.float = ...,
        highest_price: builtins.float = ...,
        lowest_price: builtins.float = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        turnover: builtins.float = ...,
        total_turnover: builtins.float = ...,
        pre_close_price: builtins.float = ...,
        close_price: builtins.float = ...,
        upper_limit_price: builtins.float = ...,
        lower_limit_price: builtins.float = ...,
        average_price: builtins.float = ...,
        change: builtins.float = ...,
        change_percent: builtins.float = ...,
        direction: global___BuySellDirection.ValueType = ...,
        nature: global___TradeNature.ValueType = ...,
        inside: builtins.int = ...,
        outside: builtins.int = ...,
        int_out_flag: global___InsideOutsideFlag.ValueType = ...,
        amplitude: builtins.float = ...,
        order_ratio: builtins.float = ...,
        order_diff: builtins.int = ...,
        volume_ratio: builtins.float = ...,
        last_trade_volume: builtins.int = ...,
        bid_prices: collections.abc.Iterable[builtins.float] | None = ...,
        bid_volumes: collections.abc.Iterable[builtins.int] | None = ...,
        ask_prices: collections.abc.Iterable[builtins.float] | None = ...,
        ask_volumes: collections.abc.Iterable[builtins.int] | None = ...,
        trading_phase_code: builtins.str = ...,
        is_deal: builtins.bool = ...,
        stock_type: global___StockType.ValueType = ...,
        stock_status: global___StockStatus.ValueType = ...,
        list_date: builtins.int = ...,
        total_stock: builtins.int = ...,
        circulation_stock: builtins.int = ...,
        net_asset: builtins.float = ...,
        net_profit: builtins.float = ...,
        net_asset_per_share: builtins.float = ...,
        margin_trading: builtins.bool = ...,
        lot_size: builtins.int = ...,
        list_day_count: builtins.int = ...,
        nq_transfer_status: builtins.str = ...,
        issue_price: builtins.float = ...,
        nq_transfer_type: builtins.str = ...,
        stock_exchange_type: builtins.str = ...,
        reverse_repo_trading_date: builtins.int = ...,
        reverse_repo_dated_date: builtins.int = ...,
        reverse_repo_payment_date: builtins.int = ...,
        reverse_repo_withdraw_date: builtins.int = ...,
        reverse_repo_occupation_days: builtins.int = ...,
        pre_net_profit: builtins.float = ...,
        total_value: builtins.float = ...,
        circulation_market_value: builtins.float = ...,
        price_earning_ratio: builtins.float = ...,
        price_book_value_ratio: builtins.float = ...,
        turnover_rate: builtins.float = ...,
        fund_in: builtins.float = ...,
        fund_out: builtins.float = ...,
        up_count: builtins.int = ...,
        down_count: builtins.int = ...,
        flat_count: builtins.int = ...,
        change_percent_from_list: builtins.float = ...,
        up_percent: builtins.float = ...,
        net_fund_in: builtins.float = ...,
        after_hours_total_volume: builtins.int = ...,
        after_hours_total_turnover: builtins.float = ...,
        after_hours_bid_volume: builtins.int = ...,
        after_hours_ask_volume: builtins.int = ...,
        static_price_earning_ratio: builtins.float = ...,
        match_transaction_price: builtins.float = ...,
        change_percent_5min: builtins.float = ...,
        highest_price_52week: builtins.float = ...,
        lowest_price_52week: builtins.float = ...,
        change_percent_1min: builtins.float = ...,
        change_percent_3min: builtins.float = ...,
        change_percent_10min: builtins.float = ...,
        change_percent_15min: builtins.float = ...,
        raising_limit_day_count: builtins.int = ...,
        nq_reference_price: builtins.float = ...,
        nq_matching_volume: builtins.int = ...,
        nq_unmatching_volume: builtins.int = ...,
        nq_after_hours_trading: builtins.bool = ...,
        exchange_price: builtins.float = ...,
        industry_name: builtins.str = ...,
        region_name: builtins.str = ...,
        future_type: global___FutureType.ValueType = ...,
        product_code: builtins.str = ...,
        product_name: builtins.str = ...,
        max_market_order_volume: builtins.int = ...,
        min_market_order_volume: builtins.int = ...,
        max_limit_order_volume: builtins.int = ...,
        min_limit_order_volume: builtins.int = ...,
        volume_multiple: builtins.int = ...,
        create_date: builtins.int = ...,
        open_date: builtins.int = ...,
        expire_date: builtins.int = ...,
        start_deliv_date: builtins.int = ...,
        end_deliv_date: builtins.int = ...,
        future_status: global___FutureStatus.ValueType = ...,
        position_type: global___FuturePositionType.ValueType = ...,
        position_date_type: global___FuturePositionDateType.ValueType = ...,
        long_margin_ratio: builtins.float = ...,
        short_margin_ratio: builtins.float = ...,
        margin_type: global___FutureMarginType.ValueType = ...,
        main_type: global___FutureMainType.ValueType = ...,
        remaining_day_count: builtins.int = ...,
        pre_open_interest: builtins.int = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        daily_open_interest_diff: builtins.int = ...,
        open_position: builtins.int = ...,
        close_position: builtins.int = ...,
        pre_settlement_price: builtins.float = ...,
        settlement_price: builtins.float = ...,
        future_calc1: builtins.float = ...,
        future_calc2: builtins.float = ...,
        option_type: global___OptionType.ValueType = ...,
        underlying_commodity_key: global___CommodityKey | None = ...,
        call_put_type: global___OptionCallPutType.ValueType = ...,
        strike_price: builtins.float = ...,
        strike_mode: global___OptionStrikeMode.ValueType = ...,
        option_status: global___OptionStatus.ValueType = ...,
        option_month: builtins.int = ...,
        related_commodity_key: global___CommodityKey | None = ...,
        option_money_type: global___OptionMoneyType.ValueType = ...,
        implied_volatility: builtins.float = ...,
        intrinsic_value: builtins.float = ...,
        time_value: builtins.float = ...,
        gearing: builtins.float = ...,
        effective_gearing: builtins.float = ...,
        premium_rate: builtins.float = ...,
        delta: builtins.float = ...,
        pre_delta: builtins.float = ...,
        gamma: builtins.float = ...,
        rho: builtins.float = ...,
        theta: builtins.float = ...,
        vega: builtins.float = ...,
        virtual_rate: builtins.float = ...,
        estimate_margin: builtins.float = ...,
        underlying_last_price: builtins.float = ...,
        underlying_pre_settlement_price: builtins.float = ...,
        implied_volatility_bid: builtins.float = ...,
        implied_volatility_ask: builtins.float = ...,
        implied_volatility_mid: builtins.float = ...,
        spot_type: global___SpotType.ValueType = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "related_commodity_key", b"related_commodity_key", "underlying_commodity_key", b"underlying_commodity_key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["after_hours_ask_volume", b"after_hours_ask_volume", "after_hours_bid_volume", b"after_hours_bid_volume", "after_hours_total_turnover", b"after_hours_total_turnover", "after_hours_total_volume", b"after_hours_total_volume", "amplitude", b"amplitude", "ask_price1", b"ask_price1", "ask_prices", b"ask_prices", "ask_volume1", b"ask_volume1", "ask_volumes", b"ask_volumes", "average_price", b"average_price", "bid_price1", b"bid_price1", "bid_prices", b"bid_prices", "bid_volume1", b"bid_volume1", "bid_volumes", b"bid_volumes", "call_put_type", b"call_put_type", "candle_align_type", b"candle_align_type", "category", b"category", "change", b"change", "change_percent", b"change_percent", "change_percent_10min", b"change_percent_10min", "change_percent_15min", b"change_percent_15min", "change_percent_1min", b"change_percent_1min", "change_percent_3min", b"change_percent_3min", "change_percent_5min", b"change_percent_5min", "change_percent_from_list", b"change_percent_from_list", "circulation_market_value", b"circulation_market_value", "circulation_stock", b"circulation_stock", "close_position", b"close_position", "close_price", b"close_price", "create_date", b"create_date", "currency", b"currency", "daily_open_interest_diff", b"daily_open_interest_diff", "delta", b"delta", "direction", b"direction", "display_code", b"display_code", "down_count", b"down_count", "effective_gearing", b"effective_gearing", "end_deliv_date", b"end_deliv_date", "estimate_margin", b"estimate_margin", "exchange_price", b"exchange_price", "expire_date", b"expire_date", "flat_count", b"flat_count", "fund_in", b"fund_in", "fund_out", b"fund_out", "future_calc1", b"future_calc1", "future_calc2", b"future_calc2", "future_status", b"future_status", "future_type", b"future_type", "gamma", b"gamma", "gearing", b"gearing", "highest_price", b"highest_price", "highest_price_52week", b"highest_price_52week", "implied_volatility", b"implied_volatility", "implied_volatility_ask", b"implied_volatility_ask", "implied_volatility_bid", b"implied_volatility_bid", "implied_volatility_mid", b"implied_volatility_mid", "industry_name", b"industry_name", "inside", b"inside", "int_out_flag", b"int_out_flag", "intrinsic_value", b"intrinsic_value", "is_deal", b"is_deal", "issue_price", b"issue_price", "key", b"key", "last_price", b"last_price", "last_trade_volume", b"last_trade_volume", "list_date", b"list_date", "list_day_count", b"list_day_count", "long_margin_ratio", b"long_margin_ratio", "lot_size", b"lot_size", "lower_limit_price", b"lower_limit_price", "lowest_price", b"lowest_price", "lowest_price_52week", b"lowest_price_52week", "main_type", b"main_type", "margin_trading", b"margin_trading", "margin_type", b"margin_type", "match_transaction_price", b"match_transaction_price", "max_limit_order_volume", b"max_limit_order_volume", "max_market_order_volume", b"max_market_order_volume", "min_limit_order_volume", b"min_limit_order_volume", "min_market_order_volume", b"min_market_order_volume", "name", b"name", "nature", b"nature", "net_asset", b"net_asset", "net_asset_per_share", b"net_asset_per_share", "net_fund_in", b"net_fund_in", "net_profit", b"net_profit", "nq_after_hours_trading", b"nq_after_hours_trading", "nq_matching_volume", b"nq_matching_volume", "nq_reference_price", b"nq_reference_price", "nq_transfer_status", b"nq_transfer_status", "nq_transfer_type", b"nq_transfer_type", "nq_unmatching_volume", b"nq_unmatching_volume", "open_date", b"open_date", "open_interest", b"open_interest", "open_position", b"open_position", "open_price", b"open_price", "option_money_type", b"option_money_type", "option_month", b"option_month", "option_status", b"option_status", "option_type", b"option_type", "order_diff", b"order_diff", "order_ratio", b"order_ratio", "outside", b"outside", "position_date_type", b"position_date_type", "position_type", b"position_type", "pre_close_price", b"pre_close_price", "pre_delta", b"pre_delta", "pre_net_profit", b"pre_net_profit", "pre_open_interest", b"pre_open_interest", "pre_settlement_price", b"pre_settlement_price", "precision", b"precision", "premium_rate", b"premium_rate", "price_book_value_ratio", b"price_book_value_ratio", "price_earning_ratio", b"price_earning_ratio", "price_tick", b"price_tick", "product_code", b"product_code", "product_name", b"product_name", "py_name", b"py_name", "raising_limit_day_count", b"raising_limit_day_count", "region_name", b"region_name", "related_commodity_key", b"related_commodity_key", "remaining_day_count", b"remaining_day_count", "reverse_repo_dated_date", b"reverse_repo_dated_date", "reverse_repo_occupation_days", b"reverse_repo_occupation_days", "reverse_repo_payment_date", b"reverse_repo_payment_date", "reverse_repo_trading_date", b"reverse_repo_trading_date", "reverse_repo_withdraw_date", b"reverse_repo_withdraw_date", "rho", b"rho", "settlement_price", b"settlement_price", "short_margin_ratio", b"short_margin_ratio", "sort_weight", b"sort_weight", "spot_type", b"spot_type", "start_deliv_date", b"start_deliv_date", "static_price_earning_ratio", b"static_price_earning_ratio", "status_code", b"status_code", "stock_exchange_type", b"stock_exchange_type", "stock_status", b"stock_status", "stock_type", b"stock_type", "strike_mode", b"strike_mode", "strike_price", b"strike_price", "theta", b"theta", "time_value", b"time_value", "time_zone", b"time_zone", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_stock", b"total_stock", "total_turnover", b"total_turnover", "total_value", b"total_value", "total_volume", b"total_volume", "trading_day", b"trading_day", "trading_phase_code", b"trading_phase_code", "trading_times", b"trading_times", "turnover", b"turnover", "turnover_rate", b"turnover_rate", "underlying_commodity_key", b"underlying_commodity_key", "underlying_last_price", b"underlying_last_price", "underlying_pre_settlement_price", b"underlying_pre_settlement_price", "up_count", b"up_count", "up_percent", b"up_percent", "upper_limit_price", b"upper_limit_price", "vega", b"vega", "virtual_rate", b"virtual_rate", "volume", b"volume", "volume_multiple", b"volume_multiple", "volume_ratio", b"volume_ratio"]) -> None: ...

global___CommodityListItem = CommodityListItem

@typing.final
class CommodityTickData(google.protobuf.message.Message):
    """商品Tick数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    LAST_PRICE_FIELD_NUMBER: builtins.int
    BID_PRICES_FIELD_NUMBER: builtins.int
    BID_VOLUMES_FIELD_NUMBER: builtins.int
    ASK_PRICES_FIELD_NUMBER: builtins.int
    ASK_VOLUMES_FIELD_NUMBER: builtins.int
    OPEN_PRICE_FIELD_NUMBER: builtins.int
    HIGHEST_PRICE_FIELD_NUMBER: builtins.int
    LOWEST_PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    CLOSE_PRICE_FIELD_NUMBER: builtins.int
    UPPER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    LOWER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    AVERAGE_PRICE_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FIELD_NUMBER: builtins.int
    DIRECTION_FIELD_NUMBER: builtins.int
    NATURE_FIELD_NUMBER: builtins.int
    INSIDE_FIELD_NUMBER: builtins.int
    OUTSIDE_FIELD_NUMBER: builtins.int
    INT_OUT_FLAG_FIELD_NUMBER: builtins.int
    AMPLITUDE_FIELD_NUMBER: builtins.int
    ORDER_RATIO_FIELD_NUMBER: builtins.int
    ORDER_DIFF_FIELD_NUMBER: builtins.int
    VOLUME_RATIO_FIELD_NUMBER: builtins.int
    LAST_TRADE_VOLUME_FIELD_NUMBER: builtins.int
    TRADING_PHASE_CODE_FIELD_NUMBER: builtins.int
    IS_DEAL_FIELD_NUMBER: builtins.int
    TOTAL_VALUE_FIELD_NUMBER: builtins.int
    CIRCULATION_MARKET_VALUE_FIELD_NUMBER: builtins.int
    PRICE_EARNING_RATIO_FIELD_NUMBER: builtins.int
    PRICE_BOOK_VALUE_RATIO_FIELD_NUMBER: builtins.int
    TURNOVER_RATE_FIELD_NUMBER: builtins.int
    FUND_IN_FIELD_NUMBER: builtins.int
    FUND_OUT_FIELD_NUMBER: builtins.int
    UP_COUNT_FIELD_NUMBER: builtins.int
    DOWN_COUNT_FIELD_NUMBER: builtins.int
    FLAT_COUNT_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FROM_LIST_FIELD_NUMBER: builtins.int
    UP_PERCENT_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    AFTER_HOURS_BID_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_ASK_VOLUME_FIELD_NUMBER: builtins.int
    STATIC_PRICE_EARNING_RATIO_FIELD_NUMBER: builtins.int
    MATCH_TRANSACTION_PRICE_FIELD_NUMBER: builtins.int
    PRE_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_POSITION_FIELD_NUMBER: builtins.int
    CLOSE_POSITION_FIELD_NUMBER: builtins.int
    DAILY_OPEN_INTEREST_DIFF_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    OPTION_MONEY_TYPE_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_FIELD_NUMBER: builtins.int
    INTRINSIC_VALUE_FIELD_NUMBER: builtins.int
    TIME_VALUE_FIELD_NUMBER: builtins.int
    GEARING_FIELD_NUMBER: builtins.int
    EFFECTIVE_GEARING_FIELD_NUMBER: builtins.int
    PREMIUM_RATE_FIELD_NUMBER: builtins.int
    DELTA_FIELD_NUMBER: builtins.int
    PRE_DELTA_FIELD_NUMBER: builtins.int
    GAMMA_FIELD_NUMBER: builtins.int
    RHO_FIELD_NUMBER: builtins.int
    THETA_FIELD_NUMBER: builtins.int
    VEGA_FIELD_NUMBER: builtins.int
    UNDERLYING_LAST_PRICE_FIELD_NUMBER: builtins.int
    UNDERLYING_PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    VIRTUAL_RATE_FIELD_NUMBER: builtins.int
    ESTIMATE_MARGIN_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_BID_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_ASK_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_MID_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    timestamp: builtins.int
    """时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    last_price: builtins.float
    """最新价"""
    open_price: builtins.float
    """开盘价"""
    highest_price: builtins.float
    """最高价"""
    lowest_price: builtins.float
    """最低价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """总成交量"""
    turnover: builtins.float
    """现额"""
    total_turnover: builtins.float
    """总成交金额"""
    pre_close_price: builtins.float
    """昨收盘"""
    close_price: builtins.float
    """收盘价"""
    upper_limit_price: builtins.float
    """涨停板价"""
    lower_limit_price: builtins.float
    """跌停板价"""
    average_price: builtins.float
    """均价"""
    change: builtins.float
    """涨跌额（当日）"""
    change_percent: builtins.float
    """涨跌幅（当日%）"""
    direction: global___BuySellDirection.ValueType
    """买卖方向"""
    nature: global___TradeNature.ValueType
    """成交性质"""
    inside: builtins.int
    """内盘（卖盘）"""
    outside: builtins.int
    """外盘（买盘）"""
    int_out_flag: global___InsideOutsideFlag.ValueType
    """内外盘标志"""
    amplitude: builtins.float
    """振幅（当日%）"""
    order_ratio: builtins.float
    """委比（%）"""
    order_diff: builtins.int
    """委差"""
    volume_ratio: builtins.float
    """量比"""
    last_trade_volume: builtins.int
    """最新成交手数"""
    trading_phase_code: builtins.str
    """交易状态代码"""
    is_deal: builtins.bool
    """是否成交"""
    total_value: builtins.float
    """总市值（股票专有）"""
    circulation_market_value: builtins.float
    """流通市值（股票专有）"""
    price_earning_ratio: builtins.float
    """动态市盈率PE（股票专有）"""
    price_book_value_ratio: builtins.float
    """市净率PBV（股票专有）"""
    turnover_rate: builtins.float
    """换手率（当日%）（股票专有）"""
    fund_in: builtins.float
    """资金流入（股票专有）"""
    fund_out: builtins.float
    """资金流出（股票专有）"""
    up_count: builtins.int
    """涨家数（指数）（股票专有）"""
    down_count: builtins.int
    """跌家数（指数）（股票专有）"""
    flat_count: builtins.int
    """平家数（指数）（股票专有）"""
    change_percent_from_list: builtins.float
    """涨跌幅（上市以来%）（新股）（股票专有）"""
    up_percent: builtins.float
    """涨股比（%）（指数）（股票专有）"""
    after_hours_total_volume: builtins.int
    """盘后总成交量（科创板股票专有）"""
    after_hours_total_turnover: builtins.float
    """盘后总成交金额（科创板股票专有）"""
    after_hours_bid_volume: builtins.int
    """盘后申买量（科创板股票专有）"""
    after_hours_ask_volume: builtins.int
    """盘后申卖量（科创板股票专有）"""
    static_price_earning_ratio: builtins.float
    """静态市盈率PE（股票专有）"""
    match_transaction_price: builtins.float
    """匹配成交价（债券专有）"""
    pre_open_interest: builtins.int
    """昨持仓量（期货、期权专有）"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    open_position: builtins.int
    """开仓（期货、期权专有）"""
    close_position: builtins.int
    """平仓（期货、期权专有）"""
    daily_open_interest_diff: builtins.int
    """日增仓（期货、期权专有）"""
    pre_settlement_price: builtins.float
    """昨结算价（期货、期权专有）"""
    settlement_price: builtins.float
    """结算价（期货、期权专有）"""
    option_money_type: global___OptionMoneyType.ValueType
    """实值虚值类型（期权专有）"""
    implied_volatility: builtins.float
    """隐含波动率（%）（期权专有）"""
    intrinsic_value: builtins.float
    """内在价值（期权专有）"""
    time_value: builtins.float
    """时间价值（期权专有）"""
    gearing: builtins.float
    """杠杆比率（期权专有）"""
    effective_gearing: builtins.float
    """实际杠杆比率（期权专有）"""
    premium_rate: builtins.float
    """溢价率（%）（期权专有）"""
    delta: builtins.float
    """Delta（期权专有）"""
    pre_delta: builtins.float
    """昨Delta（期权专有）"""
    gamma: builtins.float
    """Gamma（期权专有）"""
    rho: builtins.float
    """Rho（期权专有）"""
    theta: builtins.float
    """Theta（期权专有）"""
    vega: builtins.float
    """Vega（期权专有）"""
    underlying_last_price: builtins.float
    """基础商品最新价（期权专有）"""
    underlying_pre_settlement_price: builtins.float
    """基础商品昨结算价（期权专有）"""
    virtual_rate: builtins.float
    """虚值度（期权专有）"""
    estimate_margin: builtins.float
    """预估保证金（期权专有）"""
    implied_volatility_bid: builtins.float
    """隐含波动率BID（%）（期权专有）"""
    implied_volatility_ask: builtins.float
    """隐含波动率ASK（%）（期权专有）"""
    implied_volatility_mid: builtins.float
    """隐含波动率MID（%）（期权专有）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def bid_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申买价"""

    @property
    def bid_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申买量"""

    @property
    def ask_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申卖价"""

    @property
    def ask_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申卖量"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        key: global___CommodityKey | None = ...,
        timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        last_price: builtins.float = ...,
        bid_prices: collections.abc.Iterable[builtins.float] | None = ...,
        bid_volumes: collections.abc.Iterable[builtins.int] | None = ...,
        ask_prices: collections.abc.Iterable[builtins.float] | None = ...,
        ask_volumes: collections.abc.Iterable[builtins.int] | None = ...,
        open_price: builtins.float = ...,
        highest_price: builtins.float = ...,
        lowest_price: builtins.float = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        turnover: builtins.float = ...,
        total_turnover: builtins.float = ...,
        pre_close_price: builtins.float = ...,
        close_price: builtins.float = ...,
        upper_limit_price: builtins.float = ...,
        lower_limit_price: builtins.float = ...,
        average_price: builtins.float = ...,
        change: builtins.float = ...,
        change_percent: builtins.float = ...,
        direction: global___BuySellDirection.ValueType = ...,
        nature: global___TradeNature.ValueType = ...,
        inside: builtins.int = ...,
        outside: builtins.int = ...,
        int_out_flag: global___InsideOutsideFlag.ValueType = ...,
        amplitude: builtins.float = ...,
        order_ratio: builtins.float = ...,
        order_diff: builtins.int = ...,
        volume_ratio: builtins.float = ...,
        last_trade_volume: builtins.int = ...,
        trading_phase_code: builtins.str = ...,
        is_deal: builtins.bool = ...,
        total_value: builtins.float = ...,
        circulation_market_value: builtins.float = ...,
        price_earning_ratio: builtins.float = ...,
        price_book_value_ratio: builtins.float = ...,
        turnover_rate: builtins.float = ...,
        fund_in: builtins.float = ...,
        fund_out: builtins.float = ...,
        up_count: builtins.int = ...,
        down_count: builtins.int = ...,
        flat_count: builtins.int = ...,
        change_percent_from_list: builtins.float = ...,
        up_percent: builtins.float = ...,
        after_hours_total_volume: builtins.int = ...,
        after_hours_total_turnover: builtins.float = ...,
        after_hours_bid_volume: builtins.int = ...,
        after_hours_ask_volume: builtins.int = ...,
        static_price_earning_ratio: builtins.float = ...,
        match_transaction_price: builtins.float = ...,
        pre_open_interest: builtins.int = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        open_position: builtins.int = ...,
        close_position: builtins.int = ...,
        daily_open_interest_diff: builtins.int = ...,
        pre_settlement_price: builtins.float = ...,
        settlement_price: builtins.float = ...,
        option_money_type: global___OptionMoneyType.ValueType = ...,
        implied_volatility: builtins.float = ...,
        intrinsic_value: builtins.float = ...,
        time_value: builtins.float = ...,
        gearing: builtins.float = ...,
        effective_gearing: builtins.float = ...,
        premium_rate: builtins.float = ...,
        delta: builtins.float = ...,
        pre_delta: builtins.float = ...,
        gamma: builtins.float = ...,
        rho: builtins.float = ...,
        theta: builtins.float = ...,
        vega: builtins.float = ...,
        underlying_last_price: builtins.float = ...,
        underlying_pre_settlement_price: builtins.float = ...,
        virtual_rate: builtins.float = ...,
        estimate_margin: builtins.float = ...,
        implied_volatility_bid: builtins.float = ...,
        implied_volatility_ask: builtins.float = ...,
        implied_volatility_mid: builtins.float = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["after_hours_ask_volume", b"after_hours_ask_volume", "after_hours_bid_volume", b"after_hours_bid_volume", "after_hours_total_turnover", b"after_hours_total_turnover", "after_hours_total_volume", b"after_hours_total_volume", "amplitude", b"amplitude", "ask_prices", b"ask_prices", "ask_volumes", b"ask_volumes", "average_price", b"average_price", "bid_prices", b"bid_prices", "bid_volumes", b"bid_volumes", "category", b"category", "change", b"change", "change_percent", b"change_percent", "change_percent_from_list", b"change_percent_from_list", "circulation_market_value", b"circulation_market_value", "close_position", b"close_position", "close_price", b"close_price", "daily_open_interest_diff", b"daily_open_interest_diff", "delta", b"delta", "direction", b"direction", "down_count", b"down_count", "effective_gearing", b"effective_gearing", "estimate_margin", b"estimate_margin", "flat_count", b"flat_count", "fund_in", b"fund_in", "fund_out", b"fund_out", "gamma", b"gamma", "gearing", b"gearing", "highest_price", b"highest_price", "implied_volatility", b"implied_volatility", "implied_volatility_ask", b"implied_volatility_ask", "implied_volatility_bid", b"implied_volatility_bid", "implied_volatility_mid", b"implied_volatility_mid", "inside", b"inside", "int_out_flag", b"int_out_flag", "intrinsic_value", b"intrinsic_value", "is_deal", b"is_deal", "key", b"key", "last_price", b"last_price", "last_trade_volume", b"last_trade_volume", "lower_limit_price", b"lower_limit_price", "lowest_price", b"lowest_price", "match_transaction_price", b"match_transaction_price", "nature", b"nature", "open_interest", b"open_interest", "open_position", b"open_position", "open_price", b"open_price", "option_money_type", b"option_money_type", "order_diff", b"order_diff", "order_ratio", b"order_ratio", "outside", b"outside", "pre_close_price", b"pre_close_price", "pre_delta", b"pre_delta", "pre_open_interest", b"pre_open_interest", "pre_settlement_price", b"pre_settlement_price", "premium_rate", b"premium_rate", "price_book_value_ratio", b"price_book_value_ratio", "price_earning_ratio", b"price_earning_ratio", "rho", b"rho", "settlement_price", b"settlement_price", "static_price_earning_ratio", b"static_price_earning_ratio", "theta", b"theta", "time_value", b"time_value", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_turnover", b"total_turnover", "total_value", b"total_value", "total_volume", b"total_volume", "trading_day", b"trading_day", "trading_phase_code", b"trading_phase_code", "turnover", b"turnover", "turnover_rate", b"turnover_rate", "underlying_last_price", b"underlying_last_price", "underlying_pre_settlement_price", b"underlying_pre_settlement_price", "up_count", b"up_count", "up_percent", b"up_percent", "upper_limit_price", b"upper_limit_price", "vega", b"vega", "virtual_rate", b"virtual_rate", "volume", b"volume", "volume_ratio", b"volume_ratio"]) -> None: ...

global___CommodityTickData = CommodityTickData

@typing.final
class CommodityTickData2(google.protobuf.message.Message):
    """商品Tick数据（压缩）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    LAST_PRICE_FIELD_NUMBER: builtins.int
    BID_PRICES_FIELD_NUMBER: builtins.int
    BID_VOLUMES_FIELD_NUMBER: builtins.int
    ASK_PRICES_FIELD_NUMBER: builtins.int
    ASK_VOLUMES_FIELD_NUMBER: builtins.int
    OPEN_PRICE_FIELD_NUMBER: builtins.int
    HIGHEST_PRICE_FIELD_NUMBER: builtins.int
    LOWEST_PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    CLOSE_PRICE_FIELD_NUMBER: builtins.int
    UPPER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    LOWER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    AVERAGE_PRICE_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FIELD_NUMBER: builtins.int
    DIRECTION_FIELD_NUMBER: builtins.int
    NATURE_FIELD_NUMBER: builtins.int
    INSIDE_FIELD_NUMBER: builtins.int
    OUTSIDE_FIELD_NUMBER: builtins.int
    INT_OUT_FLAG_FIELD_NUMBER: builtins.int
    AMPLITUDE_FIELD_NUMBER: builtins.int
    ORDER_RATIO_FIELD_NUMBER: builtins.int
    ORDER_DIFF_FIELD_NUMBER: builtins.int
    VOLUME_RATIO_FIELD_NUMBER: builtins.int
    LAST_TRADE_VOLUME_FIELD_NUMBER: builtins.int
    TRADING_PHASE_CODE_FIELD_NUMBER: builtins.int
    IS_DEAL_FIELD_NUMBER: builtins.int
    TOTAL_VALUE_FIELD_NUMBER: builtins.int
    CIRCULATION_MARKET_VALUE_FIELD_NUMBER: builtins.int
    PRICE_EARNING_RATIO_FIELD_NUMBER: builtins.int
    PRICE_BOOK_VALUE_RATIO_FIELD_NUMBER: builtins.int
    TURNOVER_RATE_FIELD_NUMBER: builtins.int
    FUND_IN_FIELD_NUMBER: builtins.int
    FUND_OUT_FIELD_NUMBER: builtins.int
    UP_COUNT_FIELD_NUMBER: builtins.int
    DOWN_COUNT_FIELD_NUMBER: builtins.int
    FLAT_COUNT_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FROM_LIST_FIELD_NUMBER: builtins.int
    UP_PERCENT_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    AFTER_HOURS_BID_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_ASK_VOLUME_FIELD_NUMBER: builtins.int
    STATIC_PRICE_EARNING_RATIO_FIELD_NUMBER: builtins.int
    MATCH_TRANSACTION_PRICE_FIELD_NUMBER: builtins.int
    PRE_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_POSITION_FIELD_NUMBER: builtins.int
    CLOSE_POSITION_FIELD_NUMBER: builtins.int
    DAILY_OPEN_INTEREST_DIFF_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    OPTION_MONEY_TYPE_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_FIELD_NUMBER: builtins.int
    INTRINSIC_VALUE_FIELD_NUMBER: builtins.int
    TIME_VALUE_FIELD_NUMBER: builtins.int
    GEARING_FIELD_NUMBER: builtins.int
    EFFECTIVE_GEARING_FIELD_NUMBER: builtins.int
    PREMIUM_RATE_FIELD_NUMBER: builtins.int
    DELTA_FIELD_NUMBER: builtins.int
    PRE_DELTA_FIELD_NUMBER: builtins.int
    GAMMA_FIELD_NUMBER: builtins.int
    RHO_FIELD_NUMBER: builtins.int
    THETA_FIELD_NUMBER: builtins.int
    VEGA_FIELD_NUMBER: builtins.int
    UNDERLYING_LAST_PRICE_FIELD_NUMBER: builtins.int
    UNDERLYING_PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    VIRTUAL_RATE_FIELD_NUMBER: builtins.int
    ESTIMATE_MARGIN_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_BID_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_ASK_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_MID_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    timestamp: builtins.int
    """时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    last_price: builtins.int
    """最新价"""
    open_price: builtins.int
    """开盘价"""
    highest_price: builtins.int
    """最高价"""
    lowest_price: builtins.int
    """最低价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """总成交量"""
    turnover: builtins.int
    """现额"""
    total_turnover: builtins.int
    """总成交金额"""
    pre_close_price: builtins.int
    """昨收盘"""
    close_price: builtins.int
    """收盘价"""
    upper_limit_price: builtins.int
    """涨停板价"""
    lower_limit_price: builtins.int
    """跌停板价"""
    average_price: builtins.int
    """均价"""
    change: builtins.int
    """涨跌额（当日）"""
    change_percent: builtins.int
    """涨跌幅（当日%）"""
    direction: global___BuySellDirection.ValueType
    """买卖方向"""
    nature: global___TradeNature.ValueType
    """成交性质"""
    inside: builtins.int
    """内盘（卖盘）"""
    outside: builtins.int
    """外盘（买盘）"""
    int_out_flag: global___InsideOutsideFlag.ValueType
    """内外盘标志"""
    amplitude: builtins.int
    """振幅（当日%）"""
    order_ratio: builtins.int
    """委比（%）"""
    order_diff: builtins.int
    """委差"""
    volume_ratio: builtins.int
    """量比"""
    last_trade_volume: builtins.int
    """最新成交手数"""
    trading_phase_code: builtins.str
    """交易状态代码"""
    is_deal: builtins.bool
    """是否成交"""
    total_value: builtins.int
    """总市值（股票专有）"""
    circulation_market_value: builtins.int
    """流通市值（股票专有）"""
    price_earning_ratio: builtins.int
    """动态市盈率PE（股票专有）"""
    price_book_value_ratio: builtins.int
    """市净率PBV（股票专有）"""
    turnover_rate: builtins.int
    """换手率（当日%）（股票专有）"""
    fund_in: builtins.int
    """资金流入（股票专有）"""
    fund_out: builtins.int
    """资金流出（股票专有）"""
    up_count: builtins.int
    """涨家数（指数）（股票专有）"""
    down_count: builtins.int
    """跌家数（指数）（股票专有）"""
    flat_count: builtins.int
    """平家数（指数）（股票专有）"""
    change_percent_from_list: builtins.int
    """涨跌幅（上市以来%）（新股）（股票专有）"""
    up_percent: builtins.int
    """涨股比（%）（指数）（股票专有）"""
    after_hours_total_volume: builtins.int
    """盘后总成交量（科创板股票专有）"""
    after_hours_total_turnover: builtins.int
    """盘后总成交金额（科创板股票专有）"""
    after_hours_bid_volume: builtins.int
    """盘后申买量（科创板股票专有）"""
    after_hours_ask_volume: builtins.int
    """盘后申卖量（科创板股票专有）"""
    static_price_earning_ratio: builtins.int
    """静态市盈率PE（股票专有）"""
    match_transaction_price: builtins.int
    """匹配成交价（债券专有）"""
    pre_open_interest: builtins.int
    """昨持仓量（期货、期权专有）"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    open_position: builtins.int
    """开仓（期货、期权专有）"""
    close_position: builtins.int
    """平仓（期货、期权专有）"""
    daily_open_interest_diff: builtins.int
    """日增仓（期货、期权专有）"""
    pre_settlement_price: builtins.int
    """昨结算价（期货、期权专有）"""
    settlement_price: builtins.int
    """结算价（期货、期权专有）"""
    option_money_type: global___OptionMoneyType.ValueType
    """实值虚值类型（期权专有）"""
    implied_volatility: builtins.int
    """隐含波动率（%）（期权专有）"""
    intrinsic_value: builtins.int
    """内在价值（期权专有）"""
    time_value: builtins.int
    """时间价值（期权专有）"""
    gearing: builtins.int
    """杠杆比率（期权专有）"""
    effective_gearing: builtins.int
    """实际杠杆比率（期权专有）"""
    premium_rate: builtins.int
    """溢价率（%）（期权专有）"""
    delta: builtins.int
    """Delta（期权专有）"""
    pre_delta: builtins.int
    """昨Delta（期权专有）"""
    gamma: builtins.int
    """Gamma（期权专有）"""
    rho: builtins.int
    """Rho（期权专有）"""
    theta: builtins.int
    """Theta（期权专有）"""
    vega: builtins.int
    """Vega（期权专有）"""
    underlying_last_price: builtins.int
    """基础商品最新价（期权专有）"""
    underlying_pre_settlement_price: builtins.int
    """基础商品昨结算价（期权专有）"""
    virtual_rate: builtins.int
    """虚值度（期权专有）"""
    estimate_margin: builtins.int
    """预估保证金（期权专有）"""
    implied_volatility_bid: builtins.int
    """隐含波动率BID（%）（期权专有）"""
    implied_volatility_ask: builtins.int
    """隐含波动率ASK（%）（期权专有）"""
    implied_volatility_mid: builtins.int
    """隐含波动率MID（%）（期权专有）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def bid_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申买价"""

    @property
    def bid_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申买量"""

    @property
    def ask_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申卖价"""

    @property
    def ask_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """申卖量"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        key: global___CommodityKey | None = ...,
        timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        last_price: builtins.int = ...,
        bid_prices: collections.abc.Iterable[builtins.int] | None = ...,
        bid_volumes: collections.abc.Iterable[builtins.int] | None = ...,
        ask_prices: collections.abc.Iterable[builtins.int] | None = ...,
        ask_volumes: collections.abc.Iterable[builtins.int] | None = ...,
        open_price: builtins.int = ...,
        highest_price: builtins.int = ...,
        lowest_price: builtins.int = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        turnover: builtins.int = ...,
        total_turnover: builtins.int = ...,
        pre_close_price: builtins.int = ...,
        close_price: builtins.int = ...,
        upper_limit_price: builtins.int = ...,
        lower_limit_price: builtins.int = ...,
        average_price: builtins.int = ...,
        change: builtins.int = ...,
        change_percent: builtins.int = ...,
        direction: global___BuySellDirection.ValueType = ...,
        nature: global___TradeNature.ValueType = ...,
        inside: builtins.int = ...,
        outside: builtins.int = ...,
        int_out_flag: global___InsideOutsideFlag.ValueType = ...,
        amplitude: builtins.int = ...,
        order_ratio: builtins.int = ...,
        order_diff: builtins.int = ...,
        volume_ratio: builtins.int = ...,
        last_trade_volume: builtins.int = ...,
        trading_phase_code: builtins.str = ...,
        is_deal: builtins.bool = ...,
        total_value: builtins.int = ...,
        circulation_market_value: builtins.int = ...,
        price_earning_ratio: builtins.int = ...,
        price_book_value_ratio: builtins.int = ...,
        turnover_rate: builtins.int = ...,
        fund_in: builtins.int = ...,
        fund_out: builtins.int = ...,
        up_count: builtins.int = ...,
        down_count: builtins.int = ...,
        flat_count: builtins.int = ...,
        change_percent_from_list: builtins.int = ...,
        up_percent: builtins.int = ...,
        after_hours_total_volume: builtins.int = ...,
        after_hours_total_turnover: builtins.int = ...,
        after_hours_bid_volume: builtins.int = ...,
        after_hours_ask_volume: builtins.int = ...,
        static_price_earning_ratio: builtins.int = ...,
        match_transaction_price: builtins.int = ...,
        pre_open_interest: builtins.int = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        open_position: builtins.int = ...,
        close_position: builtins.int = ...,
        daily_open_interest_diff: builtins.int = ...,
        pre_settlement_price: builtins.int = ...,
        settlement_price: builtins.int = ...,
        option_money_type: global___OptionMoneyType.ValueType = ...,
        implied_volatility: builtins.int = ...,
        intrinsic_value: builtins.int = ...,
        time_value: builtins.int = ...,
        gearing: builtins.int = ...,
        effective_gearing: builtins.int = ...,
        premium_rate: builtins.int = ...,
        delta: builtins.int = ...,
        pre_delta: builtins.int = ...,
        gamma: builtins.int = ...,
        rho: builtins.int = ...,
        theta: builtins.int = ...,
        vega: builtins.int = ...,
        underlying_last_price: builtins.int = ...,
        underlying_pre_settlement_price: builtins.int = ...,
        virtual_rate: builtins.int = ...,
        estimate_margin: builtins.int = ...,
        implied_volatility_bid: builtins.int = ...,
        implied_volatility_ask: builtins.int = ...,
        implied_volatility_mid: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["after_hours_ask_volume", b"after_hours_ask_volume", "after_hours_bid_volume", b"after_hours_bid_volume", "after_hours_total_turnover", b"after_hours_total_turnover", "after_hours_total_volume", b"after_hours_total_volume", "amplitude", b"amplitude", "ask_prices", b"ask_prices", "ask_volumes", b"ask_volumes", "average_price", b"average_price", "bid_prices", b"bid_prices", "bid_volumes", b"bid_volumes", "category", b"category", "change", b"change", "change_percent", b"change_percent", "change_percent_from_list", b"change_percent_from_list", "circulation_market_value", b"circulation_market_value", "close_position", b"close_position", "close_price", b"close_price", "daily_open_interest_diff", b"daily_open_interest_diff", "delta", b"delta", "direction", b"direction", "down_count", b"down_count", "effective_gearing", b"effective_gearing", "estimate_margin", b"estimate_margin", "flat_count", b"flat_count", "fund_in", b"fund_in", "fund_out", b"fund_out", "gamma", b"gamma", "gearing", b"gearing", "highest_price", b"highest_price", "implied_volatility", b"implied_volatility", "implied_volatility_ask", b"implied_volatility_ask", "implied_volatility_bid", b"implied_volatility_bid", "implied_volatility_mid", b"implied_volatility_mid", "inside", b"inside", "int_out_flag", b"int_out_flag", "intrinsic_value", b"intrinsic_value", "is_deal", b"is_deal", "key", b"key", "last_price", b"last_price", "last_trade_volume", b"last_trade_volume", "lower_limit_price", b"lower_limit_price", "lowest_price", b"lowest_price", "match_transaction_price", b"match_transaction_price", "nature", b"nature", "open_interest", b"open_interest", "open_position", b"open_position", "open_price", b"open_price", "option_money_type", b"option_money_type", "order_diff", b"order_diff", "order_ratio", b"order_ratio", "outside", b"outside", "pre_close_price", b"pre_close_price", "pre_delta", b"pre_delta", "pre_open_interest", b"pre_open_interest", "pre_settlement_price", b"pre_settlement_price", "premium_rate", b"premium_rate", "price_book_value_ratio", b"price_book_value_ratio", "price_earning_ratio", b"price_earning_ratio", "rho", b"rho", "settlement_price", b"settlement_price", "static_price_earning_ratio", b"static_price_earning_ratio", "theta", b"theta", "time_value", b"time_value", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_turnover", b"total_turnover", "total_value", b"total_value", "total_volume", b"total_volume", "trading_day", b"trading_day", "trading_phase_code", b"trading_phase_code", "turnover", b"turnover", "turnover_rate", b"turnover_rate", "underlying_last_price", b"underlying_last_price", "underlying_pre_settlement_price", b"underlying_pre_settlement_price", "up_count", b"up_count", "up_percent", b"up_percent", "upper_limit_price", b"upper_limit_price", "vega", b"vega", "virtual_rate", b"virtual_rate", "volume", b"volume", "volume_ratio", b"volume_ratio"]) -> None: ...

global___CommodityTickData2 = CommodityTickData2

@typing.final
class CommodityCandleData(google.protobuf.message.Message):
    """商品K线数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    DISPLAY_TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    OPEN_FIELD_NUMBER: builtins.int
    HIGH_FIELD_NUMBER: builtins.int
    LOW_FIELD_NUMBER: builtins.int
    CLOSE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    TURNOVER_RATE_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    display_timestamp: builtins.int
    """显示时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    open: builtins.float
    """开盘价"""
    high: builtins.float
    """最高价"""
    low: builtins.float
    """最低价"""
    close: builtins.float
    """收盘价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """当日总成交量"""
    turnover: builtins.float
    """现额"""
    total_turnover: builtins.float
    """当日总成交金额"""
    turnover_rate: builtins.float
    """换手率（股票专有）"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    after_hours_total_volume: builtins.int
    """盘后总成交量（科创板股票专有）"""
    after_hours_total_turnover: builtins.float
    """盘后总成交金额（科创板股票专有）"""
    settlement_price: builtins.float
    """结算价（期货专有）"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        display_timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        open: builtins.float = ...,
        high: builtins.float = ...,
        low: builtins.float = ...,
        close: builtins.float = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        turnover: builtins.float = ...,
        total_turnover: builtins.float = ...,
        turnover_rate: builtins.float = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        after_hours_total_volume: builtins.int = ...,
        after_hours_total_turnover: builtins.float = ...,
        settlement_price: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["after_hours_total_turnover", b"after_hours_total_turnover", "after_hours_total_volume", b"after_hours_total_volume", "close", b"close", "display_timestamp", b"display_timestamp", "high", b"high", "low", b"low", "open", b"open", "open_interest", b"open_interest", "settlement_price", b"settlement_price", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_turnover", b"total_turnover", "total_volume", b"total_volume", "trading_day", b"trading_day", "turnover", b"turnover", "turnover_rate", b"turnover_rate", "volume", b"volume"]) -> None: ...

global___CommodityCandleData = CommodityCandleData

@typing.final
class CommodityCandleData2(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    DISPLAY_TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    OPEN_FIELD_NUMBER: builtins.int
    HIGH_FIELD_NUMBER: builtins.int
    LOW_FIELD_NUMBER: builtins.int
    CLOSE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    TURNOVER_RATE_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    AFTER_HOURS_TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    display_timestamp: builtins.int
    """显示时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    open: builtins.int
    """开盘价"""
    high: builtins.int
    """最高价"""
    low: builtins.int
    """最低价"""
    close: builtins.int
    """收盘价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """当日总成交量"""
    turnover: builtins.int
    """现额"""
    total_turnover: builtins.int
    """当日总成交金额"""
    turnover_rate: builtins.int
    """换手率（股票专有）"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    after_hours_total_volume: builtins.int
    """盘后总成交量（科创板股票专有）"""
    after_hours_total_turnover: builtins.int
    """盘后总成交金额（科创板股票专有）"""
    settlement_price: builtins.int
    """结算价（期货专有）"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        display_timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        open: builtins.int = ...,
        high: builtins.int = ...,
        low: builtins.int = ...,
        close: builtins.int = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        turnover: builtins.int = ...,
        total_turnover: builtins.int = ...,
        turnover_rate: builtins.int = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        after_hours_total_volume: builtins.int = ...,
        after_hours_total_turnover: builtins.int = ...,
        settlement_price: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["after_hours_total_turnover", b"after_hours_total_turnover", "after_hours_total_volume", b"after_hours_total_volume", "close", b"close", "display_timestamp", b"display_timestamp", "high", b"high", "low", b"low", "open", b"open", "open_interest", b"open_interest", "settlement_price", b"settlement_price", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_turnover", b"total_turnover", "total_volume", b"total_volume", "trading_day", b"trading_day", "turnover", b"turnover", "turnover_rate", b"turnover_rate", "volume", b"volume"]) -> None: ...

global___CommodityCandleData2 = CommodityCandleData2

@typing.final
class CommodityMinuteData(google.protobuf.message.Message):
    """商品分时数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    DISPLAY_TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    PRICE_FIELD_NUMBER: builtins.int
    AVERAGE_PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    RED_GREEN_BAR_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    display_timestamp: builtins.int
    """显示时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    price: builtins.float
    """价格"""
    average_price: builtins.float
    """均价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """当日总成交量"""
    change: builtins.float
    """涨跌额（当日）"""
    change_percent: builtins.float
    """涨跌幅（当日%）"""
    pre_close_price: builtins.float
    """昨收盘"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    pre_settlement_price: builtins.float
    """昨结算价（期货、期权专有）"""
    red_green_bar: builtins.float
    """指数红绿柱（股票指数专有）"""
    implied_volatility: builtins.float
    """隐含波动率（%）"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        display_timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        price: builtins.float = ...,
        average_price: builtins.float = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        change: builtins.float = ...,
        change_percent: builtins.float = ...,
        pre_close_price: builtins.float = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        pre_settlement_price: builtins.float = ...,
        red_green_bar: builtins.float = ...,
        implied_volatility: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["average_price", b"average_price", "change", b"change", "change_percent", b"change_percent", "display_timestamp", b"display_timestamp", "implied_volatility", b"implied_volatility", "open_interest", b"open_interest", "pre_close_price", b"pre_close_price", "pre_settlement_price", b"pre_settlement_price", "price", b"price", "red_green_bar", b"red_green_bar", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_volume", b"total_volume", "trading_day", b"trading_day", "volume", b"volume"]) -> None: ...

global___CommodityMinuteData = CommodityMinuteData

@typing.final
class CommodityMinuteData2(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    DISPLAY_TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    PRICE_FIELD_NUMBER: builtins.int
    AVERAGE_PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    RED_GREEN_BAR_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    display_timestamp: builtins.int
    """显示时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    price: builtins.int
    """价格"""
    average_price: builtins.int
    """均价"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """当日总成交量"""
    change: builtins.int
    """涨跌额（当日）"""
    change_percent: builtins.int
    """涨跌幅（当日%）"""
    pre_close_price: builtins.int
    """昨收盘"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """总持仓量（期货、期权专有）"""
    pre_settlement_price: builtins.int
    """昨结算价（期货、期权专有）"""
    red_green_bar: builtins.int
    """指数红绿柱（股票指数专有）"""
    implied_volatility: builtins.int
    """隐含波动率（%）"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        display_timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        price: builtins.int = ...,
        average_price: builtins.int = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        change: builtins.int = ...,
        change_percent: builtins.int = ...,
        pre_close_price: builtins.int = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        pre_settlement_price: builtins.int = ...,
        red_green_bar: builtins.int = ...,
        implied_volatility: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["average_price", b"average_price", "change", b"change", "change_percent", b"change_percent", "display_timestamp", b"display_timestamp", "implied_volatility", b"implied_volatility", "open_interest", b"open_interest", "pre_close_price", b"pre_close_price", "pre_settlement_price", b"pre_settlement_price", "price", b"price", "red_green_bar", b"red_green_bar", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_volume", b"total_volume", "trading_day", b"trading_day", "volume", b"volume"]) -> None: ...

global___CommodityMinuteData2 = CommodityMinuteData2

@typing.final
class CommodityTradeDetailData(google.protobuf.message.Message):
    """商品成交明细数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    DIRECTION_FIELD_NUMBER: builtins.int
    NATURE_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    price: builtins.float
    """价格"""
    volume: builtins.int
    """现手"""
    total_volume: builtins.int
    """当日总成交量"""
    pre_close_price: builtins.float
    """昨收盘"""
    direction: global___BuySellDirection.ValueType
    """买卖方向"""
    nature: global___TradeNature.ValueType
    """成交性质"""
    open_interest: builtins.int
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.int
    """当日总持仓量（期货、期权专有）"""
    pre_settlement_price: builtins.float
    """昨结算价（期货、期权专有）"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        price: builtins.float = ...,
        volume: builtins.int = ...,
        total_volume: builtins.int = ...,
        pre_close_price: builtins.float = ...,
        direction: global___BuySellDirection.ValueType = ...,
        nature: global___TradeNature.ValueType = ...,
        open_interest: builtins.int = ...,
        total_open_interest: builtins.int = ...,
        pre_settlement_price: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["direction", b"direction", "nature", b"nature", "open_interest", b"open_interest", "pre_close_price", b"pre_close_price", "pre_settlement_price", b"pre_settlement_price", "price", b"price", "timestamp", b"timestamp", "total_open_interest", b"total_open_interest", "total_volume", b"total_volume", "trading_day", b"trading_day", "volume", b"volume"]) -> None: ...

global___CommodityTradeDetailData = CommodityTradeDetailData

@typing.final
class CommodityPriceVolumeData(google.protobuf.message.Message):
    """商品量价分布数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PRICE_FIELD_NUMBER: builtins.int
    BUY_COUNT_FIELD_NUMBER: builtins.int
    BUY_VOLUME_FIELD_NUMBER: builtins.int
    SELL_COUNT_FIELD_NUMBER: builtins.int
    SELL_VOLUME_FIELD_NUMBER: builtins.int
    price: builtins.float
    """价格"""
    buy_count: builtins.int
    """买数量"""
    buy_volume: builtins.int
    """买交易量"""
    sell_count: builtins.int
    """卖数量"""
    sell_volume: builtins.int
    """卖交易量"""
    def __init__(
        self,
        *,
        price: builtins.float = ...,
        buy_count: builtins.int = ...,
        buy_volume: builtins.int = ...,
        sell_count: builtins.int = ...,
        sell_volume: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["buy_count", b"buy_count", "buy_volume", b"buy_volume", "price", b"price", "sell_count", b"sell_count", "sell_volume", b"sell_volume"]) -> None: ...

global___CommodityPriceVolumeData = CommodityPriceVolumeData

@typing.final
class SearchCommodityData(google.protobuf.message.Message):
    """检索商品数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    DISPLAY_CODE_FIELD_NUMBER: builtins.int
    NAME_FIELD_NUMBER: builtins.int
    PY_NAME_FIELD_NUMBER: builtins.int
    STOCK_TYPE_FIELD_NUMBER: builtins.int
    MARGIN_TRADING_FIELD_NUMBER: builtins.int
    STOCK_EXCHANGE_TYPE_FIELD_NUMBER: builtins.int
    display_code: builtins.str
    """商品显示代码"""
    name: builtins.str
    """商品名称"""
    py_name: builtins.str
    """商品拼音简称"""
    stock_type: global___StockType.ValueType
    """股票类型（股票专有）"""
    margin_trading: builtins.bool
    """是否融资融券（股票专有）"""
    stock_exchange_type: builtins.str
    """股票交易类型（股票专有）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        display_code: builtins.str = ...,
        name: builtins.str = ...,
        py_name: builtins.str = ...,
        stock_type: global___StockType.ValueType = ...,
        margin_trading: builtins.bool = ...,
        stock_exchange_type: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["display_code", b"display_code", "key", b"key", "margin_trading", b"margin_trading", "name", b"name", "py_name", b"py_name", "stock_exchange_type", b"stock_exchange_type", "stock_type", b"stock_type"]) -> None: ...

global___SearchCommodityData = SearchCommodityData

@typing.final
class StockBlockListData(google.protobuf.message.Message):
    """股票所属板块数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    NAME_FIELD_NUMBER: builtins.int
    STOCK_TYPE_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_PERCENT_FIELD_NUMBER: builtins.int
    STOCK_COUNT_FIELD_NUMBER: builtins.int
    name: builtins.str
    """商品名称"""
    stock_type: global___StockType.ValueType
    """股票类型（股票专有）"""
    change: builtins.float
    """涨跌额（当日）"""
    change_percent: builtins.float
    """涨跌幅（当日%）"""
    stock_count: builtins.int
    """股票数量"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        name: builtins.str = ...,
        stock_type: global___StockType.ValueType = ...,
        change: builtins.float = ...,
        change_percent: builtins.float = ...,
        stock_count: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["change", b"change", "change_percent", b"change_percent", "key", b"key", "name", b"name", "stock_count", b"stock_count", "stock_type", b"stock_type"]) -> None: ...

global___StockBlockListData = StockBlockListData

@typing.final
class StockBlockRankingData(google.protobuf.message.Message):
    """股票板块排名数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    BLOCK_ITEM_FIELD_NUMBER: builtins.int
    STOCK_ITEMS_FIELD_NUMBER: builtins.int
    @property
    def block_item(self) -> global___CommodityListItem:
        """板块数据"""

    @property
    def stock_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityListItem]:
        """板块所属股票数据"""

    def __init__(
        self,
        *,
        block_item: global___CommodityListItem | None = ...,
        stock_items: collections.abc.Iterable[global___CommodityListItem] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["block_item", b"block_item"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["block_item", b"block_item", "stock_items", b"stock_items"]) -> None: ...

global___StockBlockRankingData = StockBlockRankingData

@typing.final
class GetMultiMarketCommodityInfoRequestItem(google.protobuf.message.Message):
    """取多市场商品信息请求消息项目"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    timestamp: builtins.int
    """本地商品信息时间戳"""
    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        timestamp: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "timestamp", b"timestamp"]) -> None: ...

global___GetMultiMarketCommodityInfoRequestItem = GetMultiMarketCommodityInfoRequestItem

@typing.final
class GetMultiMarketCommodityInfoResponseItem(google.protobuf.message.Message):
    """取多市场商品信息返回消息项目"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    INFOS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    timestamp: builtins.int
    """商品信息时间戳"""
    @property
    def infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityInfo]:
        """商品信息列表"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        timestamp: builtins.int = ...,
        infos: collections.abc.Iterable[global___CommodityInfo] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "infos", b"infos", "timestamp", b"timestamp"]) -> None: ...

global___GetMultiMarketCommodityInfoResponseItem = GetMultiMarketCommodityInfoResponseItem

@typing.final
class StockCapitalFlowData(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    股票消息定义
    //////////////////////////////////////////////////////////////////////////////

    股票资金流向数据
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    SUPER_VOLUME_FIELD_NUMBER: builtins.int
    SUPER_VOLUME_IN_FIELD_NUMBER: builtins.int
    SUPER_VOLUME_OUT_FIELD_NUMBER: builtins.int
    SUPER_AMOUNT_FIELD_NUMBER: builtins.int
    SUPER_AMOUNT_IN_FIELD_NUMBER: builtins.int
    SUPER_AMOUNT_OUT_FIELD_NUMBER: builtins.int
    BIG_VOLUME_FIELD_NUMBER: builtins.int
    BIG_VOLUME_IN_FIELD_NUMBER: builtins.int
    BIG_VOLUME_OUT_FIELD_NUMBER: builtins.int
    BIG_AMOUNT_FIELD_NUMBER: builtins.int
    BIG_AMOUNT_IN_FIELD_NUMBER: builtins.int
    BIG_AMOUNT_OUT_FIELD_NUMBER: builtins.int
    MIDDLE_VOLUME_FIELD_NUMBER: builtins.int
    MIDDLE_VOLUME_IN_FIELD_NUMBER: builtins.int
    MIDDLE_VOLUME_OUT_FIELD_NUMBER: builtins.int
    MIDDLE_AMOUNT_FIELD_NUMBER: builtins.int
    MIDDLE_AMOUNT_IN_FIELD_NUMBER: builtins.int
    MIDDLE_AMOUNT_OUT_FIELD_NUMBER: builtins.int
    SMALL_VOLUME_FIELD_NUMBER: builtins.int
    SMALL_VOLUME_IN_FIELD_NUMBER: builtins.int
    SMALL_VOLUME_OUT_FIELD_NUMBER: builtins.int
    SMALL_AMOUNT_FIELD_NUMBER: builtins.int
    SMALL_AMOUNT_IN_FIELD_NUMBER: builtins.int
    SMALL_AMOUNT_OUT_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    super_volume: builtins.int
    """净超大单（手）"""
    super_volume_in: builtins.int
    """超大单主动买入（手）"""
    super_volume_out: builtins.int
    """超大单主动卖出（手）"""
    super_amount: builtins.float
    """净超大单（额）"""
    super_amount_in: builtins.float
    """超大单主动买入（额）"""
    super_amount_out: builtins.float
    """超大单主动卖出（额）"""
    big_volume: builtins.int
    """净大单（手）"""
    big_volume_in: builtins.int
    """大单主动买入（手）"""
    big_volume_out: builtins.int
    """大单主动卖出（手）"""
    big_amount: builtins.float
    """净大单（额）"""
    big_amount_in: builtins.float
    """大单主动买入（额）"""
    big_amount_out: builtins.float
    """大单主动卖出（额）"""
    middle_volume: builtins.int
    """净中单（手）"""
    middle_volume_in: builtins.int
    """中单主动买入（手）"""
    middle_volume_out: builtins.int
    """中单主动卖出（手）"""
    middle_amount: builtins.float
    """净中单（额）"""
    middle_amount_in: builtins.float
    """中单主动买入（额）"""
    middle_amount_out: builtins.float
    """中单主动卖出（额）"""
    small_volume: builtins.int
    """净小单（手）"""
    small_volume_in: builtins.int
    """小单主动买入（手）"""
    small_volume_out: builtins.int
    """小单主动卖出（手）"""
    small_amount: builtins.float
    """净小单（手）"""
    small_amount_in: builtins.float
    """小单主动买入（手）"""
    small_amount_out: builtins.float
    """小单主动卖出（手）"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        super_volume: builtins.int = ...,
        super_volume_in: builtins.int = ...,
        super_volume_out: builtins.int = ...,
        super_amount: builtins.float = ...,
        super_amount_in: builtins.float = ...,
        super_amount_out: builtins.float = ...,
        big_volume: builtins.int = ...,
        big_volume_in: builtins.int = ...,
        big_volume_out: builtins.int = ...,
        big_amount: builtins.float = ...,
        big_amount_in: builtins.float = ...,
        big_amount_out: builtins.float = ...,
        middle_volume: builtins.int = ...,
        middle_volume_in: builtins.int = ...,
        middle_volume_out: builtins.int = ...,
        middle_amount: builtins.float = ...,
        middle_amount_in: builtins.float = ...,
        middle_amount_out: builtins.float = ...,
        small_volume: builtins.int = ...,
        small_volume_in: builtins.int = ...,
        small_volume_out: builtins.int = ...,
        small_amount: builtins.float = ...,
        small_amount_in: builtins.float = ...,
        small_amount_out: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["big_amount", b"big_amount", "big_amount_in", b"big_amount_in", "big_amount_out", b"big_amount_out", "big_volume", b"big_volume", "big_volume_in", b"big_volume_in", "big_volume_out", b"big_volume_out", "middle_amount", b"middle_amount", "middle_amount_in", b"middle_amount_in", "middle_amount_out", b"middle_amount_out", "middle_volume", b"middle_volume", "middle_volume_in", b"middle_volume_in", "middle_volume_out", b"middle_volume_out", "small_amount", b"small_amount", "small_amount_in", b"small_amount_in", "small_amount_out", b"small_amount_out", "small_volume", b"small_volume", "small_volume_in", b"small_volume_in", "small_volume_out", b"small_volume_out", "super_amount", b"super_amount", "super_amount_in", b"super_amount_in", "super_amount_out", b"super_amount_out", "super_volume", b"super_volume", "super_volume_in", b"super_volume_in", "super_volume_out", b"super_volume_out", "timestamp", b"timestamp"]) -> None: ...

global___StockCapitalFlowData = StockCapitalFlowData

@typing.final
class FuturePositionBillboardData(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    期货消息定义
    //////////////////////////////////////////////////////////////////////////////

    期货持仓龙虎数据
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    NAME_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    DIRECTION_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    AVERAGE_FIELD_NUMBER: builtins.int
    PROFIT_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_NAME_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    name: builtins.str
    """公司名称"""
    direction: global___LongShortDirection.ValueType
    """多空标志"""
    open_interest: builtins.int
    """持仓量"""
    change: builtins.float
    """增减"""
    average: builtins.float
    """均价"""
    profit: builtins.float
    """盈亏"""
    product_code: builtins.str
    """产品代码"""
    product_name: builtins.str
    """产品名称"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        name: builtins.str = ...,
        key: global___CommodityKey | None = ...,
        direction: global___LongShortDirection.ValueType = ...,
        open_interest: builtins.int = ...,
        change: builtins.float = ...,
        average: builtins.float = ...,
        profit: builtins.float = ...,
        product_code: builtins.str = ...,
        product_name: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["average", b"average", "change", b"change", "direction", b"direction", "key", b"key", "name", b"name", "open_interest", b"open_interest", "product_code", b"product_code", "product_name", b"product_name", "profit", b"profit", "timestamp", b"timestamp"]) -> None: ...

global___FuturePositionBillboardData = FuturePositionBillboardData

@typing.final
class FutureWarrantInventoryData(google.protobuf.message.Message):
    """期货仓单库存数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TIMESTAMP_FIELD_NUMBER: builtins.int
    INVENTORY_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """时间戳"""
    inventory: builtins.float
    """库存"""
    change: builtins.float
    """增减"""
    def __init__(
        self,
        *,
        timestamp: builtins.int = ...,
        inventory: builtins.float = ...,
        change: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["change", b"change", "inventory", b"inventory", "timestamp", b"timestamp"]) -> None: ...

global___FutureWarrantInventoryData = FutureWarrantInventoryData

@typing.final
class FutureCapitalFlowData(google.protobuf.message.Message):
    """期货资金流向数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_NAME_FIELD_NUMBER: builtins.int
    CAPITAL_FLOW_FIELD_NUMBER: builtins.int
    CAPITAL_RATE_FIELD_NUMBER: builtins.int
    CAPITAL_AMOUNT_FIELD_NUMBER: builtins.int
    TREND_RATE_FIELD_NUMBER: builtins.int
    SPECULATION_RATE_FIELD_NUMBER: builtins.int
    AMPLITUDE_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    product_code: builtins.str
    """产品代码"""
    product_name: builtins.str
    """产品名称"""
    capital_flow: builtins.float
    """资金流向"""
    capital_rate: builtins.float
    """资金流入/流出比例"""
    capital_amount: builtins.float
    """资金沉淀"""
    trend_rate: builtins.float
    """趋势度"""
    speculation_rate: builtins.float
    """投机度"""
    amplitude: builtins.float
    """振幅"""
    turnover: builtins.float
    """成交额"""
    def __init__(
        self,
        *,
        product_code: builtins.str = ...,
        product_name: builtins.str = ...,
        capital_flow: builtins.float = ...,
        capital_rate: builtins.float = ...,
        capital_amount: builtins.float = ...,
        trend_rate: builtins.float = ...,
        speculation_rate: builtins.float = ...,
        amplitude: builtins.float = ...,
        turnover: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["amplitude", b"amplitude", "capital_amount", b"capital_amount", "capital_flow", b"capital_flow", "capital_rate", b"capital_rate", "product_code", b"product_code", "product_name", b"product_name", "speculation_rate", b"speculation_rate", "trend_rate", b"trend_rate", "turnover", b"turnover"]) -> None: ...

global___FutureCapitalFlowData = FutureCapitalFlowData

@typing.final
class FutureProductInfoData(google.protobuf.message.Message):
    """期货产品信息数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    EXCHANGE_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_NAME_FIELD_NUMBER: builtins.int
    NIGHT_TRADING_FIELD_NUMBER: builtins.int
    IS_SPREAD_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    exchange_code: builtins.str
    """交易所代码"""
    product_code: builtins.str
    """期货产品代码"""
    product_name: builtins.str
    """期货产品名称"""
    night_trading: builtins.bool
    """是否有夜盘"""
    is_spread: builtins.bool
    """是否套利产品"""
    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        exchange_code: builtins.str = ...,
        product_code: builtins.str = ...,
        product_name: builtins.str = ...,
        night_trading: builtins.bool = ...,
        is_spread: builtins.bool = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "exchange_code", b"exchange_code", "is_spread", b"is_spread", "night_trading", b"night_trading", "product_code", b"product_code", "product_name", b"product_name"]) -> None: ...

global___FutureProductInfoData = FutureProductInfoData

@typing.final
class OptionMonthInfoData(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    期权消息定义
    //////////////////////////////////////////////////////////////////////////////

    期权月份信息数据
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    MONTH_FIELD_NUMBER: builtins.int
    REMAINING_DAY_COUNT_FIELD_NUMBER: builtins.int
    UNDERLYING_COMMODITY_KEY_FIELD_NUMBER: builtins.int
    RELATED_COMMODITY_KEY_FIELD_NUMBER: builtins.int
    EXPIRE_DATE_FIELD_NUMBER: builtins.int
    month: builtins.int
    """期权月份"""
    remaining_day_count: builtins.int
    """剩余天数"""
    expire_date: builtins.int
    """到期日（YYYYMMDD）"""
    @property
    def underlying_commodity_key(self) -> global___CommodityKey:
        """基础商品键值"""

    @property
    def related_commodity_key(self) -> global___CommodityKey:
        """关联商品键值"""

    def __init__(
        self,
        *,
        month: builtins.int = ...,
        remaining_day_count: builtins.int = ...,
        underlying_commodity_key: global___CommodityKey | None = ...,
        related_commodity_key: global___CommodityKey | None = ...,
        expire_date: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["related_commodity_key", b"related_commodity_key", "underlying_commodity_key", b"underlying_commodity_key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["expire_date", b"expire_date", "month", b"month", "related_commodity_key", b"related_commodity_key", "remaining_day_count", b"remaining_day_count", "underlying_commodity_key", b"underlying_commodity_key"]) -> None: ...

global___OptionMonthInfoData = OptionMonthInfoData

@typing.final
class OptionProductInfoData(google.protobuf.message.Message):
    """期权产品信息数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_NAME_FIELD_NUMBER: builtins.int
    MONTHS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    product_code: builtins.str
    """期权产品代码"""
    product_name: builtins.str
    """期权产品名称"""
    @property
    def months(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OptionMonthInfoData]:
        """期权月份"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        product_code: builtins.str = ...,
        product_name: builtins.str = ...,
        months: collections.abc.Iterable[global___OptionMonthInfoData] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "months", b"months", "product_code", b"product_code", "product_name", b"product_name"]) -> None: ...

global___OptionProductInfoData = OptionProductInfoData

@typing.final
class OptionProfitChartData(google.protobuf.message.Message):
    """期权盈亏分析图数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    PRICE_FIELD_NUMBER: builtins.int
    PROFIT_FIELD_NUMBER: builtins.int
    PROFIT_PERCENT_FIELD_NUMBER: builtins.int
    price: builtins.float
    """价格"""
    profit: builtins.float
    """收益"""
    profit_percent: builtins.float
    """收益率（%）"""
    def __init__(
        self,
        *,
        price: builtins.float = ...,
        profit: builtins.float = ...,
        profit_percent: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["price", b"price", "profit", b"profit", "profit_percent", b"profit_percent"]) -> None: ...

global___OptionProfitChartData = OptionProfitChartData

@typing.final
class GetCommodityInfoRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取商品信息
    //////////////////////////////////////////////////////////////////////////////

    取商品信息（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    KEYS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    timestamp: builtins.int
    """本地商品信息时间戳"""
    @property
    def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityKey]:
        """商品键值（可选，只返回指定的商品数据）"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        timestamp: builtins.int = ...,
        keys: collections.abc.Iterable[global___CommodityKey] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "keys", b"keys", "timestamp", b"timestamp"]) -> None: ...

global___GetCommodityInfoRequest = GetCommodityInfoRequest

@typing.final
class GetCommodityInfoResponse(google.protobuf.message.Message):
    """取商品信息（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    CATEGORY_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    INFOS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    timestamp: builtins.int
    """商品信息时间戳"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityInfo]:
        """商品信息列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        category: global___MarketCategory.ValueType = ...,
        timestamp: builtins.int = ...,
        infos: collections.abc.Iterable[global___CommodityInfo] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "infos", b"infos", "response_info", b"response_info", "timestamp", b"timestamp"]) -> None: ...

global___GetCommodityInfoResponse = GetCommodityInfoResponse

@typing.final
class GetCommodityListRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取商品列表
    //////////////////////////////////////////////////////////////////////////////

    取商品列表（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    FIELDS_FIELD_NUMBER: builtins.int
    SORT_BY_FIELD_NUMBER: builtins.int
    SORT_DIRECTION_FIELD_NUMBER: builtins.int
    START_POS_FIELD_NUMBER: builtins.int
    END_POS_FIELD_NUMBER: builtins.int
    RETURN_TOTAL_COUNT_FIELD_NUMBER: builtins.int
    KEYWORDS_FIELD_NUMBER: builtins.int
    KEYS_FIELD_NUMBER: builtins.int
    EXCHANGE_CODES_FIELD_NUMBER: builtins.int
    INDEX_KEY_FIELD_NUMBER: builtins.int
    NIGHT_TRADINGS_FIELD_NUMBER: builtins.int
    STOCK_TYPES_FIELD_NUMBER: builtins.int
    NQ_TRANSFER_TYPES_FIELD_NUMBER: builtins.int
    FUTURE_TYPES_FIELD_NUMBER: builtins.int
    PRODUCT_CODES_FIELD_NUMBER: builtins.int
    MAIN_TYPES_FIELD_NUMBER: builtins.int
    OPTION_MONTHS_FIELD_NUMBER: builtins.int
    CALL_PUT_TYPES_FIELD_NUMBER: builtins.int
    EXTRA_FILTER_TYPES_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    sort_by: global___CommodityListField.ValueType
    """排序字段"""
    sort_direction: global___SortDirection.ValueType
    """排序方向"""
    start_pos: builtins.int
    """开始位置（从0开始，包含）"""
    end_pos: builtins.int
    """结束位置（从0开始，不包含）（可选，不指定时返回从指定开始位置之后的所有数据）"""
    return_total_count: builtins.bool
    """是否需要返回数据总数（可选）"""
    @property
    def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityListField.ValueType]:
        """字段列表"""

    @property
    def keywords(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """过滤条件：查询关键字（可选，在商品显示代码、商品名称、商品拼音简称中匹配）"""

    @property
    def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityKey]:
        """过滤条件：商品键值（可选）"""

    @property
    def exchange_codes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """过滤条件：交易所代码（可选）"""

    @property
    def index_key(self) -> global___CommodityKey:
        """过滤条件：所属指数/板块键值（可选）"""

    @property
    def night_tradings(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]:
        """过滤条件：是否有夜盘（可选）"""

    @property
    def stock_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___StockType.ValueType]:
        """过滤条件：股票类型（可选，股票专有）"""

    @property
    def nq_transfer_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """过滤条件：新三板证券转让类型（可选，股票专有）
        每一个过滤条件包含二个字母
        第一位字母表示转让类型 T:协议转让 M:做市转让 B:集合竞价+连续竞价转让 C:集合竞价转让 O:其它转让 *:全部匹配
        第二位字母表示分层类型 B:基础层 I:创新层 C:精选层 O:其它层 *:全部匹配
        示例：["C*", "MI", "*B"]  集合竞价@所有层 + 做市转让@创新层 + 所有转让@基础层
        """

    @property
    def future_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___FutureType.ValueType]:
        """过滤条件：期货类型（可选，期货专有）"""

    @property
    def product_codes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """过滤条件：产品代码（可选，期货、期权专有）"""

    @property
    def main_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___FutureMainType.ValueType]:
        """过滤条件：主力合约类型（可选，期货专有）"""

    @property
    def option_months(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """过滤条件：期权月份（YYYYMM）（可选，期权专有）"""

    @property
    def call_put_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___OptionCallPutType.ValueType]:
        """过滤条件：期权认购认估类型（可选，期权专有）"""

    @property
    def extra_filter_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityFilterType.ValueType]:
        """过滤条件：扩展过滤类型（可选）"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        fields: collections.abc.Iterable[global___CommodityListField.ValueType] | None = ...,
        sort_by: global___CommodityListField.ValueType = ...,
        sort_direction: global___SortDirection.ValueType = ...,
        start_pos: builtins.int = ...,
        end_pos: builtins.int = ...,
        return_total_count: builtins.bool = ...,
        keywords: collections.abc.Iterable[builtins.str] | None = ...,
        keys: collections.abc.Iterable[global___CommodityKey] | None = ...,
        exchange_codes: collections.abc.Iterable[builtins.str] | None = ...,
        index_key: global___CommodityKey | None = ...,
        night_tradings: collections.abc.Iterable[builtins.bool] | None = ...,
        stock_types: collections.abc.Iterable[global___StockType.ValueType] | None = ...,
        nq_transfer_types: collections.abc.Iterable[builtins.str] | None = ...,
        future_types: collections.abc.Iterable[global___FutureType.ValueType] | None = ...,
        product_codes: collections.abc.Iterable[builtins.str] | None = ...,
        main_types: collections.abc.Iterable[global___FutureMainType.ValueType] | None = ...,
        option_months: collections.abc.Iterable[builtins.int] | None = ...,
        call_put_types: collections.abc.Iterable[global___OptionCallPutType.ValueType] | None = ...,
        extra_filter_types: collections.abc.Iterable[global___CommodityFilterType.ValueType] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["index_key", b"index_key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["call_put_types", b"call_put_types", "category", b"category", "end_pos", b"end_pos", "exchange_codes", b"exchange_codes", "extra_filter_types", b"extra_filter_types", "fields", b"fields", "future_types", b"future_types", "index_key", b"index_key", "keys", b"keys", "keywords", b"keywords", "main_types", b"main_types", "night_tradings", b"night_tradings", "nq_transfer_types", b"nq_transfer_types", "option_months", b"option_months", "product_codes", b"product_codes", "return_total_count", b"return_total_count", "sort_by", b"sort_by", "sort_direction", b"sort_direction", "start_pos", b"start_pos", "stock_types", b"stock_types"]) -> None: ...

global___GetCommodityListRequest = GetCommodityListRequest

@typing.final
class GetCommodityListResponse(google.protobuf.message.Message):
    """取商品列表（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    CATEGORY_FIELD_NUMBER: builtins.int
    FIELDS_FIELD_NUMBER: builtins.int
    SORT_BY_FIELD_NUMBER: builtins.int
    SORT_DIRECTION_FIELD_NUMBER: builtins.int
    START_POS_FIELD_NUMBER: builtins.int
    END_POS_FIELD_NUMBER: builtins.int
    TOTAL_COUNT_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类（请求参数）"""
    sort_by: global___CommodityListField.ValueType
    """排序字段（请求参数）"""
    sort_direction: global___SortDirection.ValueType
    """排序方向（请求参数）"""
    start_pos: builtins.int
    """开始位置（请求参数）"""
    end_pos: builtins.int
    """结束位置（请求参数）"""
    total_count: builtins.int
    """数据总数（请求参数需要返回数据总数时有值）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityListField.ValueType]:
        """字段列表（请求参数）"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityListItem]:
        """数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        category: global___MarketCategory.ValueType = ...,
        fields: collections.abc.Iterable[global___CommodityListField.ValueType] | None = ...,
        sort_by: global___CommodityListField.ValueType = ...,
        sort_direction: global___SortDirection.ValueType = ...,
        start_pos: builtins.int = ...,
        end_pos: builtins.int = ...,
        total_count: builtins.int = ...,
        items: collections.abc.Iterable[global___CommodityListItem] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "end_pos", b"end_pos", "fields", b"fields", "items", b"items", "response_info", b"response_info", "sort_by", b"sort_by", "sort_direction", b"sort_direction", "start_pos", b"start_pos", "total_count", b"total_count"]) -> None: ...

global___GetCommodityListResponse = GetCommodityListResponse

@typing.final
class GetCandleDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取商品K线数据
    //////////////////////////////////////////////////////////////////////////////

    取商品K线数据（请求消息）

    数量最小值为1，最大值为5000

    开始时间戳、结束时间戳、数量组合使用说明：
    不指定参数：取最新100条数据
    数量（N）：取最新N条数据
    开始时间戳：取开始时间戳之后（包含）的100条数据
    结束时间戳：取结束时间戳之前（包含）的100条数据
    开始时间戳 + 数量（N）：取开始时间戳之后（包含）的N条数据
    结束时间戳 + 数量（N）：取结束时间戳之前（包含）的N条数据
    开始时间戳 + 结束时间戳：取开始结束时间戳之间（包含）的数据，从结束时间戳向前最多返回5000条数据
    开始时间戳 + 结束时间戳 + 数量（N）：取开始结束时间戳之间（包含）的数据，从结束时间戳向前最多返回N条数据

    返回结果按时间戳升序排列
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    PERIOD_FIELD_NUMBER: builtins.int
    ADJUST_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    PERIOD_MULTIPLE_FIELD_NUMBER: builtins.int
    CANDLE_ALIGN_TYPE_FIELD_NUMBER: builtins.int
    period: global___CandlePeriod.ValueType
    """周期"""
    adjust: global___CandleAdjustType.ValueType
    """复权类型（股票专用）（可选）"""
    begin_timestamp: builtins.int
    """开始时间戳（可选）"""
    end_timestamp: builtins.int
    """结束时间戳（可选）"""
    count: builtins.int
    """数量（可选）"""
    period_multiple: builtins.int
    """周期乘数（可选）"""
    candle_align_type: global___CandleAlignType.ValueType
    """K线对齐类型"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        period: global___CandlePeriod.ValueType = ...,
        adjust: global___CandleAdjustType.ValueType = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
        period_multiple: builtins.int = ...,
        candle_align_type: global___CandleAlignType.ValueType = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["adjust", b"adjust", "begin_timestamp", b"begin_timestamp", "candle_align_type", b"candle_align_type", "count", b"count", "end_timestamp", b"end_timestamp", "key", b"key", "period", b"period", "period_multiple", b"period_multiple"]) -> None: ...

global___GetCandleDataRequest = GetCandleDataRequest

@typing.final
class GetCandleDataResponse(google.protobuf.message.Message):
    """取商品K线数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    PERIOD_FIELD_NUMBER: builtins.int
    ADJUST_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    CANDLES_FIELD_NUMBER: builtins.int
    BASE_PRICE_FIELD_NUMBER: builtins.int
    BASE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    period: global___CandlePeriod.ValueType
    """周期"""
    adjust: global___CandleAdjustType.ValueType
    """复权类型（股票专用）（请求参数）"""
    begin_timestamp: builtins.int
    """开始时间戳（请求参数）"""
    end_timestamp: builtins.int
    """结束时间戳（请求参数）"""
    count: builtins.int
    """数量（请求参数）"""
    base_price: builtins.float
    """基准价格"""
    base_settlement_price: builtins.float
    """基准结算价格（期货专有）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def candles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityCandleData]:
        """K线列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        period: global___CandlePeriod.ValueType = ...,
        adjust: global___CandleAdjustType.ValueType = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
        candles: collections.abc.Iterable[global___CommodityCandleData] | None = ...,
        base_price: builtins.float = ...,
        base_settlement_price: builtins.float = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["adjust", b"adjust", "base_price", b"base_price", "base_settlement_price", b"base_settlement_price", "begin_timestamp", b"begin_timestamp", "candles", b"candles", "count", b"count", "end_timestamp", b"end_timestamp", "key", b"key", "period", b"period", "response_info", b"response_info"]) -> None: ...

global___GetCandleDataResponse = GetCandleDataResponse

@typing.final
class GetCandleDataResponse2(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    PERIOD_FIELD_NUMBER: builtins.int
    ADJUST_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    CANDLES_FIELD_NUMBER: builtins.int
    BASE_PRICE_FIELD_NUMBER: builtins.int
    BASE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    period: global___CandlePeriod.ValueType
    """周期"""
    adjust: global___CandleAdjustType.ValueType
    """复权类型（股票专用）（请求参数）"""
    begin_timestamp: builtins.int
    """开始时间戳（请求参数）"""
    end_timestamp: builtins.int
    """结束时间戳（请求参数）"""
    count: builtins.int
    """数量（请求参数）"""
    base_price: builtins.int
    """基准价格"""
    base_settlement_price: builtins.int
    """基准结算价格（期货专有）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def candles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityCandleData2]:
        """K线列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        period: global___CandlePeriod.ValueType = ...,
        adjust: global___CandleAdjustType.ValueType = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
        candles: collections.abc.Iterable[global___CommodityCandleData2] | None = ...,
        base_price: builtins.int = ...,
        base_settlement_price: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["adjust", b"adjust", "base_price", b"base_price", "base_settlement_price", b"base_settlement_price", "begin_timestamp", b"begin_timestamp", "candles", b"candles", "count", b"count", "end_timestamp", b"end_timestamp", "key", b"key", "period", b"period", "response_info", b"response_info"]) -> None: ...

global___GetCandleDataResponse2 = GetCandleDataResponse2

@typing.final
class GetMinuteDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取商品分时数据
    //////////////////////////////////////////////////////////////////////////////

    取商品分时数据（请求消息）

    日期：默认为最后交易日
    天数：指定日期之前（包含）的天数，默认为1天，最大10天
    开始时间戳：如果指定开始时间戳，只返回开始时间戳之后（包含）的数据
    结束时间戳：如果指定结束时间戳，只返回结束时间戳之前（包含）的数据

    返回结果按时间戳升序排列
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    DATE_FIELD_NUMBER: builtins.int
    DAY_COUNT_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    INCLUDE_CALL_AUCTION_FIELD_NUMBER: builtins.int
    CANDLE_ALIGN_TYPE_FIELD_NUMBER: builtins.int
    date: builtins.int
    """日期（YYYYMMDD）（可选）"""
    day_count: builtins.int
    """天数（可选）"""
    begin_timestamp: builtins.int
    """开始时间戳（可选）"""
    end_timestamp: builtins.int
    """结束时间戳（可选）"""
    include_call_auction: builtins.bool
    """包含集合竞价数据（可选）"""
    candle_align_type: global___CandleAlignType.ValueType
    """K线对齐类型"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        date: builtins.int = ...,
        day_count: builtins.int = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        include_call_auction: builtins.bool = ...,
        candle_align_type: global___CandleAlignType.ValueType = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "candle_align_type", b"candle_align_type", "date", b"date", "day_count", b"day_count", "end_timestamp", b"end_timestamp", "include_call_auction", b"include_call_auction", "key", b"key"]) -> None: ...

global___GetMinuteDataRequest = GetMinuteDataRequest

@typing.final
class GetMinuteDataResponse(google.protobuf.message.Message):
    """取商品分时数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    DATE_FIELD_NUMBER: builtins.int
    DAY_COUNT_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    MINUTES_FIELD_NUMBER: builtins.int
    CALL_AUCTION_MINUTES_FIELD_NUMBER: builtins.int
    date: builtins.int
    """日期（YYYYMMDD）"""
    day_count: builtins.int
    """天数（请求参数）"""
    begin_timestamp: builtins.int
    """开始时间戳（请求参数）"""
    end_timestamp: builtins.int
    """结束时间戳（请求参数）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def minutes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityMinuteData]:
        """分时数据列表"""

    @property
    def call_auction_minutes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityMinuteData]:
        """集合竞价分时数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        date: builtins.int = ...,
        day_count: builtins.int = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        minutes: collections.abc.Iterable[global___CommodityMinuteData] | None = ...,
        call_auction_minutes: collections.abc.Iterable[global___CommodityMinuteData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "call_auction_minutes", b"call_auction_minutes", "date", b"date", "day_count", b"day_count", "end_timestamp", b"end_timestamp", "key", b"key", "minutes", b"minutes", "response_info", b"response_info"]) -> None: ...

global___GetMinuteDataResponse = GetMinuteDataResponse

@typing.final
class GetMinuteDataResponse2(google.protobuf.message.Message):
    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    DATE_FIELD_NUMBER: builtins.int
    DAY_COUNT_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    MINUTES_FIELD_NUMBER: builtins.int
    CALL_AUCTION_MINUTES_FIELD_NUMBER: builtins.int
    date: builtins.int
    """日期（YYYYMMDD）"""
    day_count: builtins.int
    """天数（请求参数）"""
    begin_timestamp: builtins.int
    """开始时间戳（请求参数）"""
    end_timestamp: builtins.int
    """结束时间戳（请求参数）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def minutes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityMinuteData2]:
        """分时数据列表"""

    @property
    def call_auction_minutes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityMinuteData2]:
        """集合竞价分时数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        date: builtins.int = ...,
        day_count: builtins.int = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        minutes: collections.abc.Iterable[global___CommodityMinuteData2] | None = ...,
        call_auction_minutes: collections.abc.Iterable[global___CommodityMinuteData2] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "call_auction_minutes", b"call_auction_minutes", "date", b"date", "day_count", b"day_count", "end_timestamp", b"end_timestamp", "key", b"key", "minutes", b"minutes", "response_info", b"response_info"]) -> None: ...

global___GetMinuteDataResponse2 = GetMinuteDataResponse2

@typing.final
class GetTradeDetailDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取商品成交明细数据
    //////////////////////////////////////////////////////////////////////////////

    取商品成交明细数据（请求消息）

    数量最小值为1，最大值为5000

    开始时间戳、结束时间戳、数量组合使用说明：
    不指定参数：取最新100条数据
    数量（N）：取最新N条数据
    开始时间戳：取开始时间戳之后（包含）的100条数据
    结束时间戳：取结束时间戳之前（包含）的100条数据
    开始时间戳 + 数量（N）：取开始时间戳之后（包含）的N条数据
    结束时间戳 + 数量（N）：取结束时间戳之前（包含）的N条数据
    开始时间戳 + 结束时间戳：取开始结束时间戳之间（包含）的数据，从结束时间戳向前最多返回5000条数据
    开始时间戳 + 结束时间戳 + 数量（N）：取开始结束时间戳之间（包含）的数据，从结束时间戳向前最多返回N条数据

    返回结果按时间戳升序排列
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    begin_timestamp: builtins.int
    """开始时间戳（可选）"""
    end_timestamp: builtins.int
    """结束时间戳（可选）"""
    count: builtins.int
    """数量（可选）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "count", b"count", "end_timestamp", b"end_timestamp", "key", b"key"]) -> None: ...

global___GetTradeDetailDataRequest = GetTradeDetailDataRequest

@typing.final
class GetTradeDetailDataResponse(google.protobuf.message.Message):
    """取商品成交明细数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    TRADE_DETAILS_FIELD_NUMBER: builtins.int
    begin_timestamp: builtins.int
    """开始时间戳（请求参数）"""
    end_timestamp: builtins.int
    """结束时间戳（请求参数）"""
    count: builtins.int
    """数量（请求参数）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def trade_details(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityTradeDetailData]:
        """成交明细数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
        trade_details: collections.abc.Iterable[global___CommodityTradeDetailData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "count", b"count", "end_timestamp", b"end_timestamp", "key", b"key", "response_info", b"response_info", "trade_details", b"trade_details"]) -> None: ...

global___GetTradeDetailDataResponse = GetTradeDetailDataResponse

@typing.final
class GetPriceVolumeDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取商品量价分布数据
    //////////////////////////////////////////////////////////////////////////////

    取商品量价分布数据（请求消息）

    日期：默认为最后交易日，取当日所有数据计算
    开始时间戳：如果指定开始时间戳，只取开始时间戳之后（包含）的数据计算
    结束时间戳：如果指定结束时间戳，只取结束时间戳之前（包含）的数据计算

    返回结果按价格升序排列
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    DATE_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    date: builtins.int
    """日期（YYYYMMDD）（可选）"""
    begin_timestamp: builtins.int
    """开始时间戳（可选）"""
    end_timestamp: builtins.int
    """结束时间戳（可选）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        date: builtins.int = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "date", b"date", "end_timestamp", b"end_timestamp", "key", b"key"]) -> None: ...

global___GetPriceVolumeDataRequest = GetPriceVolumeDataRequest

@typing.final
class GetPriceVolumeDataResponse(google.protobuf.message.Message):
    """取商品量价分布数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    DATE_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    date: builtins.int
    """日期（YYYYMMDD）"""
    begin_timestamp: builtins.int
    """开始时间戳"""
    end_timestamp: builtins.int
    """结束时间戳"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityPriceVolumeData]:
        """量价分布数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        date: builtins.int = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        items: collections.abc.Iterable[global___CommodityPriceVolumeData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "date", b"date", "end_timestamp", b"end_timestamp", "items", b"items", "key", b"key", "response_info", b"response_info"]) -> None: ...

global___GetPriceVolumeDataResponse = GetPriceVolumeDataResponse

@typing.final
class SearchCommodityRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    检索商品
    //////////////////////////////////////////////////////////////////////////////

    检索商品（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORIES_FIELD_NUMBER: builtins.int
    KEYWORD_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    STOCK_TYPES_FIELD_NUMBER: builtins.int
    FUTURE_TYPES_FIELD_NUMBER: builtins.int
    START_POS_FIELD_NUMBER: builtins.int
    IGNORE_DUPLICATED_CODE_FIELD_NUMBER: builtins.int
    keyword: builtins.str
    """查询关键字（在商品显示代码、商品名称、商品拼音简称中匹配）"""
    count: builtins.int
    """数量"""
    start_pos: builtins.int
    """开始位置（可选，从0开始，包含）"""
    ignore_duplicated_code: builtins.bool
    """是否沪港通深港通代码去重（沪港通深港通股票专有）"""
    @property
    def categories(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___MarketCategory.ValueType]:
        """市场分类"""

    @property
    def stock_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___StockType.ValueType]:
        """过滤条件：股票类型（可选，股票专有）"""

    @property
    def future_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___FutureType.ValueType]:
        """过滤条件：期货类型（可选，期货专有）"""

    def __init__(
        self,
        *,
        categories: collections.abc.Iterable[global___MarketCategory.ValueType] | None = ...,
        keyword: builtins.str = ...,
        count: builtins.int = ...,
        stock_types: collections.abc.Iterable[global___StockType.ValueType] | None = ...,
        future_types: collections.abc.Iterable[global___FutureType.ValueType] | None = ...,
        start_pos: builtins.int = ...,
        ignore_duplicated_code: builtins.bool = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["categories", b"categories", "count", b"count", "future_types", b"future_types", "ignore_duplicated_code", b"ignore_duplicated_code", "keyword", b"keyword", "start_pos", b"start_pos", "stock_types", b"stock_types"]) -> None: ...

global___SearchCommodityRequest = SearchCommodityRequest

@typing.final
class SearchCommodityResponse(google.protobuf.message.Message):
    """检索商品（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SearchCommodityData]:
        """检索商品数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___SearchCommodityData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___SearchCommodityResponse = SearchCommodityResponse

@typing.final
class GetCustomCommodityListRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取自选商品列表
    //////////////////////////////////////////////////////////////////////////////

    取自选商品列表（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEYS_FIELD_NUMBER: builtins.int
    FIELDS_FIELD_NUMBER: builtins.int
    SORT_BY_FIELD_NUMBER: builtins.int
    SORT_DIRECTION_FIELD_NUMBER: builtins.int
    START_POS_FIELD_NUMBER: builtins.int
    END_POS_FIELD_NUMBER: builtins.int
    sort_by: global___CommodityListField.ValueType
    """排序字段（可选）"""
    sort_direction: global___SortDirection.ValueType
    """排序方向（可选）"""
    start_pos: builtins.int
    """开始位置（从0开始，包含）"""
    end_pos: builtins.int
    """结束位置（从0开始，不包含）（可选，不指定时返回从指定开始位置之后的所有数据）"""
    @property
    def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityKey]:
        """商品键值"""

    @property
    def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityListField.ValueType]:
        """字段列表"""

    def __init__(
        self,
        *,
        keys: collections.abc.Iterable[global___CommodityKey] | None = ...,
        fields: collections.abc.Iterable[global___CommodityListField.ValueType] | None = ...,
        sort_by: global___CommodityListField.ValueType = ...,
        sort_direction: global___SortDirection.ValueType = ...,
        start_pos: builtins.int = ...,
        end_pos: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["end_pos", b"end_pos", "fields", b"fields", "keys", b"keys", "sort_by", b"sort_by", "sort_direction", b"sort_direction", "start_pos", b"start_pos"]) -> None: ...

global___GetCustomCommodityListRequest = GetCustomCommodityListRequest

@typing.final
class GetCustomCommodityListResponse(google.protobuf.message.Message):
    """取自选商品列表（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    FIELDS_FIELD_NUMBER: builtins.int
    SORT_BY_FIELD_NUMBER: builtins.int
    SORT_DIRECTION_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    START_POS_FIELD_NUMBER: builtins.int
    END_POS_FIELD_NUMBER: builtins.int
    sort_by: global___CommodityListField.ValueType
    """排序字段（请求参数）"""
    sort_direction: global___SortDirection.ValueType
    """排序方向（请求参数）"""
    start_pos: builtins.int
    """开始位置（请求参数）"""
    end_pos: builtins.int
    """结束位置（请求参数）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityListField.ValueType]:
        """字段列表（请求参数）"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityListItem]:
        """数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        fields: collections.abc.Iterable[global___CommodityListField.ValueType] | None = ...,
        sort_by: global___CommodityListField.ValueType = ...,
        sort_direction: global___SortDirection.ValueType = ...,
        items: collections.abc.Iterable[global___CommodityListItem] | None = ...,
        start_pos: builtins.int = ...,
        end_pos: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["end_pos", b"end_pos", "fields", b"fields", "items", b"items", "response_info", b"response_info", "sort_by", b"sort_by", "sort_direction", b"sort_direction", "start_pos", b"start_pos"]) -> None: ...

global___GetCustomCommodityListResponse = GetCustomCommodityListResponse

@typing.final
class GetMultiMarketCommodityInfoRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取多市场商品信息
    //////////////////////////////////////////////////////////////////////////////

    取多市场商品信息（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetMultiMarketCommodityInfoRequestItem]:
        """请求项目"""

    def __init__(
        self,
        *,
        items: collections.abc.Iterable[global___GetMultiMarketCommodityInfoRequestItem] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ...

global___GetMultiMarketCommodityInfoRequest = GetMultiMarketCommodityInfoRequest

@typing.final
class GetMultiMarketCommodityInfoResponse(google.protobuf.message.Message):
    """取多市场商品信息（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetMultiMarketCommodityInfoResponseItem]:
        """返回项目"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___GetMultiMarketCommodityInfoResponseItem] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___GetMultiMarketCommodityInfoResponse = GetMultiMarketCommodityInfoResponse

@typing.final
class GetMultiCandleDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取多商品K线数据
    //////////////////////////////////////////////////////////////////////////////

    取多商品K线数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    REQUESTS_FIELD_NUMBER: builtins.int
    @property
    def requests(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetCandleDataRequest]: ...
    def __init__(
        self,
        *,
        requests: collections.abc.Iterable[global___GetCandleDataRequest] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["requests", b"requests"]) -> None: ...

global___GetMultiCandleDataRequest = GetMultiCandleDataRequest

@typing.final
class GetMultiCandleDataResponse(google.protobuf.message.Message):
    """取多商品K线数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    RESPONSES_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetCandleDataResponse]:
        """取商品K线数据（返回消息）"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        responses: collections.abc.Iterable[global___GetCandleDataResponse] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["response_info", b"response_info", "responses", b"responses"]) -> None: ...

global___GetMultiCandleDataResponse = GetMultiCandleDataResponse

@typing.final
class GetMarketSummaryRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取市场概览
    //////////////////////////////////////////////////////////////////////////////

    取市场概览（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category"]) -> None: ...

global___GetMarketSummaryRequest = GetMarketSummaryRequest

@typing.final
class GetMarketSummaryResponse(google.protobuf.message.Message):
    """取市场概览（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    CATEGORY_FIELD_NUMBER: builtins.int
    COUNTS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def counts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """计数列表数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        category: global___MarketCategory.ValueType = ...,
        counts: collections.abc.Iterable[builtins.int] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "counts", b"counts", "response_info", b"response_info"]) -> None: ...

global___GetMarketSummaryResponse = GetMarketSummaryResponse

@typing.final
class GetStockCapitalFlowDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取股票资金流向数据
    //////////////////////////////////////////////////////////////////////////////

    取股票资金流向数据（请求消息）

    数量最小值为1，最大值为5000

    开始时间戳、结束时间戳、数量组合使用说明：
    不指定参数：取最新100条数据
    数量（N）：取最新N条数据
    开始时间戳：取开始时间戳之后（包含）的100条数据
    结束时间戳：取结束时间戳之前（包含）的100条数据
    开始时间戳 + 数量（N）：取开始时间戳之后（包含）的N条数据
    结束时间戳 + 数量（N）：取结束时间戳之前（包含）的N条数据
    开始时间戳 + 结束时间戳：取开始结束时间戳之间（包含）的数据，从结束时间戳向前最多返回5000条数据
    开始时间戳 + 结束时间戳 + 数量（N）：取开始结束时间戳之间（包含）的数据，从结束时间戳向前最多返回N条数据

    返回结果按时间戳升序排列
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    begin_timestamp: builtins.int
    """开始时间戳（可选）"""
    end_timestamp: builtins.int
    """结束时间戳（可选）"""
    count: builtins.int
    """数量（可选）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "count", b"count", "end_timestamp", b"end_timestamp", "key", b"key"]) -> None: ...

global___GetStockCapitalFlowDataRequest = GetStockCapitalFlowDataRequest

@typing.final
class GetStockCapitalFlowDataResponse(google.protobuf.message.Message):
    """取股票资金流向数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    KEY_FIELD_NUMBER: builtins.int
    BEGIN_TIMESTAMP_FIELD_NUMBER: builtins.int
    END_TIMESTAMP_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    begin_timestamp: builtins.int
    """开始时间戳（请求参数）"""
    end_timestamp: builtins.int
    """结束时间戳（请求参数）"""
    count: builtins.int
    """数量（请求参数）"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StockCapitalFlowData]:
        """资金流向数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        key: global___CommodityKey | None = ...,
        begin_timestamp: builtins.int = ...,
        end_timestamp: builtins.int = ...,
        count: builtins.int = ...,
        items: collections.abc.Iterable[global___StockCapitalFlowData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key", "response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["begin_timestamp", b"begin_timestamp", "count", b"count", "end_timestamp", b"end_timestamp", "items", b"items", "key", b"key", "response_info", b"response_info"]) -> None: ...

global___GetStockCapitalFlowDataResponse = GetStockCapitalFlowDataResponse

@typing.final
class GetStockBlockListRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取股票所属板块列表
    //////////////////////////////////////////////////////////////////////////////

    取股票所属板块列表（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    COUNT_FIELD_NUMBER: builtins.int
    count: builtins.int
    """数量（可选）"""
    @property
    def key(self) -> global___CommodityKey:
        """股票商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        count: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["count", b"count", "key", b"key"]) -> None: ...

global___GetStockBlockListRequest = GetStockBlockListRequest

@typing.final
class GetStockBlockListResponse(google.protobuf.message.Message):
    """取股票所属板块列表（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StockBlockListData]:
        """股票所属板块数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___StockBlockListData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___GetStockBlockListResponse = GetStockBlockListResponse

@typing.final
class GetStockBlockRankingRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取股票板块排名
    //////////////////////////////////////////////////////////////////////////////

    取股票板块排名（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    BLOCK_TYPES_FIELD_NUMBER: builtins.int
    FIELDS_FIELD_NUMBER: builtins.int
    SORT_BY_FIELD_NUMBER: builtins.int
    SORT_DIRECTION_FIELD_NUMBER: builtins.int
    BLOCK_COUNT_FIELD_NUMBER: builtins.int
    STOCK_COUNT_FIELD_NUMBER: builtins.int
    BLOCK_START_POS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    sort_by: global___CommodityListField.ValueType
    """排序字段"""
    sort_direction: global___SortDirection.ValueType
    """排序方向"""
    block_count: builtins.int
    """板块数量"""
    stock_count: builtins.int
    """板块所属股票数量"""
    block_start_pos: builtins.int
    """板块开始位置（可选）"""
    @property
    def block_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___StockType.ValueType]:
        """板块类型（可选）"""

    @property
    def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityListField.ValueType]:
        """字段列表"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        block_types: collections.abc.Iterable[global___StockType.ValueType] | None = ...,
        fields: collections.abc.Iterable[global___CommodityListField.ValueType] | None = ...,
        sort_by: global___CommodityListField.ValueType = ...,
        sort_direction: global___SortDirection.ValueType = ...,
        block_count: builtins.int = ...,
        stock_count: builtins.int = ...,
        block_start_pos: builtins.int = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["block_count", b"block_count", "block_start_pos", b"block_start_pos", "block_types", b"block_types", "category", b"category", "fields", b"fields", "sort_by", b"sort_by", "sort_direction", b"sort_direction", "stock_count", b"stock_count"]) -> None: ...

global___GetStockBlockRankingRequest = GetStockBlockRankingRequest

@typing.final
class GetStockBlockRankingResponse(google.protobuf.message.Message):
    """取股票板块排名（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StockBlockRankingData]:
        """板块排名数据列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___StockBlockRankingData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___GetStockBlockRankingResponse = GetStockBlockRankingResponse

@typing.final
class GetMultiStockCapitalFlowDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取多股票资金流向数据
    //////////////////////////////////////////////////////////////////////////////

    取多股票资金流向数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    REQUESTS_FIELD_NUMBER: builtins.int
    @property
    def requests(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetStockCapitalFlowDataRequest]:
        """取股票资金流向数据（请求消息）"""

    def __init__(
        self,
        *,
        requests: collections.abc.Iterable[global___GetStockCapitalFlowDataRequest] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["requests", b"requests"]) -> None: ...

global___GetMultiStockCapitalFlowDataRequest = GetMultiStockCapitalFlowDataRequest

@typing.final
class GetMultiStockCapitalFlowDataResponse(google.protobuf.message.Message):
    """取多股票资金流向数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    RESPONSES_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GetStockCapitalFlowDataResponse]:
        """取股票资金流向数据（返回消息）"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        responses: collections.abc.Iterable[global___GetStockCapitalFlowDataResponse] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["response_info", b"response_info", "responses", b"responses"]) -> None: ...

global___GetMultiStockCapitalFlowDataResponse = GetMultiStockCapitalFlowDataResponse

@typing.final
class GetFuturePositionBillboardRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期货持仓龙虎
    //////////////////////////////////////////////////////////////////////////////

    取期货持仓龙虎（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    EXCHANGE_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    NAME_FIELD_NUMBER: builtins.int
    INCLUDE_HISTORY_FIELD_NUMBER: builtins.int
    exchange_code: builtins.str
    """过滤条件：交易所代码（可选）"""
    product_code: builtins.str
    """过滤条件：产品代码（可选）"""
    name: builtins.str
    """过滤条件：公司名称（可选）"""
    include_history: builtins.bool
    """过滤条件：包括历史数据（可选）"""
    def __init__(
        self,
        *,
        exchange_code: builtins.str = ...,
        product_code: builtins.str = ...,
        name: builtins.str = ...,
        include_history: builtins.bool = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["exchange_code", b"exchange_code", "include_history", b"include_history", "name", b"name", "product_code", b"product_code"]) -> None: ...

global___GetFuturePositionBillboardRequest = GetFuturePositionBillboardRequest

@typing.final
class GetFuturePositionBillboardResponse(google.protobuf.message.Message):
    """取期货持仓龙虎（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FuturePositionBillboardData]:
        """持仓龙虎数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___FuturePositionBillboardData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___GetFuturePositionBillboardResponse = GetFuturePositionBillboardResponse

@typing.final
class GetFutureWarrantInventoryRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期货仓单库存
    //////////////////////////////////////////////////////////////////////////////

    取期货仓单库存（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    EXCHANGE_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    exchange_code: builtins.str
    """交易所代码"""
    product_code: builtins.str
    """产品代码"""
    def __init__(
        self,
        *,
        exchange_code: builtins.str = ...,
        product_code: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["exchange_code", b"exchange_code", "product_code", b"product_code"]) -> None: ...

global___GetFutureWarrantInventoryRequest = GetFutureWarrantInventoryRequest

@typing.final
class GetFutureWarrantInventoryResponse(google.protobuf.message.Message):
    """取期货仓单库存（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    EXCHANGE_CODE_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    UNIT_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    exchange_code: builtins.str
    """交易所代码"""
    product_code: builtins.str
    """产品代码"""
    unit: builtins.str
    """单位"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FutureWarrantInventoryData]:
        """仓单库存数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        exchange_code: builtins.str = ...,
        product_code: builtins.str = ...,
        unit: builtins.str = ...,
        items: collections.abc.Iterable[global___FutureWarrantInventoryData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["exchange_code", b"exchange_code", "items", b"items", "product_code", b"product_code", "response_info", b"response_info", "unit", b"unit"]) -> None: ...

global___GetFutureWarrantInventoryResponse = GetFutureWarrantInventoryResponse

@typing.final
class GetFutureCapitalFlowRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期货资金流向
    //////////////////////////////////////////////////////////////////////////////

    取期货资金流向（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    def __init__(
        self,
    ) -> None: ...

global___GetFutureCapitalFlowRequest = GetFutureCapitalFlowRequest

@typing.final
class GetFutureCapitalFlowResponse(google.protobuf.message.Message):
    """取期货资金流向（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    TIMESTAMP_FIELD_NUMBER: builtins.int
    timestamp: builtins.int
    """更新时间戳"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FutureCapitalFlowData]:
        """资金流向数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___FutureCapitalFlowData] | None = ...,
        timestamp: builtins.int = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info", "timestamp", b"timestamp"]) -> None: ...

global___GetFutureCapitalFlowResponse = GetFutureCapitalFlowResponse

@typing.final
class GetFutureProductListRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期货产品列表
    //////////////////////////////////////////////////////////////////////////////

    取期货产品列表（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORIES_FIELD_NUMBER: builtins.int
    @property
    def categories(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___MarketCategory.ValueType]:
        """市场分类"""

    def __init__(
        self,
        *,
        categories: collections.abc.Iterable[global___MarketCategory.ValueType] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["categories", b"categories"]) -> None: ...

global___GetFutureProductListRequest = GetFutureProductListRequest

@typing.final
class GetFutureProductListResponse(google.protobuf.message.Message):
    """取期货产品列表（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FutureProductInfoData]:
        """期货产品信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___FutureProductInfoData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___GetFutureProductListResponse = GetFutureProductListResponse

@typing.final
class GetFutureBlockDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期货板块数据
    //////////////////////////////////////////////////////////////////////////////

    取期货板块数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    def __init__(
        self,
    ) -> None: ...

global___GetFutureBlockDataRequest = GetFutureBlockDataRequest

@typing.final
class GetFutureBlockDataResponse(google.protobuf.message.Message):
    """取期货板块数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    BLOCK_DATA_FIELD_NUMBER: builtins.int
    block_data: builtins.str
    """期货板块数据"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        block_data: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["block_data", b"block_data", "response_info", b"response_info"]) -> None: ...

global___GetFutureBlockDataResponse = GetFutureBlockDataResponse

@typing.final
class GetOptionMonthListRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期权月份列表
    //////////////////////////////////////////////////////////////////////////////

    取期权月份列表（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    product_code: builtins.str
    """产品代码"""
    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        product_code: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "product_code", b"product_code"]) -> None: ...

global___GetOptionMonthListRequest = GetOptionMonthListRequest

@typing.final
class GetOptionMonthListResponse(google.protobuf.message.Message):
    """取期权月份列表（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    CATEGORY_FIELD_NUMBER: builtins.int
    PRODUCT_CODE_FIELD_NUMBER: builtins.int
    MONTHS_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    product_code: builtins.str
    """产品代码"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def months(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OptionMonthInfoData]:
        """月份列表"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        category: global___MarketCategory.ValueType = ...,
        product_code: builtins.str = ...,
        months: collections.abc.Iterable[global___OptionMonthInfoData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["category", b"category", "months", b"months", "product_code", b"product_code", "response_info", b"response_info"]) -> None: ...

global___GetOptionMonthListResponse = GetOptionMonthListResponse

@typing.final
class GetOptionProductListRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期权产品列表
    //////////////////////////////////////////////////////////////////////////////

    取期权产品列表（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORIES_FIELD_NUMBER: builtins.int
    @property
    def categories(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___MarketCategory.ValueType]:
        """市场分类"""

    def __init__(
        self,
        *,
        categories: collections.abc.Iterable[global___MarketCategory.ValueType] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["categories", b"categories"]) -> None: ...

global___GetOptionProductListRequest = GetOptionProductListRequest

@typing.final
class GetOptionProductListResponse(google.protobuf.message.Message):
    """取期权产品列表（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    ITEMS_FIELD_NUMBER: builtins.int
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OptionProductInfoData]:
        """期权产品信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        items: collections.abc.Iterable[global___OptionProductInfoData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["items", b"items", "response_info", b"response_info"]) -> None: ...

global___GetOptionProductListResponse = GetOptionProductListResponse

@typing.final
class GetOptionProfitChartDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取期权盈亏分析图数据
    //////////////////////////////////////////////////////////////////////////////

    取期权盈亏分析图数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEY_FIELD_NUMBER: builtins.int
    SPLIT_COUNT_FIELD_NUMBER: builtins.int
    SPLIT_PERCENT_FIELD_NUMBER: builtins.int
    split_count: builtins.int
    """上下档位数量"""
    split_percent: builtins.float
    """档位变动百分比（%）"""
    @property
    def key(self) -> global___CommodityKey:
        """商品键值"""

    def __init__(
        self,
        *,
        key: global___CommodityKey | None = ...,
        split_count: builtins.int = ...,
        split_percent: builtins.float = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["key", b"key", "split_count", b"split_count", "split_percent", b"split_percent"]) -> None: ...

global___GetOptionProfitChartDataRequest = GetOptionProfitChartDataRequest

@typing.final
class GetOptionProfitChartDataResponse(google.protobuf.message.Message):
    """取期权盈亏分析图数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    PRECISION_FIELD_NUMBER: builtins.int
    LAST_PRICE_FIELD_NUMBER: builtins.int
    LEFT_PRICE_FIELD_NUMBER: builtins.int
    LEFT_PROFIT_FIELD_NUMBER: builtins.int
    STRIKE_PRICE_FIELD_NUMBER: builtins.int
    STRIKE_PROFIT_FIELD_NUMBER: builtins.int
    MIDDLE_PRICE_FIELD_NUMBER: builtins.int
    MIDDLE_PROFIT_FIELD_NUMBER: builtins.int
    RIGHT_PRICE_FIELD_NUMBER: builtins.int
    RIGHT_PROFIT_FIELD_NUMBER: builtins.int
    PROFIT_LIST_ITEMS_FIELD_NUMBER: builtins.int
    precision: builtins.int
    """价格小数位数"""
    last_price: builtins.float
    """最新价"""
    left_price: builtins.float
    """左点价格"""
    left_profit: builtins.float
    """左点收益"""
    strike_price: builtins.float
    """行权价"""
    strike_profit: builtins.float
    """行权价收益"""
    middle_price: builtins.float
    """盈亏平衡点价格"""
    middle_profit: builtins.float
    """盈亏平衡点收益"""
    right_price: builtins.float
    """右点价格"""
    right_profit: builtins.float
    """右点收益"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    @property
    def profit_list_items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OptionProfitChartData]:
        """收益列表数据"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        precision: builtins.int = ...,
        last_price: builtins.float = ...,
        left_price: builtins.float = ...,
        left_profit: builtins.float = ...,
        strike_price: builtins.float = ...,
        strike_profit: builtins.float = ...,
        middle_price: builtins.float = ...,
        middle_profit: builtins.float = ...,
        right_price: builtins.float = ...,
        right_profit: builtins.float = ...,
        profit_list_items: collections.abc.Iterable[global___OptionProfitChartData] | None = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["last_price", b"last_price", "left_price", b"left_price", "left_profit", b"left_profit", "middle_price", b"middle_price", "middle_profit", b"middle_profit", "precision", b"precision", "profit_list_items", b"profit_list_items", "response_info", b"response_info", "right_price", b"right_price", "right_profit", b"right_profit", "strike_price", b"strike_price", "strike_profit", b"strike_profit"]) -> None: ...

global___GetOptionProfitChartDataResponse = GetOptionProfitChartDataResponse

@typing.final
class SubscribeTickDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    定阅商品Tick数据
    //////////////////////////////////////////////////////////////////////////////

    定阅商品Tick数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEYS_FIELD_NUMBER: builtins.int
    IS_FULL_SUBSCRIBE_FIELD_NUMBER: builtins.int
    FIELDS_FIELD_NUMBER: builtins.int
    COMPRESS_TYPE_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    is_full_subscribe: builtins.bool
    """是否全量定阅"""
    compress_type: global___TickDataCompressType.ValueType
    """压缩类型"""
    flow_id: builtins.str
    """流水号"""
    @property
    def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityKey]:
        """商品键值列表"""

    @property
    def fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___CommodityTickField.ValueType]:
        """字段列表（可选）"""

    def __init__(
        self,
        *,
        keys: collections.abc.Iterable[global___CommodityKey] | None = ...,
        is_full_subscribe: builtins.bool = ...,
        fields: collections.abc.Iterable[global___CommodityTickField.ValueType] | None = ...,
        compress_type: global___TickDataCompressType.ValueType = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["compress_type", b"compress_type", "fields", b"fields", "flow_id", b"flow_id", "is_full_subscribe", b"is_full_subscribe", "keys", b"keys"]) -> None: ...

global___SubscribeTickDataRequest = SubscribeTickDataRequest

@typing.final
class SubscribeTickDataResponse(google.protobuf.message.Message):
    """定阅商品Tick数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    flow_id: builtins.str
    """流水号"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["flow_id", b"flow_id", "response_info", b"response_info"]) -> None: ...

global___SubscribeTickDataResponse = SubscribeTickDataResponse

@typing.final
class UnsubscribeTickDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取消定阅商品Tick数据
    //////////////////////////////////////////////////////////////////////////////

    取消定阅商品Tick数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    KEYS_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    flow_id: builtins.str
    """流水号"""
    @property
    def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityKey]:
        """商品键值列表"""

    def __init__(
        self,
        *,
        keys: collections.abc.Iterable[global___CommodityKey] | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["flow_id", b"flow_id", "keys", b"keys"]) -> None: ...

global___UnsubscribeTickDataRequest = UnsubscribeTickDataRequest

@typing.final
class UnsubscribeTickDataResponse(google.protobuf.message.Message):
    """取消定阅商品Tick数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    flow_id: builtins.str
    """流水号"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["flow_id", b"flow_id", "response_info", b"response_info"]) -> None: ...

global___UnsubscribeTickDataResponse = UnsubscribeTickDataResponse

@typing.final
class SubscribeRawDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    定阅商品Tick数据
    //////////////////////////////////////////////////////////////////////////////

    定阅商品原始数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CODES_FIELD_NUMBER: builtins.int
    IS_FULL_SUBSCRIBE_FIELD_NUMBER: builtins.int
    TYPES_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    is_full_subscribe: builtins.bool
    """是否全量定阅"""
    flow_id: builtins.str
    """流水号"""
    @property
    def codes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """商品代码列表"""

    @property
    def types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
        """数据类型列表（可选）"""

    def __init__(
        self,
        *,
        codes: collections.abc.Iterable[builtins.str] | None = ...,
        is_full_subscribe: builtins.bool = ...,
        types: collections.abc.Iterable[builtins.int] | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["codes", b"codes", "flow_id", b"flow_id", "is_full_subscribe", b"is_full_subscribe", "types", b"types"]) -> None: ...

global___SubscribeRawDataRequest = SubscribeRawDataRequest

@typing.final
class SubscribeRawDataResponse(google.protobuf.message.Message):
    """定阅商品原始数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    flow_id: builtins.str
    """流水号"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["flow_id", b"flow_id", "response_info", b"response_info"]) -> None: ...

global___SubscribeRawDataResponse = SubscribeRawDataResponse

@typing.final
class UnsubscribeRawDataRequest(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    取消定阅商品Tick数据
    //////////////////////////////////////////////////////////////////////////////

    取消定阅商品始数据（请求消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CODES_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    flow_id: builtins.str
    """流水号"""
    @property
    def codes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
        """商品代码列表"""

    def __init__(
        self,
        *,
        codes: collections.abc.Iterable[builtins.str] | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["codes", b"codes", "flow_id", b"flow_id"]) -> None: ...

global___UnsubscribeRawDataRequest = UnsubscribeRawDataRequest

@typing.final
class UnsubscribeRawDataResponse(google.protobuf.message.Message):
    """取消定阅商品始数据（返回消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    RESPONSE_INFO_FIELD_NUMBER: builtins.int
    FLOW_ID_FIELD_NUMBER: builtins.int
    flow_id: builtins.str
    """流水号"""
    @property
    def response_info(self) -> common_pb2.ResponseInfo:
        """返回信息"""

    def __init__(
        self,
        *,
        response_info: common_pb2.ResponseInfo | None = ...,
        flow_id: builtins.str = ...,
    ) -> None: ...
    def HasField(self, field_name: typing.Literal["response_info", b"response_info"]) -> builtins.bool: ...
    def ClearField(self, field_name: typing.Literal["flow_id", b"flow_id", "response_info", b"response_info"]) -> None: ...

global___UnsubscribeRawDataResponse = UnsubscribeRawDataResponse

@typing.final
class PushTickData(google.protobuf.message.Message):
    """//////////////////////////////////////////////////////////////////////////////
    推送商品Tick数据
    //////////////////////////////////////////////////////////////////////////////

    推送商品Tick数据（推送消息）
    """

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TICKS_FIELD_NUMBER: builtins.int
    @property
    def ticks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityTickData]:
        """商品Tick数据"""

    def __init__(
        self,
        *,
        ticks: collections.abc.Iterable[global___CommodityTickData] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["ticks", b"ticks"]) -> None: ...

global___PushTickData = PushTickData

@typing.final
class PushTickData2(google.protobuf.message.Message):
    """推送商品Tick数据（压缩）（推送消息）"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    TICKS_FIELD_NUMBER: builtins.int
    @property
    def ticks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CommodityTickData2]:
        """商品Tick数据"""

    def __init__(
        self,
        *,
        ticks: collections.abc.Iterable[global___CommodityTickData2] | None = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["ticks", b"ticks"]) -> None: ...

global___PushTickData2 = PushTickData2

@typing.final
class QcCommodityTickData(google.protobuf.message.Message):
    """行情中心Tick数据"""

    DESCRIPTOR: google.protobuf.descriptor.Descriptor

    CATEGORY_FIELD_NUMBER: builtins.int
    PRODUCT_TYPE_FIELD_NUMBER: builtins.int
    EXCHANGE_ID_FIELD_NUMBER: builtins.int
    INSTRUMENT_ID_FIELD_NUMBER: builtins.int
    UNIQUE_INSTRUMENT_ID_FIELD_NUMBER: builtins.int
    TRADE_TIMESTAMP_FIELD_NUMBER: builtins.int
    TRADING_DAY_FIELD_NUMBER: builtins.int
    LAST_PRICE_FIELD_NUMBER: builtins.int
    BID_PRICES_FIELD_NUMBER: builtins.int
    BID_VOLUMES_FIELD_NUMBER: builtins.int
    ASK_PRICES_FIELD_NUMBER: builtins.int
    ASK_VOLUMES_FIELD_NUMBER: builtins.int
    OPEN_PRICE_FIELD_NUMBER: builtins.int
    HIGHEST_PRICE_FIELD_NUMBER: builtins.int
    LOWEST_PRICE_FIELD_NUMBER: builtins.int
    VOLUME_FIELD_NUMBER: builtins.int
    TOTAL_VOLUME_FIELD_NUMBER: builtins.int
    TURNOVER_FIELD_NUMBER: builtins.int
    TOTAL_TURNOVER_FIELD_NUMBER: builtins.int
    PRE_CLOSE_PRICE_FIELD_NUMBER: builtins.int
    CLOSE_PRICE_FIELD_NUMBER: builtins.int
    UPPER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    LOWER_LIMIT_PRICE_FIELD_NUMBER: builtins.int
    AVERAGE_PRICE_FIELD_NUMBER: builtins.int
    CHANGE_FIELD_NUMBER: builtins.int
    CHANGE_RATIO_FIELD_NUMBER: builtins.int
    DIRECTION_FIELD_NUMBER: builtins.int
    NATURE_FIELD_NUMBER: builtins.int
    INSIDE_FIELD_NUMBER: builtins.int
    OUTSIDE_FIELD_NUMBER: builtins.int
    INT_OUT_FLAG_FIELD_NUMBER: builtins.int
    AMPLITUDE_FIELD_NUMBER: builtins.int
    ORDER_RATIO_FIELD_NUMBER: builtins.int
    ORDER_DIFF_FIELD_NUMBER: builtins.int
    VOLUME_RATIO_FIELD_NUMBER: builtins.int
    LAST_TRADE_VOLUME_FIELD_NUMBER: builtins.int
    TRADING_PHASE_ID_FIELD_NUMBER: builtins.int
    IS_DEAL_FIELD_NUMBER: builtins.int
    RECEIVE_TIMESTAMP_FIELD_NUMBER: builtins.int
    UPDATE_TIMESTAMP_FIELD_NUMBER: builtins.int
    PRE_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_INTEREST_FIELD_NUMBER: builtins.int
    TOTAL_OPEN_INTEREST_FIELD_NUMBER: builtins.int
    OPEN_POSITION_FIELD_NUMBER: builtins.int
    CLOSE_POSITION_FIELD_NUMBER: builtins.int
    DAILY_OPEN_INTEREST_DIFF_FIELD_NUMBER: builtins.int
    PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    OPTION_MONEY_TYPE_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_FIELD_NUMBER: builtins.int
    INTRINSIC_VALUE_FIELD_NUMBER: builtins.int
    TIME_VALUE_FIELD_NUMBER: builtins.int
    GEARING_FIELD_NUMBER: builtins.int
    EFFECTIVE_GEARING_FIELD_NUMBER: builtins.int
    PREMIUM_RATIO_FIELD_NUMBER: builtins.int
    DELTA_FIELD_NUMBER: builtins.int
    PRE_DELTA_FIELD_NUMBER: builtins.int
    GAMMA_FIELD_NUMBER: builtins.int
    RHO_FIELD_NUMBER: builtins.int
    THETA_FIELD_NUMBER: builtins.int
    VEGA_FIELD_NUMBER: builtins.int
    UNDERLYING_LAST_PRICE_FIELD_NUMBER: builtins.int
    UNDERLYING_PRE_SETTLEMENT_PRICE_FIELD_NUMBER: builtins.int
    VIRTUAL_RATIO_FIELD_NUMBER: builtins.int
    ESTIMATE_MARGIN_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_BID_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_ASK_FIELD_NUMBER: builtins.int
    IMPLIED_VOLATILITY_MID_FIELD_NUMBER: builtins.int
    category: global___MarketCategory.ValueType
    """市场分类"""
    product_type: builtins.str
    """品种类型"""
    exchange_id: builtins.str
    """交易所代码"""
    instrument_id: builtins.str
    """CTP合约代码"""
    unique_instrument_id: builtins.str
    """合约代码（四段式）"""
    trade_timestamp: builtins.int
    """时间戳"""
    trading_day: builtins.int
    """所属交易日期（YYYYMMDD）"""
    last_price: builtins.float
    """最新价"""
    open_price: builtins.float
    """开盘价"""
    highest_price: builtins.float
    """最高价"""
    lowest_price: builtins.float
    """最低价"""
    volume: builtins.float
    """现手"""
    total_volume: builtins.float
    """总成交量"""
    turnover: builtins.float
    """现额"""
    total_turnover: builtins.float
    """总成交金额"""
    pre_close_price: builtins.float
    """昨收盘"""
    close_price: builtins.float
    """收盘价"""
    upper_limit_price: builtins.float
    """涨停板价"""
    lower_limit_price: builtins.float
    """跌停板价"""
    average_price: builtins.float
    """均价"""
    change: builtins.float
    """涨跌额（当日）"""
    change_ratio: builtins.float
    """涨跌幅（当日%）"""
    direction: global___BuySellDirection.ValueType
    """买卖方向"""
    nature: global___TradeNature.ValueType
    """成交性质"""
    inside: builtins.float
    """内盘（卖盘）"""
    outside: builtins.float
    """外盘（买盘）"""
    int_out_flag: global___InsideOutsideFlag.ValueType
    """内外盘标志"""
    amplitude: builtins.float
    """振幅（当日%）"""
    order_ratio: builtins.float
    """委比（%）"""
    order_diff: builtins.float
    """委差"""
    volume_ratio: builtins.float
    """量比"""
    last_trade_volume: builtins.float
    """最新成交手数"""
    trading_phase_id: builtins.str
    """交易状态代码"""
    is_deal: builtins.bool
    """是否成交"""
    receive_timestamp: builtins.int
    """接收时间戳"""
    update_timestamp: builtins.int
    """更新时间戳"""
    pre_open_interest: builtins.float
    """昨持仓量（期货、期权专有）"""
    open_interest: builtins.float
    """仓差（期货、期权专有）"""
    total_open_interest: builtins.float
    """总持仓量（期货、期权专有）"""
    open_position: builtins.float
    """开仓（期货、期权专有）"""
    close_position: builtins.float
    """平仓（期货、期权专有）"""
    daily_open_interest_diff: builtins.float
    """日增仓（期货、期权专有）"""
    pre_settlement_price: builtins.float
    """昨结算价（期货、期权专有）"""
    settlement_price: builtins.float
    """结算价（期货、期权专有）"""
    option_money_type: global___OptionMoneyType.ValueType
    """实值虚值类型（期权专有）"""
    implied_volatility: builtins.float
    """隐含波动率（%）（期权专有）"""
    intrinsic_value: builtins.float
    """内在价值（期权专有）"""
    time_value: builtins.float
    """时间价值（期权专有）"""
    gearing: builtins.float
    """杠杆比率（期权专有）"""
    effective_gearing: builtins.float
    """实际杠杆比率（期权专有）"""
    premium_ratio: builtins.float
    """溢价率（%）（期权专有）"""
    delta: builtins.float
    """Delta（期权专有）"""
    pre_delta: builtins.float
    """昨Delta（期权专有）"""
    gamma: builtins.float
    """Gamma（期权专有）"""
    rho: builtins.float
    """Rho（期权专有）"""
    theta: builtins.float
    """Theta（期权专有）"""
    vega: builtins.float
    """Vega（期权专有）"""
    underlying_last_price: builtins.float
    """基础商品最新价（期权专有）"""
    underlying_pre_settlement_price: builtins.float
    """基础商品昨结算价（期权专有）"""
    virtual_ratio: builtins.float
    """虚值度（期权专有）"""
    estimate_margin: builtins.float
    """预估保证金（期权专有）"""
    implied_volatility_bid: builtins.float
    """隐含波动率BID（%）（期权专有）"""
    implied_volatility_ask: builtins.float
    """隐含波动率ASK（%）（期权专有）"""
    implied_volatility_mid: builtins.float
    """隐含波动率MID（%）（期权专有）"""
    @property
    def bid_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申买价"""

    @property
    def bid_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申买量"""

    @property
    def ask_prices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申卖价"""

    @property
    def ask_volumes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
        """申卖量"""

    def __init__(
        self,
        *,
        category: global___MarketCategory.ValueType = ...,
        product_type: builtins.str = ...,
        exchange_id: builtins.str = ...,
        instrument_id: builtins.str = ...,
        unique_instrument_id: builtins.str = ...,
        trade_timestamp: builtins.int = ...,
        trading_day: builtins.int = ...,
        last_price: builtins.float = ...,
        bid_prices: collections.abc.Iterable[builtins.float] | None = ...,
        bid_volumes: collections.abc.Iterable[builtins.float] | None = ...,
        ask_prices: collections.abc.Iterable[builtins.float] | None = ...,
        ask_volumes: collections.abc.Iterable[builtins.float] | None = ...,
        open_price: builtins.float = ...,
        highest_price: builtins.float = ...,
        lowest_price: builtins.float = ...,
        volume: builtins.float = ...,
        total_volume: builtins.float = ...,
        turnover: builtins.float = ...,
        total_turnover: builtins.float = ...,
        pre_close_price: builtins.float = ...,
        close_price: builtins.float = ...,
        upper_limit_price: builtins.float = ...,
        lower_limit_price: builtins.float = ...,
        average_price: builtins.float = ...,
        change: builtins.float = ...,
        change_ratio: builtins.float = ...,
        direction: global___BuySellDirection.ValueType = ...,
        nature: global___TradeNature.ValueType = ...,
        inside: builtins.float = ...,
        outside: builtins.float = ...,
        int_out_flag: global___InsideOutsideFlag.ValueType = ...,
        amplitude: builtins.float = ...,
        order_ratio: builtins.float = ...,
        order_diff: builtins.float = ...,
        volume_ratio: builtins.float = ...,
        last_trade_volume: builtins.float = ...,
        trading_phase_id: builtins.str = ...,
        is_deal: builtins.bool = ...,
        receive_timestamp: builtins.int = ...,
        update_timestamp: builtins.int = ...,
        pre_open_interest: builtins.float = ...,
        open_interest: builtins.float = ...,
        total_open_interest: builtins.float = ...,
        open_position: builtins.float = ...,
        close_position: builtins.float = ...,
        daily_open_interest_diff: builtins.float = ...,
        pre_settlement_price: builtins.float = ...,
        settlement_price: builtins.float = ...,
        option_money_type: global___OptionMoneyType.ValueType = ...,
        implied_volatility: builtins.float = ...,
        intrinsic_value: builtins.float = ...,
        time_value: builtins.float = ...,
        gearing: builtins.float = ...,
        effective_gearing: builtins.float = ...,
        premium_ratio: builtins.float = ...,
        delta: builtins.float = ...,
        pre_delta: builtins.float = ...,
        gamma: builtins.float = ...,
        rho: builtins.float = ...,
        theta: builtins.float = ...,
        vega: builtins.float = ...,
        underlying_last_price: builtins.float = ...,
        underlying_pre_settlement_price: builtins.float = ...,
        virtual_ratio: builtins.float = ...,
        estimate_margin: builtins.float = ...,
        implied_volatility_bid: builtins.float = ...,
        implied_volatility_ask: builtins.float = ...,
        implied_volatility_mid: builtins.float = ...,
    ) -> None: ...
    def ClearField(self, field_name: typing.Literal["amplitude", b"amplitude", "ask_prices", b"ask_prices", "ask_volumes", b"ask_volumes", "average_price", b"average_price", "bid_prices", b"bid_prices", "bid_volumes", b"bid_volumes", "category", b"category", "change", b"change", "change_ratio", b"change_ratio", "close_position", b"close_position", "close_price", b"close_price", "daily_open_interest_diff", b"daily_open_interest_diff", "delta", b"delta", "direction", b"direction", "effective_gearing", b"effective_gearing", "estimate_margin", b"estimate_margin", "exchange_id", b"exchange_id", "gamma", b"gamma", "gearing", b"gearing", "highest_price", b"highest_price", "implied_volatility", b"implied_volatility", "implied_volatility_ask", b"implied_volatility_ask", "implied_volatility_bid", b"implied_volatility_bid", "implied_volatility_mid", b"implied_volatility_mid", "inside", b"inside", "instrument_id", b"instrument_id", "int_out_flag", b"int_out_flag", "intrinsic_value", b"intrinsic_value", "is_deal", b"is_deal", "last_price", b"last_price", "last_trade_volume", b"last_trade_volume", "lower_limit_price", b"lower_limit_price", "lowest_price", b"lowest_price", "nature", b"nature", "open_interest", b"open_interest", "open_position", b"open_position", "open_price", b"open_price", "option_money_type", b"option_money_type", "order_diff", b"order_diff", "order_ratio", b"order_ratio", "outside", b"outside", "pre_close_price", b"pre_close_price", "pre_delta", b"pre_delta", "pre_open_interest", b"pre_open_interest", "pre_settlement_price", b"pre_settlement_price", "premium_ratio", b"premium_ratio", "product_type", b"product_type", "receive_timestamp", b"receive_timestamp", "rho", b"rho", "settlement_price", b"settlement_price", "theta", b"theta", "time_value", b"time_value", "total_open_interest", b"total_open_interest", "total_turnover", b"total_turnover", "total_volume", b"total_volume", "trade_timestamp", b"trade_timestamp", "trading_day", b"trading_day", "trading_phase_id", b"trading_phase_id", "turnover", b"turnover", "underlying_last_price", b"underlying_last_price", "underlying_pre_settlement_price", b"underlying_pre_settlement_price", "unique_instrument_id", b"unique_instrument_id", "update_timestamp", b"update_timestamp", "upper_limit_price", b"upper_limit_price", "vega", b"vega", "virtual_ratio", b"virtual_ratio", "volume", b"volume", "volume_ratio", b"volume_ratio"]) -> None: ...

global___QcCommodityTickData = QcCommodityTickData
