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": 3
}
{
  "cancelled": 3
}
This only affects Polymarket orders. Kalshi orders are atomic swaps that execute immediately and cannot be cancelled.

Use Cases

Emergency Stop

Quickly cancel all pending orders during volatile markets

Account Cleanup

Clear all orders before withdrawing funds or deleting a user

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,
kalshi

Response

200 - application/json

Orders cancelled

cancelled
integer

Number of orders that were cancelled