Skip to main content
GET
Get Spot price history

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

symbol
string
required

TradingView symbol identifier

resolution
string
required

Bar resolution

from
integer

Unix seconds, not milliseconds.

to
integer
required

Unix seconds, not milliseconds.

countback
integer

Positive bar count ending at to; supply either from or countback.

Required range: x >= 1

Response

TradingView UDF history response

TradingView UDF history response with parallel arrays of OHLCV data.

s
string

Status ('ok' or 'no_data')

Example:

"ok"

t
integer[]

Array of Unix timestamps

o
number[]

Array of open prices

h
number[]

Array of high prices

l
number[]

Array of low prices

c
number[]

Array of close prices

v
number[]

Array of volumes