pyalgotrading 2024.12.2__py3-none-any.whl → 2025.3.1__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.
- pyalgotrading/constants.py +15 -0
- pyalgotrading/strategy/utils.py +29 -0
- {pyalgotrading-2024.12.2.dist-info → pyalgotrading-2025.3.1.dist-info}/METADATA +1 -1
- {pyalgotrading-2024.12.2.dist-info → pyalgotrading-2025.3.1.dist-info}/RECORD +7 -6
- {pyalgotrading-2024.12.2.dist-info → pyalgotrading-2025.3.1.dist-info}/LICENSE +0 -0
- {pyalgotrading-2024.12.2.dist-info → pyalgotrading-2025.3.1.dist-info}/WHEEL +0 -0
- {pyalgotrading-2024.12.2.dist-info → pyalgotrading-2025.3.1.dist-info}/top_level.txt +0 -0
pyalgotrading/constants.py
CHANGED
|
@@ -280,6 +280,17 @@ class OptionsStrikeDirection(Enum):
|
|
|
280
280
|
OTM = 'OTM'
|
|
281
281
|
|
|
282
282
|
|
|
283
|
+
OPTIONS_STRIKE_DIRECTION_NUMERIC_ITM = 0
|
|
284
|
+
OPTIONS_STRIKE_DIRECTION_NUMERIC_ATM = 1
|
|
285
|
+
OPTIONS_STRIKE_DIRECTION_NUMERIC_OTM = 2
|
|
286
|
+
|
|
287
|
+
OptionsStrikeDirectionMap = {
|
|
288
|
+
OPTIONS_STRIKE_DIRECTION_NUMERIC_ITM: OptionsStrikeDirection.ITM.value,
|
|
289
|
+
OPTIONS_STRIKE_DIRECTION_NUMERIC_ATM: OptionsStrikeDirection.ATM.value,
|
|
290
|
+
OPTIONS_STRIKE_DIRECTION_NUMERIC_OTM: OptionsStrikeDirection.OTM.value
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
|
|
283
294
|
class OptionsTradingsymbolSuffix(Enum):
|
|
284
295
|
CE = 'CE'
|
|
285
296
|
PE = 'PE'
|
|
@@ -325,3 +336,7 @@ EXCHANGE_LOCALE_MAP = {
|
|
|
325
336
|
'NYSE': Locale.USA.value,
|
|
326
337
|
}
|
|
327
338
|
|
|
339
|
+
|
|
340
|
+
class ABSystemExit(SystemExit):
|
|
341
|
+
# Use this class instead of SystemExit directly for stopping your strategy
|
|
342
|
+
pass
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from constants import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def check_order_placed_successfully(self, _order):
|
|
5
|
+
"""
|
|
6
|
+
Dummy Function.
|
|
7
|
+
|
|
8
|
+
This method checks whether --
|
|
9
|
+
-- order is not None
|
|
10
|
+
-- broker_order_id exists for this order
|
|
11
|
+
-- order status is not REJECTED
|
|
12
|
+
|
|
13
|
+
Returns True if all of the above are True, else False.
|
|
14
|
+
"""
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def check_order_complete_status(self, _order):
|
|
19
|
+
"""
|
|
20
|
+
Dummy Function.
|
|
21
|
+
|
|
22
|
+
This method checks whether --
|
|
23
|
+
-- order is not None
|
|
24
|
+
-- broker_order_id exists for this order
|
|
25
|
+
-- order status is COMPLETE
|
|
26
|
+
|
|
27
|
+
Returns True if all of the above are True, else False
|
|
28
|
+
"""
|
|
29
|
+
pass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
pyalgotrading/__init__.py,sha256=UzrsH5H2VlSxwdH8z0MnFqQoj_ggI6nEcVr4dLVFEeI,213
|
|
2
|
-
pyalgotrading/constants.py,sha256=
|
|
2
|
+
pyalgotrading/constants.py,sha256=bLSLD8oWMviPRXbytxjuNq7m6_VMJft5jvlxCTusGac,8054
|
|
3
3
|
pyalgotrading/algobulls/__init__.py,sha256=IRkbWtJfgQnPH7gikjqpa6QsYnmk_NQ1lwtx7LPIC6c,133
|
|
4
4
|
pyalgotrading/algobulls/api.py,sha256=P3BZL43Dv9Ke1vSU4Lv6cCwxibLi3zMXbq6z4hXNna4,19750
|
|
5
5
|
pyalgotrading/algobulls/connection.py,sha256=Wf3UecztkYT8gvrjjQHwrolaOJCerc8krOci2-iEIvE,59753
|
|
@@ -19,6 +19,7 @@ pyalgotrading/order/order_regular_base.py,sha256=wOFmv7QnxJvNKtqdoZn0a-cbTotik4c
|
|
|
19
19
|
pyalgotrading/strategy/__init__.py,sha256=V58WuYIWpsmbs5pat5Z1FLxOR3nHwjaIhnJTQ8tzAUA,126
|
|
20
20
|
pyalgotrading/strategy/strategy_base.py,sha256=9I6ZdZT1IimO9g03QURrFo2Pxvs4Dsk8Ybdtij8ZIUQ,4717
|
|
21
21
|
pyalgotrading/strategy/strategy_options_base_v2.py,sha256=3SfCvWjz8eGXtlB2hIXREAODV0PbrtXIYgXRFB08UjQ,2765
|
|
22
|
+
pyalgotrading/strategy/utils.py,sha256=fEQw5jndBSIMDfSdWPHz1xjfskuN5uyiytOoeyiVPFU,627
|
|
22
23
|
pyalgotrading/strategy/validate_strategy.py,sha256=Ot2kvROtG-tpcbK_Fv-OdapG8oNdgvSNV2hTWtfTCQI,482
|
|
23
24
|
pyalgotrading/talib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
25
|
pyalgotrading/talib/talib.py,sha256=6ErzVsVhGOTUvGl5QffR6OAoswQP7Yn0VrQ3cc5rWCQ,308
|
|
@@ -28,8 +29,8 @@ pyalgotrading/utils/candlesticks/__init__.py,sha256=maIn__tvTvJDjldPhU9agBcNNuRO
|
|
|
28
29
|
pyalgotrading/utils/candlesticks/heikinashi.py,sha256=SpcuK7AYV0sgzcw-DMfLNtTDn2RfWqGvWBt4no7yKD4,2003
|
|
29
30
|
pyalgotrading/utils/candlesticks/linebreak.py,sha256=cYwoETMrenWOa06d03xASZoiou-qRz7n2mZYCi5ilEs,1434
|
|
30
31
|
pyalgotrading/utils/candlesticks/renko.py,sha256=zovQ6D658pBLas86FuTu9fU3-Kkv2hM-4h7OQJjdxng,2089
|
|
31
|
-
pyalgotrading-
|
|
32
|
-
pyalgotrading-
|
|
33
|
-
pyalgotrading-
|
|
34
|
-
pyalgotrading-
|
|
35
|
-
pyalgotrading-
|
|
32
|
+
pyalgotrading-2025.3.1.dist-info/LICENSE,sha256=-LLEprvixKS-LwHef99YQSOFon_tWeTwJRAWuUwwr1g,1066
|
|
33
|
+
pyalgotrading-2025.3.1.dist-info/METADATA,sha256=wknUCV11oOD88xug_ZYFQmc0KqWbqHXp6lPJOcGEHJQ,5829
|
|
34
|
+
pyalgotrading-2025.3.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
35
|
+
pyalgotrading-2025.3.1.dist-info/top_level.txt,sha256=A12PTnbXqO3gsZ0D0Gkyzf_OYRQxjJvtg3MqN-Ur2zY,14
|
|
36
|
+
pyalgotrading-2025.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|