Skip to main content
POST
/
v1
/
orders
/
open
/
cancel
Cancel all open orders
curl --request POST \
  --url https://api.polymarket.us/v1/orders/open/cancel \
  --header 'Content-Type: application/json' \
  --header 'X-PM-Access-Key: <api-key>' \
  --header 'X-PM-Signature: <api-key>' \
  --header 'X-PM-Timestamp: <api-key>' \
  --data '
{
  "slugs": [
    "<string>"
  ]
}
'
{
  "canceledOrderIds": [
    "<string>"
  ]
}

Authorizations

X-PM-Access-Key
string
header
required

Your API key ID (UUID). Generate at polymarket.us/developer.

X-PM-Timestamp
string
header
required

Unix timestamp in milliseconds. Must be within 30 seconds of server time.

X-PM-Signature
string
header
required

Base64-encoded Ed25519 signature of timestamp + method + path. See Authentication for details.

Body

application/json

Request to cancel all open orders

Request to cancel all open orders

slugs
string[]

List of market slugs to filter by. If empty, cancels all open orders.

Response

Open orders canceled successfully

Response containing canceled order IDs

canceledOrderIds
string[]

List of canceled order IDs