You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
I'm trying to put in an order for ("EUR", "CASH", "IDEALPRO", "USD").
Traceback (most recent call last):
File "strategy.py", line 84, in set_position
self.instrument.order('BUY' if qty > 0 else 'SELL', abs(qty))
File "/progs/qtpy/python/src/qtpylib/qtpylib/instrument.py", line 180, in order
self.parent.order(direction.upper(), self, quantity, **kwargs)
File "/progs/qtpy/python/src/qtpylib/qtpylib/algo.py", line 470, in order
self._create_order(**kwargs)
File "/progs/qtpy/python/src/qtpylib/qtpylib/broker.py", line 589, in _create_order
contract = self.get_contract(symbol)
File "/progs/qtpy/python/src/qtpylib/qtpylib/broker.py", line 794, in get_contract
return self.ibConn.contracts[self.ibConn.tickerId(symbol)]
KeyError: 2
If I print the relevant variables in Broker.get_contract():
Works fine here... Are you running the latest ezIBpy 1.12.32?
BTW - I've created a chatroom on Gitter for exchanging ideas / features for QTPyLib and ezIBpy. I'd love it if you'd join via https://gitter.im/qtpylib
I'm trying to put in an order for
("EUR", "CASH", "IDEALPRO", "USD")
.If I print the relevant variables in
Broker.get_contract()
:Looks like
tickerId()
is not matching, then creates a new ID?The text was updated successfully, but these errors were encountered: