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

OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.

Query Parameters

symbol
string
required

Stock symbol to fetch historical data for

resolution
enum<string>
required

Bar resolution: 1, 3, 5, 15, 30, 45, 60, 120, 180, 240 (minutes), D/1D/1d (daily), W/1W/1w (weekly), M/1M/1m, 3M/3m, 6M/6m, 12M/12m (monthly)

Available options:
1,
3,
5,
15,
30,
45,
60,
120,
180,
240,
D,
W,
M,
1D,
1W,
1M,
3M,
6M,
12M,
1d,
1w,
1m,
3m,
6m,
12m
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

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

includeExtended
boolean
default:false

Include extended-hours data.

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