Get Hashrate Score History
Retrieves the hashrate history of a subaccount.
GetHashrateScoreHistory
query has rate limitation in place.
Initially, the API allows for a burst of up to 2 requests, and afterward, it gradually restores 1 request every 2 seconds until reaching the maximum allowable limit of 2.
This limitation is imposed to manage and control the rate at which requests can be made to the API, preventing potential misuse or excessive use of resources.
Example
query getHashrateScoreHistory {
getHashrateScoreHistory(mpn: BTC, uname: "your_username", first: 10, orderBy: DATE_DESC) {
edges {
node {
date
efficiency
hashrate
revenue
uptimePercentage
uptimeTotalMinutes
uptimeTotalMachines
}
}
}
}
Response
{
"data": {
"getHashrateScoreHistory": {
"edges": [
{
"node": {
"date": "",
"efficiency": "",
"hashrate": "",
"revenue": "",
"uptimePercentage": ,
"uptimeTotalMinutes": ,
"uptimeTotalMachines":
}
}
]
}
}
}
Arguments
mpn
(MiningProfileName!)
enum MiningProfileName {
ARRR
BTC
DASH
DCR
KMD
LBC
SC
SCP
ZEC
ZEN
EQUI
TBTC
ETH
TETH
}
-
first
(Int
) Only read the firstn
values of the set. -
last
(Int
) Only read the lastn
values of the set. -
offset
(Int
) Skip the firstn
values from ourafter
cursor, an alternative to cursor based pagination. May not be used withlast
. -
before
(Cursor
) Read all values in the set before (above) this cursor. -
after
(Cursor
) Read all values in the set after (below) this cursor. -
orderBy
NATURAL , DATE_DESC , DATE_ASC
Type
ReturnHistoriesConnection
A connection to a list of ReturnHistory
values.
type ReturnHistoriesConnection {
nodes: [ReturnHistory!]!
edges: [ReturnHistoriesEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
Fields
nodes
([ReturnHistory!]!)
edges
([ReturnHistoriesEdge!]!)
A list of edges which contains the ReturnHistory
and cursor to aid in pagination.
type ReturnHistoriesEdge {
cursor: Cursor
node: ReturnHistory!
}
Fields
cursor
(Cursor
) A cursor for use in pagination.node
(ReturnHistory!) TheReturnHistory
at the end of the edge.
pageInfo
Information to aid in pagination.
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: Cursor
endCursor: Cursor
}
totalCount
(Int!
)
The count of all ReturnHistory
you could get from the connection.