Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- The default source currency is USD; switching it needs the Basic plan or higher.
- Errors come back as JSON with success false and an error object (code, type, info); check success, not only the HTTP status.
- Plan gates: convert Basic+, timeframe Enterprise+, change Enterprise+, spread Enterprise+.
Endpoints
Get live exchange rates
- Refreshed daily on Free, hourly on Basic, every 10 minutes on Enterprise and every 60 seconds on Enterprise+.
- Quotes are keyed by the joined pair, e.g. USDEUR.
Get exchange rates for a past date
- A date before a currency was added fails the whole call with currency_not_available_on_date.
Convert an amount between currencies
- Basic plan and higher.
Get daily rates over a date range
- Enterprise plan and higher.
- Limit currencies: an unfiltered year of every currency is very large.
Get rate changes between two dates
- Enterprise+ plan and higher.