Historical Prices
Changed on
Data delayed 15 minutes.
Historical price bars for one symbol at one resolution, returned as compact [ts_ms, value] tuples for efficient charting. value is the split/dividend-adjusted close by default; pass adjusted=false to receive the unadjusted close instead (same tuple shape). 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.
Delisted listings are not served. A ticker identifies an instrument only while its listing is active; once delisted the symbol may be reassigned to another registrant, so a selector resolving to a delisted listing returns 400 rather than another company's prices.
Request
- Base URLhttps://api.stockfit.io/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Stock ticker symbol. Identify the entity by exactly one of: symbol, cik, cusip, composite_figi, or share_class_figi. At least one is required.
SEC Central Index Key (CIK).
CUSIP identifier (9 characters).
Composite OpenFIGI identifier.
Share-class OpenFIGI identifier.
Bar resolution. Default 1d.
Inclusive lower bound (YYYY-MM-DD). Omit to return all available history.
Inclusive upper bound (YYYY-MM-DD). Omit to return data up to now.
On by default: bars carry the split/dividend-adjusted close (back-adjusted, so the whole series is restated when a new distribution or split occurs). Pass false to receive the unadjusted close per bar instead: the close on the current split-adjusted share basis with cash distributions NOT deducted. Combining both series lets you reproduce the adjustment: per bar, factor = adjClose / close, and across each ex-date the factor steps by (close_before - distribution) / close_before. Bars predating our data window return null in unadjusted mode.
Response
Historical bars + latest quote detail.
Example response
{
"cik": 320193,
"delayNotice": "Data delayed 15 minutes",
"symbol": "AAPL",
"resolution": "1d",
"data": [
[
1787270400000,
308.12
],
[
1787529600000,
308.92
]
]
}Changes
- breaking
the response property
//became nullable for the status - info
added the new optional
queryrequest parameteradjusted - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking
- warning
removed the optional property
from the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- warning