From e8530c36d3a8bcf92d509d98d1ba6459a656a399 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 25 Apr 2020 15:46:20 +0200 Subject: [PATCH] Remove pairlists from hyperopt too (it holds a reference to exchange) --- freqtrade/optimize/hyperopt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/freqtrade/optimize/hyperopt.py b/freqtrade/optimize/hyperopt.py index fcf50af6a..f9dddd573 100644 --- a/freqtrade/optimize/hyperopt.py +++ b/freqtrade/optimize/hyperopt.py @@ -624,6 +624,7 @@ class Hyperopt: # We don't need exchange instance anymore while running hyperopt self.backtesting.exchange = None # type: ignore + self.backtesting.pairlists = None # type: ignore self.trials = self.load_previous_results(self.trials_file)