Improve testcase for cancel_order_empty

This commit is contained in:
Matthias
2020-04-14 19:20:47 +02:00
parent 95011919d3
commit cfe1e4876a
2 changed files with 3 additions and 1 deletions

View File

@@ -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: