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 1/2] 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 From cbf99f62cb6bd57307b2409d0667120cac733dcf Mon Sep 17 00:00:00 2001 From: Rodrigo <95635797+poly-rodr@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:05:45 -0300 Subject: [PATCH 2/2] version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7fa06b2..0d0e86f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="py_clob_client", - version="0.17.0", + version="0.17.1", author="Polymarket Engineering", author_email="engineering@polymarket.com", maintainer="Polymarket Engineering",