adjust get_markets
This commit is contained in:
parent
3a2aa54d2a
commit
ccad883256
@ -661,13 +661,7 @@ class Exchange(object):
|
|||||||
|
|
||||||
@retrier
|
@retrier
|
||||||
def get_markets(self) -> List[dict]:
|
def get_markets(self) -> List[dict]:
|
||||||
try:
|
return list(self.markets.values())
|
||||||
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}')
|
|
||||||
except ccxt.BaseError as e:
|
|
||||||
raise OperationalException(e)
|
|
||||||
|
|
||||||
@retrier
|
@retrier
|
||||||
def get_fee(self, symbol='ETH/BTC', type='', side='', amount=1,
|
def get_fee(self, symbol='ETH/BTC', type='', side='', amount=1,
|
||||||
|
Loading…
Reference in New Issue
Block a user