Add cancel_open_order to rest script
This commit is contained in:
parent
c43e857cbc
commit
03302fa0b0
@ -232,6 +232,14 @@ class FtRestClient():
|
|||||||
"""
|
"""
|
||||||
return self._delete(f"trades/{trade_id}")
|
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):
|
def whitelist(self):
|
||||||
"""Show the current whitelist.
|
"""Show the current whitelist.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user