tradx 0.7.4__py3-none-any.whl → 0.7.6__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
@@ -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}"
|
@@ -225,7 +233,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
225
233
|
disclosedQuantity=0,
|
226
234
|
orderQuantity=abs(orderQuantity),
|
227
235
|
limitPrice=0,
|
228
|
-
stopPrice=stopPrice,
|
236
|
+
stopPrice=stopPrice.to_eng_string(),
|
229
237
|
orderUniqueIdentifier=orderUniqueIdentifier,
|
230
238
|
clientID=self.set_iuserID,
|
231
239
|
)
|
@@ -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}"
|
@@ -350,7 +366,7 @@ class interactiveEngine(InteractiveSocketClient):
|
|
350
366
|
), "exchangeInstrumentID must be an integer"
|
351
367
|
assert isinstance(productType, str), "productType must be a string"
|
352
368
|
assert isinstance(orderQuantity, int), "orderQuantity must be an integer"
|
353
|
-
assert isinstance(limitPrice, Decimal), "limitPrice must be a
|
369
|
+
assert isinstance(limitPrice, Decimal), "limitPrice must be a string"
|
354
370
|
assert isinstance(stopPrice, Decimal), "stopPrice must be a Decimal"
|
355
371
|
assert isinstance(
|
356
372
|
orderUniqueIdentifier, str
|
@@ -370,8 +386,8 @@ class interactiveEngine(InteractiveSocketClient):
|
|
370
386
|
timeInForce=self.xt.VALIDITY_DAY,
|
371
387
|
disclosedQuantity=0,
|
372
388
|
orderQuantity=abs(orderQuantity),
|
373
|
-
limitPrice=limitPrice,
|
374
|
-
stopPrice=stopPrice,
|
389
|
+
limitPrice=limitPrice.to_eng_string(),
|
390
|
+
stopPrice=stopPrice.to_eng_string(),
|
375
391
|
orderUniqueIdentifier=orderUniqueIdentifier,
|
376
392
|
clientID=self.set_iuserID,
|
377
393
|
)
|
@@ -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=2Gy2txr8aoUIpTVBoHHcQ3Okzsip87xsKBUs1lWz8iI,34924
|
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
|
@@ -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.6.dist-info/METADATA,sha256=AZ1VNz-ty3Q_fnXEhl4E5ooS1qjMGySEBOf5UtE1zls,2627
|
32
|
+
tradx-0.7.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
tradx-0.7.6.dist-info/RECORD,,
|
File without changes
|