tradx 0.1.1__tar.gz → 0.1.1.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.
- {tradx-0.1.1 → tradx-0.1.1.2}/PKG-INFO +1 -1
- {tradx-0.1.1 → tradx-0.1.1.2}/pyproject.toml +1 -1
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/baseAlgo.py +2 -2
- {tradx-0.1.1 → tradx-0.1.1.2}/.gitignore +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/.vscode/settings.json +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/README.md +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/examples/example1.log +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/examples/example1.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/examples/example2.log +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/examples/example2.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/__init__.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/algoContainer.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/candleData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/cmInstrument.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/futureInstrument.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/index.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/instrumentPropertyChangeData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/ltpData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/ltpPartialData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/marketDepthData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/marketStatusData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/openInterestData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/openInterestPartialData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/optionsInstrument.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/order.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/orderEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/position.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/positionEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/touchLineData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/touchLinePartialData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/tradeConversionEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/baseClass/tradeEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/constants/holidays.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/dualHashMap.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/interactiveEngine.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/logger/logger.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/logger/logger2.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/marketDataEngine.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/src/tradx/py.typed +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_candleData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_interactiveEngine.log +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_interactiveEngine.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_logger.log +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_logger.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_ltpData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_ltpPartailData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_marketDataEngine.log +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_marketDataEngine.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_marketDepthData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_marketStatusData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_openInterestData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_openInterestPartialData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_option.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_orderEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_positionEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_touchLineData.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_tradeConversionEvent.py +0 -0
- {tradx-0.1.1 → tradx-0.1.1.2}/test/test_tradeEvent.py +0 -0
@@ -305,7 +305,7 @@ class BaseAlgo(ABC):
|
|
305
305
|
|
306
306
|
qty = 0
|
307
307
|
for position in self.position_diary:
|
308
|
-
qty += position.Quantity
|
308
|
+
qty += abs(position.Quantity)
|
309
309
|
return qty != 0
|
310
310
|
|
311
311
|
async def liquidateIntradayDummy(self) -> None:
|
@@ -327,7 +327,7 @@ class BaseAlgo(ABC):
|
|
327
327
|
if position.Quantity != 0:
|
328
328
|
_order_no = self.order_no()
|
329
329
|
asyncio.ensure_future(
|
330
|
-
self.marketDataEngine.
|
330
|
+
self.marketDataEngine.dummy_market_order(
|
331
331
|
position.ExchangeSegment,
|
332
332
|
position.ExchangeInstrumentID,
|
333
333
|
position.ProductType,
|
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
|
File without changes
|