remove markets changes

This commit is contained in:
iuvbio
2019-03-02 18:53:42 +01:00
parent c36fa0c7e2
commit e1ae0d7e90
6 changed files with 117 additions and 15 deletions

View File

@@ -715,7 +715,9 @@ class Exchange(object):
@retrier
def get_markets(self) -> List[dict]:
try:
return self._api.fetch_markets()
markets = self._api.fetch_markets()
self.markets.update({m["symbol"]: m for m in markets})
return markets
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
raise TemporaryError(
f'Could not load markets due to {e.__class__.__name__}. Message: {e}')