diff --git a/piker/brokers/ib/api.py b/piker/brokers/ib/api.py index 7647d03e..bc4bdcf1 100644 --- a/piker/brokers/ib/api.py +++ b/piker/brokers/ib/api.py @@ -727,12 +727,16 @@ class Client: or tract.exchange or exch ) - pattern: str = f'{symbol}.{exch}' + pattern: str = f'{symbol}.{exch.lower()}' expiry: str = tract.lastTradeDateOrContractMonth # add an entry with expiry suffix if available if expiry: pattern += f'.{expiry}' + # since pos update msgs will always have the full fqme + # with suffix? + pattern += '.ib' + # directly cache the input pattern to the output # contract match as well as by the IB-internal conId. self._contracts[pattern] = tract