tradx 0.7.2__py3-none-any.whl → 0.7.3__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/marketDataEngine.py
CHANGED
@@ -123,7 +123,7 @@ class marketDataEngine(MarketDataSocketClient):
|
|
123
123
|
async def on_event_market_status_full(self, data):
|
124
124
|
"""On receiving message code 1507:Market Status full"""
|
125
125
|
# __ = MarketStatusData(data)
|
126
|
-
|
126
|
+
__ = data
|
127
127
|
if self.user_logger:
|
128
128
|
self.user_logger.info(
|
129
129
|
f"1507:Market Status full;{__}",
|
@@ -372,11 +372,22 @@ class marketDataEngine(MarketDataSocketClient):
|
|
372
372
|
response = await self.xt.send_subscription(
|
373
373
|
Instruments=Instruments, xtsMessageCode=xtsMessageCode
|
374
374
|
)
|
375
|
+
if (
|
376
|
+
response["type"] == "error"
|
377
|
+
and response["description"] == "Instrument Already Subscribed !"
|
378
|
+
):
|
379
|
+
if self.user_logger:
|
380
|
+
self.user_logger.error(
|
381
|
+
f"Error in Subscribing Quantities: {Instruments} on request from {algo.name} as {response}",
|
382
|
+
caller="marketDataEngine.subscribe",
|
383
|
+
)
|
384
|
+
# Avoid raising this error
|
375
385
|
if response["type"] != "success":
|
376
|
-
self.user_logger
|
377
|
-
|
378
|
-
|
379
|
-
|
386
|
+
if self.user_logger:
|
387
|
+
self.user_logger.error(
|
388
|
+
f"Error in Subscribing Quantities: {Instruments} on request from {algo.name} as {response}",
|
389
|
+
caller="marketDataEngine.subscribe",
|
390
|
+
)
|
380
391
|
raise (response)
|
381
392
|
if self.user_logger:
|
382
393
|
self.user_logger.info(
|
@@ -2,7 +2,7 @@ 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
4
|
tradx/interactiveEngine.py,sha256=DCuEEYJcTn6DEG9pbaZsmGyHeyWGNG2q46Iljel6Drc,34584
|
5
|
-
tradx/marketDataEngine.py,sha256=
|
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
|
8
8
|
tradx/baseClass/candleData.py,sha256=tS-iAoRGwK2xVSvrqmNZPYeB63qD53oPPHaUDfJBWkk,2947
|
@@ -28,6 +28,6 @@ tradx/baseClass/tradeEvent.py,sha256=djunJW5AzjeMfJZVMlrFprplB7vrYBi-mmaR1TA0MK4
|
|
28
28
|
tradx/constants/holidays.py,sha256=GCg0xGvXm1EM0n6YF1KYEnldSiC2sbsc09Iekjwn0ww,1547
|
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.3.dist-info/METADATA,sha256=g4N5HJwvnYOD_N7A4JqXbnKn3E6o2q-exGeXDG1OEoM,2627
|
32
|
+
tradx-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
tradx-0.7.3.dist-info/RECORD,,
|
File without changes
|