Always force lowercase on `binance` symbol keys

Hopefully helps resolve #435
agg_feedz
Tyler Goodlet 2022-12-20 16:58:51 -05:00
parent f232d6d4ee
commit 76f920a16b
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class Client:
params = {} params = {}
if sym is not None: if sym is not None:
sym = sym.upper() sym = sym.lower()
params = {'symbol': sym} params = {'symbol': sym}
resp = await self._api( resp = await self._api(
@ -465,7 +465,7 @@ async def stream_quotes(
si = sym_infos[sym] = syminfo.to_dict() si = sym_infos[sym] = syminfo.to_dict()
filters = {} filters = {}
for entry in syminfo.filters: for entry in syminfo.filters:
ftype = entry.pop('filterType') ftype = entry['filterType']
filters[ftype] = entry filters[ftype] = entry
# XXX: after manually inspecting the response format we # XXX: after manually inspecting the response format we