Get Historical Chart Data
Retrieves historical price bars (OHLCV - Open, High, Low, Close, Volume) for a specific symbol within a date range. This endpoint supports various time resolutions from seconds to months. The data is returned in arrays format optimized for charting libraries, with timestamps in Unix format (seconds).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Stock symbol to fetch historical data for
Bar resolution: '1', '5', '15', '30', '60' (minutes), '240' (4 hours), 'D'/'1D' (daily), 'W'/'1W' (weekly), 'M'/'1M' (monthly)
1, 5, 15, 30, 60, 240, D, W, M, 1D, 1W, 1M Start time as Unix timestamp in seconds (or milliseconds, will be auto-converted)
x >= 1End time as Unix timestamp in seconds (or milliseconds, will be auto-converted). Must be greater than 'from' parameter.
x >= 1Response
Historical chart data retrieved successfully
Status of the response
ok, no_data, error Error message (only present if s='error' or s='no_data')
Array of bar timestamps (Unix time in seconds)
Array of close prices
Array of open prices
Array of high prices
Array of low prices
Array of volumes
Next expected bar time (optional)