onesecondtrader 0.20.0__tar.gz → 0.21.0__tar.gz
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-0.20.0 → onesecondtrader-0.21.0}/PKG-INFO +1 -1
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/pyproject.toml +1 -1
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/src/onesecondtrader/core.py +5 -19
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/LICENSE +0 -0
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/README.md +0 -0
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/src/onesecondtrader/__init__.py +0 -0
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/src/onesecondtrader/datafeeds.py +0 -0
- {onesecondtrader-0.20.0 → onesecondtrader-0.21.0}/src/onesecondtrader/indicators.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onesecondtrader
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21.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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "onesecondtrader"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.21.0"
|
|
4
4
|
description = "The Trading Infrastructure Toolkit for Python. Research, simulate, and deploy algorithmic trading strategies — all in one place."
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Nils P. Kujath",email = "63961429+NilsKujath@users.noreply.github.com"}
|
|
@@ -42,25 +42,11 @@ class Models:
|
|
|
42
42
|
STOP = enum.auto()
|
|
43
43
|
STOP_LIMIT = enum.auto()
|
|
44
44
|
|
|
45
|
-
class
|
|
46
|
-
INSUFFICIENT_FUNDS = enum.auto()
|
|
47
|
-
MARKET_CLOSED = enum.auto()
|
|
48
|
-
UNKNOWN = enum.auto()
|
|
49
|
-
|
|
50
|
-
class CancelRejectionReason(enum.Enum):
|
|
45
|
+
class RejectionReason(enum.Enum):
|
|
51
46
|
ORDER_ALREADY_FILLED = enum.auto()
|
|
52
47
|
ORDER_ALREADY_CANCELLED = enum.auto()
|
|
53
48
|
ORDER_PENDING_EXECUTION = enum.auto()
|
|
54
|
-
|
|
55
|
-
UNKNOWN = enum.auto()
|
|
56
|
-
|
|
57
|
-
class ModifyRejectionReason(enum.Enum):
|
|
58
|
-
ORDER_ALREADY_FILLED = enum.auto()
|
|
59
|
-
ORDER_ALREADY_CANCELLED = enum.auto()
|
|
60
|
-
ORDER_PENDING_EXECUTION = enum.auto()
|
|
61
|
-
ORDER_NOT_FOUND = enum.auto()
|
|
62
|
-
INVALID_PRICE = enum.auto()
|
|
63
|
-
INVALID_QUANTITY = enum.auto()
|
|
49
|
+
INSUFFICIENT_FUNDS = enum.auto()
|
|
64
50
|
MARKET_CLOSED = enum.auto()
|
|
65
51
|
UNKNOWN = enum.auto()
|
|
66
52
|
|
|
@@ -165,7 +151,7 @@ class Events:
|
|
|
165
151
|
@dataclasses.dataclass(kw_only=True, frozen=True)
|
|
166
152
|
class OrderRejected(BrokerResponseEvent):
|
|
167
153
|
order_id: uuid.UUID
|
|
168
|
-
reason: Models.
|
|
154
|
+
reason: Models.RejectionReason
|
|
169
155
|
|
|
170
156
|
@dataclasses.dataclass(kw_only=True, frozen=True)
|
|
171
157
|
class OrderCancelled(BrokerResponseEvent):
|
|
@@ -178,12 +164,12 @@ class Events:
|
|
|
178
164
|
@dataclasses.dataclass(kw_only=True, frozen=True)
|
|
179
165
|
class CancelRejected(BrokerResponseEvent):
|
|
180
166
|
order_id: uuid.UUID
|
|
181
|
-
reason: Models.
|
|
167
|
+
reason: Models.RejectionReason
|
|
182
168
|
|
|
183
169
|
@dataclasses.dataclass(kw_only=True, frozen=True)
|
|
184
170
|
class ModifyRejected(BrokerResponseEvent):
|
|
185
171
|
order_id: uuid.UUID
|
|
186
|
-
reason: Models.
|
|
172
|
+
reason: Models.RejectionReason
|
|
187
173
|
|
|
188
174
|
|
|
189
175
|
class BaseConsumer(abc.ABC):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|