tradx 0.8.1__tar.gz → 0.8.3__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.
- {tradx-0.8.1 → tradx-0.8.3}/PKG-INFO +1 -1
- {tradx-0.8.1 → tradx-0.8.3}/pyproject.toml +1 -1
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/interactiveEngine.py +4 -4
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/marketDataEngine.py +2 -2
- {tradx-0.8.1 → tradx-0.8.3}/.gitignore +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/.vscode/settings.json +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/README.md +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/examples/example1.log +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/examples/example1.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/examples/example2.log +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/examples/example2.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/__init__.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/algoContainer.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/baseAlgo.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/candleData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/cmInstrument.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/futureInstrument.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/index.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/instrumentPropertyChangeData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/ltpData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/ltpPartialData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/marketDepthData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/marketStatusData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/openInterestData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/openInterestPartialData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/optionsInstrument.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/order.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/orderEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/position.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/positionEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/touchLineData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/touchLinePartialData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/tradeConversionEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/baseClass/tradeEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/constants/holidays.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/dualHashMap.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/logger/logger.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/logger/logger2.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/src/tradx/py.typed +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_candleData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_interactiveEngine.log +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_interactiveEngine.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_logger.log +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_logger.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_ltpData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_ltpPartailData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_marketDataEngine.log +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_marketDataEngine.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_marketDepthData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_marketStatusData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_openInterestData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_openInterestPartialData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_option.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_orderEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_positionEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_touchLineData.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_tradeConversionEvent.py +0 -0
- {tradx-0.8.1 → tradx-0.8.3}/test/test_tradeEvent.py +0 -0
@@ -12,7 +12,7 @@ from tradx.baseClass.positionEvent import PositionEvent
|
|
12
12
|
from tradx.baseClass.tradeEvent import TradeEvent
|
13
13
|
from tradx.baseClass.tradeConversionEvent import TradeConversionEvent
|
14
14
|
from datetime import datetime
|
15
|
-
|
15
|
+
import os
|
16
16
|
|
17
17
|
class interactiveEngine(InteractiveSocketClient):
|
18
18
|
"""
|
@@ -557,7 +557,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
557
557
|
current_time = datetime.now().time()
|
558
558
|
cnt: int = 0
|
559
559
|
if current_time < datetime.strptime("15:20", "%H:%M").time():
|
560
|
-
while not self.isConnected and cnt <
|
560
|
+
while not self.isConnected and cnt < 8:
|
561
561
|
print("Attempting to reconnect as the time is before 3:20 PM and isConnected is False for interactive Socket.")
|
562
562
|
if self.user_logger:
|
563
563
|
self.user_logger.info(
|
@@ -573,7 +573,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
573
573
|
f"Reconnection attempt {cnt} failed. Retrying...",
|
574
574
|
caller="interactiveEngine.on_disconnect",
|
575
575
|
)
|
576
|
-
if cnt >=
|
576
|
+
if cnt >= 8:
|
577
577
|
if self.user_logger:
|
578
578
|
self.user_logger.error(
|
579
579
|
f"Reconnection attempts failed. Please check the network connection.",
|
@@ -642,7 +642,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
642
642
|
else None
|
643
643
|
)
|
644
644
|
)
|
645
|
-
|
645
|
+
os._exit(0)
|
646
646
|
|
647
647
|
|
648
648
|
async def on_trade(self, xts_message: str) -> None:
|
@@ -297,7 +297,7 @@ class marketDataEngine(MarketDataSocketClient):
|
|
297
297
|
current_time = datetime.now().time()
|
298
298
|
cnt: int = 0
|
299
299
|
if current_time < datetime.strptime("15:20", "%H:%M").time():
|
300
|
-
while not self.isConnected and cnt <
|
300
|
+
while not self.isConnected and cnt < 8:
|
301
301
|
print("Attempting to reconnect as the time is before 3:20 PM and isConnected is False for market data socket.")
|
302
302
|
if self.user_logger:
|
303
303
|
self.user_logger.info(
|
@@ -313,7 +313,7 @@ class marketDataEngine(MarketDataSocketClient):
|
|
313
313
|
f"Reconnection attempt {cnt} failed. Retrying...",
|
314
314
|
caller="marketDataEngine.on_disconnect",
|
315
315
|
)
|
316
|
-
if cnt >=
|
316
|
+
if cnt >= 8:
|
317
317
|
print("Reconnection attempts failed for market data socket. Please check the network connection.",)
|
318
318
|
if self.user_logger:
|
319
319
|
self.user_logger.error(
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|