GET /public/get_tradingview_chart_data

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/deribit/public/get_tradingview_chart_dataCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

OHLCV chart data for one instrument at a TradingView resolution, bounded by millisecond timestamps.

Parameters

nameintypedescription
instrument_namequerystrrequiredInstrument name.
example: BTC-PERPETUAL
start_timestampqueryintrequiredWindow start in milliseconds since epoch.
example: 1795278026522
end_timestampqueryintrequiredWindow end in milliseconds since epoch.
example: 1795882826522
resolutionquerystr
1 | 3 | 5 | 10 | 15 | 30 | 60 | 120 | 180 | 360 | 720 | 1D
requiredTradingView resolution (1, 3, 5, 15, 30, 60, 1D).
example: 60

Response

type: object
pagination: none
sample: {
  "usOut": "int",
  "usIn": "int",
  "usDiff": "int",
  "testnet": "bool",
  "result": "object",
  "jsonrpc": "str"
}

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_tradingview_chart_data?instrument_name=BTC-PERPETUAL&start_timestamp=1795278026522&end_timestamp=1795882826522&resolution=60"