Update more tests to use order_obj to update trade

This commit is contained in:
Matthias
2022-02-11 07:33:46 +01:00
parent 508e677d70
commit 874c161f78
5 changed files with 117 additions and 61 deletions

View File

@@ -1361,7 +1361,7 @@ class FreqtradeBot(LoggingMixin):
order_obj = trade.select_order_by_order_id(order['id'])
if not order_obj:
# TODO: this can't happen!
raise OperationalException("order-obj not found!")
raise OperationalException(f"order-obj for {order['id']} not found!")
trade.update_trade(order_obj)
# TODO: is the below necessary? it's already done in update_trade for filled buys
trade.recalc_trade_from_orders()