Skip to content

Commit

Permalink
Merge pull request #81 from Polymarket/fix/cancel-market-orders
Browse files Browse the repository at this point in the history
Fix 'invalid auth' error on `cancel_market_orders`
  • Loading branch information
poly-rodr authored Jul 5, 2024
2 parents 84a0c17 + cbf99f6 commit 0733d48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py_clob_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="py_clob_client",
version="0.17.0",
version="0.17.1",
author="Polymarket Engineering",
author_email="[email protected]",
maintainer="Polymarket Engineering",
Expand Down

0 comments on commit 0733d48

Please sign in to comment.