Skip to main content
DELETE
/
api
/
users
/
{userId}
/
orders
curl -X DELETE \
  -H "x-api-key: YOUR_API_KEY" \
  "https://trade.predexon.com/api/users/550e8400-e29b-41d4-a716-446655440000/orders"
{
  "cancelled": 3
}
curl -X DELETE \
  -H "x-api-key: YOUR_API_KEY" \
  "https://trade.predexon.com/api/users/550e8400-e29b-41d4-a716-446655440000/orders"
{
  "cancelled": 3
}
Cancels open orders across all venues (Polymarket and Predict). Use this before withdrawing funds - especially for Predict, where open buy orders lock collateral.

Query Parameters

ParameterTypeRequiredDescription
venuestringNoFilter by venue: polymarket or predict. Omit to cancel across all venues.

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