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, will be auto-converted). Must be greater than 'from' parameter.

Required range: x >= 1

Response

Historical chart data retrieved successfully

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