tradx 0.7.8__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/interactiveEngine.py
CHANGED
@@ -160,7 +160,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
160
160
|
if orderQuantity > 0
|
161
161
|
else self.xt.TRANSACTION_TYPE_SELL
|
162
162
|
),
|
163
|
-
timeInForce=self.xt.
|
163
|
+
timeInForce=self.xt.TimeinForce_DAY,
|
164
164
|
disclosedQuantity=0,
|
165
165
|
orderQuantity=abs(orderQuantity),
|
166
166
|
limitPrice=0,
|
@@ -237,7 +237,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
237
237
|
if orderQuantity > 0
|
238
238
|
else self.xt.TRANSACTION_TYPE_SELL
|
239
239
|
),
|
240
|
-
timeInForce=self.xt.
|
240
|
+
timeInForce=self.xt.TimeinForce_DAY,
|
241
241
|
disclosedQuantity=0,
|
242
242
|
orderQuantity=abs(orderQuantity),
|
243
243
|
limitPrice=0,
|
@@ -309,7 +309,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
309
309
|
if orderQuantity > 0
|
310
310
|
else self.xt.TRANSACTION_TYPE_SELL
|
311
311
|
),
|
312
|
-
timeInForce=self.xt.
|
312
|
+
timeInForce=self.xt.TimeinForce_DAY,
|
313
313
|
disclosedQuantity=0,
|
314
314
|
orderQuantity=abs(orderQuantity),
|
315
315
|
limitPrice=limitPrice,
|
@@ -397,7 +397,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
397
397
|
if orderQuantity > 0
|
398
398
|
else self.xt.TRANSACTION_TYPE_SELL
|
399
399
|
),
|
400
|
-
timeInForce=self.xt.
|
400
|
+
timeInForce=self.xt.TimeinForce_DAY,
|
401
401
|
disclosedQuantity=0,
|
402
402
|
orderQuantity=abs(orderQuantity),
|
403
403
|
limitPrice=limitPrice.to_eng_string(),
|
@@ -563,7 +563,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
563
563
|
if orderQuantity > 0
|
564
564
|
else self.xt.TRANSACTION_TYPE_SELL
|
565
565
|
),
|
566
|
-
timeInForce=self.xt.
|
566
|
+
timeInForce=self.xt.TimeinForce_DAY,
|
567
567
|
disclosedQuantity=0,
|
568
568
|
orderQuantity=abs(orderQuantity),
|
569
569
|
limitPrice=0,
|
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:
|
@@ -1,8 +1,8 @@
|
|
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=
|
5
|
-
tradx/marketDataEngine.py,sha256=
|
4
|
+
tradx/interactiveEngine.py,sha256=ln7dT_S0HaFHA36AW5P0o6svYGSLlmBThheIhJQ6D34,38912
|
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
|