Skip to main content
PUT
/
v1
/
markets
/
{market_id}
/
orders
/
{order_id}
/
cancel
Cancel an Order
curl --request PUT \
  --url https://api.predictamarkets.com/v1/markets/{market_id}/orders/{order_id}/cancel \
  --header 'X-Api-Key: <api-key>'
{
  "id": 501,
  "market_id": 12,
  "market_asset_id": 34,
  "account_id": 1042,
  "order_type": "BUY",
  "opinion_side": "YES",
  "price": "65.00",
  "quantity": "10.00",
  "initial_quantity": "10.00",
  "status": "CANCELLED",
  "prediction_key": "mkt-12-yes",
  "auto_cancel_at": null,
  "created_at": "2025-04-10T09:00:00Z",
  "updated_at": "2025-04-10T09:01:00Z"
}

Documentation Index

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

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

Authorizations

X-Api-Key
string
header
default:your-api-key-here
required

Path Parameters

market_id
required

Flexible identifier type that accepts either a numeric integer ID or a human-readable qualified ID string (QID). QIDs follow a prefix convention: MA for markets, MAA for market assets, AP for account payouts. Most path parameters that accept an ID use this type so callers can use whichever form is more convenient.

order_id
integer
required

Integer ID of the order to cancel

Response

Order cancelled

The response is of type string.