Currencies & FX
Get FX Pair
GET /api/fx/:symbol The latest trend scores and metrics for one currency pair, such as EURUSD. See the FX Metrics overview for the alternatives on /api/assets/:symbol and /api/metrics/:symbol/latest.
Example
Get an FX pair
curl https://api.bytetree.io/api/fx/EURUSD \
-H "Authorization: Bearer YOUR_API_KEY" const res = await fetch("https://api.bytetree.io/api/fx/EURUSD", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
const body = await res.json(); import requests
res = requests.get(
"https://api.bytetree.io/api/fx/EURUSD",
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
body = res.json()
Response
200 Abridged {
"data": {
"symbol": "EURUSD",
"name": "EUR/USD",
"type": "fx",
"date": "2026-10-09T00:00:00.000Z",
"close": 1.12264,
"byteTrendCapr200w": 0,
"trendRegimeCapr200w": "Neutral",
"changeCapr200w": 0,
"...": "..."
}
} More requests
Lower case is fine — symbols are normalised
curl https://api.bytetree.io/api/fx/gbpusd \
-H "Authorization: Bearer YOUR_API_KEY" Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbol |
string |
Yes | Concatenated FX pair code (e.g. EURUSD, GBPUSD). Every tracked pair is quoted against the US dollar (XXXUSD) — see List FX Pairs. Case-insensitive. |
Response
| Field | Type | Description |
|---|---|---|
data |
object |
The synthesised FX record with metrics merged at the top level |
The data object:
| Field | Type | Description |
|---|---|---|
symbol |
string |
The normalised (uppercase) symbol |
name |
string |
Pretty slash form (e.g. EUR/USD) |
type |
string |
Always "fx" |
date |
string |
ISO 8601 date of the latest record |
close |
number |
Latest close rate |
| metric fields | various | Computed metric fields merged at the top level — see Latest Metrics for the full set and definitions |
Errors
| Status | Description |
|---|---|
404 |
No rate data exists for the given symbol |
Notes
- For the polymorphic call that resolves stocks, crypto, FX, and other types through a single path, see
/api/assets/:symbol.