datahub_binary 0.9.18__cp312-cp312-win_amd64.whl → 1.0.1__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1317,16 +1317,14 @@ class StrategyPosition(_message.Message):
1317
1317
  def __init__(self, strategy_id: _Optional[int] = ..., strategy_name: _Optional[str] = ..., instrument_id: _Optional[str] = ..., target_qty: _Optional[int] = ..., sod_qty: _Optional[int] = ..., current_qty: _Optional[int] = ..., posi_amount: _Optional[float] = ..., last_px: _Optional[float] = ..., buy_amount: _Optional[float] = ..., sell_amount: _Optional[float] = ..., buy_qty: _Optional[int] = ..., sell_qty: _Optional[int] = ..., avail_qty: _Optional[int] = ..., contract_unit: _Optional[float] = ..., sod_amount: _Optional[float] = ..., account_id: _Optional[str] = ..., book_id: _Optional[str] = ..., prev_close: _Optional[float] = ...) -> None: ...
1318
1318
 
1319
1319
  class QryStrategyPositionReq(_message.Message):
1320
- __slots__ = ("msg_type", "book_id", "request_id", "last_timestamp")
1320
+ __slots__ = ("msg_type", "book_id", "request_id")
1321
1321
  MSG_TYPE_FIELD_NUMBER: _ClassVar[int]
1322
1322
  BOOK_ID_FIELD_NUMBER: _ClassVar[int]
1323
1323
  REQUEST_ID_FIELD_NUMBER: _ClassVar[int]
1324
- LAST_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
1325
1324
  msg_type: int
1326
1325
  book_id: str
1327
1326
  request_id: str
1328
- last_timestamp: int
1329
- def __init__(self, msg_type: _Optional[int] = ..., book_id: _Optional[str] = ..., request_id: _Optional[str] = ..., last_timestamp: _Optional[int] = ...) -> None: ...
1327
+ def __init__(self, msg_type: _Optional[int] = ..., book_id: _Optional[str] = ..., request_id: _Optional[str] = ...) -> None: ...
1330
1328
 
1331
1329
  class QryStrategyPositionRsp(_message.Message):
1332
1330
  __slots__ = ("msg_type", "strategy_positions", "request_id", "status", "reason", "last_timestamp")
@@ -2149,7 +2147,7 @@ class QryBasketOrderStatReq(_message.Message):
2149
2147
  def __init__(self, msg_type: _Optional[int] = ..., basket_cl_order_id: _Optional[str] = ..., request_id: _Optional[str] = ...) -> None: ...
2150
2148
 
2151
2149
  class BasketOrderStatDetail(_message.Message):
2152
- __slots__ = ("instrument_id", "order_qty", "fill_qty", "active_qty", "order_status", "order_msg", "cost_price", "fill_amt", "order_amt", "order_id", "reject_qty", "order_time", "side")
2150
+ __slots__ = ("instrument_id", "order_qty", "fill_qty", "active_qty", "order_status", "order_msg", "cost_price", "fill_amt", "order_amt", "order_id", "reject_qty", "order_time", "side", "position_effect")
2153
2151
  INSTRUMENT_ID_FIELD_NUMBER: _ClassVar[int]
2154
2152
  ORDER_QTY_FIELD_NUMBER: _ClassVar[int]
2155
2153
  FILL_QTY_FIELD_NUMBER: _ClassVar[int]
@@ -2163,6 +2161,7 @@ class BasketOrderStatDetail(_message.Message):
2163
2161
  REJECT_QTY_FIELD_NUMBER: _ClassVar[int]
2164
2162
  ORDER_TIME_FIELD_NUMBER: _ClassVar[int]
2165
2163
  SIDE_FIELD_NUMBER: _ClassVar[int]
2164
+ POSITION_EFFECT_FIELD_NUMBER: _ClassVar[int]
2166
2165
  instrument_id: str
2167
2166
  order_qty: int
2168
2167
  fill_qty: int
@@ -2176,7 +2175,8 @@ class BasketOrderStatDetail(_message.Message):
2176
2175
  reject_qty: int
2177
2176
  order_time: int
2178
2177
  side: int
2179
- def __init__(self, instrument_id: _Optional[str] = ..., order_qty: _Optional[int] = ..., fill_qty: _Optional[int] = ..., active_qty: _Optional[int] = ..., order_status: _Optional[int] = ..., order_msg: _Optional[str] = ..., cost_price: _Optional[float] = ..., fill_amt: _Optional[float] = ..., order_amt: _Optional[float] = ..., order_id: _Optional[str] = ..., reject_qty: _Optional[int] = ..., order_time: _Optional[int] = ..., side: _Optional[int] = ...) -> None: ...
2178
+ position_effect: int
2179
+ def __init__(self, instrument_id: _Optional[str] = ..., order_qty: _Optional[int] = ..., fill_qty: _Optional[int] = ..., active_qty: _Optional[int] = ..., order_status: _Optional[int] = ..., order_msg: _Optional[str] = ..., cost_price: _Optional[float] = ..., fill_amt: _Optional[float] = ..., order_amt: _Optional[float] = ..., order_id: _Optional[str] = ..., reject_qty: _Optional[int] = ..., order_time: _Optional[int] = ..., side: _Optional[int] = ..., position_effect: _Optional[int] = ...) -> None: ...
2180
2180
 
2181
2181
  class BasketOrderStat(_message.Message):
2182
2182
  __slots__ = ("component_instrument_id", "order_qty", "fill_qty", "active_qty", "reject_qty", "cancel_qty", "order_status", "process_qty", "process_amt", "cost_price", "fill_amt", "order_amt", "order_stat_details", "side")
@@ -2237,16 +2237,18 @@ class QryBasketInfoReq(_message.Message):
2237
2237
  def __init__(self, msg_type: _Optional[int] = ..., template_id: _Optional[str] = ..., request_id: _Optional[str] = ...) -> None: ...
2238
2238
 
2239
2239
  class BasketInfoDetail(_message.Message):
2240
- __slots__ = ("component_instrument_id", "component_qty", "side", "comments")
2240
+ __slots__ = ("component_instrument_id", "component_qty", "side", "comments", "position_effect")
2241
2241
  COMPONENT_INSTRUMENT_ID_FIELD_NUMBER: _ClassVar[int]
2242
2242
  COMPONENT_QTY_FIELD_NUMBER: _ClassVar[int]
2243
2243
  SIDE_FIELD_NUMBER: _ClassVar[int]
2244
2244
  COMMENTS_FIELD_NUMBER: _ClassVar[int]
2245
+ POSITION_EFFECT_FIELD_NUMBER: _ClassVar[int]
2245
2246
  component_instrument_id: str
2246
2247
  component_qty: int
2247
2248
  side: int
2248
2249
  comments: str
2249
- def __init__(self, component_instrument_id: _Optional[str] = ..., component_qty: _Optional[int] = ..., side: _Optional[int] = ..., comments: _Optional[str] = ...) -> None: ...
2250
+ position_effect: int
2251
+ def __init__(self, component_instrument_id: _Optional[str] = ..., component_qty: _Optional[int] = ..., side: _Optional[int] = ..., comments: _Optional[str] = ..., position_effect: _Optional[int] = ...) -> None: ...
2250
2252
 
2251
2253
  class BasketInfo(_message.Message):
2252
2254
  __slots__ = ("template_id", "basket_info_details", "strategy_id", "strategy_name", "etf_instrument_id", "etf_unit", "template_type", "comments")
@@ -3168,7 +3170,7 @@ class UpdateCurrencyPriceRsp(_message.Message):
3168
3170
  def __init__(self, msg_type: _Optional[int] = ..., last_timestamp: _Optional[int] = ..., status: _Optional[int] = ..., request_id: _Optional[str] = ..., text: _Optional[str] = ...) -> None: ...
3169
3171
 
3170
3172
  class Instrument(_message.Message):
3171
- __slots__ = ("instrument_id", "market", "security_id", "symbol", "instrument_type", "security_type", "lot_size", "price_tick", "contract_unit", "intraday_trading", "is_sub", "is_withdraw", "fund_etfpr_minnav", "withdraw_basket_volume", "long_posi_limit", "short_posi_limit", "intraday_open_limit", "max_up", "max_down", "underlying_instrument_id", "chain_codes", "fund_etfpr_estcash", "wind_market", "comments", "is_replace_price", "replace_price", "quote_currency_id", "settle_currency_id", "instrument_sub_type", "min_size", "max_size", "list_date", "delist_date", "settle_date", "total_share")
3173
+ __slots__ = ("instrument_id", "market", "security_id", "symbol", "instrument_type", "security_type", "lot_size", "price_tick", "contract_unit", "intraday_trading", "is_sub", "is_withdraw", "fund_etfpr_minnav", "withdraw_basket_volume", "long_posi_limit", "short_posi_limit", "intraday_open_limit", "max_up", "max_down", "underlying_instrument_id", "chain_codes", "fund_etfpr_estcash", "wind_market", "comments", "is_replace_price", "replace_price", "quote_currency_id", "settle_currency_id", "instrument_sub_type", "min_size", "max_size", "list_date", "delist_date", "settle_date", "total_share", "trade_date", "external_info", "pre_close_price")
3172
3174
  INSTRUMENT_ID_FIELD_NUMBER: _ClassVar[int]
3173
3175
  MARKET_FIELD_NUMBER: _ClassVar[int]
3174
3176
  SECURITY_ID_FIELD_NUMBER: _ClassVar[int]
@@ -3204,6 +3206,9 @@ class Instrument(_message.Message):
3204
3206
  DELIST_DATE_FIELD_NUMBER: _ClassVar[int]
3205
3207
  SETTLE_DATE_FIELD_NUMBER: _ClassVar[int]
3206
3208
  TOTAL_SHARE_FIELD_NUMBER: _ClassVar[int]
3209
+ TRADE_DATE_FIELD_NUMBER: _ClassVar[int]
3210
+ EXTERNAL_INFO_FIELD_NUMBER: _ClassVar[int]
3211
+ PRE_CLOSE_PRICE_FIELD_NUMBER: _ClassVar[int]
3207
3212
  instrument_id: str
3208
3213
  market: str
3209
3214
  security_id: str
@@ -3239,19 +3244,24 @@ class Instrument(_message.Message):
3239
3244
  delist_date: str
3240
3245
  settle_date: str
3241
3246
  total_share: int
3242
- def __init__(self, instrument_id: _Optional[str] = ..., market: _Optional[str] = ..., security_id: _Optional[str] = ..., symbol: _Optional[str] = ..., instrument_type: _Optional[str] = ..., security_type: _Optional[str] = ..., lot_size: _Optional[int] = ..., price_tick: _Optional[float] = ..., contract_unit: _Optional[float] = ..., intraday_trading: _Optional[int] = ..., is_sub: _Optional[int] = ..., is_withdraw: _Optional[int] = ..., fund_etfpr_minnav: _Optional[int] = ..., withdraw_basket_volume: _Optional[int] = ..., long_posi_limit: _Optional[int] = ..., short_posi_limit: _Optional[int] = ..., intraday_open_limit: _Optional[int] = ..., max_up: _Optional[float] = ..., max_down: _Optional[float] = ..., underlying_instrument_id: _Optional[str] = ..., chain_codes: _Optional[_Iterable[str]] = ..., fund_etfpr_estcash: _Optional[float] = ..., wind_market: _Optional[str] = ..., comments: _Optional[str] = ..., is_replace_price: _Optional[int] = ..., replace_price: _Optional[float] = ..., quote_currency_id: _Optional[str] = ..., settle_currency_id: _Optional[str] = ..., instrument_sub_type: _Optional[str] = ..., min_size: _Optional[int] = ..., max_size: _Optional[int] = ..., list_date: _Optional[str] = ..., delist_date: _Optional[str] = ..., settle_date: _Optional[str] = ..., total_share: _Optional[int] = ...) -> None: ...
3247
+ trade_date: str
3248
+ external_info: str
3249
+ pre_close_price: float
3250
+ def __init__(self, instrument_id: _Optional[str] = ..., market: _Optional[str] = ..., security_id: _Optional[str] = ..., symbol: _Optional[str] = ..., instrument_type: _Optional[str] = ..., security_type: _Optional[str] = ..., lot_size: _Optional[int] = ..., price_tick: _Optional[float] = ..., contract_unit: _Optional[float] = ..., intraday_trading: _Optional[int] = ..., is_sub: _Optional[int] = ..., is_withdraw: _Optional[int] = ..., fund_etfpr_minnav: _Optional[int] = ..., withdraw_basket_volume: _Optional[int] = ..., long_posi_limit: _Optional[int] = ..., short_posi_limit: _Optional[int] = ..., intraday_open_limit: _Optional[int] = ..., max_up: _Optional[float] = ..., max_down: _Optional[float] = ..., underlying_instrument_id: _Optional[str] = ..., chain_codes: _Optional[_Iterable[str]] = ..., fund_etfpr_estcash: _Optional[float] = ..., wind_market: _Optional[str] = ..., comments: _Optional[str] = ..., is_replace_price: _Optional[int] = ..., replace_price: _Optional[float] = ..., quote_currency_id: _Optional[str] = ..., settle_currency_id: _Optional[str] = ..., instrument_sub_type: _Optional[str] = ..., min_size: _Optional[int] = ..., max_size: _Optional[int] = ..., list_date: _Optional[str] = ..., delist_date: _Optional[str] = ..., settle_date: _Optional[str] = ..., total_share: _Optional[int] = ..., trade_date: _Optional[str] = ..., external_info: _Optional[str] = ..., pre_close_price: _Optional[float] = ...) -> None: ...
3243
3251
 
3244
3252
  class QryInstrumentReq(_message.Message):
3245
- __slots__ = ("msg_type", "request_id", "instrument_id", "basket_instrument_id")
3253
+ __slots__ = ("msg_type", "request_id", "instrument_id", "basket_instrument_id", "market_list")
3246
3254
  MSG_TYPE_FIELD_NUMBER: _ClassVar[int]
3247
3255
  REQUEST_ID_FIELD_NUMBER: _ClassVar[int]
3248
3256
  INSTRUMENT_ID_FIELD_NUMBER: _ClassVar[int]
3249
3257
  BASKET_INSTRUMENT_ID_FIELD_NUMBER: _ClassVar[int]
3258
+ MARKET_LIST_FIELD_NUMBER: _ClassVar[int]
3250
3259
  msg_type: int
3251
3260
  request_id: str
3252
3261
  instrument_id: str
3253
3262
  basket_instrument_id: str
3254
- def __init__(self, msg_type: _Optional[int] = ..., request_id: _Optional[str] = ..., instrument_id: _Optional[str] = ..., basket_instrument_id: _Optional[str] = ...) -> None: ...
3263
+ market_list: _containers.RepeatedScalarFieldContainer[str]
3264
+ def __init__(self, msg_type: _Optional[int] = ..., request_id: _Optional[str] = ..., instrument_id: _Optional[str] = ..., basket_instrument_id: _Optional[str] = ..., market_list: _Optional[_Iterable[str]] = ...) -> None: ...
3255
3265
 
3256
3266
  class QryInstrumentRsp(_message.Message):
3257
3267
  __slots__ = ("msg_type", "request_id", "status", "reason", "is_last", "data")
@@ -3338,20 +3348,22 @@ class QryStrategyInfoReq(_message.Message):
3338
3348
  class QryStrategyInfoRsp(_message.Message):
3339
3349
  __slots__ = ("msg_type", "request_id", "status", "reason", "is_last", "data")
3340
3350
  class StrategyInfoData(_message.Message):
3341
- __slots__ = ("strategy_template_id", "global_params", "strategy_list", "params_schema", "global_params_schema", "monitor_params_schema")
3351
+ __slots__ = ("strategy_template_id", "global_params", "strategy_list", "params_schema", "global_params_schema", "monitor_params_schema", "strategy_template_type")
3342
3352
  STRATEGY_TEMPLATE_ID_FIELD_NUMBER: _ClassVar[int]
3343
3353
  GLOBAL_PARAMS_FIELD_NUMBER: _ClassVar[int]
3344
3354
  STRATEGY_LIST_FIELD_NUMBER: _ClassVar[int]
3345
3355
  PARAMS_SCHEMA_FIELD_NUMBER: _ClassVar[int]
3346
3356
  GLOBAL_PARAMS_SCHEMA_FIELD_NUMBER: _ClassVar[int]
3347
3357
  MONITOR_PARAMS_SCHEMA_FIELD_NUMBER: _ClassVar[int]
3358
+ STRATEGY_TEMPLATE_TYPE_FIELD_NUMBER: _ClassVar[int]
3348
3359
  strategy_template_id: str
3349
3360
  global_params: str
3350
3361
  strategy_list: _containers.RepeatedCompositeFieldContainer[StrategyInfo]
3351
3362
  params_schema: str
3352
3363
  global_params_schema: str
3353
3364
  monitor_params_schema: str
3354
- def __init__(self, strategy_template_id: _Optional[str] = ..., global_params: _Optional[str] = ..., strategy_list: _Optional[_Iterable[_Union[StrategyInfo, _Mapping]]] = ..., params_schema: _Optional[str] = ..., global_params_schema: _Optional[str] = ..., monitor_params_schema: _Optional[str] = ...) -> None: ...
3365
+ strategy_template_type: str
3366
+ def __init__(self, strategy_template_id: _Optional[str] = ..., global_params: _Optional[str] = ..., strategy_list: _Optional[_Iterable[_Union[StrategyInfo, _Mapping]]] = ..., params_schema: _Optional[str] = ..., global_params_schema: _Optional[str] = ..., monitor_params_schema: _Optional[str] = ..., strategy_template_type: _Optional[str] = ...) -> None: ...
3355
3367
  MSG_TYPE_FIELD_NUMBER: _ClassVar[int]
3356
3368
  REQUEST_ID_FIELD_NUMBER: _ClassVar[int]
3357
3369
  STATUS_FIELD_NUMBER: _ClassVar[int]