Aggregate Bars
Get aggregate bars for a stock over a time range with customizable time spans (second, minute, hour, day, week, month, quarter, year). Returns OHLCV data with volume-weighted average price.
Use Case: Build candlestick charts and technical analysis tools with historical price data at any time interval.
Authorizations
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Query Parameters
Stock ticker symbol, such as AAPL. Use the exact ticker for the company you want to research.
"AAPL"
Size of each aggregate time window. Enter 1 or greater, such as 1 day or 5 minutes depending on timespan.
x >= 11
Time span unit for each aggregate bar, such as minute, hour, day, week, month, quarter, or year when supported.
second, minute, hour, day, week, month, quarter, year "day"
Start date in YYYY-MM-DD format. Enter the first date to include in the research window. or timestamp
"2024-01-01"
End date in YYYY-MM-DD format. Enter the last date to include in the research window. or timestamp
"2024-01-31"
Whether to adjust historical prices for stock splits. Use true for normalized charting and false for raw market data.
true
Sort direction for aggregate bars. Use asc for oldest first or desc for newest first.
asc, desc Maximum number of results to return. Use smaller values for UI pages and larger values for exports within API limits.
1 <= x <= 500001000
Pagination cursor from the previous response. Omit it on the first request, then send the returned cursor to fetch the next page.
Response
Successful response
Whether or not the results are adjusted for splits
Number of results returned
Unique request ID
Array of aggregate bars
Total number of results
Status string from the upstream data provider — typically OK for a successful response. Treat any other value as an error indicator alongside the HTTP status code.
Stock ticker symbol, such as AAPL. Use the exact ticker for the company you want to research.
URL for next page of results