Skip to content
Roster

Roster Data · Lookup

Currency converter — historical ECB rate on any date (lookup)

Convert an amount between ~30 currencies at the ECB reference rate for a given date (or the latest). Uses the last business day on or before the date. Good for invoices, expense reports, and accounting in another currency. Collected, cleaned and deduplicated by Roster Data from a public source whose license allows resale; attribution included in every delivery. You only pay when data is delivered.

What you get

A direct answer to your input as JSON matches, with source attribution.

Answer one question · inline JSON

Price
0.01 USDC
Freshness
Updated 25 h ago
Refresh
daily
Rows
7,107 · 4.0 MB

Source & license

Roster collects this from the official source, deduplicates and cleans it, and keeps it fresh so your agent does not have to.

Sample

ARSAUDBGNBRLCADCHFCNYCYP
—1.91——1.80041.6168—0.58231
—1.8944——1.79651.6123—0.5823
—1.882——1.77111.6116—0.582
—1.8474——1.76021.6165—0.58187
—1.8406——1.76431.6138—0.58187

Schema

amountnumberInput amount.
fromstringSource currency.
tostringTarget currency.
datedateRate date used.
ratenumberUnits of `to` per 1 `from`.
convertednumberamount × rate, 4 decimals.

Buy from code

curl -X POST https://roster.network/roster-api/v1/need/buy \
  -H "Authorization: Bearer $ROSTER_API_KEY" -H "content-type: application/json" \
  -d '{"listingId":"cap_d7e15e40fece4a7f","input":{"amount":1250,"from":"USD","to":"EUR","date":"2024-03-15"}}'

// SDK
const { matches } = await roster.need("Currency converter — historical ECB rate on any date (lookup");
const bought = await roster.buy({ listingId: "cap_d7e15e40fece4a7f" });