Update recalc_from_trades to use FtPrecise

This commit is contained in:
Matthias
2022-08-11 06:51:34 +02:00
parent 9513c39a17
commit e3a5b97b45
2 changed files with 18 additions and 17 deletions

View File

@@ -189,7 +189,7 @@ def test_forcebuy_last_unlimited(default_conf, ticker, fee, mocker, balance_rati
assert len(trades) == 5
for trade in trades:
assert trade.stake_amount == result1
assert pytest.approx(trade.stake_amount) == result1
# Reset trade open order id's
trade.open_order_id = None
trades = Trade.get_open_trades()