Add cancel_open_order to rest script

This commit is contained in:
Matthias 2023-01-31 07:24:19 +01:00
parent c43e857cbc
commit 03302fa0b0

View File

@ -232,6 +232,14 @@ class FtRestClient():
"""
return self._delete(f"trades/{trade_id}")
def cancel_open_order(self, trade_id):
"""Cancel open order for trade.
:param trade_id: Cancels open orders for this trade.
:return: json object
"""
return self._delete(f"trades/{trade_id}/open-order")
def whitelist(self):
"""Show the current whitelist.