- The v20 REST API only has access to the v20 accounts. To access Legacy accounts please use the v1 REST API.
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 Japan.
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. 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
What can I do with the OANDA REST API?
Get real-time currency rates on over 90 currency pairs. Monitor the forex market for changes in real-time, 24 hours a day. You will have access to historical currency rates, dating back over 10 years.
Place trades and orders with our trading API. You can fetch account activities, balance, trades and orders.