ByteTree API documentation

FX Metric History

How one currency pair’s trend scores and metrics have changed, day by day. The rows have the same shape as Metric History — flat, with metric fields at the top level — so the two are interchangeable for currency pairs.

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