Update funding_fee formula to correctly calculate fees for long trades

This commit is contained in:
Matthias
2022-01-17 19:59:33 +01:00
parent f26cd19146
commit a0c0c4dcbe
5 changed files with 32 additions and 12 deletions

View File

@@ -495,6 +495,7 @@ class Backtesting:
trade.funding_fees = self.exchange.calculate_funding_fees(
self.futures_data[trade.pair],
amount=trade.amount,
is_short=trade.is_short,
open_date=trade.open_date_utc,
close_date=sell_candle_time,
)