tradx 0.1.3__tar.gz → 0.2__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.
Files changed (58) hide show
  1. {tradx-0.1.3 → tradx-0.2}/PKG-INFO +1 -1
  2. {tradx-0.1.3 → tradx-0.2}/pyproject.toml +1 -1
  3. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/baseAlgo.py +4 -3
  4. {tradx-0.1.3 → tradx-0.2}/.gitignore +0 -0
  5. {tradx-0.1.3 → tradx-0.2}/.vscode/settings.json +0 -0
  6. {tradx-0.1.3 → tradx-0.2}/README.md +0 -0
  7. {tradx-0.1.3 → tradx-0.2}/examples/example1.log +0 -0
  8. {tradx-0.1.3 → tradx-0.2}/examples/example1.py +0 -0
  9. {tradx-0.1.3 → tradx-0.2}/examples/example2.log +0 -0
  10. {tradx-0.1.3 → tradx-0.2}/examples/example2.py +0 -0
  11. {tradx-0.1.3 → tradx-0.2}/src/tradx/__init__.py +0 -0
  12. {tradx-0.1.3 → tradx-0.2}/src/tradx/algoContainer.py +0 -0
  13. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/candleData.py +0 -0
  14. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/cmInstrument.py +0 -0
  15. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/futureInstrument.py +0 -0
  16. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/index.py +0 -0
  17. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/instrumentPropertyChangeData.py +0 -0
  18. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/ltpData.py +0 -0
  19. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/ltpPartialData.py +0 -0
  20. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/marketDepthData.py +0 -0
  21. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/marketStatusData.py +0 -0
  22. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/openInterestData.py +0 -0
  23. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/openInterestPartialData.py +0 -0
  24. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/optionsInstrument.py +0 -0
  25. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/order.py +0 -0
  26. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/orderEvent.py +0 -0
  27. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/position.py +0 -0
  28. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/positionEvent.py +0 -0
  29. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/touchLineData.py +0 -0
  30. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/touchLinePartialData.py +0 -0
  31. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/tradeConversionEvent.py +0 -0
  32. {tradx-0.1.3 → tradx-0.2}/src/tradx/baseClass/tradeEvent.py +0 -0
  33. {tradx-0.1.3 → tradx-0.2}/src/tradx/constants/holidays.py +0 -0
  34. {tradx-0.1.3 → tradx-0.2}/src/tradx/dualHashMap.py +0 -0
  35. {tradx-0.1.3 → tradx-0.2}/src/tradx/interactiveEngine.py +0 -0
  36. {tradx-0.1.3 → tradx-0.2}/src/tradx/logger/logger.py +0 -0
  37. {tradx-0.1.3 → tradx-0.2}/src/tradx/logger/logger2.py +0 -0
  38. {tradx-0.1.3 → tradx-0.2}/src/tradx/marketDataEngine.py +0 -0
  39. {tradx-0.1.3 → tradx-0.2}/src/tradx/py.typed +0 -0
  40. {tradx-0.1.3 → tradx-0.2}/test/test_candleData.py +0 -0
  41. {tradx-0.1.3 → tradx-0.2}/test/test_interactiveEngine.log +0 -0
  42. {tradx-0.1.3 → tradx-0.2}/test/test_interactiveEngine.py +0 -0
  43. {tradx-0.1.3 → tradx-0.2}/test/test_logger.log +0 -0
  44. {tradx-0.1.3 → tradx-0.2}/test/test_logger.py +0 -0
  45. {tradx-0.1.3 → tradx-0.2}/test/test_ltpData.py +0 -0
  46. {tradx-0.1.3 → tradx-0.2}/test/test_ltpPartailData.py +0 -0
  47. {tradx-0.1.3 → tradx-0.2}/test/test_marketDataEngine.log +0 -0
  48. {tradx-0.1.3 → tradx-0.2}/test/test_marketDataEngine.py +0 -0
  49. {tradx-0.1.3 → tradx-0.2}/test/test_marketDepthData.py +0 -0
  50. {tradx-0.1.3 → tradx-0.2}/test/test_marketStatusData.py +0 -0
  51. {tradx-0.1.3 → tradx-0.2}/test/test_openInterestData.py +0 -0
  52. {tradx-0.1.3 → tradx-0.2}/test/test_openInterestPartialData.py +0 -0
  53. {tradx-0.1.3 → tradx-0.2}/test/test_option.py +0 -0
  54. {tradx-0.1.3 → tradx-0.2}/test/test_orderEvent.py +0 -0
  55. {tradx-0.1.3 → tradx-0.2}/test/test_positionEvent.py +0 -0
  56. {tradx-0.1.3 → tradx-0.2}/test/test_touchLineData.py +0 -0
  57. {tradx-0.1.3 → tradx-0.2}/test/test_tradeConversionEvent.py +0 -0
  58. {tradx-0.1.3 → tradx-0.2}/test/test_tradeEvent.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tradx
3
- Version: 0.1.3
3
+ Version: 0.2
4
4
  Summary: A Package Designed to simplify strategy development on package xts-api-client
5
5
  Author-email: "jatin.kumawat" <jatin.kumawat@rmoneyindia.com>
6
6
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tradx"
3
- version = "0.1.3"
3
+ version = "0.2"
4
4
  description = "A Package Designed to simplify strategy development on package xts-api-client"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -199,7 +199,8 @@ class BaseAlgo(ABC):
199
199
  3. Logs the update or insertion of the position.
200
200
  4. Ensures the on_tradeEvent callback is called asynchronously.
201
201
  """
202
-
202
+ if trade.OrderStatus != "Filled":
203
+ return
203
204
  # Check if the trade exists in the position diary
204
205
  existing_position = next(
205
206
  (
@@ -409,7 +410,7 @@ class BaseAlgo(ABC):
409
410
  ),
410
411
  None,
411
412
  )
412
- while order is None or (order is not None and order.OrderStatus != "Filled"):
413
+ while order is None or (order is not None and "Filled" not in order.OrderStatus):
413
414
  await asyncio.sleep(0.1)
414
415
  order = next(
415
416
  (
@@ -426,7 +427,7 @@ class BaseAlgo(ABC):
426
427
  caller=f"{self.__class__.__name__}.safe_market_order",
427
428
  )
428
429
  break
429
- if order is not None and order.OrderStatus != "Filled":
430
+ if order is not None and "Filled" not in order.OrderStatus:
430
431
  Data: TouchLineData = (
431
432
  await self.marketDataEngine.fetch_ltp(
432
433
  [
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