From 2bed2f6672180bb34f06f6648a14f2c131132b13 Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Thu, 26 Oct 2023 07:54:50 +0200 Subject: [PATCH] Fix bug in cancel_order_multi (both rest and websocket). --- bfxapi/rest/endpoints/rest_auth_endpoints.py | 8 ++++---- bfxapi/websocket/_client/bfx_websocket_inputs.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bfxapi/rest/endpoints/rest_auth_endpoints.py b/bfxapi/rest/endpoints/rest_auth_endpoints.py index 658e182..551389c 100644 --- a/bfxapi/rest/endpoints/rest_auth_endpoints.py +++ b/bfxapi/rest/endpoints/rest_auth_endpoints.py @@ -121,12 +121,12 @@ class RestAuthEndpoints(Middleware): def cancel_order_multi(self, *, - ids: Optional[List[int]] = None, - cids: Optional[List[Tuple[int, str]]] = None, - gids: Optional[List[int]] = None, + id: Optional[List[int]] = None, + cid: Optional[List[Tuple[int, str]]] = None, + gid: Optional[List[int]] = None, all: bool = False) -> Notification[List[Order]]: body = { - "ids": ids, "cids": cids, "gids": gids, + "id": id, "cid": cid, "gid": gid, "all": all } diff --git a/bfxapi/websocket/_client/bfx_websocket_inputs.py b/bfxapi/websocket/_client/bfx_websocket_inputs.py index 1753f3a..b527b87 100644 --- a/bfxapi/websocket/_client/bfx_websocket_inputs.py +++ b/bfxapi/websocket/_client/bfx_websocket_inputs.py @@ -64,12 +64,12 @@ class BfxWebSocketInputs: async def cancel_order_multi(self, *, - ids: Optional[List[int]] = None, - cids: Optional[List[Tuple[int, str]]] = None, - gids: Optional[List[int]] = None, + id: Optional[List[int]] = None, + cid: Optional[List[Tuple[int, str]]] = None, + gid: Optional[List[int]] = None, all: Optional[bool] = None) -> None: await self.__handle_websocket_input("oc_multi", { - "ids": ids, "cids": cids, "gids": gids, + "id": id, "cid": cid, "gid": gid, "all": all })