Skip to main content
POST
Cancel Market Orders
Cancel every open order the agent has on the venue. The endpoint calls Polymarket /cancel-all and synchronises matching mk_order rows for the current agent. Useful before exiting a venue or rebalancing positions.

Request Body

string
default:"polymarket"
Trading venue identifier. Default: polymarket.
string
Optional wallet address (0x-prefixed, 40 hex chars). Required only when the current user has multiple active wallet credentials.

Response

object
Cancellation result.

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
venue
string
default:polymarket

Trading venue (default: polymarket)

Maximum string length: 50
walletAddress
string

Wallet address for multi-wallet scenarios (0x-prefixed, 40 hex chars)

Pattern: ^0x[a-fA-F0-9]{40}$

Response

200 - application/json

Bulk cancellation accepted

code
integer
Example:

200

message
string
Example:

"success"

data
object