diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 4f6dec7df..1bda42ee0 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -130,7 +130,7 @@ class Backtesting: # TODO-lev: This should come from the configuration setting or better a # TODO-lev: combination of config/strategy "use_shorts"(?) and "can_short" from the exchange self.trading_mode: TradingMode = config.get('trading_mode', TradingMode.SPOT) - self.margin_mode: MarginMode = config.get('trading_mode', MarginMode.NONE) + self.margin_mode: MarginMode = config.get('margin_mode', MarginMode.NONE) self._can_short = self.trading_mode != TradingMode.SPOT self.progress = BTProgress()