OHLCV

Price bars for one asset, a page at a time

GET https://api.tickerdb.com/v1/ohlcv/AAPL

OHLCV returns open, high, low, close and volume bars for one stock, ETF or crypto asset, daily or weekly. Use it when you need exact prices: returns, charts, or a backtest's fills. For what those prices mean (trend, momentum, levels), use Summary.

curl
curl "https://api.tickerdb.com/v1/ohlcv/AAPL?start=2026-01-02&limit=2&order=asc" \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{ "ticker": "AAPL", "asset_class": "stock", "currency": "USD", "timeframe": "daily", "data_status": "eod", "adjustment": "split", "order": "asc", "start": "2026-01-02", "end": null, "row_count": 2, "has_more": true, "next_cursor": "2026-01-05", "bars": [ { "date": "2026-01-02", "open": 250.1, "high": 253.4, "low": 248.9, "close": 252.7, "volume": 48213900 }, { "date": "2026-01-05", "open": 252.9, "high": 255.0, "low": 251.3, "close": 254.2, "volume": 41077200 } ], "history_start": "2023-11-11", "plan": "Plus" }

It costs 1 credit per 100 bars returned, rounded up, and at least 1.

Parameters

ParameterDefaultDescription
ticker—Required, in the path: AAPL, SPY, BTCUSD. Not case-sensitive
timeframedailydaily or weekly. See Weekly bars
start, endyour plan's historyInclusive dates, YYYY-MM-DD, matched against each bar's date
orderdescdesc (newest first) or asc
limit100Bars per page, up to 1000
cursor—The previous page's next_cursor. See Pagination
adjustmentsplitsplit, split_dividend or raw. See Price adjustment

How far back you can read depends on your plan; each response gives your first readable date as history_start. Delisted assets keep their history, so a backtest isn't limited to today's survivors. A ticker symbol that has been reused returns its current holder.

Price adjustment

ModePricesVolume
splitEvery split and reverse split applied, so all prices are on today's share basis. Dividends are not includedSplit-adjusted
split_dividendSplit basis with cash dividends reinvested: a total-return series. For each dividend, every earlier price is multiplied by 1 − dividend / prior closeSplit-adjusted
rawAs traded on the dayAs traded

split and split_dividend are on today's basis, so their past prices change when a new split or dividend happens. raw prices stay as traded. Crypto has no splits or dividends, so all three modes return the same bars. The response's adjustment says which mode was used.

Weekly bars

A weekly bar covers Monday to Sunday and is dated by the Sunday, matching Summary's weekly rows. The current week appears only once it has ended. A weekly bar needs its whole week inside your plan's history, so the first weekly bar can start up to a week after history_start.

Total-return weekly bars, the last year
curl "https://api.tickerdb.com/v1/ohlcv/AAPL?timeframe=weekly&adjustment=split_dividend&limit=52" \ -H "Authorization: Bearer YOUR_API_KEY"

Pagination

When has_more is true, send the same request again with cursor set to next_cursor. Pages don't overlap. Keep order the same across pages.

The next page
curl "https://api.tickerdb.com/v1/ohlcv/AAPL?start=2026-01-02&limit=2&order=asc&cursor=2026-01-05" \ -H "Authorization: Bearer YOUR_API_KEY"

Response fields

FieldTypeDescription
ticker, asset_classstringThe asset and its class: stock, etf or crypto
currencystring | nullThe price currency
timeframe, adjustment, orderstringWhat was applied
start, endstring | nullThe dates read. start is your start, or history_start when you didn't send one; on weekly, the Monday of that week
row_countintegerBars on this page
has_more, next_cursorboolean, string | nullWhether there's another page, and the cursor to get it
barsobject[]The bars, each with date, open, high, low, close and volume. Only close is always present; the others can be null
history_start, planstringYour plan's first readable date, and your plan

A valid ticker with no bars in the range returns 200 with an empty bars list.

Errors

Statuserror.typeCauseWhat to do
400invalid_parameterAn unknown parameter, a malformed date, start after end, a limit over 1000, or an unknown adjustment.Read the message: it names the problem.
403tier_restrictedstart or cursor is before your plan's first readable date.Start at history_start or later, or upgrade at the upgrade_url in the response.
404ticker_not_foundThe symbol doesn't exist.Check the symbol, or find it with Search.

Errors aren't charged. Authentication and rate-limit errors are on Authentication and Errors & Caching.