From 144b4d288f9cfd83c47ecc36a88aa38221b15b06 Mon Sep 17 00:00:00 2001 From: Rodrigo <95635797+poly-rodr@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:04:31 -0300 Subject: [PATCH] Fix 'invalid auth' error on `cancel_market_orders` --- py_clob_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_clob_client/client.py b/py_clob_client/client.py index 8fb6a1d..310b4ed 100644 --- a/py_clob_client/client.py +++ b/py_clob_client/client.py @@ -439,7 +439,7 @@ def cancel_all(self): headers = create_level_2_headers(self.signer, self.creds, request_args) return delete("{}{}".format(self.host, CANCEL_ALL), headers=headers) - def cancel_market_orders(self, market: str = None, asset_id: str = None): + def cancel_market_orders(self, market: str = "", asset_id: str = ""): """ Cancels orders Level 2 Auth required