mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
replace fetch_markets
This commit is contained in:
parent
5865688c16
commit
d423f58566
|
@ -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}')
|
||||
|
|
Loading…
Reference in New Issue
Block a user