replace fetch_markets
This commit is contained in:
parent
5865688c16
commit
d423f58566
@ -657,7 +657,7 @@ class Exchange(object):
|
|||||||
@retrier
|
@retrier
|
||||||
def get_markets(self) -> List[dict]:
|
def get_markets(self) -> List[dict]:
|
||||||
try:
|
try:
|
||||||
return self._api.fetch_markets()
|
return list(self.markets.values())
|
||||||
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
|
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
|
||||||
raise TemporaryError(
|
raise TemporaryError(
|
||||||
f'Could not load markets due to {e.__class__.__name__}. Message: {e}')
|
f'Could not load markets due to {e.__class__.__name__}. Message: {e}')
|
||||||
|
Loading…
Reference in New Issue
Block a user