From 3a6efd451d45f5a1a819e303fdb265f1ecf6fb2a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 10 Feb 2019 19:09:54 -0500 Subject: [PATCH] Don't bother ensuring all symbols in data --- piker/brokers/questrade.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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