Price Time Series

Returns daily OHLCV data for a specific symbol. The full OHLCV (open, high, low, close, volume) is adjusted by default (split- and dividend-adjusted) — see Data Model for the exact adjustment contract and Raw mode below for how to access the unmodified market-printed values.

Request

# Default — adjusted OHLCV
curl https://api.bytetree.io/api/prices/AAPL

# Raw OHLCV (forensic; market-printed values)
curl "https://api.bytetree.io/api/prices/AAPL?raw=true"

# With date range
curl "https://api.bytetree.io/api/prices/BTCUSD?from=2026-01-01&to=2026-01-31"

Path Parameters

NameTypeRequiredDescription
symbolstringYesTicker symbol (e.g. AAPL, BTCUSD). Case-insensitive.

Query Parameters

NameTypeRequiredDescription
fromstringNoStart date in YYYY-MM-DD format. Inclusive.
tostringNoEnd date in YYYY-MM-DD format. Inclusive.
rawbooleanNoWhen true, returns the unmodified raw OHLCV as currently reported upstream — the market-printed values, with no split or dividend adjustment. Default false (adjusted). See Raw mode.

Response

FieldTypeDescription
symbolstringThe normalised (uppercase) symbol
countnumberNumber of data points returned
dataarrayArray of daily OHLCV objects

Each data point:

FieldTypeDescription
datestringISO 8601 date
opennumber | nullOpening price (adjusted by default; raw when ?raw=true)
highnumber | nullDay high (adjusted by default; raw when ?raw=true)
lownumber | nullDay low (adjusted by default; raw when ?raw=true)
closenumberClosing price (adjusted by default; raw when ?raw=true)
volumenumber | nullTrading volume (adjusted by default; raw when ?raw=true)
{
  "symbol": "AAPL",
  "count": 2,
  "data": [
    {
      "date": "2026-01-02T00:00:00.000Z",
      "open": 220.10,
      "high": 223.50,
      "low": 219.80,
      "close": 222.40,
      "volume": 48123000
    },
    {
      "date": "2026-01-03T00:00:00.000Z",
      "open": 222.40,
      "high": 225.10,
      "low": 221.90,
      "close": 224.75,
      "volume": 51204000
    }
  ]
}

Raw mode

?raw=true returns the raw OHLCV from PriceData — the values our data provider currently reports for each historical bar. This is forensic mode and serves a narrow audience:

Raw values mutate when the provider retroactively rewrites historical bars after a split (this is normal upstream behaviour). The default adjusted OHLCV is seeded from a fully split- and dividend-adjusted history and maintained against our internal splits ledger, and is therefore stable across upstream rewrites — see Data Model for the full contract.

Notes