Use sorted on set instead of explicit list conversion
This commit is contained in:
parent
3519cebf66
commit
53abfdbcbf
@ -216,9 +216,7 @@ class Exchange:
|
||||
Return a list of supported quote currencies
|
||||
"""
|
||||
markets = self.markets
|
||||
currencies = list(set([x.get('quote') for _, x in markets.items()]))
|
||||
currencies.sort()
|
||||
return currencies
|
||||
return sorted(set([x['quote'] for _, x in markets.items()]))
|
||||
|
||||
def klines(self, pair_interval: Tuple[str, str], copy=True) -> DataFrame:
|
||||
if pair_interval in self._klines:
|
||||
|
Loading…
Reference in New Issue
Block a user