Skip to main content

Get Profile Hashrate History

Retrieves the hashrate history of all sub-accounts of a profile

curl --request POST 'https://api.beta.luxor.tech/graphql' \
--header 'Content-Type: application/json' \
--header 'x-lux-api-key: YOUR_API_KEY' \
--data-raw '{"query":"getProfileHashrateHistory($mpn: MiningProfileName!) {getProfileHashrateHistory(mpn: $mpn){edges {node {dataPoints hashratetime}}}}"}'

Example

query getProfileHashrate {
getProfileHashrateHistory(mpn: BTC) {
edges {
node {
dataPoints
hashrate
time
}
}
}
}

Response

{
"data": {
"getHashrateScoreHistory": {
"nodes": [
{
"date": "",
"hashrate": "",
"efficiency": "",
"revenue": ""
}
]
}
}
}

Arguments

mpn (MiningProfileName)

first (Int)

Only read the first n values of the set.

last (Int)

Only read the last n values of the set.

offset (Int)

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

before (Cursor)

Read all values in the set before (above) this cursor.

after (Cursor)

Read all values in the set after (below) this cursor.

Type

ReturnHistoriesConnection

A connection to a list of ReturnHistory values.