replace fetch_markets

This commit is contained in:
iuvbio 2019-03-04 21:21:32 +01:00
parent 5865688c16
commit d423f58566

View File

@ -657,7 +657,7 @@ class Exchange(object):
@retrier
def get_markets(self) -> List[dict]:
try:
return self._api.fetch_markets()
return list(self.markets.values())
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
raise TemporaryError(
f'Could not load markets due to {e.__class__.__name__}. Message: {e}')