Luxor PlatformAPI DocumentationDerivatives
Get derivatives balances
Returns current balance information including margin balances, repayment balances, margin requirements, and available balances for a specific currency type.
Authorization
LuxorAPIKey authorization<token>
Use your API key here.
In: header
Path Parameters
currency_type*string
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 }}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.
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.