Place derivatives orders
Places up to 500 orders in one request — the same bulk path the CSV import uses in the app. Responds 202: the batch is handed to a workflow rather than written straight to the book, and the orders appear under GET /v2/derivatives/orders once it completes. Orders never wait for workspace approvals, so required_approvals is always 0. The batch is all-or-nothing: if any order is rejected, none are placed. Each order takes good_till_cancelled (default true): with true it rests on the book until you cancel it; with false it is a day order that expires at the end of the UTC day it was placed (00:00 UTC). cancel_existing_orders: true cancels every open order first; to cancel without placing, use DELETE /v2/derivatives/orders. Placing orders requires the Workspace Owner, Workspace Admin or Derivatives Admin role and a signed ISDA agreement; without either the request is rejected with 403. contract here is the traded instrument (an MMYY delivery month or a D-tenor), not an executed contract from /v2/derivatives/contracts.
Authorization
LuxorAPIKey Send your API key for authentication as a bearer token: Authorization: Bearer <api key>.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v2/derivatives/orders" \ -H "Content-Type: application/json" \ -d '{ "orders": [ { "contract": "1226", "denomination": "BTC", "side": "BUY", "type": "STANDARD", "duration": "MONTHLY", "unit_hashprice": 0.0005, "daily_hashrate_ph": 10, "good_till_cancelled": true }, { "contract": "D030", "denomination": "USD", "side": "SELL", "type": "STANDARD", "duration": "DAYS", "unit_hashprice": 52.25, "daily_hashrate_ph": 5, "good_till_cancelled": false } ], "cancel_existing_orders": false }'{ "action_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "accepted_orders": 12, "required_approvals": 0, "orders_url": "/v2/derivatives/orders"}{ "statusCode": 400, "code": "FST_ERR_VALIDATION", "error": "Bad Request", "message": "body/end_date Required"}{ "statusCode": 403, "code": "7", "error": "Forbidden", "message": "[permission_denied] site_id does not belong to this workspace"}