Skip to main content
DELETE
/
cancel-all
Cancel all orders
curl --request DELETE \
  --url https://clob.polymarket.com/cancel-all \
  --header 'POLY_ADDRESS: <api-key>' \
  --header 'POLY_API_KEY: <api-key>' \
  --header 'POLY_PASSPHRASE: <api-key>' \
  --header 'POLY_SIGNATURE: <api-key>' \
  --header 'POLY_TIMESTAMP: <api-key>'
{ "canceled": [ "0xabcdef1234567890abcdef1234567890abcdef12", "0xfedcba0987654321fedcba0987654321fedcba09" ], "not_canceled": {} }

Authorizations

POLY_API_KEY
string
header
required

Your API key

POLY_ADDRESS
string
header
required

Ethereum address associated with the API key

POLY_SIGNATURE
string
header
required

HMAC signature of the request

POLY_PASSPHRASE
string
header
required

API key passphrase

POLY_TIMESTAMP
string
header
required

Unix timestamp of the request

Response

Cancellation results for all orders

canceled
string[]
required

Array of order IDs that were successfully canceled

Example:
[
  "0xabcdef1234567890abcdef1234567890abcdef12"
]
not_canceled
object
required

Map of order IDs that could not be canceled with error messages

Example:
{
  "0xabcdef1234567890abcdef1234567890abcdef12": "Order not found or already canceled"
}