Get historical OHLCV candles
GET
/api/v1/public/companies/:ticker/candles3 credits / callAPI key required
Get historical OHLCV price candles for a company. Choose a resolution (intraday minutes, daily, weekly, or monthly) and either a period shorthand or an explicit from / to UNIX timestamp range. Payloads are capped at the 5000 most-recent candles and report whether the series was truncated.
Parameters
Path
Company ticker symbol (1-5 letters, case-insensitive)
Query
Candle resolution: intraday minutes (1, 5, 15, 30, 60, 240), D (daily, default), W (weekly), or M (monthly).
Lookback period shorthand (default 1Y). Ignored when from/to are provided.
Start of an explicit range as a UNIX timestamp (takes precedence over period).
End of an explicit range as a UNIX timestamp (takes precedence over period).
Code example
cURL
curl -X GET 'https://api.signal8.ai/api/v1/public/companies/AAPL/candles?from=2024-01-01&to=2024-12-31' \
-H "X-Api-Key: $SIGNAL8_API_KEY"Request URL
GET
https://api.signal8.ai/api/v1/public/companies/AAPL/candles?from=2024-01-01&to=2024-12-31example · 200
{
"data": {
"ticker": "AAPL",
"resolution": "D",
"from": 1778630400,
"to": 1781308800,
"total": 17,
"count": 17,
"truncated": false,
"candles": [
{
"timestamp": 1778644800,
"open": 293.5,
"high": 300.92,
"low": 293.5,
"close": 298.87,
"volume": 52684260.34243
},
{
"timestamp": 1778731200,
"open": 299.82,
"high": 300.45,
"low": 295.38,
"close": 298.21,
"volume": 35324922.433075
}
]
}
}