Updated test_update_funding_fees to compile fine but the assertion is incorrect
This commit is contained in:
parent
98b475a00b
commit
fd63fa7dda
@ -4779,5 +4779,9 @@ def test_update_funding_fees(mocker, default_conf, time_machine, fee):
|
||||
|
||||
trades = Trade.get_open_trades()
|
||||
for trade in trades:
|
||||
assert trade.funding_fees == 123 * mark_prices[trade.pair] * funding_rates[trade.pair]
|
||||
assert trade.funding_fees == sum([
|
||||
123 *
|
||||
mark_prices[trade.pair][time] *
|
||||
funding_rates[trade.pair][time] for time in mark_prices[trade.pair].keys()
|
||||
])
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user