Polymarket API reference / CLOB API
DELETE/cancel-market-orders

Cancel orders for a market

Cancels all open orders for the authenticated user in a specific market (condition) and asset. Works even in cancel-only mode.

Base URL
https://clob.polymarket.com
Auth
L2 API credentials (key, secret, passphrase)POLY_API_KEY, POLY_ADDRESS, POLY_SIGNATURE, POLY_PASSPHRASE, POLY_TIMESTAMP
Rate limit
1,500 req / 10s (150 per second)sustained 21,000 req / 10 min
Limit applies to
DELETE /cancel-market-orders

Things to know

Trading endpoints carry two Cloudflare limits: a burst of 1,500 req / 10s and a sustained 21,000 req / 10 min. Separate per-signer token buckets, sized by 30-day volume, apply on top.

Request body

FieldTypeRequiredDescription
marketstringyesMarket (condition ID)
asset_idstringyesAsset ID (token ID)

Example

curl -X DELETE "https://clob.polymarket.com/cancel-market-orders" \
  -H "Content-Type: application/json" \
  -H "POLY_API_KEY: $POLY_API_KEY" \
  -H "POLY_ADDRESS: $POLY_ADDRESS" \
  -H "POLY_SIGNATURE: $POLY_SIGNATURE" \
  -H "POLY_PASSPHRASE: $POLY_PASSPHRASE" \
  -H "POLY_TIMESTAMP: $POLY_TIMESTAMP" \
  -d '{
  "market": "<market>",
  "asset_id": "<asset_id>"
}'

L2 requests are signed with HMAC-SHA256 using your API secret, and the timestamp is part of the signature, so keep the machine's clock accurate. A missing credential or a stale signature both come back as Unauthorized/Invalid api key. The Python SDK signs for you.

Response fields

FieldTypeDescription
canceledstring[]Array of order IDs that were successfully canceled
not_canceledobjectMap of order IDs that could not be canceled with error messages

Responses

StatusMeaning
200Cancellation results for market orders
400Bad request - Invalid payload
401Unauthorized - Invalid API key or authentication failed
500Internal server error
503Service unavailable - Trading disabled (cancels still work in cancel-only mode)

Errors this endpoint returns

Polymarket's API serves current state only, so it cannot show what a market's book looked like after it resolved. PolyTest records Up/Down markets while they run and keeps the snapshots. Try it free, or read the full rate limit reference.

From Polymarket's published OpenAPI spec and rate-limit tables, synced 2026-10-04.