Eastern Caribbean Central Bank Exchange Rate API: Official XCD Rates as JSON
The Eastern Caribbean Central Bank publishes the official exchange rates for the Eastern Caribbean Currency Union — the bank's own dated figures, not moving market prices. AllRatesToday serves them on the same endpoints as more than 130 other central banks, under the source code eccb. This guide shows how to pull them as JSON with curl, JavaScript and Python.
/api/v1/central-bank/eccb/history?source=EUR&target=XCD).What the ECCB publishes
- One rate table for eight economies — Anguilla, Antigua and Barbuda, Dominica, Grenada, Montserrat, Saint Kitts and Nevis, Saint Lucia, and Saint Vincent and the Grenadines all use the Eastern Caribbean dollar the ECCB issues.
- A US dollar peg since 1976 — EC$2.70 per US dollar, which is what the USD line reads every day.
- About 20 currencies in EC dollars per unit — on the table dated 27 November 2026: 2.95961 per euro, 3.54375 per pound, 1.89587 per Canadian dollar, and the regional units such as the Barbados dollar (1.35) and Trinidad and Tobago dollar (0.40229).
- History since June 2023, from the bank's online archive.
With the dollar fixed, the useful lines are the crosses: what a euro, pound or Canadian dollar is worth in EC dollars on a given business day, by the central bank's own table. A business invoicing across the eight member territories can use the same figure everywhere.
Source page: Exchange rates on the Eastern Caribbean Central Bank website.
Why official rates, not market rates
A live mid-market feed answers "what is USD/XCD trading at right now?" — the right tool for checkouts and dashboards. Bookkeeping, tax and customs paperwork usually ask a different question: "which rate applied on this date?" For the Eastern Caribbean Currency Union that answer often comes from the Eastern Caribbean Central Bank's own table, and it does not change after publication. Check which rate your filing rule names.
Get the latest rates (REST)
curl "https://allratestoday.com/api/v1/central-bank/eccb/latest" \
-H "Authorization: Bearer YOUR_API_KEY" The response is the most recent table — every rate with its base, quote, rate type and value — and the date it belongs to. The latest table is available on every plan, including the free tier (no credit card). Each value is quote currency per one unit of base, exactly as the ECCB quotes it.
For one pair, add source and target:
curl "https://allratestoday.com/api/v1/central-bank/eccb/latest?source=USD&target=XCD" \
-H "Authorization: Bearer YOUR_API_KEY" JavaScript
const res = await fetch(
'https://allratestoday.com/api/v1/central-bank/eccb/latest?source=USD&target=XCD',
{ headers: { Authorization: 'Bearer ' + process.env.ALLRATES_API_KEY } }
);
const pair = await res.json();
console.log(pair.rate, pair.rate_type, pair.rate_date, pair.derived); Plain fetch, so it runs anywhere — Node 18+, Bun, Deno, edge runtimes. Keep the API key on the server side.
Python
import os
import requests
r = requests.get(
"https://allratestoday.com/api/v1/central-bank/eccb/latest",
headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
timeout=10,
)
r.raise_for_status()
table = r.json()
print(table["rate_date"])
for row in table["rates"]:
print(row["base"], row["quote"], row["type"], row["value"]) Historical rates for an invoice date
# The table in force on a past date (weekends and holidays resolve to the last published date)
curl "https://allratestoday.com/api/v1/central-bank/eccb/2025-06-30" \
-H "Authorization: Bearer YOUR_API_KEY"
# A series for one pair
curl "https://allratestoday.com/api/v1/central-bank/eccb/history?source=USD&target=XCD&from=2026-01-01" \
-H "Authorization: Bearer YOUR_API_KEY" r = requests.get(
"https://allratestoday.com/api/v1/central-bank/eccb/history",
params={"source": "USD", "target": "XCD", "from": "2026-01-01"},
headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
timeout=10,
)
for point in r.json()["rates"]:
print(point["date"], point["rate"]) Historical dates and time series need a paid plan; the latest table stays free.
Published vs derived pairs
If the ECCB does not print a pair directly, the API resolves it from the bank's own figures — an inverse, or a cross rate via the home currency — and flags it derived: true with the method used. Source figures and computed values are never silently mixed.
The EC dollar table since 2023
The archive starts at the end of June 2023. The euro line read 2.9399 EC dollars on 3 July 2023, fell to 2.81192 at the end of 2024, rose to 3.16629 by the end of 2025 and stood at 2.95961 on 27 November 2026, while the US dollar line held at 2.70 throughout. For a past invoice date, one call returns the table in force that day; weekends and holidays resolve to the last published table and are flagged.
FAQ
Does the Eastern Caribbean Central Bank have an exchange rate API?
The ECCB publishes its official rates on its own website, not as a JSON API. AllRatesToday collects that table and serves it as JSON under the source code eccb. The latest table is available on every plan, including the free tier; historical dates need a paid plan.
How often do Eastern Caribbean Central Bank rates update?
Once per business day, as one table of about 20 currencies in EC dollars per unit. Every API response carries the table's own date; weekends and holidays resolve to the last published table.
Can I get the ECCB rate for a past date, like an invoice date?
Yes, for any date from June 2023 onward. The /api/v1/central-bank/eccb/2025-06-30 form returns the table in force on that date; non-publication days resolve to the most recent published date. Historical dates need a paid plan.
Which countries use the ECCB rate?
The eight members of the Eastern Caribbean Currency Union: Anguilla, Antigua and Barbuda, Dominica, Grenada, Montserrat, Saint Kitts and Nevis, Saint Lucia, and Saint Vincent and the Grenadines. All use the Eastern Caribbean dollar (XCD), pegged at EC$2.70 per US dollar since 1976.
Official Eastern Caribbean Central Bank rates, as JSON
The latest table is free — no credit card.
Get your free API keyRelated Articles
- Eastern Caribbean Central Bank rates API — today's table
- All covered central banks
- Central Bank of Barbados exchange rate API guide
- Central Bank of Trinidad and Tobago exchange rate API guide
- Bank of Jamaica exchange rate API guide
- How official rates are collected and stored
- Central bank API documentation
- Best exchange rate APIs in 2026 — how the official-rate and market-rate providers compare