GET /public/get_index_chart_data
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/deribit/public/get_index_chart_dataCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeIndex price time series over a requested range, as [timestamp, price] pairs.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
index_name | query | str | required | Index name, e.g. btc_usd. example: btc_usd |
range | query | str | required | Chart range, e.g. 1h or 1d. example: 1h |
from | query | int | optional | Optional start timestamp in milliseconds. |
to | query | int | optional | Optional end timestamp in milliseconds. |
Response
type: object
data key: result
pagination: none
sample: {
"jsonrpc": "str",
"result": "array[600]",
"usIn": "int",
"usOut": "int",
"usDiff": "int",
"testnet": "bool"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/deribit/public/get_index_chart_data?index_name=btc_usd&range=1h"