Which API should I use?

  • Use v20 REST API only if you have a v20 account
  • Use v1 REST API if your account id contains only digits (ie. 2534253) as it is a legacy account

Getting Started

  1. Get an OANDA fxTrade account You need an fxTrade or fxTrade Practice account to use the OANDA API. Try a free demo account or open a live account

  2. Get REST API access Log in to the Account Management Portal (AMP) on fxTrade and select “Manage API Access” under “Other Actions”. Generate your personal access token immediately after you agree to the API license

  3. Ready for automated trading Start making requests to OANDA’s fxTrade platform with your personal access token

What can I do with the OANDA REST API?

We developed our API on top of our award winning currency trading platform, fxTrade.

Market Data

  • Get real-time rates for all tradeable pairs 24 hours a day
  • Access historical pricing information dating back to 200


  • Place, modify, close orders
  • Manage your account settings
  • Access your account/trading history

How do I start?

  1. Read the Development Guide
  2. Try some Sample Code
  3. Email us at api@oanda.com with any questions