Latest Rates
Returns the most recent rate (date and OHLC) for every tracked FX pair. This endpoint is scoped to raw rate data — for ByteTrend scores, trend regimes, and other computed FX metrics, see the dedicated /api/fx namespace.
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
USDUSD is always 1.0 with source synthetic
- Rates are updated daily on weekdays