Get Hashprice
Returns Bitcoin hashprice for a specified interval
Response
{
"data": {
"getHashprice": {
"totalCount": 288,
"edges": [
{
"cursor": "WyJuYXR1cmFsIiwxXQ==",
"node": {
"timestamp": "2024-03-21T13:30:00+00:00"
}
}
],
"nodes": [
{
"usdHashprice": 0.10519368421052634,
"btcHashprice": 0.000001559513661827495,
"timestamp": "2024-03-21T13:30:00+00:00"
}
]
}
}
}
Arguments
inputInterval
(ChartsInterval)
enum ChartsInterval {
_1_DAY
_7_DAY
_1_MONTH
_3_MONTHS
_1_YEAR
ALL
}
Type
HashpricesConnection
A connection to a list of Hashprice
values.
type HashpricesConnection {
nodes: [Hashprice!]!
edges: [HashpricesEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
Fields
nodes
([Hashprice!]!)
A list of Hashprice
objects.
type Hashprice {
timestamp: Datetime
usdHashprice: Float
btcHashprice: Float
}
edges
([HashpricesEdge!]!)
A list of edges which contains the Hashprice
and cursor to aid in pagination.
type HashpricesEdge {
cursor: Cursor
node: Hashprice!
}
Fields
-
cursor
(Cursor
) A cursor for use in pagination. -
node
(Hashprice!) A list ofHashprice
objects.
type Hashprice {
timestamp: Datetime
usdHashprice: Float
btcHashprice: Float
}
pageInfo
Information to aid in pagination.
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: Cursor
endCursor: Cursor
}
totalCount
(Int!
) The count of allHashprice
you could get from the connection.