tradx 0.7.9__py3-none-any.whl → 0.7.10__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
@@ -436,8 +436,20 @@ class marketDataEngine(MarketDataSocketClient):
|
|
436
436
|
"""Get Master Instruments Request for NSE cash market segment"""
|
437
437
|
exchangesegments = [self.xt.EXCHANGE_NSECM, self.xt.EXCHANGE_BSECM]
|
438
438
|
response = await self.xt.get_master(exchangeSegmentList=exchangesegments)
|
439
|
-
self.CM_MASTER_DF = helper.cm_master_string_to_df(response["result"])
|
440
439
|
|
440
|
+
a = response["result"].split("\n")
|
441
|
+
# List to store successfully parsed DataFrames
|
442
|
+
dfs = []
|
443
|
+
for line in a:
|
444
|
+
try:
|
445
|
+
df = helper.cm_master_string_to_df(
|
446
|
+
line
|
447
|
+
) # Process each line individually
|
448
|
+
dfs.append(df) # Store successfully parsed DataFrame
|
449
|
+
except Exception as e:
|
450
|
+
print(f"Error processing line: {line}\nError: {e}")
|
451
|
+
|
452
|
+
self.CM_MASTER_DF: pandas.DataFrame = pandas.concat(dfs, ignore_index=True)
|
441
453
|
self.CM_MASTER_DF.to_csv(f"MASTER_CM.csv", index=False)
|
442
454
|
|
443
455
|
if self.user_logger:
|
@@ -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=ln7dT_S0HaFHA36AW5P0o6svYGSLlmBThheIhJQ6D34,38912
|
5
|
-
tradx/marketDataEngine.py,sha256=
|
5
|
+
tradx/marketDataEngine.py,sha256=pGIdYc1z2XVFYy09Qimb9kfcRLu_Nt4Yjcewf_DC3_U,35683
|
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=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.10.dist-info/METADATA,sha256=rQwSNcfhXwpQ64gUcPp4D3t1MK0agqHc1fj0w9DXMq8,2629
|
32
|
+
tradx-0.7.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
tradx-0.7.10.dist-info/RECORD,,
|
File without changes
|