tradx 0.7.3__py3-none-any.whl → 0.7.5__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.
tradx/constants/holidays.py
CHANGED
@@ -1,15 +1,8 @@
|
|
1
1
|
"""
|
2
|
-
This module defines a list of holidays
|
2
|
+
This module defines a list of holidays and special trading days for 2024 and 2025.
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
Id-Ul-Fitr, Shri Mahavir Jayanti, Dr. Baba Saheb Ambedkar Jayanti,
|
7
|
-
Good Friday, Maharashtra Day, Independence Day, Ganesh Chaturthi,
|
8
|
-
Mahatma Gandhi Jayanti/Dussehra, Diwali Laxmi Pujan, Diwali-Balipratipada,
|
9
|
-
and Prakash Gurpurb Sri Guru Nanak Dev.
|
10
|
-
|
11
|
-
The holidays list can be used for various purposes such as checking if a
|
12
|
-
given date is a holiday, scheduling events, or generating holiday calendars.
|
4
|
+
These lists can be used for applications like holiday validation, event scheduling,
|
5
|
+
and financial market operations.
|
13
6
|
"""
|
14
7
|
from datetime import datetime
|
15
8
|
|
@@ -30,3 +23,6 @@ holidays = [
|
|
30
23
|
datetime(2025, 11, 5).date(), # Prakash Gurpurb Sri Guru Nanak Dev
|
31
24
|
datetime(2025, 12, 25).date(), # Christmas
|
32
25
|
]
|
26
|
+
special_trading_days = [
|
27
|
+
datetime(2025, 2, 1).date(), # Budget Day
|
28
|
+
]
|
tradx/interactiveEngine.py
CHANGED
@@ -132,7 +132,11 @@ class interactiveEngine(InteractiveSocketClient):
|
|
132
132
|
XTSConnect.EXCHANGE_NSECD,
|
133
133
|
XTSConnect.EXCHANGE_MCXFO,
|
134
134
|
]
|
135
|
-
allowed_product_types = [
|
135
|
+
allowed_product_types = [
|
136
|
+
XTSConnect.PRODUCT_MIS,
|
137
|
+
XTSConnect.PRODUCT_NRML,
|
138
|
+
XTSConnect.PRODUCT_CNC,
|
139
|
+
]
|
136
140
|
assert (
|
137
141
|
exchangeSegment in allowed_exchange_segments
|
138
142
|
), f"Invalid exchangeSegment: {exchangeSegment}"
|
@@ -202,7 +206,11 @@ class interactiveEngine(InteractiveSocketClient):
|
|
202
206
|
XTSConnect.EXCHANGE_NSECD,
|
203
207
|
XTSConnect.EXCHANGE_MCXFO,
|
204
208
|
]
|
205
|
-
allowed_product_types = [
|
209
|
+
allowed_product_types = [
|
210
|
+
XTSConnect.PRODUCT_MIS,
|
211
|
+
XTSConnect.PRODUCT_NRML,
|
212
|
+
XTSConnect.PRODUCT_CNC,
|
213
|
+
]
|
206
214
|
assert (
|
207
215
|
exchangeSegment in allowed_exchange_segments
|
208
216
|
), f"Invalid exchangeSegment: {exchangeSegment}"
|
@@ -267,7 +275,11 @@ class interactiveEngine(InteractiveSocketClient):
|
|
267
275
|
XTSConnect.EXCHANGE_NSECD,
|
268
276
|
XTSConnect.EXCHANGE_MCXFO,
|
269
277
|
]
|
270
|
-
allowed_product_types = [
|
278
|
+
allowed_product_types = [
|
279
|
+
XTSConnect.PRODUCT_MIS,
|
280
|
+
XTSConnect.PRODUCT_NRML,
|
281
|
+
XTSConnect.PRODUCT_CNC,
|
282
|
+
]
|
271
283
|
assert (
|
272
284
|
exchangeSegment in allowed_exchange_segments
|
273
285
|
), f"Invalid exchangeSegment: {exchangeSegment}"
|
@@ -337,7 +349,11 @@ class interactiveEngine(InteractiveSocketClient):
|
|
337
349
|
XTSConnect.EXCHANGE_NSECD,
|
338
350
|
XTSConnect.EXCHANGE_MCXFO,
|
339
351
|
]
|
340
|
-
allowed_product_types = [
|
352
|
+
allowed_product_types = [
|
353
|
+
XTSConnect.PRODUCT_MIS,
|
354
|
+
XTSConnect.PRODUCT_NRML,
|
355
|
+
XTSConnect.PRODUCT_CNC,
|
356
|
+
]
|
341
357
|
assert (
|
342
358
|
exchangeSegment in allowed_exchange_segments
|
343
359
|
), f"Invalid exchangeSegment: {exchangeSegment}"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
tradx/__init__.py,sha256=MlWuula4lJZLPYPi4d5ZE9yoJnYWtgbZ0QsgWdWPwU0,53
|
2
2
|
tradx/algoContainer.py,sha256=1IkVCIF_gXIby8z3pDdlVeUablh-PZVZ1EawyCB7oUs,3807
|
3
3
|
tradx/dualHashMap.py,sha256=XsidIc3aMvpVGOvdfV7lOeZaLCWAD5i180BGyAfdYXE,1737
|
4
|
-
tradx/interactiveEngine.py,sha256=
|
4
|
+
tradx/interactiveEngine.py,sha256=MMncPGAwLxkPDSbBBxhnUd1QwlmKTptfFZ94ukg9wXg,34877
|
5
5
|
tradx/marketDataEngine.py,sha256=QwMWI0kZe5OsFPUcG_J2Kk7-Q_WODmkUM8BBRgIvkTw,35163
|
6
6
|
tradx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
tradx/baseClass/baseAlgo.py,sha256=LE4ZYb-gLpPMU45ETMg58kRQdGN-Q9wgDhKEasovL-k,20922
|
@@ -25,9 +25,9 @@ tradx/baseClass/touchLineData.py,sha256=sVODRdT97Xefnpzzddcza_N5KD6teh2tBhME4dRA
|
|
25
25
|
tradx/baseClass/touchLinePartialData.py,sha256=mdLVrD_4O74NRamTrrlH9ge69xVXv2w_XZXpAQOIMYI,4069
|
26
26
|
tradx/baseClass/tradeConversionEvent.py,sha256=WyRBu02EeUFrcYd9zkahAPYoP1rCoTQDB09IzNa3Zno,3246
|
27
27
|
tradx/baseClass/tradeEvent.py,sha256=djunJW5AzjeMfJZVMlrFprplB7vrYBi-mmaR1TA0MK4,6699
|
28
|
-
tradx/constants/holidays.py,sha256=
|
28
|
+
tradx/constants/holidays.py,sha256=B4ee4bPFy-gBTKN6-G68Idf1n6HxoRcx72O92zSobcE,1200
|
29
29
|
tradx/logger/logger.py,sha256=DfrjzwYkujTq7arksNTPcQeioXnwT1xgN659blhreog,3232
|
30
30
|
tradx/logger/logger2.py,sha256=ebJ-qqnpnCqvyx1Cz1-kGGULtkH-hfrK6UNfa0bSlH8,2654
|
31
|
-
tradx-0.7.
|
32
|
-
tradx-0.7.
|
33
|
-
tradx-0.7.
|
31
|
+
tradx-0.7.5.dist-info/METADATA,sha256=QAZSdZp-YRNOMG9xP57QsMEqc5JJb6jwh08zjTh90bQ,2627
|
32
|
+
tradx-0.7.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
tradx-0.7.5.dist-info/RECORD,,
|
File without changes
|