pyalgotrading 2024.12.1__py3-none-any.whl → 2025.1.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 +23 -8
- {pyalgotrading-2024.12.1.dist-info → pyalgotrading-2025.1.1.dist-info}/METADATA +1 -1
- {pyalgotrading-2024.12.1.dist-info → pyalgotrading-2025.1.1.dist-info}/RECORD +6 -6
- {pyalgotrading-2024.12.1.dist-info → pyalgotrading-2025.1.1.dist-info}/LICENSE +0 -0
- {pyalgotrading-2024.12.1.dist-info → pyalgotrading-2025.1.1.dist-info}/WHEEL +0 -0
- {pyalgotrading-2024.12.1.dist-info → pyalgotrading-2025.1.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'
|
|
@@ -299,14 +310,14 @@ class OptionsInstrumentDirection(Enum):
|
|
|
299
310
|
|
|
300
311
|
|
|
301
312
|
CandleIntervalSecondsMap = {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
313
|
+
CandleInterval.MINUTE_1.value: 60,
|
|
314
|
+
CandleInterval.MINUTE_3.value: 180,
|
|
315
|
+
CandleInterval.MINUTE_5.value: 300,
|
|
316
|
+
CandleInterval.MINUTE_10.value: 600,
|
|
317
|
+
CandleInterval.MINUTE_15.value: 900,
|
|
318
|
+
CandleInterval.MINUTE_30.value: 1800,
|
|
319
|
+
CandleInterval.MINUTE_60.value: 3600,
|
|
320
|
+
CandleInterval.DAY_1.value: 86400
|
|
310
321
|
}
|
|
311
322
|
|
|
312
323
|
KEY_DT_FORMAT_WITH_TIMEZONE = 0
|
|
@@ -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
|
|
@@ -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
|
|
@@ -28,8 +28,8 @@ pyalgotrading/utils/candlesticks/__init__.py,sha256=maIn__tvTvJDjldPhU9agBcNNuRO
|
|
|
28
28
|
pyalgotrading/utils/candlesticks/heikinashi.py,sha256=SpcuK7AYV0sgzcw-DMfLNtTDn2RfWqGvWBt4no7yKD4,2003
|
|
29
29
|
pyalgotrading/utils/candlesticks/linebreak.py,sha256=cYwoETMrenWOa06d03xASZoiou-qRz7n2mZYCi5ilEs,1434
|
|
30
30
|
pyalgotrading/utils/candlesticks/renko.py,sha256=zovQ6D658pBLas86FuTu9fU3-Kkv2hM-4h7OQJjdxng,2089
|
|
31
|
-
pyalgotrading-
|
|
32
|
-
pyalgotrading-
|
|
33
|
-
pyalgotrading-
|
|
34
|
-
pyalgotrading-
|
|
35
|
-
pyalgotrading-
|
|
31
|
+
pyalgotrading-2025.1.1.dist-info/LICENSE,sha256=-LLEprvixKS-LwHef99YQSOFon_tWeTwJRAWuUwwr1g,1066
|
|
32
|
+
pyalgotrading-2025.1.1.dist-info/METADATA,sha256=VMpHuTmrgB8d6Rju_9j_T7nkgNi_1TCC-EnbPndsmjw,5829
|
|
33
|
+
pyalgotrading-2025.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
34
|
+
pyalgotrading-2025.1.1.dist-info/top_level.txt,sha256=A12PTnbXqO3gsZ0D0Gkyzf_OYRQxjJvtg3MqN-Ur2zY,14
|
|
35
|
+
pyalgotrading-2025.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|