Get derivatives balances
Returns current balance information including margin balances, repayment balances, margin requirements, and available balances for a specific currency type.
Authorization
LuxorAPIKey Send your API key for authentication as a bearer token: Authorization: Bearer <api key>.
In: header
Path Parameters
Currency type for derivatives operations
Value in
- "BTC"
- "USD"
Response Body
application/json
curl -X GET "https://example.com/v2/derivatives/balances/BTC"{ "currency_type": "BTC", "current_margin_balance": { "realized_margin_balance": 110.887551818, "unrealized_margin_balance": 110.887551818, "effective_margin_balance": 110.887551818 }, "current_repayment_balance": { "upfront_payment_credits": 1310.613298448, "upfront_repayment_made": 1232.437007498, "upfront_repayment_balance": 78.1425895 }, "current_margin_requirement": { "maintenance_requirement": 6.9700358, "initial_buffer_percentage": 0, "initial_buffer_requirement": 6.9700358 }, "current_available": { "maintenance_available": 103.91748238, "initial_buffer_available": 103.91748238 }}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.
Get contract details
Returns detailed information for a specific contract including metadata and time series data for hashprice, daily gain/loss, and cumulative gain/loss.