From 980b81f00985bc4f58f38d1411547bba27f3dac2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 12 Aug 2024 14:51:28 +0200 Subject: [PATCH] chore: Simplify futures backtest --- 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 471fdca81..c9bdf4c65 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -329,15 +329,15 @@ class Backtesting: else: self.detail_data = {} if self.trading_mode == TradingMode.FUTURES: - self.funding_fee_timeframe: str = self.exchange.get_option("funding_fee_timeframe") - self.funding_fee_timeframe_secs: int = timeframe_to_seconds(self.funding_fee_timeframe) + funding_fee_timeframe: str = self.exchange.get_option("funding_fee_timeframe") + self.funding_fee_timeframe_secs: int = timeframe_to_seconds(funding_fee_timeframe) mark_timeframe: str = self.exchange.get_option("mark_ohlcv_timeframe") # Load additional futures data. funding_rates_dict = history.load_data( datadir=self.config["datadir"], pairs=self.pairlists.whitelist, - timeframe=self.funding_fee_timeframe, + timeframe=funding_fee_timeframe, timerange=self.timerange, startup_candles=0, fail_without_data=True,