calculate_funding_fees is actually a public exchange interface (used in backtesting).

This commit is contained in:
Matthias
2022-01-17 19:26:03 +01:00
parent e9e7fd749b
commit 84c6d92d4c
4 changed files with 7 additions and 7 deletions

View File

@@ -488,7 +488,7 @@ class Backtesting:
sell_candle_time: datetime = sell_row[DATE_IDX].to_pydatetime()
if self.trading_mode == TradingMode.FUTURES:
trade.funding_fees = self.exchange._calculate_funding_fees(
trade.funding_fees = self.exchange.calculate_funding_fees(
funding_rates=self.futures_data[CandleType.FUNDING_RATE][trade.pair],
mark_rates=self.futures_data[CandleType.MARK][trade.pair],
amount=trade.amount,