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
- European Central Bank reference rates (via Frankfurter API) · ECB reuse policy (free reuse with source attribution)
Source: European Central Bank euro foreign exchange reference rates, via frankfurter.dev.
Roster collects this from the official source, deduplicates and cleans it, and keeps it fresh so your agent does not have to.
Sample
| ARS | AUD | BGN | BRL | CAD | CHF | CNY | CYP |
|---|---|---|---|---|---|---|---|
| — | 1.91 | — | — | 1.8004 | 1.6168 | — | 0.58231 |
| — | 1.8944 | — | — | 1.7965 | 1.6123 | — | 0.5823 |
| — | 1.882 | — | — | 1.7711 | 1.6116 | — | 0.582 |
| — | 1.8474 | — | — | 1.7602 | 1.6165 | — | 0.58187 |
| — | 1.8406 | — | — | 1.7643 | 1.6138 | — | 0.58187 |
Schema
| amount | number | Input amount. |
| from | string | Source currency. |
| to | string | Target currency. |
| date | date | Rate date used. |
| rate | number | Units of `to` per 1 `from`. |
| converted | number | amount × 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" });