Skip to main content
POST
/
v1
/
orders
/
batched
/
cancel
Cancel Multiple Orders
curl --request POST \
  --url https://api.polymarket.us/v1/orders/batched/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 '
{
  "orders": [
    {
      "orderId": "<string>",
      "marketSlug": "<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 multiple orders in a single batched request

Batched cancel-order request.

orders
object[]
required

Orders to cancel (1 to 20).

Required array length: 1 - 20 elements

Response

All orders successfully submitted for cancellation

canceledOrderIds
string[]

Order IDs submitted for cancellation, in request order. Echo of the input, not a confirmation. Watch the order stream for actual outcomes.