Luxor Documentation Hub Logo
Mining Pool/API Documentation/Reporting

Get worker hashrate history

Returns hashrate and efficiency time series data for a set of workers and a currency type, given a specified time period.

GET
/v1/pool/worker-hashrate-efficiency/{currency_type}/{subaccount_name}

Authorization

authorization<token>

Use your API key here.

In: header

Path Parameters

currency_typeRequiredstring

Which currency to query, e.g. BTC or ZEN.

Value in: "BTC" | "LTC_DOGE" | "SC" | "ZEC" | "ZEN"
subaccount_nameRequiredstring

A subaccount name for which to retrieve summary information.

Minimum length: 1

Query Parameters

worker_namesarray<string>

An array of worker names for which to retrieve hashrate and efficiency information.

start_dateRequiredstring

The start date to use for the returned data.

Format: "date"
end_dateRequiredstring

The end date to use for the returned data.

Format: "date"
page_numbernumber

The page number to use for the returned data.

Minimum: 1
page_sizenumber

The page size to use for the returned data.

Minimum: 1
curl -X GET "https://beta.luxor.tech/api/v1/pool/worker-hashrate-efficiency/BTC/subaccount_1?worker_names=worker_1%2Cworker_2&start_date=2025-01-01&end_date=2025-01-31&page_number=1&page_size=10" \
  -H "authorization: <token>"

Default Response

{
  "currency_type": "BTC",
  "worker_names": [
    "string"
  ],
  "start_date": "2025-01-01",
  "end_date": "2025-01-31",
  "tick_size": "1d",
  "hashrate_efficiency_revenue": [
    {
      "date_time": "2025-01-01T00:00:00Z",
      "hashrate": "1035827914295214",
      "efficiency": 0.9960606098175049,
      "revenue": {
        "currency_type": "BTC",
        "revenue_type": "MINING",
        "revenue": 0.00066154
      }
    }
  ],
  "pagination": {
    "page_number": 0,
    "page_size": 0,
    "item_count": 0,
    "previous_page_url": "string",
    "next_page_url": "string"
  }
}