funding-fees need to be recalculated for detailed timeframes, too.

closes #7978
This commit is contained in:
Matthias 2023-01-21 17:47:31 +01:00
parent 1211b72255
commit 89eb1b0084
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ class Backtesting:
self, trade: LocalTrade, row: Tuple, is_first: bool) -> Optional[LocalTrade]:
exit_candle_time: datetime = row[DATE_IDX].to_pydatetime()
if is_first and self.trading_mode == TradingMode.FUTURES:
if self.trading_mode == TradingMode.FUTURES:
trade.funding_fees = self.exchange.calculate_funding_fees(
self.futures_data[trade.pair],
amount=trade.amount,