Eliminate calls to process_exit_sub_trade

This commit is contained in:
Matthias
2022-06-16 07:01:02 +02:00
parent 2c12558baa
commit 7fd5846d9f
4 changed files with 17 additions and 15 deletions

View File

@@ -2782,6 +2782,7 @@ def test_recalc_trade_from_orders_dca(fee, data) -> None:
assert trade.stake_amount == result[2]
assert pytest.approx(trade.realized_profit) == result[3]
assert pytest.approx(trade.close_profit_abs) == result[4]
# assert pytest.approx(trade.close_profit) == result[...]
trade.close(price)
assert pytest.approx(trade.close_profit_abs) == data['end_profit']