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.
OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.
Stock ticker symbol
"AAPL"
Size of the time window (min 1)
x >= 11
Time span unit
second, minute, hour, day, week, month, quarter, year "day"
Start date (YYYY-MM-DD) or timestamp
"2024-01-01"
End date (YYYY-MM-DD) or timestamp
"2024-01-31"
Adjust for splits
true
Sort order Sort direction
asc, desc "asc"
Maximum number of results
1 <= x <= 500001000
Pagination cursor
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 of the response
Stock ticker symbol
URL for next page of results