Getting Started

1

Sign up for our API

2

Get your API key

Log in to https://subscriptions.oanda.com and look up your API key or wait for your registration email.
3

Start making requests

Start accessing the OANDA Exchange Rates API with your API key.

OANDA Exchange Rates API

Introduction

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).


What’s New?

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.