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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Stock ticker symbol
"AAPL"
Size of the time window
1
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
asc, desc "asc"
Maximum number of results
1 <= x <= 500001000
Pagination cursor
Successful response