remove only ccxt objects when hyperopting

This commit is contained in:
Matthias 2021-01-30 07:15:04 +01:00 committed by crypto_rahino
parent 2e421ebe29
commit b89744753e

View File

@ -665,7 +665,9 @@ class Hyperopt:
dump(preprocessed, self.data_pickle_file)
# We don't need exchange instance anymore while running hyperopt
self.backtesting.exchange = None # type: ignore
self.backtesting.exchange._api = None # type: ignore
self.backtesting.exchange._api_async = None # type: ignore
# self.backtesting.exchange = None # type: ignore
self.backtesting.pairlists = None # type: ignore
self.backtesting.strategy.dp = None # type: ignore
IStrategy.dp = None # type: ignore