From 76f920a16bfad6f890c17a83bc1fcf607be25d1f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 20 Dec 2022 16:58:51 -0500 Subject: [PATCH] Always force lowercase on `binance` symbol keys Hopefully helps resolve #435 --- piker/brokers/binance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/brokers/binance.py b/piker/brokers/binance.py index 9d2742be..be3f35cf 100644 --- a/piker/brokers/binance.py +++ b/piker/brokers/binance.py @@ -181,7 +181,7 @@ class Client: params = {} if sym is not None: - sym = sym.upper() + sym = sym.lower() params = {'symbol': sym} resp = await self._api( @@ -465,7 +465,7 @@ async def stream_quotes( si = sym_infos[sym] = syminfo.to_dict() filters = {} for entry in syminfo.filters: - ftype = entry.pop('filterType') + ftype = entry['filterType'] filters[ftype] = entry # XXX: after manually inspecting the response format we