← All microservices
Currency converter
Data
Convert between about 30 currencies using the European Central Bank's daily reference rates.
What it does
- About 30 currencies
- European Central Bank reference rates
- Any day's rates back to 1999
- Several currencies in one call
Good for
- Prices for overseas visitors
- Invoices at the right day's rate
- Reports
Rates update once each working day, around 16:00 Central European Time. They are reference rates for information, not the rate a bank or card will give.
Example
GETPOST https://bloodweb.net/api/v1/currency-convert
curl -H "Authorization: Bearer YOUR_KEY" "https://bloodweb.net/api/v1/currency-convert?amount=100&from=AUD&to=USD,INR"
Options
| Name | Description |
|---|---|
amount
|
The amount to convert. Default: 1 |
from
required |
Three-letter currency code, such as AUD. |
to
|
One or more codes, comma separated. Leave out for every currency. |
date
|
A past date as YYYY-MM-DD, for that day's rates (back to 4 January 1999). Weekends and holidays use the last working day before. Leave out for the latest. |
Returns
JSON: amount, from, date (the publication date of the rates used), rates and results per currency, source, and stale: true when the source could not be reached and older rates were used.
Limits
Reference rates are for information. They are not the rate a bank or card will give.