datahub_binary 1.8.7__cp312-cp312-win_amd64.whl → 1.8.8__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 -7
- datahub.cp312-win_amd64.pyd +0 -0
- {datahub_binary-1.8.7.dist-info → datahub_binary-1.8.8.dist-info}/METADATA +1 -1
- {datahub_binary-1.8.7.dist-info → datahub_binary-1.8.8.dist-info}/RECORD +6 -6
- {datahub_binary-1.8.7.dist-info → datahub_binary-1.8.8.dist-info}/WHEEL +0 -0
- {datahub_binary-1.8.7.dist-info → datahub_binary-1.8.8.dist-info}/top_level.txt +0 -0
datahub/datahub.pyi
CHANGED
|
@@ -6,6 +6,7 @@ from .dbo.sr import StarRocks as StarRocks
|
|
|
6
6
|
from .protos.client_msg import BarMatrix as BarMatrix, MsgType as MsgType
|
|
7
7
|
from .setting import Setting as Setting
|
|
8
8
|
from .utils.logger import logger as logger
|
|
9
|
+
from _typeshed import Incomplete
|
|
9
10
|
from dataclasses import dataclass
|
|
10
11
|
from datetime import date, datetime, time
|
|
11
12
|
from pydantic import BaseModel
|
|
@@ -85,7 +86,14 @@ class RsTopic:
|
|
|
85
86
|
|
|
86
87
|
class DataHub:
|
|
87
88
|
setting: Setting
|
|
88
|
-
|
|
89
|
+
custom_logger: Incomplete
|
|
90
|
+
def __init__(self, setting: Setting, custom_logger=None) -> None:
|
|
91
|
+
"""
|
|
92
|
+
初始化Datahub
|
|
93
|
+
|
|
94
|
+
:param setting: 配置
|
|
95
|
+
:param custom_logger: 自定义logger如果传入则使用传入的logger
|
|
96
|
+
"""
|
|
89
97
|
@property
|
|
90
98
|
def calendar(self) -> Calendar: ...
|
|
91
99
|
@property
|
|
@@ -94,11 +102,12 @@ class DataHub:
|
|
|
94
102
|
def postgres(self) -> Postgres: ...
|
|
95
103
|
@property
|
|
96
104
|
def redis(self): ...
|
|
97
|
-
def post_task(self, task: CronTask) -> dict[str, Any]:
|
|
105
|
+
def post_task(self, task: CronTask, send_error_to: str = 'alpha运维') -> dict[str, Any]:
|
|
98
106
|
"""
|
|
99
107
|
通过POST接口更新任务信息
|
|
100
108
|
|
|
101
109
|
:param task: Task对象
|
|
110
|
+
:param send_error_to: 失败则推送到哪个群组
|
|
102
111
|
"""
|
|
103
112
|
def get_kline(self, freq: str, instruments: Sequence[str] = (), start_time: datetime | None = None, end_time: datetime | None = None, adj_method: str | None = None) -> pl.DataFrame:
|
|
104
113
|
'''
|
|
@@ -493,11 +502,11 @@ class DataHub:
|
|
|
493
502
|
:param topic: 订阅主题
|
|
494
503
|
:param block: 阻塞毫秒数,0为一直等待,超时后会直接返回
|
|
495
504
|
:return: {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
505
|
+
"trade_date" : "20251116",
|
|
506
|
+
"broker": "htsc",
|
|
507
|
+
"account_id": "960000328562",
|
|
508
|
+
"status": 1, # 1为成功,目前只有成功会推送
|
|
509
|
+
"version": 1,
|
|
501
510
|
}
|
|
502
511
|
'''
|
|
503
512
|
def get_factor_data(self, start_time: datetime, end_time: datetime | None = None, factors: Sequence[str] = (), instruments: Sequence[str] = (), types: Sequence[str] = ()) -> pl.DataFrame:
|
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=ovI-CMCRBQPvrrmvOARpEVIfRWHA13Lb3-ibp6Nx7Co,1819648
|
|
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=GmbAMNEfuSb7pvdMDyNocmEzTh2EaiSx0KaG1mU4ISQ,51345
|
|
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.8.dist-info/METADATA,sha256=lQWDMzMO0IrnwWt6QztbUXxaw1FTrp2j3Asi01XgI7Q,7903
|
|
29
|
+
datahub_binary-1.8.8.dist-info/WHEEL,sha256=mktjIo72eqyqXY-lxdbITmUE47ZU2O9WYzyv0PnFKrU,96
|
|
30
|
+
datahub_binary-1.8.8.dist-info/top_level.txt,sha256=J0rzqYfZghMgpObWaPGhQtV88I-KXrgArDvi_ddf6ZA,8
|
|
31
|
+
datahub_binary-1.8.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|