From 53abfdbcbf032de93994fb2965b6d0192660df6a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 12 Jan 2020 12:48:29 +0100 Subject: [PATCH] Use sorted on set instead of explicit list conversion --- freqtrade/exchange/exchange.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 3735dac8a..714bb40e4 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -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: