Skip to main content
GET
/
v1
/
chart
/
history
Get Historical Chart Data
curl --request GET \
  --url https://api.aries.com/v1/chart/history \
  --header 'Authorization: Bearer <token>'
{
  "c": [
    130.15,
    130.89,
    131.24
  ],
  "h": [
    130.28,
    131.05,
    131.37
  ],
  "l": [
    129.88,
    130.09,
    130.81
  ],
  "nextTime": 1672542000,
  "o": [
    129.93,
    130.15,
    130.89
  ],
  "s": "ok",
  "t": [
    1672531200,
    1672534800,
    1672538400
  ],
  "v": [
    1234567,
    1345678,
    1456789
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

symbol
string
required

Stock symbol to fetch historical data for

resolution
enum<string>
required

Bar resolution: '1', '5', '15', '30', '60' (minutes), '240' (4 hours), 'D'/'1D' (daily), 'W'/'1W' (weekly), 'M'/'1M' (monthly)

Available options:
1,
5,
15,
30,
60,
240,
D,
W,
M,
1D,
1W,
1M
from
integer<int64>
required

Start time as Unix timestamp in seconds (or milliseconds, will be auto-converted)

Required range: x >= 1
to
integer<int64>
required

End time as Unix timestamp in seconds (or milliseconds; auto-converted to seconds). Must be greater than 'from'.

Required range: x >= 1
firstDataRequest
string

Optional. Set to '0' for subsequent requests; omit or non-zero for first request (TradingView UDF).

Response

Historical bars in TradingView UDF format. Always returns 200; check s (status): ok = data in t, o, h, l, c, v; no_data = no bars; error = errmsg contains reason (e.g. invalid resolution or time range).

s
enum<string>
required

Status of the response

Available options:
ok,
no_data,
error
c
number[]

Array of close prices

errmsg
string

Error message (only present if s='error' or s='no_data')

h
number[]

Array of high prices

l
number[]

Array of low prices

nextTime
integer<int64>

Next expected bar time (optional)

o
number[]

Array of open prices

t
integer<int64>[]

Array of bar timestamps (Unix time in seconds)

v
integer<int64>[]

Array of volumes