Skip to main content

Documentation Index

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

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

Cancel all active limit orders for the authenticated user in one call. You can scope the cancellation to a specific event or market — useful when you want to retire a single ladder or quickly unwind your exposure on one outcome without touching the rest of your book.

Endpoint

POST https://api.futuur.com/orders/cancel-all/

Authentication

This endpoint requires HMAC authentication. Include the Key, Timestamp, and HMAC headers on every request. See the authentication guide for signing instructions.

Request

The request body is optional. If you submit an empty body, every active order on your account is canceled.
event
integer
Limit the cancellation to orders on a specific event (question) ID.
market
integer
Limit the cancellation to orders on a specific market (outcome) ID. Can be combined with event to scope further.

Response

Returns 200 OK with two arrays of order IDs.
canceled_order_ids
integer[]
required
IDs of orders that were successfully canceled.
processing_order_ids
integer[]
required
IDs of orders that could not be canceled immediately because they were already being processed (for example, mid-fill). Retry these IDs with Batch cancel after a short delay if you need them removed.

Example

curl --request POST \
  --url "https://api.futuur.com/orders/cancel-all/" \
  --header "Key: YOUR_PUBLIC_KEY" \
  --header "Timestamp: 1712500000" \
  --header "HMAC: YOUR_HMAC_SIGNATURE" \
  --header "Content-Type: application/json" \
  --data '{}'
Sample response (200 OK)
{
  "canceled_order_ids": [100, 101],
  "processing_order_ids": [102]
}