Historical OHLCV bars for one symbol at one resolution, returned as compact [ts_ms, adjClose] tuples for efficient charting. The latest bar's full OHLCV detail is also included.
Resolutions: 1d (default), 1wk, 1mo.
History depth per plan: Free = last 2 years, Starter = last 5 years, Stock / ETF / Pro = 20 years.
symbol string optional Stock ticker symbol. Identify the entity by exactly one of: symbol, cik, cusip, composite_figi, or share_class_figi. At least one is required.
cik integer optional SEC Central Index Key (CIK).
cusip string optional CUSIP identifier (9 characters).
composite_figi string optional Composite OpenFIGI identifier.
share_class_figi string optional Share-class OpenFIGI identifier.
resolution string (enum) optional Bar resolution. Default 1d.
1d, 1wk, 1mofrom string (date) optional Inclusive lower bound (YYYY-MM-DD). Omit to return all available history.
to string (date) optional Inclusive upper bound (YYYY-MM-DD). Omit to return data up to now.
curl 'https://api.stockfit.io/v1/api/price/history?symbol=AAPL&cik=320193&cusip=037833100&composite_figi=BBG000B9XRY4&share_class_figi=BBG001S5N8V8&resolution=1d&from=2024-01-01&to=2024-12-31' \
-H 'Authorization: Bearer YOUR_API_TOKEN'Historical bars + latest quote detail.
ticker string resolution string data array of array of number Array of `[ts_ms, adjClose]` tuples sorted ascending by ts. Direct-pluggable into Highcharts/Recharts/TradingView lightweight charts.
latestQuote object | null Full OHLCV for the most recent bar. Null if no data is available.
ts string (date-time) open number | null high number | null low number | null close number adjClose number | null volume number {
"ticker": "AAPL",
"resolution": "1d",
"data": [
[
1704153600000,
185.64
],
[
1704240000000,
184.25
]
],
"latestQuote": {
"ts": "2025-01-31T00:00:00.000Z",
"open": 0,
"high": 0,
"low": 0,
"close": 0,
"adjClose": 0,
"volume": 0
}
}Invalid parameters or unknown symbol.
error string Human-readable error message
{}Feature not available on current plan.
error string Human-readable error message
{}