Fix problem with FTX

where cancelled orders are "cancelled", not "canceled"
This commit is contained in:
Matthias
2021-03-09 20:21:08 +01:00
parent 61ec7a309b
commit 99583bbd0c
3 changed files with 5 additions and 4 deletions

View File

@@ -1053,7 +1053,8 @@ class Exchange:
:param order: Order dict as returned from fetch_order()
:return: True if order has been cancelled without being filled, False otherwise.
"""
return order.get('status') in ('closed', 'canceled') and order.get('filled') == 0.0
return (order.get('status') in ('closed', 'canceled', 'cancelled')
and order.get('filled') == 0.0)
@retrier
def cancel_order(self, order_id: str, pair: str) -> Dict: