FX Pair Time Series
Returns a daily time series of computed metrics for a single FX pair. Shape mirrors /api/metrics/:symbol — flat rows with metric fields merged top-level — so consumers can swap one endpoint for the other when narrowing to FX-only.
Request
curl https://api.bytetree.io/api/fx/EURUSD/series
# With date range
curl "https://api.bytetree.io/api/fx/EURUSD/series?from=2026-01-01&to=2026-01-31"
# Cherry-pick fields
curl "https://api.bytetree.io/api/fx/EURUSD/series?fields=byteTrendCapr200w,trendRegimeCapr200w"
Path Parameters
| Name | Type | Required | Description |
|---|
symbol | string | Yes | Concatenated FX pair code (e.g. EURUSD). Case-insensitive. |
Query Parameters
| Name | Type | Required | Description |
|---|
from | string | No | Start date in YYYY-MM-DD format. Inclusive. |
to | string | No | End date in YYYY-MM-DD format. Inclusive. |
fields | string | No | Comma-separated list of metric keys to include. date and close are always returned. |
Response
| Field | Type | Description |
|---|
symbol | string | The normalised (uppercase) symbol |
count | number | Number of data points returned |
data | array | Array of daily metric records, sorted ascending by date |
Each record in data:
| Field | Type | Description |
|---|
date | string | ISO 8601 date |
close | number | Close rate for the date |
| metric fields | various | Computed metric fields merged at the top level — see Latest Metrics for the full set and definitions |
{
"symbol": "EURUSD",
"count": 2,
"data": [
{
"date": "2026-05-04T00:00:00.000Z",
"close": 1.16720,
"byteTrendCapr200w": 4,
"trendRegimeCapr200w": "Emerging Trend"
},
{
"date": "2026-05-05T00:00:00.000Z",
"close": 1.16838,
"byteTrendCapr200w": 4,
"trendRegimeCapr200w": "Emerging Trend"
}
]
}
Notes
- Without
from/to, returns all available history for the pair.
- For the polymorphic call that returns metrics for stocks, crypto, FX, and other types through a single path, see
/api/metrics/:symbol.
- For raw OHLC FX rate history (no scores or metrics), see
/api/rates/:pair.