Skip to main content

Setup

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

Notes

  • Every call needs an access key.
  • 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.

Endpoints

Get live exchange rates

  • Refreshed every 60 minutes on Free and Basic, every 10 minutes on Professional and every 60 seconds on Business.
  • 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

Get daily rates over a date range

  • Limit currencies: an unfiltered year of every currency is very large.

Get rate changes between two dates