Skip to main content
DELETE
/
api
/
users
/
{userId}
/
orders
Cancel All Orders
curl --request DELETE \
  --url https://trade.predexon.com/api/users/{userId}/orders \
  --header 'x-api-key: <api-key>'
{
  "cancelled": 123,
  "_meta": {
    "venues": [
      {
        "venue": "<string>",
        "status": "ok",
        "cancelled": 123
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.predexon.com/llms.txt

Use this file to discover all available pages before exploring further.

Legacy /api/users endpoint. New integrations should use Cancel All Orders on the accounts path. This endpoint continues to work unchanged.

Authorizations

x-api-key
string
header
required

Path Parameters

userId
string
required

Unique identifier for the user

Query Parameters

venue
enum<string>

Filter by venue

Available options:
polymarket,
predict

Response

Orders cancelled

cancelled
integer

Number of orders that were cancelled

_meta
object

Per-plane status metadata on aggregated cancel-all responses. Each venue entry also reports how many of its orders were cancelled.