From 3e8164bfcafe5ffa473c585a5888dd626d4a5ea7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 23 Aug 2021 21:13:47 +0200 Subject: [PATCH] Use proper exchange name in backtesting --- freqtrade/optimize/backtesting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 8b3eb46ca..1883f9670 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -65,8 +65,8 @@ class Backtesting: remove_credentials(self.config) self.strategylist: List[IStrategy] = [] self.all_results: Dict[str, Dict] = {} - - self.exchange = ExchangeResolver.load_exchange(self.config['exchange']['name'], self.config) + self._exchange_name = self.config['exchange']['name'] + self.exchange = ExchangeResolver.load_exchange(self._exchange_name, self.config) self.dataprovider = DataProvider(self.config, None) if self.config.get('strategy_list', None): @@ -388,7 +388,7 @@ class Backtesting: fee_close=self.fee, is_open=True, buy_tag=row[BUY_TAG_IDX] if has_buy_tag else None, - exchange='backtesting', + exchange=self._exchange_name, ) return trade return None