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
This commit is contained in:
Matthias 2021-06-19 19:37:27 +02:00
parent 96fbb226c5
commit 122943d835

View File

@ -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