Skip to main content
DELETE
/
order
Cancel single order
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": {}
}

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

Body

application/json
orderID
string
required

Order ID (order hash) to cancel

Example:

"0xabcdef1234567890abcdef1234567890abcdef12"

Response

Order cancellation result

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"
}