Skip to content

Commit

Permalink
Fix 'invalid auth' error on cancel_market_orders
Browse files Browse the repository at this point in the history
  • Loading branch information
poly-rodr committed Jul 5, 2024
1 parent 84a0c17 commit 144b4d2
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 144b4d2

Please sign in to comment.