Luxor Documentation Hub Logo
Derivatives/API Documentation/V2

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.

GET
/v2/derivatives/contract/{contract_id}

Authorization

authorization<token>

Use your API key here.

In: header

Path Parameters

contract_idRequiredstring

Contract identifier (numeric)

Pattern: "^\\d+$"
curl -X GET "https://app.luxor.tech/api/v2/derivatives/contract/1001" \
  -H "authorization: <token>"

Default Response

{
  "contract": {
    "contract_id": "2",
    "status": "SETTLED",
    "side": "BUY",
    "type": "STANDARD",
    "trade_date": "2024-08-12",
    "start_date": "2024-09-01",
    "end_date": "2024-12-31",
    "duration_days": 122,
    "unit_hashprice": 0.0007,
    "daily_hashrate_ph": 5,
    "currency_type": "BTC",
    "currency": "BTC",
    "most_recent_daily_avg_hashprice": 0.00057997,
    "expired_gain_loss": -0.01988824,
    "notional_value": 0.427,
    "series": {
      "hashprice": [
        {
          "date": "2024-09-01",
          "hashprice": 0.0000562
        }
      ],
      "daily_expired_gain_loss": [
        {
          "date": "2024-09-01",
          "daily_expired_gain_loss": -0.0000031
        }
      ],
      "cumulative_gain_loss": [
        {
          "date": "2024-09-01",
          "cumulative_gain_loss": -0.0000031
        }
      ]
    }
  }
}