From 122943d835e56a5aad6be3e1e172b351174e428d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 19 Jun 2021 19:37:27 +0200 Subject: [PATCH] Don't run filter again for pairlist generator The generator implicitly runs filter - so it should not be ran again as that would void generator caching. closes #5103 --- freqtrade/plugins/pairlistmanager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/plugins/pairlistmanager.py b/freqtrade/plugins/pairlistmanager.py index d1cdd2c5b..03f4760b8 100644 --- a/freqtrade/plugins/pairlistmanager.py +++ b/freqtrade/plugins/pairlistmanager.py @@ -83,7 +83,8 @@ class PairListManager(): pairlist = self._pairlist_handlers[0].gen_pairlist(tickers) # Process all Pairlist Handlers in the chain - for pairlist_handler in self._pairlist_handlers: + # except for the first one, which is the generator. + for pairlist_handler in self._pairlist_handlers[1:]: pairlist = pairlist_handler.filter_pairlist(pairlist, tickers) # Validation against blacklist happens after the chain of Pairlist Handlers