From 8055140e665313478c7a760a5662971df8b9df14 Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Mon, 8 Jan 2024 00:53:37 +0900 Subject: [PATCH] simplify code --- freqtrade/plugins/pairlist/MarketCapFilter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/plugins/pairlist/MarketCapFilter.py b/freqtrade/plugins/pairlist/MarketCapFilter.py index 1231d7752..0553dcc68 100644 --- a/freqtrade/plugins/pairlist/MarketCapFilter.py +++ b/freqtrade/plugins/pairlist/MarketCapFilter.py @@ -156,9 +156,7 @@ class MarketCapFilter(IPairList): per_page='250', page='1', sparkline='false', locale='en') if data: - marketcap_list = [] - for row in data: - marketcap_list.append(row['symbol']) + marketcap_list = [row['symbol'] for row in data] if len(marketcap_list) > 0: self._marketcap_cache['marketcap'] = marketcap_list