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

@@ -1923,7 +1923,7 @@ class Exchange:
funding_rates = candle_histories[funding_comb]
mark_rates = candle_histories[mark_comb]
return self._calculate_funding_fees(
return self.calculate_funding_fees(
funding_rates=funding_rates,
mark_rates=mark_rates,
amount=amount,
@@ -1931,7 +1931,7 @@ class Exchange:
close_date=close_date
)
def _calculate_funding_fees(
def calculate_funding_fees(
self,
funding_rates: DataFrame,
mark_rates: DataFrame,

View File

@@ -159,7 +159,7 @@ class Kraken(Exchange):
params['leverage'] = leverage
return params
def _calculate_funding_fees(
def calculate_funding_fees(
self,
funding_rates: DataFrame,
mark_rates: DataFrame,