Skip to main content
GET
/
v1
/
chart
/
history
Get historical bars (OHLCV data)
curl --request GET \
  --url https://api.tradearies.dev/v1/chart/history \
  --header 'Authorization: Bearer <token>' \
  --header 'X-API-Key: <api-key>'
{
  "s": "ok",
  "errmsg": "<string>",
  "t": [
    123
  ],
  "o": [
    123
  ],
  "h": [
    123
  ],
  "l": [
    123
  ],
  "c": [
    123
  ],
  "v": [
    123
  ],
  "nextTime": 123
}
This endpoint returns historical Open, High, Low, Close, and Volume (OHLCV) data in UDF format. Use this to populate charts with historical price data.
Supported Resolutions:
  • Seconds: 1S, 5S, 10S, 15S, 30S
  • Minutes: 1, 5, 15, 30, 60, 240
  • Daily/Weekly/Monthly: 1D, 1W, 1M
Set firstDataRequest=1 on the initial request to extend the date range backward by 5 days, ensuring sufficient historical context for technical indicators.

Authorizations

X-API-Key
string
header
required
Authorization
string
header
required

Query Parameters

symbol
string
required
Example:
resolution
enum<string>
required
Available options:
1S,
5S,
10S,
15S,
30S,
1,
5,
15,
30,
60,
240,
1D,
1W,
1M
Example:
from
integer
required
Example:
to
integer
required
Example:
firstDataRequest
enum<string>
default:0
Available options:
0,
1

Response

s
enum<string>
required
Available options:
ok,
no_data,
error
errmsg
string
t
integer[]
o
number[]
h
number[]
l
number[]
c
number[]
v
integer[]
nextTime
integer