Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/public/get_index_chart_data \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "public/get_index_chart_data",
  "params": {
    "index_name": "btc_usd",
    "range": "1m"
  }
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    [
      1573228800000,
      8751.7138636
    ],
    [
      1573232400000,
      8751.7138636
    ],
    [
      1573236000000,
      8751.7138636
    ],
    [
      1573239600000,
      8751.7138636
    ],
    [
      1573243200000,
      8751.7138636
    ]
  ]
}

Query Parameters

index_name
enum<string>
required

Index identifier, matches (base) cryptocurrency with quote currency

Available options:
btc_usd,
eth_usd,
ada_usdc,
algo_usdc,
avax_usdc,
bch_usdc,
bnb_usdc,
btc_usdc,
btcdvol_usdc,
buidl_usdc,
doge_usdc,
dot_usdc,
eurr_usdc,
eth_usdc,
ethdvol_usdc,
link_usdc,
ltc_usdc,
near_usdc,
paxg_usdc,
shib_usdc,
sol_usdc,
steth_usdc,
ton_usdc,
trump_usdc,
trx_usdc,
uni_usdc,
usde_usdc,
usyc_usdc,
xrp_usdc,
btc_usdt,
eth_usdt,
eurr_usdt,
sol_usdt,
steth_usdt,
usdc_usdt,
usde_usdt,
btc_eurr,
btc_usde,
btc_usyc,
eth_btc,
eth_eurr,
eth_usde,
eth_usyc,
steth_eth,
paxg_btc,
drbfix-btc_usdc,
drbfix-eth_usdc
range
enum<string>
required

Range of the data to return

Available options:
1h,
1d,
2d,
1m,
1y,
all

Response

200 - application/json

Success response

jsonrpc
enum<string>
required

The JSON-RPC version (2.0)

Available options:
2.0
result
array
required

Response: The response returns an array of data points, where each data point is an array containing:

  • Index 0: Timestamp in milliseconds since the Unix epoch
  • Index 1: Average index price at that timestamp

Example response structure:

[
[1573228800000, 8751.7138636],
[1573232400000, 8751.7138636],
[1573236000000, 8751.7138636]
]

Each entry in the result array represents a single data point:

  • The first value (timestamp) indicates when the price was recorded
  • The second value (price) is the average index price at that timestamp

The data points are returned in chronological order, making them ready for direct use in charting libraries.

id
integer

The id that was sent in the request