Use the OANDA FXTrade API libraries to build secure, automated forex trading into your software systems. You can automate forex trading actions such as the following:
Available for Java, C++, .NET and the FIX protocol.
The OANDA FXTrade system offers a long list of benefits to foreign exchange traders: 24/7 availability, tight spreads, immediate execution with full price transparency, flexible any-size trades, continuous interest and multi-currency accounts.
An API library implementing the FXTrade protocol is dynamically linked to your computer system, allowing it to communicate directly with OANDA's FXTrade servers over secure, authenticated Internet sessions with fully encrypted communication channels.
The APIs do not require the FXTrade user interface to be up and running, although you can use the interface to monitor the real-time system actions taken by the API.

The OANDA FXTrade API Library is available in the following versions:
| Java | Docs | Sample Code | |
|---|---|---|---|
| C++ | Solaris | Docs | Sample Code |
| Linux | Docs | Sample Code | |
| Windows (Win 32) |
Docs | Sample Code | |
| .NET 1.1 and 2.0 | Docs | Sample Code | |
| FIX 4.2 and 4.4 | Find out more |
To use the FXTrade APIs, you must:
OANDA charges an initial licensing fee of USD $600, which entitles the customer to two free months of access to one API library for testing and implementation. After these two months, a monthly fee applies. The monthly fee is USD $600, discounted by USD $50 for every USD $1M in monthly volume of currency traded from the account.
Note that customers with accounts exceeding USD $12M in volume in a month are entitled to free usage of the API for the next month.
The license is available to only one FXTrade account and its associated sub-accounts, as well as one FXGame account to be used for testing. Support is provided for one FXTrade API library only (but you can change this library if you need to).
OANDA will email you the API client library and enable your FXGame test account for API access after we verify your account funds and agreement. We will enable your FXTrade account for API access after you implement and test your API programs.
Please contact an OANDA representative should you need further assistance.