Luxor Documentation Hub Logo
Derivatives/API Documentation

Contract Details

Retrieve detailed contract information including historical data series

GET
/api/v1/derivatives/contract/{contract_id}

Authorization

authorization<token>

Use your API key here.

In: header

Path Parameters

contract_idRequiredstring

Contract identifier

curl -X GET "https://app.luxor.tech/api/v1/derivatives/contract/<string>" \
  -H "authorization: <token>"

Contract details with historical data

{
  "currency_type": "BTC",
  "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": "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
      },
      {
        "date": "2024-09-02",
        "hashprice": 0.0000571
      }
    ],
    "daily_expired_gain_loss": [
      {
        "date": "2024-09-01",
        "daily_expired_gain_loss": -0.0000031
      },
      {
        "date": "2024-09-02",
        "daily_expired_gain_loss": 0.00000145
      }
    ],
    "cumulative_gain_loss": [
      {
        "date": "2024-09-01",
        "cumulative_gain_loss": -0.0000031
      },
      {
        "date": "2024-09-02",
        "cumulative_gain_loss": -0.00000165
      }
    ]
  }
}