Get ASIC Price Index
Returns the ASIC price index in USD for a given time interval
Response
{
"data": {
"getChartBySlug": {
"metadata": {
"id": "WyJjaGFydHNfbWV0YWRhdGEiLDEzXQ==",
"rowId": 13,
"title": "Bitcoin ASIC Price Index",
"label": "Rig Price Index (USD)",
"accessors": {
"x": {
"name": "time"
},
"y1": {
"name": "under25",
"type": "line",
"label": "Under 25 J/TH",
"dataLabelFormat": {
"prefix": "$",
"thousandSeparator": true,
"decimalScale": 8
},
"axisLabel": {
"name": "USD",
"offset": 50
}
},
"y2": {
"name": "_25to38",
"type": "line",
"label": "25 - 38 J/TH",
"dataLabelFormat": {
"prefix": "$",
"thousandSeparator": true,
"decimalScale": 8
},
"axisLabel": {
"name": "USD",
"offset": 50
}
},
"y3": {
"name": "_38to68",
"type": "line",
"label": "38 - 68 J/TH",
"dataLabelFormat": {
"prefix": "$",
"thousandSeparator": true,
"decimalScale": 8
}
},
"y4": {
"name": "above68",
"type": "line",
"label": "Above 68 J/TH",
"dataLabelFormat": {
"prefix": "$",
"thousandSeparator": true,
"decimalScale": 8
}
},
"y5": {
"name": "close",
"type": "line",
"label": "Bitcoin Price",
"initialDisabled": true,
"dataLabelFormat": {
"prefix": "$",
"thousandSeparator": true,
"decimalScale": 2
}
}
},
"margin": {
"left": 65,
"bottom": 21,
"top": 11,
"right": 0
},
"createdAt": "2021-11-18T17:51:40.303853+00:00",
"updatedAt": "2021-11-18T17:51:40.303853+00:00",
"dataFrom": "app.rig_price_index_usd",
"dataTimeAttr": "time",
"type": "asic-bitcoin-prices",
"slug": "asic-price-index-usd",
"intervals": ["_3_MONTHS", "_6_MONTHS", "_1_YEAR", "ALL"],
"filterBy": null
},
"data": [
{
"time": "2023-11-27T00:00:00+00:00",
"under25": 13.22,
"_25to38": 10.74,
"_38to68": 3.81,
"above68": 4.75,
"close": 37255.99
}
]
}
}
}
Arguments
-
inputSlug
(String
) -
inputInterval
(ChartsInterval)
enum ChartsInterval {
_3_MONTHS
_6_MONTHS
_1_YEAR
ALL
}
filter
(FilterInput)
input FilterInput {
equalto: String
}
Type
ChartType
type ChartType {
metadata: ChartsMetadatum
data: JSON
}
Fields
-
metadata
(ChartsMetadatum)type ChartsMetadatum implements Node { id: ID! rowId: Int! title: String! label: String accessors: JSON! margin: JSON! createdAt: Datetime! updatedAt: Datetime! dataFrom: String! dataTimeAttr: String! type: String! slug: String! intervals: [ChartsInterval] filterBy: String description: String }
Fields
intervals
([ChartsInterval])
enum ChartsInterval { _3_MONTHS _6_MONTHS _1_YEAR ALL }
-
data
(JSON
)