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

NameTypeRequiredDescription
symbolstringYesConcatenated FX pair code (e.g. EURUSD). Case-insensitive.

Query Parameters

NameTypeRequiredDescription
fromstringNoStart date in YYYY-MM-DD format. Inclusive.
tostringNoEnd date in YYYY-MM-DD format. Inclusive.
fieldsstringNoComma-separated list of metric keys to include. date and close are always returned.

Response

FieldTypeDescription
symbolstringThe normalised (uppercase) symbol
countnumberNumber of data points returned
dataarrayArray of daily metric records, sorted ascending by date

Each record in data:

FieldTypeDescription
datestringISO 8601 date
closenumberClose rate for the date
metric fieldsvariousComputed 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