Improve testcase for cancel_order_empty
This commit is contained in:
@@ -908,7 +908,7 @@ class Exchange:
|
||||
:param order: Order dict as returned from get_order()
|
||||
:return: True if order has been cancelled without being filled, False otherwise.
|
||||
"""
|
||||
return order['status'] in ('closed', 'canceled') and order.get('filled') == 0.0
|
||||
return order.get('status') in ('closed', 'canceled') and order.get('filled') == 0.0
|
||||
|
||||
@retrier
|
||||
def cancel_order(self, order_id: str, pair: str) -> None:
|
||||
|
Reference in New Issue
Block a user