History

Bulk historical sync endpoint for one ticker across a date range

GET https://api.tickerapi.ai/v1/history/{ticker}

Overview

Use /history when you need a full time series for one ticker. This endpoint is designed for backfills and research syncs, so clients do not need to loop over thousands of dated /summary requests.

Internally, TickerAPI serves the hot window from Cloudflare KV and deeper history from versioned R2 archives. The response shape stays stable either way.

Each row contains the same core asset snapshot returned by Summary, plus support/resistance level payloads that use the same level terminology documented in Bands.

Tier Access
Free Up to 90 days of history.
Plus Up to 2 years of history.
Pro Up to 5 years of history.

Parameters

Parameter Location Type Required Description
ticker path string Yes Asset symbol to fetch, for example AAPL, MSFT, or BTCUSD.
timeframe query string No daily or weekly. Defaults to daily.
start query date Yes Inclusive range start in YYYY-MM-DD format.
end query date Yes Inclusive range end in YYYY-MM-DD format.
Range Rules
Both start and end are required together. Bounds are inclusive, rows are returned in ascending date order, and requests outside your tier window return 400. If the ticker exists but there is no data inside the requested range, the endpoint still returns a valid envelope with row_count: 0 and an empty rows array.

Example

GET /v1/history/AAPL
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://api.tickerapi.ai/v1/history/AAPL?timeframe=daily&start=2025-01-01&end=2025-03-31"

Response Shape

rows[].summary follows the Summary response contract. rows[].levels carries the historical support/resistance objects, including distance and status bands described in Bands.

FieldTypeDescription
tickerstringThe requested asset symbol.
timeframestringdaily or weekly.
startstringEchoed inclusive start bound.
endstringEchoed inclusive end bound.
row_countintegerTotal number of rows returned for the requested range.
rowsarrayAscending historical snapshots for the ticker and timeframe.

Row Object

FieldTypeDescription
rows[].datestringSnapshot date for that bar or week.
rows[].schema_versionstringHistory row schema version for forward compatibility.
rows[].summaryobjectFull asset snapshot for that date. See Summary.
rows[].levelsobjectHistorical support/resistance payload for that date. Distance and status values use the same vocabulary documented in Bands.

rows[].levels may be absent or null when level data is unavailable for that row or not included for the requesting tier.

200 Response
{ "ticker": "AAPL", "timeframe": "daily", "start": "2025-01-01", "end": "2025-03-31", "row_count": 62, "rows": [ { "date": "2025-01-02", "schema_version": "v1", "summary": { "...": "summary payload" }, "levels": { "...": "level payload" } } ] }