Luxor PlatformAPI DocumentationDerivatives

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.

DELETE
/v2/derivatives/orders/{order_number}

Authorization

LuxorAPIKey
AuthorizationBearer <token>

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

In: header

Path Parameters

order_number*integer

The order's order_number, as GET /v2/derivatives/orders returns it

Range0 < value <= 2147483647

Response 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"}