Assets & Prices
Latest Prices
GET /api/prices The latest price for every asset — one row each, with the most recent completed day’s open, high, low, close and volume. Filter by asset type, region or sector to narrow it down.
Values are the latest day’s prices as stored, before adjustment. Split and dividend adjustments rescale earlier prices, not the latest day’s, so these normally match the last row of a symbol’s adjusted Price History. Use that endpoint for an adjusted series, and see Data Model for the adjustment contract.
Example
curl "https://api.bytetree.io/api/prices?limit=2" \
-H "Authorization: Bearer YOUR_API_KEY" const res = await fetch("https://api.bytetree.io/api/prices?limit=2", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
const body = await res.json(); import requests
res = requests.get(
"https://api.bytetree.io/api/prices?limit=2",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
body = res.json() 200 {
"count": 2,
"total": 5570,
"limit": 2,
"offset": 0,
"data": [
{
"symbol": "000001.SZ",
"date": "2026-10-08T00:00:00.000Z",
"open": 11.57,
"high": 11.87,
"low": 11.54,
"close": 11.78,
"volume": 148168594,
"source": "feed"
},
{
"symbol": "000002.SZ",
"date": "2026-10-08T00:00:00.000Z",
"open": 4.11,
"high": 4.29,
"low": 4.03,
"close": 4.06,
"volume": 746078494,
"source": "feed"
}
]
} All assets
curl https://api.bytetree.io/api/prices \
-H "Authorization: Bearer YOUR_API_KEY" Stocks only
curl "https://api.bytetree.io/api/prices?type=stock" \
-H "Authorization: Bearer YOUR_API_KEY" North American stocks
curl "https://api.bytetree.io/api/prices?type=stock®ion=North+America" \
-H "Authorization: Bearer YOUR_API_KEY" Next page (advance offset until offset + count >= total)
curl "https://api.bytetree.io/api/prices?limit=500&offset=500" \
-H "Authorization: Bearer YOUR_API_KEY" Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type |
string |
No | Filter by asset type: stock, crypto, etf, index, or commodity. Returns all types if omitted. |
region |
string |
No | Region label, exact match (e.g. North America, Europe, Asia Pacific) — see Dimensions. Not a country code |
sector |
string |
No | Sector label, exact match (e.g. Technology, Financial Services) |
limit |
number |
No | Maximum number of symbols per page. Default 500, capped at 1000 |
offset |
number |
No | Number of symbols to skip. Default 0. Pair with limit to page |
Response
This endpoint uses the paginated list envelope. A call without limit returns the first 500 symbols — check total and page with offset to get the rest.
| Field | Type | Description |
|---|---|---|
count |
number |
Number of symbols on this page |
total |
number |
Number of symbols matching the filters, ignoring limit and offset |
limit |
number |
Page size applied |
offset |
number |
Page offset applied |
data |
array |
Array of latest price objects |
Each price object:
| Field | Type | Description |
|---|---|---|
symbol |
string |
Ticker symbol |
date |
string |
ISO 8601 date of the latest record |
open |
number | null |
Opening price |
high |
number | null |
Day high |
low |
number | null |
Day low |
close |
number |
Closing price |
volume |
number | null |
Trading volume. For crypto, the US-dollar value traded over the UTC day |
source |
string |
Ingest provenance: feed (provider-sourced) |
Notes
- Returns one record per symbol — the most recent date available
- OHLCV values are the latest stored row, not adjusted on read. For a split- and dividend-adjusted history use
/api/prices/:symbol, and?raw=truethere for the as-printed values (see Data Model) - Results are sorted alphabetically by symbol
regionandsectorfilters resolve against the asset registry; symbols not present in the registry are excluded
Errors
| Status | When | Body |
|---|---|---|
400 |
type is not one of the five asset types — including fx |
Invalid value for 'type': expected one of stock, crypto, etf, index, commodity, received 'fx'. |
400 |
Malformed limit or offset |
See Malformed limit and offset values are rejected |
Currency pairs are not served here. For the latest FX rates use /api/rates.