Price Time Series

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

Request

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

# Raw OHLCV (forensic; preserves split discontinuities)
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 — preserving split discontinuities. Default false (split-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 (split-adjusted by default; raw when ?raw=true)
highnumber | nullDay high (split-adjusted by default; raw when ?raw=true)
lownumber | nullDay low (split-adjusted by default; raw when ?raw=true)
closenumberClosing price (split-adjusted by default; raw when ?raw=true)
volumenumber | nullTrading volume (split-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 split-adjusted OHLCV is computed from RawPriceData + our internal splits ledger and is therefore stable across upstream rewrites — see Data Model for the full rationale.

Notes