Simplify trade calculations

This commit is contained in:
Matthias
2022-06-17 09:53:29 +00:00
parent d7770c507b
commit 91f9818ae3
2 changed files with 14 additions and 31 deletions

View File

@@ -813,7 +813,7 @@ def test_calc_close_trade_price(
funding_fees=funding_fees
)
trade.open_order_id = 'close_trade'
assert round(trade.calc_close_trade_value(rate=close_rate, fee=fee_rate), 8) == result
assert round(trade.calc_close_trade_value(rate=close_rate), 8) == result
@pytest.mark.parametrize(