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

NameTypeRequiredDescription
formatstringNoResponse format: json (default), csv, or toon

Response

FieldTypeDescription
countnumberTotal number of pairs returned
dataarrayArray of rate objects

Each rate object:

FieldTypeDescription
pairstringCurrency pair code (e.g. GBPUSD)
datestringISO 8601 date of the rate
opennumber | nullOpening price
highnumber | nullDay high
lownumber | nullDay low
closenumberClosing price
sourcestringIngest 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