Dashboard

Historical Prices

GET/api/price/history

Free Starter Stock ETF Pro

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.

Get API key Try it live in the API explorer

Query parameters

Example request

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'

Responses

200 OK

Historical bars + latest quote detail.

Response schema

  • cik number | null

    SEC CIK of the entity the selector resolved to. Lets callers verify the series belongs to the intended registrant. Null for entities without a CIK.

  • delayNotice string

    Delay disclosure for this data. Display it alongside the data wherever it is shown.

  • symbol string

    Uppercase ticker the selector resolved to.

  • resolution string
  • adjustedAsOf string (date-time) | null

    When the adjusted series was last recomputed. Adjusted values are back-adjusted, so treat this as the snapshot version of the whole series.

  • data array of array of number | null

    Array of `[ts_ms, value]` tuples sorted ascending by ts, `value` per the `adjusted` parameter. Direct-pluggable into Highcharts/Recharts/TradingView lightweight charts. With `adjusted=false`, bars predating our data window carry `null`.

  • 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

Example response

{
  "cik": 320193,
  "delayNotice": "Data delayed 15 minutes",
  "symbol": "AAPL",
  "resolution": "1d",
  "adjustedAsOf": "2026-08-25T20:15:11.000Z",
  "data": [
    [
      1787270400000,
      308.12
    ],
    [
      1787529600000,
      308.92
    ]
  ],
  "latestQuote": {
    "ts": "2026-08-25T00:00:00.000Z",
    "open": 310.93,
    "high": 313.58,
    "low": 308.39,
    "close": 309.89,
    "adjClose": 309.89,
    "volume": 11228609
  }
}

400 Bad Request

Invalid parameters or unknown symbol.

Response schema

  • error string

    Human-readable error message

Example response

{}

403 Forbidden

Feature not available on current plan.

Response schema

  • error string

    Human-readable error message

Example response

{}