Don't fail if fetchTickers is not availlable

This commit is contained in:
Matthias
2022-10-13 04:58:02 +00:00
parent a6f6a17393
commit 39c27cfc37
2 changed files with 8 additions and 0 deletions

View File

@@ -1427,6 +1427,8 @@ class Exchange:
:return: fetch_tickers result
"""
tickers: Tickers
if not self.exchange_has('fetchTickers'):
return {}
if cached:
with self._cache_lock:
tickers = self._fetch_tickers_cache.get('fetch_tickers') # type: ignore