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 freeOHLCV chart data for one instrument at a TradingView resolution, bounded by millisecond timestamps.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instrument_name | query | str | required | Instrument name. example: BTC-PERPETUAL |
start_timestamp | query | int | required | Window start in milliseconds since epoch. example: 1795278026522 |
end_timestamp | query | int | required | Window end in milliseconds since epoch. example: 1795882826522 |
resolution | query | str1 | 3 | 5 | 10 | 15 | 30 | 60 | 120 | 180 | 360 | 720 | 1D | required | TradingView 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"