Retrieves historical OHLCV (Open, High, Low, Close, Volume) price bars for a specified symbol across various timeframes. Returns time-series candlestick data essential for technical analysis, backtesting, and chart visualization.
Use Case: Build price charts, analyze historical trends, and perform technical analysis on stocks and securities with customizable time intervals.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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 >= 1Historical chart data retrieved successfully
Status of the response
ok, no_data, error Array of close prices
Error message (only present if s='error' or s='no_data')
Array of high prices
Array of low prices
Next expected bar time (optional)
Array of open prices
Array of bar timestamps (Unix time in seconds)
Array of volumes