The OANDA v20 REST API provides programmatic access to OANDA’s next generation v20 trading engine. To use this API you must have a v20 trading account, which is available to all divisions except OANDA Global Markets.
Get REST API access - Log in to the Account Management Portal (AMP) on fxTrade and select “Manage API Access” under “My Services”. Generate your personal access token immediately after you agree to the API license. This token is valid for both the legacy OANDA API and the OANDA v20 API.
Ready for automated trading - Start making requests to OANDA’s fxTrade platform with your personal access token. Click here to learn about modifying your configurations to generate curl examples that can be copied without further modification.
What can I do with the OANDA REST-v20 API?
- Get real-time rates for all tradeable pairs 24 hours a day
- Access historical pricing information dating back to 2005
- Place, modify, close orders
- Manage your account settings
- Access your account/trading history
How do I start?
- Read the Development Guide
- Try some Sample Code
- Email us at email@example.com with any questions or go to Troubleshooting & Errors