Update order_selection logic
This commit is contained in:
parent
9bf86bbe27
commit
808cefe526
@ -650,9 +650,9 @@ class LocalTrade():
|
||||
Finds order object by Order id.
|
||||
:param order_id: Exchange order id
|
||||
"""
|
||||
orders = [o for o in self.orders if o.order_id == order_id]
|
||||
if orders:
|
||||
return orders[0]
|
||||
for o in self.orders:
|
||||
if o.order_id == order_id:
|
||||
return o
|
||||
return None
|
||||
|
||||
def select_order(
|
||||
|
Loading…
Reference in New Issue
Block a user