atreyuxtrading / atreyu-backtrader-api

Atreyu's integration of IB Native API with backtrader
BSD 2-Clause "Simplified" License
93 stars 62 forks source link

Error in order cancel - IBKR Paper Trading #7

Open tshumay opened 1 year ago

tshumay commented 1 year ago

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'