Use correct order id

This commit is contained in:
Matthias
2022-02-11 07:43:45 +01:00
parent 874c161f78
commit e9f451406c
2 changed files with 4 additions and 4 deletions

View File

@@ -1358,10 +1358,10 @@ class FreqtradeBot(LoggingMixin):
return True
order = self.handle_order_fee(trade, order)
order_obj = trade.select_order_by_order_id(order['id'])
order_obj = trade.select_order_by_order_id(order_id)
if not order_obj:
# TODO: this can't happen!
raise OperationalException(f"order-obj for {order['id']} 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()