Looks like the TWS API for cancelling orders has changed - I get the following error when running in a Paper Trading Environment when I try to cancel orders:
File "/usr/local/lib/python3.10/site-packages/backtrader/strategy.py", line 772, in cancel
self.broker.cancel(order)
File "/usr/local/lib/python3.10/site-packages/atreyu_backtrader_api-0.1.0-py3.10.egg/atreyu_backtrader_api/ibbroker.py", line 324, in cancel
File "/usr/local/lib/python3.10/site-packages/atreyu_backtrader_api-0.1.0-py3.10.egg/atreyu_backtrader_api/ibstore.py", line 1993, in cancelOrder
TypeError: EClient.cancelOrder() missing 1 required positional argument: 'manualCancelOrderTime'
Looks like the TWS API for cancelling orders has changed - I get the following error when running in a Paper Trading Environment when I try to cancel orders:
File "/usr/local/lib/python3.10/site-packages/backtrader/strategy.py", line 772, in cancel self.broker.cancel(order) File "/usr/local/lib/python3.10/site-packages/atreyu_backtrader_api-0.1.0-py3.10.egg/atreyu_backtrader_api/ibbroker.py", line 324, in cancel File "/usr/local/lib/python3.10/site-packages/atreyu_backtrader_api-0.1.0-py3.10.egg/atreyu_backtrader_api/ibstore.py", line 1993, in cancelOrder TypeError: EClient.cancelOrder() missing 1 required positional argument: 'manualCancelOrderTime'