Skip to main content
DELETE
Cancel All Orders

Headers

PX-Key-Id
string
required

The key id issued for your signing keypair.

PX-Timestamp
string
required

Unix seconds at signing, valid within 30 seconds of the server clock.

PX-Signature
string
required

Ed25519 signature of the request

PX-Content-Sha256
string
required

Hex SHA-256 of the request body, or the SHA-256 of the empty string when there is no body.

Query Parameters

tokenId
string

Cancel only orders on this outcome token.

Minimum string length: 1
Example:

"71321045679252212594626385532706912750332728571942532289631379312455583992563"

conditionId
string

Cancel only orders on this market, both outcomes in one call. An order whose market cannot be resolved is reported MARKET_UNRESOLVED rather than assumed out of scope.

Minimum string length: 1

Response

Cancel request processed; read the response for per-order outcomes

cancelled
string<uuid>[]
required

Orders Polymarket confirmed it removed. These are now terminal.

Issued order id.

notCancelled
object[]
required

Orders that were not cancelled, one entry each, with the reason. Most are still resting; ALREADY_COMPLETED means the order filled instead. An empty array alongside an empty cancelled means nothing was resting.