Skip to main content
DELETE
/
cancel-market-orders
Cancel orders for a market
curl --request DELETE \
  --url https://clob.polymarket.com/cancel-market-orders \
  --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 '
{
  "market": "0x0000000000000000000000000000000000000000000000000000000000000001",
  "asset_id": "0xabc123def456..."
}
'
{
  "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

Body

application/json
market
string
required

Market (condition ID)

Example:

"0x0000000000000000000000000000000000000000000000000000000000000001"

asset_id
string
required

Asset ID (token ID)

Example:

"0xabc123def456..."

Response

Cancellation results for market 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"
}