Luxor PlatformAPI DocumentationDerivatives

Cancel derivatives orders

Cancels the workspace's open orders right away and returns the ones it cancelled, now with status CANCELLED. contract, side, denomination, type and duration narrow it to the orders matching all of them, e.g. DELETE /v2/derivatives/orders?contract=1226&side=BUY. To cancel every open order, send DELETE /v2/derivatives/orders?all=true: a request with neither filters nor all=true, with both, with any other query parameter, or with a body is rejected with 400, so a typo can never widen the cancel to the whole book. Orders that are already cancelled or expired are left alone, and a request matching nothing succeeds with an empty list and a null action_id. No approval is required. Cancelling requires the Workspace Owner, Workspace Admin or Derivatives Admin role and a signed ISDA agreement; without either the request is rejected with 403.

DELETE
/v2/derivatives/orders

Authorization

LuxorAPIKey
AuthorizationBearer <token>

Send your API key for authentication as a bearer token: Authorization: Bearer <api key>.

In: header

Query Parameters

contract?string

Only cancel orders on this contract: MMYY for a monthly book, a D-tenor such as D030 for a days book

side?string

Only cancel orders on this side

Value in

  • "BUY"
  • "SELL"
denomination?string

Only cancel orders in this denomination

Value in

  • "BTC"
  • "USD"
type?string

Only cancel orders in this payment book

Value in

  • "STANDARD"
  • "UPFRONT"
duration?string

Only cancel orders in this duration book

Value in

  • "MONTHLY"
  • "DAYS"
all?"true"

Set to true to cancel every open order. Required when no filter is given, and not allowed together with filters, so cancelling the whole book is always explicit

Value in

  • "true"

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v2/derivatives/orders"
{  "action_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",  "cancelled_orders": 1,  "orders": [    {      "order_number": 4821,      "contract": "1226",      "duration_days": 0,      "denomination": "BTC",      "side": "BUY",      "type": "STANDARD",      "duration": "MONTHLY",      "status": "CANCELLED",      "unit_hashprice": 0.0005,      "daily_hashrate_ph": 10,      "good_till_cancelled": true,      "created_at": "2026-09-10T15:20:11Z",      "updated_at": "2026-09-11T08:00:00Z"    }  ]}
{  "statusCode": 400,  "code": "FST_ERR_VALIDATION",  "error": "Bad Request",  "message": "querystring/all Pass all=true to cancel every open order, or narrow the cancel with at least one filter"}
{  "statusCode": 403,  "code": "7",  "error": "Forbidden",  "message": "[permission_denied] User is not allowed to cancel orders"}
{  "statusCode": 503,  "code": "UNAVAILABLE",  "error": "Service Unavailable",  "message": "Something went wrong. Share this error code with support for assistance: 4bf92f3577b34da6a3ce929d0e0e4736"}