Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • The default base currency is EUR.
  • Errors come back as JSON with success false and an error object (code, type, info); check success, not only the HTTP status.
  • spread (bid and ask) needs the Professional plan or higher; a lower plan gets an upgrade message instead.

Endpoints

Get the latest exchange rates

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

Get daily rates over a date range

  • A range starting before a currency was added is served from its first available date; the response’s start_date says which.

Get rate fluctuation between two dates

List supported currencies