Luxor Documentation Hub Logo
Mining Pool/API Documentation/Reporting

Get revenue history

Allows querying revenue for subaccounts. Returns daily results (fixed tick size at 1_DAY).

GET
/v1/pool/revenue/{currency_type}

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"

Query Parameters

subaccount_namesarray<string>

An array of subaccount names for which to retrieve summary information.

group_idstring

An alternate shortcut for specifying subaccounts. Can be used in place of subaccount_names

Format: "uuid"
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"
curl -X GET "https://beta.luxor.tech/api/v1/pool/revenue/BTC?subaccount_names=subaccount_1%2Csubaccount_2&group_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&start_date=2025-01-01&end_date=2025-01-31" \
  -H "authorization: <token>"

Default Response

{
  "currency_type": "BTC",
  "subaccounts": [
    {
      "id": 0,
      "name": "subaccount_1"
    }
  ],
  "start_date": "2025-01-01",
  "end_date": "2025-01-31",
  "revenue": [
    {
      "date_time": "2025-01-01T00:00:00Z",
      "revenue": {
        "currency_type": "BTC",
        "revenue_type": "MINING",
        "revenue": 0.00066154
      }
    }
  ]
}