calculate_funding_fees is actually a public exchange interface (used in backtesting).
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user