New API users should migrate to deposit wallets. Read the migration guide.
curl --request DELETE \
--url https://clob.polymarket.com/order \
--header 'Content-Type: application/json' \
--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>' \
--data '
{
"orderID": "0xabcdef1234567890abcdef1234567890abcdef12"
}
'{
"canceled": [
"0xabcdef1234567890abcdef1234567890abcdef12"
],
"not_canceled": {}
}Cancels a single order by its ID. Works even in cancel-only mode.
curl --request DELETE \
--url https://clob.polymarket.com/order \
--header 'Content-Type: application/json' \
--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>' \
--data '
{
"orderID": "0xabcdef1234567890abcdef1234567890abcdef12"
}
'{
"canceled": [
"0xabcdef1234567890abcdef1234567890abcdef12"
],
"not_canceled": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt
Use this file to discover all available pages before exploring further.
Your API key
Ethereum address associated with the API key
HMAC signature of the request
API key passphrase
Unix timestamp of the request
Order ID (order hash) to cancel
"0xabcdef1234567890abcdef1234567890abcdef12"
Order cancellation result
Array of order IDs that were successfully canceled
[
"0xabcdef1234567890abcdef1234567890abcdef12"
]Map of order IDs that could not be canceled with error messages
Show child attributes
{
"0xabcdef1234567890abcdef1234567890abcdef12": "Order not found or already canceled"
}Was this page helpful?