From 03302fa0b0bf3da027d57e06e3b815c80a5def79 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 31 Jan 2023 07:24:19 +0100 Subject: [PATCH] Add cancel_open_order to rest script --- scripts/rest_client.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/rest_client.py b/scripts/rest_client.py index 3cf2199fb..3a8823672 100755 --- a/scripts/rest_client.py +++ b/scripts/rest_client.py @@ -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.