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.
Authorization
LuxorAPIKey Send your API key for authentication as a bearer token: Authorization: Bearer <api key>.
In: header
Query Parameters
Only cancel orders on this contract: MMYY for a monthly book, a D-tenor such as D030 for a days book
Only cancel orders on this side
Value in
- "BUY"
- "SELL"
Only cancel orders in this denomination
Value in
- "BTC"
- "USD"
Only cancel orders in this payment book
Value in
- "STANDARD"
- "UPFRONT"
Only cancel orders in this duration book
Value in
- "MONTHLY"
- "DAYS"
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"}Cancel a derivatives order
Cancels one open order by its `order_number`, e.g. `DELETE /v2/derivatives/orders/4821`. The response has the same shape as cancelling in bulk: `cancelled_orders` is 1 and `orders` holds the one order, now with status `CANCELLED`. Responds 404 when the workspace has no such order and 409 when the order is no longer open (already cancelled or expired). No approval is required. Requires the same role and ISDA agreement as cancelling in bulk.
Get derivatives balances
Returns current balance information including margin balances, repayment balances, margin requirements, and available balances for a specific currency type.