Retrieve OHLCV bars for any timeframe
The candles endpoint returns historical OHLCV (open, high, low, close, volume) bars for a single symbol at a requested interval. You can retrieve everything from 1-minute intraday data up to yearly bars, and optionally narrow the result to a specific date range. When the market is open, the most recent bar may still be forming — thepartial_bar_included flag tells you whether that is the case.
GET https://app.stratalerts.com/api/market/v1/candles/{symbol}
Requires scope:
candles:readPath parameters
string
required
The ticker symbol (e.g.,
AAPL, ES1!). Case-insensitive — normalized to uppercase.Query parameters
string
default:"1d"
The bar interval. Must be one of the following values:
An unrecognized interval value returns a
404 response.string
Start of the date range. Accepts an ISO 8601 datetime string (
2026-01-15T09:30:00Z) or a plain date string (2026-01-15). Plain dates are interpreted as midnight UTC. Bars with a time value before this timestamp are excluded.string
End of the date range. Same format as
start. Bars with a time value after this timestamp are excluded.number
default:"500"
Maximum number of bars to return. Clamped to the range
1–5000. When a start/end range is also provided, the limit is applied after filtering — returning the most recent limit bars within that range.Response fields
string
required
The requested ticker symbol, uppercased.
string
required
The normalized interval string you requested (e.g.,
1d).object[]
required
Array of OHLCV bar objects ordered chronologically (oldest first).
boolean
required
true when the final bar in the array is still forming (i.e., the current period has not yet closed). Always false for the 1m interval and for any request made outside market hours.Code examples
Fetching a date range
Example response
Error codes
An unrecognized
interval value also returns a 404 with no error body.
Error responses use the following shape: