kaq-quant-common 0.1.83__py3-none-any.whl → 0.1.85__py3-none-any.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.
- kaq_quant_common/api/common/__init__.py +1 -1
- kaq_quant_common/api/common/api_interface.py +38 -38
- kaq_quant_common/api/rest/api_client_base.py +42 -42
- kaq_quant_common/api/rest/instruction/helper/order_helper.py +324 -324
- kaq_quant_common/api/rest/instruction/instruction_client.py +76 -88
- kaq_quant_common/api/rest/instruction/instruction_server_base.py +133 -132
- kaq_quant_common/api/rest/instruction/models/__init__.py +17 -17
- kaq_quant_common/api/rest/instruction/models/account.py +24 -24
- kaq_quant_common/api/rest/instruction/models/order.py +248 -223
- kaq_quant_common/api/rest/instruction/models/position.py +56 -56
- kaq_quant_common/api/rest/instruction/models/transfer.py +32 -32
- kaq_quant_common/api/ws/exchange/models.py +23 -23
- kaq_quant_common/api/ws/exchange/ws_exchange_server.py +440 -440
- kaq_quant_common/common/ddb_table_monitor.py +106 -106
- kaq_quant_common/common/http_monitor.py +69 -69
- kaq_quant_common/common/modules/limit_order_helper.py +81 -81
- kaq_quant_common/common/modules/limit_order_symbol_monitor.py +76 -76
- kaq_quant_common/common/modules/limit_order_symbol_monitor_group.py +69 -69
- kaq_quant_common/common/monitor_base.py +84 -84
- kaq_quant_common/common/monitor_group.py +97 -97
- kaq_quant_common/common/statistics/funding_rate_history_statistics.py +208 -0
- kaq_quant_common/common/statistics/kline_history_statistics.py +36 -13
- kaq_quant_common/common/ws_wrapper.py +21 -21
- kaq_quant_common/resources/kaq_ddb_stream_write_resources.py +2 -0
- kaq_quant_common/utils/logger_utils.py +5 -5
- kaq_quant_common/utils/signal_utils.py +23 -23
- kaq_quant_common/utils/uuid_utils.py +5 -5
- {kaq_quant_common-0.1.83.dist-info → kaq_quant_common-0.1.85.dist-info}/METADATA +1 -1
- {kaq_quant_common-0.1.83.dist-info → kaq_quant_common-0.1.85.dist-info}/RECORD +30 -29
- {kaq_quant_common-0.1.83.dist-info → kaq_quant_common-0.1.85.dist-info}/WHEEL +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
from typing import Optional
|
|
2
|
-
|
|
3
|
-
from pydantic import BaseModel
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class FundingRateEvent(BaseModel):
|
|
7
|
-
# 使用毫秒时间戳,保持与现有事件风格一致
|
|
8
|
-
event_time: int
|
|
9
|
-
exchange_symbol: Optional[str] = None
|
|
10
|
-
exchange: Optional[str] = None
|
|
11
|
-
symbol: Optional[str] = None
|
|
12
|
-
open_rate: Optional[float] = None
|
|
13
|
-
close_rate: Optional[float] = None
|
|
14
|
-
high_rate: Optional[float] = None
|
|
15
|
-
low_rate: Optional[float] = None
|
|
16
|
-
# 毫秒时间戳
|
|
17
|
-
close_time: Optional[int] = None
|
|
18
|
-
# 毫秒时间戳
|
|
19
|
-
next_event_time: Optional[int] = None
|
|
20
|
-
|
|
21
|
-
# 兼容表中其他字段
|
|
22
|
-
id: Optional[str] = None
|
|
23
|
-
ctimestamp: Optional[str] = None
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
from pydantic import BaseModel
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class FundingRateEvent(BaseModel):
|
|
7
|
+
# 使用毫秒时间戳,保持与现有事件风格一致
|
|
8
|
+
event_time: int
|
|
9
|
+
exchange_symbol: Optional[str] = None
|
|
10
|
+
exchange: Optional[str] = None
|
|
11
|
+
symbol: Optional[str] = None
|
|
12
|
+
open_rate: Optional[float] = None
|
|
13
|
+
close_rate: Optional[float] = None
|
|
14
|
+
high_rate: Optional[float] = None
|
|
15
|
+
low_rate: Optional[float] = None
|
|
16
|
+
# 毫秒时间戳
|
|
17
|
+
close_time: Optional[int] = None
|
|
18
|
+
# 毫秒时间戳
|
|
19
|
+
next_event_time: Optional[int] = None
|
|
20
|
+
|
|
21
|
+
# 兼容表中其他字段
|
|
22
|
+
id: Optional[str] = None
|
|
23
|
+
ctimestamp: Optional[str] = None
|