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.

Your IT department may need to add rules for outbound traffic to your corporate firewall. The following IP addresses are for the regular service as well as our backup.

For smoothest operation, you should add both IP addresses:

  • HTTP: 198.105.26.99:80 and 198.105.27.99:80
  • HTTPS: 198.105.26.99:443 and 198.105.27.99:443