onesecondtrader 0.44.0__py3-none-any.whl → 0.45.0__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.
- onesecondtrader/events/__init__.py +7 -0
- onesecondtrader/events/base.py +19 -0
- onesecondtrader/models/__init__.py +1 -2
- {onesecondtrader-0.44.0.dist-info → onesecondtrader-0.45.0.dist-info}/METADATA +1 -1
- onesecondtrader-0.45.0.dist-info/RECORD +12 -0
- onesecondtrader-0.44.0.dist-info/RECORD +0 -10
- {onesecondtrader-0.44.0.dist-info → onesecondtrader-0.45.0.dist-info}/WHEEL +0 -0
- {onesecondtrader-0.44.0.dist-info → onesecondtrader-0.45.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import dataclasses
|
|
4
|
+
import time
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@dataclasses.dataclass(kw_only=True, frozen=True, slots=True)
|
|
8
|
+
class EventBase:
|
|
9
|
+
"""
|
|
10
|
+
Base class for immutable event message objects, using Unix epoch nanoseconds.
|
|
11
|
+
|
|
12
|
+
| Field | Type | Semantics |
|
|
13
|
+
|---------------|------|------------------------------------------------------------------------|
|
|
14
|
+
| ts_event_ns | int | Time at which the represented fact occurred, as UTC epoch nanoseconds. |
|
|
15
|
+
| ts_created_ns | int | Time at which the event object was created, as UTC epoch nanoseconds. |
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
ts_event_ns: int
|
|
19
|
+
ts_created_ns: int = dataclasses.field(default_factory=time.time_ns)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
3
|
-
It establishes a shared vocabulary for representing domain-specific structures.
|
|
2
|
+
Defines the fundamental domain concepts used throughout the trading system.
|
|
4
3
|
"""
|
|
5
4
|
|
|
6
5
|
from .bar_fields import BarField
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onesecondtrader
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.45.0
|
|
4
4
|
Summary: The Trading Infrastructure Toolkit for Python. Research, simulate, and deploy algorithmic trading strategies — all in one place.
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Nils P. Kujath
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
onesecondtrader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
onesecondtrader/events/__init__.py,sha256=CTGyob-p2-VbvRZo4u21LbSYfk0cs78eEBRNsjW_CcE,127
|
|
3
|
+
onesecondtrader/events/base.py,sha256=5s4_SOkbMBSGkNAG_1LOD4wbn2jbT7CGBZvsUvKhckc,750
|
|
4
|
+
onesecondtrader/models/__init__.py,sha256=8eqxqKF49g_dgTG9EqT2czd_jnSafIG6wyniXPYFvF8,285
|
|
5
|
+
onesecondtrader/models/bar_fields.py,sha256=zqQhbzFglIUXtUH0cog2Q-GtiRCM2Ej6WC3gvWIbS7c,632
|
|
6
|
+
onesecondtrader/models/bar_period.py,sha256=n7heAAWGfBjO1knx9MnbFC6Mq2OjQGe4Xr6Cp2WxB38,463
|
|
7
|
+
onesecondtrader/models/order_types.py,sha256=_VKDY1eohXgZwwaG_St4tgcq1FfACJsvmgpNesSEX-k,731
|
|
8
|
+
onesecondtrader/models/trade_sides.py,sha256=gk7oTn5wJ_Xg52Uxd_0jS1fnl9ccirHAQ4Wtc2B4-JY,575
|
|
9
|
+
onesecondtrader-0.45.0.dist-info/METADATA,sha256=s0gFuTwJQl9P3uBfZLl1wq7smgoYYB1Wc69XSlSqJfU,9951
|
|
10
|
+
onesecondtrader-0.45.0.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
11
|
+
onesecondtrader-0.45.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
12
|
+
onesecondtrader-0.45.0.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
onesecondtrader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
onesecondtrader/models/__init__.py,sha256=oqqCnRys9Qr1v3xzAWXk1QZjwvApCSuTu6r2SV7SloQ,386
|
|
3
|
-
onesecondtrader/models/bar_fields.py,sha256=zqQhbzFglIUXtUH0cog2Q-GtiRCM2Ej6WC3gvWIbS7c,632
|
|
4
|
-
onesecondtrader/models/bar_period.py,sha256=n7heAAWGfBjO1knx9MnbFC6Mq2OjQGe4Xr6Cp2WxB38,463
|
|
5
|
-
onesecondtrader/models/order_types.py,sha256=_VKDY1eohXgZwwaG_St4tgcq1FfACJsvmgpNesSEX-k,731
|
|
6
|
-
onesecondtrader/models/trade_sides.py,sha256=gk7oTn5wJ_Xg52Uxd_0jS1fnl9ccirHAQ4Wtc2B4-JY,575
|
|
7
|
-
onesecondtrader-0.44.0.dist-info/METADATA,sha256=40FIBIqnjq_X5MuLPudNDpUlclRJeYSQOOf6r0Jnp7o,9951
|
|
8
|
-
onesecondtrader-0.44.0.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
|
|
9
|
-
onesecondtrader-0.44.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
10
|
-
onesecondtrader-0.44.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|