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

@@ -3563,7 +3563,7 @@ def test__calculate_funding_fees(
{'date': trade_date, 'open': mark_price},
])
assert exchange._calculate_funding_fees(
assert exchange.calculate_funding_fees(
funding_rates=funding_rates,
mark_rates=mark_rates,
amount=size,
@@ -3574,7 +3574,7 @@ def test__calculate_funding_fees(
if (kraken_fee is None):
with pytest.raises(OperationalException):
kraken._calculate_funding_fees(
kraken.calculate_funding_fees(
funding_rates=funding_rates,
mark_rates=mark_rates,
amount=size,
@@ -3584,7 +3584,7 @@ def test__calculate_funding_fees(
)
else:
assert kraken._calculate_funding_fees(
assert kraken.calculate_funding_fees(
funding_rates=funding_rates,
mark_rates=mark_rates,
amount=size,