The OANDA Exchange Rates API (hereafter, the API) is a RESTful API, which provides access to OANDA’s daily and real-time exchange rate data. The API is accessed via HTTP. Using the API, you may programmatically request rates which you may process and save in a format that works for your organization. For example, you can insert the rates into your own database/caching system or into files, such as a Comma Separated Value file (CSV).
In Version 2 of the API, we now support real-time exchange rates and daily candles aligned at any 15 minute boundaries. Contact us at fxdata@oanda.com to upgrade your account and access these features.
This API returns data in your choice of three formats: JSON, XML and CSV.
The API’s base URL is:
Unless your client is unable to consume the API via SSL, we recommend that you use a secure connection.