v1

latestOpenAPI 3.0.32026-07-267278168.1 KB
Market Data

Get Price History (TradingView)

Returns historical bar data in TradingView UDF format, as required by the TradingView charting library: a single object with parallel arrays keyed t, o, h, l, c, and v (values are numbers), plus a status field s. For a standard array-of-objects representation with full field names (open, high, low, close, volume), use GET /v1/perps/candles (Get Candles).

get/v1/perps/history

Query parameters

symbolstring required

TradingView symbol identifier

resolutionstring required

Bar resolution

frominteger required

Start Unix timestamp

tointeger required

End Unix timestamp

Response

TradingView UDF history response

sstring

Status ('ok' or 'no_data')

tinteger[]

Array of Unix timestamps

onumber[]

Array of open prices

hnumber[]

Array of high prices

lnumber[]

Array of low prices

cnumber[]

Array of close prices

vnumber[]

Array of volumes

Example response

{
  "s": "ok"
}