Update tests to always provide rate to profit calculations

This commit is contained in:
Matthias
2022-06-17 06:53:40 +00:00
parent 575b4ead1a
commit 76cae8e8e3
3 changed files with 9 additions and 9 deletions

View File

@@ -2151,7 +2151,7 @@ def test_handle_trade(
assert trade.close_rate == 2.0 if is_short else 2.2
assert trade.close_profit == close_profit
assert trade.calc_profit() == 5.685
assert trade.calc_profit(trade.close_rate) == 5.685
assert trade.close_date is not None
assert trade.exit_reason == 'sell_signal1'