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
  ]
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

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

Symbol to fetch bars for. Use the exact symbol returned by symbol search, such as AAPL for equities or the selected chart symbol for futures/options.

resolution
enum<string>
required

Candle size. Use minute values such as 1, 5, or 60 for intraday charts, D or 1D for daily charts, W or 1W for weekly charts, and M, 1M, 3M, 6M, or 12M for monthly views.

Available options:
1,
3,
5,
15,
30,
45,
60,
120,
180,
240,
D,
W,
M,
1D,
1W,
1M,
3M,
6M,
12M
from
integer<int64>
required

Start of the chart window as a Unix timestamp. Send seconds; millisecond timestamps are accepted and converted automatically.

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

End of the chart window as a Unix timestamp. Must be greater than from. Send seconds; millisecond timestamps are accepted and converted automatically.

Required range: x >= 1
firstDataRequest
string

TradingView compatibility flag. Omit or send a non-zero value for the first chart request; send 0 for follow-up history requests.

includeExtended
boolean
default:false

Set to true when the chart should include eligible pre-market and after-hours bars. Leave false for regular session charts.

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).

Historical chart data returned as parallel arrays. Values at the same index belong to the same bar, so t[0], o[0], h[0], l[0], c[0], and v[0] describe one candle.

s
enum<string>
required

Response status. ok means chart arrays are usable; no_data means the symbol or range returned no bars; error means read errmsg.

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

Close price for each bar. Use the value at the same index as t for chart candles and performance calculations.

errmsg
string

Human-readable error message. Present only when s is error or no_data; show it when no chart can be rendered.

h
number[]

Highest traded price during each bar interval. Use it for candle wicks and intraperiod range.

l
number[]

Lowest traded price during each bar interval. Use it for candle wicks and intraperiod range.

nextTime
integer<int64>

Next available bar timestamp when the requested range has more data. Use it for pagination or loading older chart data.

o
number[]

Open price for each bar interval. Use the value at the same index as t for candle bodies.

t
integer<int64>[]

Bar timestamps in Unix seconds. Each timestamp index lines up with open, high, low, close, and volume arrays.

v
integer<int64>[]

Trading volume for each bar interval. Use the value at the same index as t for volume charts.