datahub_binary 1.8.3__cp312-cp312-win_amd64.whl → 1.8.5__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 +16 -0
- datahub.cp312-win_amd64.pyd +0 -0
- {datahub_binary-1.8.3.dist-info → datahub_binary-1.8.5.dist-info}/METADATA +1 -1
- {datahub_binary-1.8.3.dist-info → datahub_binary-1.8.5.dist-info}/RECORD +6 -6
- {datahub_binary-1.8.3.dist-info → datahub_binary-1.8.5.dist-info}/WHEEL +1 -1
- {datahub_binary-1.8.3.dist-info → datahub_binary-1.8.5.dist-info}/top_level.txt +0 -0
datahub/datahub.pyi
CHANGED
|
@@ -81,6 +81,7 @@ class RsTopic:
|
|
|
81
81
|
indicator_5min: str
|
|
82
82
|
factor_5min: str
|
|
83
83
|
predictor: str
|
|
84
|
+
notify_sbl: str
|
|
84
85
|
|
|
85
86
|
class DataHub:
|
|
86
87
|
setting: Setting
|
|
@@ -484,6 +485,21 @@ class DataHub:
|
|
|
484
485
|
:return:
|
|
485
486
|
"""
|
|
486
487
|
def delete_predictor_matrix(self, topic: str = ...): ...
|
|
488
|
+
def read_sbl_notify(self, start_time: datetime | None = None, topic: str = ..., block: int = 0) -> Iterator[dict]:
|
|
489
|
+
'''
|
|
490
|
+
从Redis迭代获取sbl_notify的数据
|
|
491
|
+
|
|
492
|
+
:param start_time: 丢弃当前进度, 重新从start_time开始消费
|
|
493
|
+
:param topic: 订阅主题
|
|
494
|
+
:param block: 阻塞毫秒数,0为一直等待,超时后会直接返回
|
|
495
|
+
:return: {
|
|
496
|
+
"trade_date" : "20251116",
|
|
497
|
+
"broker": "htsc",
|
|
498
|
+
"account_id": "960000328562",
|
|
499
|
+
"status": 1, # 1为成功,目前只有成功会推送
|
|
500
|
+
"version": 1,
|
|
501
|
+
}
|
|
502
|
+
'''
|
|
487
503
|
def get_factor_data(self, start_time: datetime, end_time: datetime | None = None, factors: Sequence[str] = (), instruments: Sequence[str] = (), types: Sequence[str] = ()) -> pl.DataFrame:
|
|
488
504
|
'''
|
|
489
505
|
获取factor的数据
|
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=oOgfsKQVyYXQbbodcY_dWCJpL2kWTqp_qEbjZnaKmd4,1818624
|
|
2
2
|
datahub.pyi,sha256=sy345awOY4R8_DxrPBOg_oOhfOyNhlH60hJOrgUp4NQ,1522
|
|
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=R4yGMn92_uniMsmV-kWs2tuntWNIAwG2IbfqqNb3XEs,51017
|
|
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=tsGDnI5MCQdvlwDWeDb256bz8Ck6j8SYexIQNbJk7Vw,1654
|
|
@@ -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.8.
|
|
29
|
-
datahub_binary-1.8.
|
|
30
|
-
datahub_binary-1.8.
|
|
31
|
-
datahub_binary-1.8.
|
|
28
|
+
datahub_binary-1.8.5.dist-info/METADATA,sha256=r0lh6PxVeXJRl1kPCzQUfqlTDXyKCyOcwQ3vYu2DwUk,7902
|
|
29
|
+
datahub_binary-1.8.5.dist-info/WHEEL,sha256=w8EqlRQfj07vUz0D_PuFcpU4jhU3mXrXsapW5koENJo,96
|
|
30
|
+
datahub_binary-1.8.5.dist-info/top_level.txt,sha256=J0rzqYfZghMgpObWaPGhQtV88I-KXrgArDvi_ddf6ZA,8
|
|
31
|
+
datahub_binary-1.8.5.dist-info/RECORD,,
|
|
File without changes
|