diff --git a/piker/brokers/questrade.py b/piker/brokers/questrade.py index 2ac9d1ed..12d87de8 100644 --- a/piker/brokers/questrade.py +++ b/piker/brokers/questrade.py @@ -338,9 +338,8 @@ class Client: to_lookup = list(set(tickers) - set(symbols2ids)) if to_lookup: data = await self.api.symbols(names=','.join(to_lookup)) - for ticker, symbol in zip(to_lookup, data['symbols']): + for symbol in data['symbols']: name = symbol['symbol'] - assert name == ticker cache[name] = symbols2ids[name] = str(symbol['symbolId']) return symbols2ids