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.
Authorization
LuxorAPIKey Send your API key for authentication as a bearer token: Authorization: Bearer <api key>.
In: header
Path Parameters
The order's order_number, as GET /v2/derivatives/orders returns it
0 < value <= 2147483647Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v2/derivatives/orders/4821"{ "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": "params/order_number Too small: expected number to be >0"}{ "statusCode": 403, "code": "7", "error": "Forbidden", "message": "[permission_denied] User is not allowed to cancel orders"}{ "statusCode": 404, "code": "5", "error": "Not Found", "message": "[not_found] Order 4821 not found"}{ "statusCode": 409, "code": "9", "error": "Conflict", "message": "[failed_precondition] Order 4821 is cancelled and cannot be cancelled"}{ "statusCode": 503, "code": "UNAVAILABLE", "error": "Service Unavailable", "message": "Something went wrong. Share this error code with support for assistance: 4bf92f3577b34da6a3ce929d0e0e4736"}List site conditions
Retrieves a list of site conditions including min and max load, hashrate, and spot energy price for a specific site within a date range with pagination support.
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.