datahub_binary 1.9.8__cp312-cp312-win_amd64.whl → 1.9.9__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.
- datahub/datahub.pyi +3 -3
- datahub/protos/quote_pb2.pyi +32 -0
- datahub.cp312-win_amd64.pyd +0 -0
- {datahub_binary-1.9.8.dist-info → datahub_binary-1.9.9.dist-info}/METADATA +1 -1
- {datahub_binary-1.9.8.dist-info → datahub_binary-1.9.9.dist-info}/RECORD +7 -7
- {datahub_binary-1.9.8.dist-info → datahub_binary-1.9.9.dist-info}/WHEEL +1 -1
- {datahub_binary-1.9.8.dist-info → datahub_binary-1.9.9.dist-info}/top_level.txt +0 -0
datahub/datahub.pyi
CHANGED
|
@@ -681,12 +681,12 @@ class DataHub:
|
|
|
681
681
|
:param instruments: 标的id, 为空表示全部
|
|
682
682
|
:return:
|
|
683
683
|
"""
|
|
684
|
-
def get_trading_days(self, start_date: date, end_date: date, market: str = 'XSHG') -> list[date]:
|
|
684
|
+
def get_trading_days(self, start_date: date, end_date: date | None = None, market: str = 'XSHG') -> list[date]:
|
|
685
685
|
"""
|
|
686
686
|
获取固定市场的交易日
|
|
687
687
|
|
|
688
688
|
:param start_date: >= 开始日期
|
|
689
|
-
:param end_date: < 结束日期, 当开始与结束时间相同时, 返回数据时间=start_time
|
|
689
|
+
:param end_date: < 结束日期, 当开始与结束时间相同时, 返回数据时间=start_time, 默认为None时等于start_date+1day
|
|
690
690
|
:param market: 市场代码
|
|
691
691
|
:return: [交易日]
|
|
692
692
|
"""
|
|
@@ -780,4 +780,4 @@ class Calendar:
|
|
|
780
780
|
:param afternoon_time_range: 下午盘区间
|
|
781
781
|
:return:
|
|
782
782
|
"""
|
|
783
|
-
def is_trade_day(self, trade_date: date) -> bool: ...
|
|
783
|
+
def is_trade_day(self, trade_date: date | datetime) -> bool: ...
|
datahub/protos/quote_pb2.pyi
CHANGED
|
@@ -486,3 +486,35 @@ class BarMatrix(_message.Message):
|
|
|
486
486
|
cols: _containers.RepeatedScalarFieldContainer[str]
|
|
487
487
|
data_matrix: _containers.RepeatedScalarFieldContainer[float]
|
|
488
488
|
def __init__(self, msg_type: _Optional[int] = ..., msg_sequence: _Optional[int] = ..., trade_time: _Optional[int] = ..., last_timestamp: _Optional[int] = ..., source: _Optional[_Union[BarMatrix.Source, str]] = ..., instrument_ids: _Optional[_Iterable[str]] = ..., cols: _Optional[_Iterable[str]] = ..., data_matrix: _Optional[_Iterable[float]] = ...) -> None: ...
|
|
489
|
+
|
|
490
|
+
class PredictSnapshot(_message.Message):
|
|
491
|
+
__slots__ = ("msg_type", "msg_sequence", "last_timestamp", "node_name", "node_type", "instrument_id", "security_id", "market", "currency_id", "status", "barymid", "pred_barymid", "pred_std", "depth_quote")
|
|
492
|
+
MSG_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
493
|
+
MSG_SEQUENCE_FIELD_NUMBER: _ClassVar[int]
|
|
494
|
+
LAST_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
495
|
+
NODE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
496
|
+
NODE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
497
|
+
INSTRUMENT_ID_FIELD_NUMBER: _ClassVar[int]
|
|
498
|
+
SECURITY_ID_FIELD_NUMBER: _ClassVar[int]
|
|
499
|
+
MARKET_FIELD_NUMBER: _ClassVar[int]
|
|
500
|
+
CURRENCY_ID_FIELD_NUMBER: _ClassVar[int]
|
|
501
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
502
|
+
BARYMID_FIELD_NUMBER: _ClassVar[int]
|
|
503
|
+
PRED_BARYMID_FIELD_NUMBER: _ClassVar[int]
|
|
504
|
+
PRED_STD_FIELD_NUMBER: _ClassVar[int]
|
|
505
|
+
DEPTH_QUOTE_FIELD_NUMBER: _ClassVar[int]
|
|
506
|
+
msg_type: int
|
|
507
|
+
msg_sequence: int
|
|
508
|
+
last_timestamp: int
|
|
509
|
+
node_name: str
|
|
510
|
+
node_type: int
|
|
511
|
+
instrument_id: str
|
|
512
|
+
security_id: str
|
|
513
|
+
market: str
|
|
514
|
+
currency_id: str
|
|
515
|
+
status: int
|
|
516
|
+
barymid: int
|
|
517
|
+
pred_barymid: int
|
|
518
|
+
pred_std: float
|
|
519
|
+
depth_quote: _containers.RepeatedCompositeFieldContainer[QuoteLevelData]
|
|
520
|
+
def __init__(self, msg_type: _Optional[int] = ..., msg_sequence: _Optional[int] = ..., last_timestamp: _Optional[int] = ..., node_name: _Optional[str] = ..., node_type: _Optional[int] = ..., instrument_id: _Optional[str] = ..., security_id: _Optional[str] = ..., market: _Optional[str] = ..., currency_id: _Optional[str] = ..., status: _Optional[int] = ..., barymid: _Optional[int] = ..., pred_barymid: _Optional[int] = ..., pred_std: _Optional[float] = ..., depth_quote: _Optional[_Iterable[_Union[QuoteLevelData, _Mapping]]] = ...) -> None: ...
|
datahub.cp312-win_amd64.pyd
CHANGED
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
datahub.cp312-win_amd64.pyd,sha256=
|
|
1
|
+
datahub.cp312-win_amd64.pyd,sha256=cIa18JaFC4saXjkntzbG82CFq5eXv6zOkYLDD7hBHpc,1993216
|
|
2
2
|
datahub.pyi,sha256=biltT_CgztnMyL9mbp332i5vT7LUMws0bN6fdQ3WYH4,1555
|
|
3
3
|
datahub/__init__.pyi,sha256=hX8D9Qd6uPjZiUBd6rIq7Llkt_H4l_RvRXsws3sdYbI,630
|
|
4
4
|
datahub/datacache.pyi,sha256=Z2b3ktYv5t2y9Z1yXn0axbdoV06-GhjJhEIl_Ms-FjU,5044
|
|
5
|
-
datahub/datahub.pyi,sha256=
|
|
5
|
+
datahub/datahub.pyi,sha256=zaQtJMNW6kENnCXpbD6dxaV-UqZ8MZI9YkKte_s21ls,51493
|
|
6
6
|
datahub/setting.pyi,sha256=u6gYjjF6r1thSpp2XNMvg_1JUcqB64dRTkNoHlOoKUQ,889
|
|
7
7
|
datahub/ats/client_sdk.pyi,sha256=RScBpyY2ML84RBrYt60RnHtodOwWOe5-LbnJ3nFFBGs,8710
|
|
8
8
|
datahub/dbo/database.pyi,sha256=jIV6lfLLhAOcQqazrDQ_IAS8zkMZf2RZFM_jz6dCkjE,4439
|
|
@@ -15,7 +15,7 @@ datahub/protos/common_pb2.pyi,sha256=0xUOqWzJ8m_pOQhFEosdwljqZWRaVYz0-H_qmqAOmHs
|
|
|
15
15
|
datahub/protos/management_pb2.pyi,sha256=DtHNxR31C1T4HTUWT7KSsFPMvHiq37u_3G3aO__McA8,23183
|
|
16
16
|
datahub/protos/position_pb2.pyi,sha256=6IhKEhVRSNfS3zPUI5X9iOVRpBRDSOAi2HsH3ls4jbw,32684
|
|
17
17
|
datahub/protos/query_pb2.pyi,sha256=V6-yht8zbiCm02e7MTb1Ag_afoMnBFX1YsIETdom87I,15945
|
|
18
|
-
datahub/protos/quote_pb2.pyi,sha256=
|
|
18
|
+
datahub/protos/quote_pb2.pyi,sha256=SuqwYiREYjxtx99d-QTV57Hynjy1B0Kbj4wAowfSmxA,28517
|
|
19
19
|
datahub/protos/signal_pb2.pyi,sha256=HJxCtrEOlc1cBtH-ywFRvKItT0IiLyQVb0jzdkRF6mY,15879
|
|
20
20
|
datahub/protos/strategy_pb2.pyi,sha256=JmRoiuRdyE_1m6qQxxBMAvLp2OngDSHxTYivkcZQ2PU,32767
|
|
21
21
|
datahub/protos/trade_pb2.pyi,sha256=YLZFMLEMR3q1fSQxgyR81BsVvYngNQPbKPKvLA7ktjs,49810
|
|
@@ -25,7 +25,7 @@ datahub/utils/sftp.pyi,sha256=w8S-cxJWMeWJ6--RjT95qVgng_IhwPImiyoqdCpOCQI,2107
|
|
|
25
25
|
datahub/utils/monitor/__init__.pyi,sha256=EOwgf8CbJ4g3iUAaFoR6O-mYemJ9xjP42zlBj2KeA9c,76
|
|
26
26
|
datahub/utils/monitor/base.pyi,sha256=n1dKYK73JJ_7QPkCWFc-6Aj_a16j2z_VBaQ9zkN9A3E,310
|
|
27
27
|
datahub/utils/monitor/feishu.pyi,sha256=GgvJXYeX3cPOQjqpV0GJUr_Ri1_cZe2-viRBkpe6O_g,402
|
|
28
|
-
datahub_binary-1.9.
|
|
29
|
-
datahub_binary-1.9.
|
|
30
|
-
datahub_binary-1.9.
|
|
31
|
-
datahub_binary-1.9.
|
|
28
|
+
datahub_binary-1.9.9.dist-info/METADATA,sha256=1PDD8fWGylukk_1j_8mPJF-32K-C3lA4Dggu8HJjb14,7903
|
|
29
|
+
datahub_binary-1.9.9.dist-info/WHEEL,sha256=kEy_r0J89fAeLuy7xyjrI-Hab8UvN3TEhfaCe6KW1CU,97
|
|
30
|
+
datahub_binary-1.9.9.dist-info/top_level.txt,sha256=J0rzqYfZghMgpObWaPGhQtV88I-KXrgArDvi_ddf6ZA,8
|
|
31
|
+
datahub_binary-1.9.9.dist-info/RECORD,,
|
|
File without changes
|