GET /api/rates Latest Rates
Today’s exchange rate for every currency ByteTree tracks, quoted in US dollars — GBPUSD = 1.27 means one British pound buys 1.27 US dollars.
This endpoint carries the rates themselves (date, open, high, low, close). For trend scores, trend regimes and other computed metrics on currency pairs, see FX Metrics.
Request
curl https://api.bytetree.io/api/rates
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
format | string | No | Response format: json (default), csv, or toon |
Response
| Field | Type | Description |
|---|---|---|
count | number | Total number of pairs returned |
data | array | Array of rate objects |
Each rate object:
| Field | Type | Description |
|---|---|---|
pair | string | Currency pair code (e.g. GBPUSD) |
date | string | ISO 8601 date of the rate |
open | number | null | Opening price |
high | number | null | Day high |
low | number | null | Day low |
close | number | Closing price |
source | string | Ingest provenance: feed (provider-sourced), synthetic (derived — e.g. the USDUSD identity row), or carry-forward (weekend/holiday fill) |
{
"count": 33,
"data": [
{
"pair": "ARSUSD",
"date": "2026-02-16T00:00:00.000Z",
"open": 0.000891,
"high": 0.000895,
"low": 0.000889,
"close": 0.000892,
"source": "feed"
},
{
"pair": "GBPUSD",
"date": "2026-02-16T00:00:00.000Z",
"open": 1.2710,
"high": 1.2750,
"low": 1.2700,
"close": 1.2731,
"source": "feed"
},
{
"pair": "USDUSD",
"date": "2026-02-16T00:00:00.000Z",
"open": null,
"high": null,
"low": null,
"close": 1.0,
"source": "synthetic"
}
]
}
Notes
- Returns one entry per tracked pair, sorted alphabetically by pair code
USDUSDis always1.0with sourcesynthetic- Rates are updated daily on weekdays