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 exchange rate data. The API is accessed via HTTP, the protocol used by web browsers (and not FTP, which is used to provide access to files). Using the API, you may programatically request rates, which are delivered to you via HTTP, 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).

This data is available in three serialization 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.

Static IP Addresses

If your work environment requires the API to be on a domain name that has a static IP address, you may also use:

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