Oanda Plugin

You can trade with Oanda™ either through the MT4 bridge, or with a direct API connection using the Oanda plugin. The API connection is preferable due to higher speed, lower spreads, and the ability to trade currencies with minimum volume of a single unit. Oanda is a 'dealing desk' broker with a large selection of index and commodity CFDs, free historical price data, a free API, no minimum monthly investment, no minimum lot size, and a simple margin and fee structure. Especially trading with minimum volume opens interesting possibilities, for instance running strategy tests on real Oanda accounts with tiny lot sizes, instead of demo accounts. Oanda is an affiliate broker of Zorro and supported with a free Zorro S subscription (not available in all countries).

For opening an Oanda demo account for API access, visit http://www.oanda.com, and select an fxTrader practice account. If you have the choice between enabled or disabled hedging, select disabled for reducing transaction costs. Demo accounts have limitations in downloading historical price data. For opening a live account, use the affiliate link of the download page for claiming your free Zorro S subscription (details and conditions here). You will need an Access Token for trading through the API. For this, sign in on the Oanda website with your user name, then select Other Action / Manage API Access for getting your token. It's a long hexadecimal string that serves as a password. Make sure to store it for later use. You will need to revoke your token and generate a new one when you create a sub-account. The access token must be put into Zorro's password field for connecting to Oanda.

Zorro login fields:

User Oanda Account ID, or empty for using the default primary account
Password Oanda Access Token

Asset list examples: AssetsFix.csv, AssetsOanda.csv, AssetsOandaEUR.csv

Accounts.csv example entries:

Name Server Account User Pass Assets CCY Real NFA Plugin
Oanda Demo Oanda 0 123-4567-890989-765 1a2b3c4e5d6f AssetsOanda USD 0 0 Oanda
Oanda Real Oanda 0 456-7890-989765-123 1c2d3e4f5x6y AssetsOanda USD 1 0 Oanda

Oanda asset symbols

Currency names can be directly used for Oanda symbols, but most CFD names must be converted to a specific symbol in the asset list. An asset list AssetsOanda.csv with the main CFD symbols is included for this purpose. A list of available assets can be found at https://www.oanda.com/forex-trading/markets/live. Click on the asset to get its symbol name. Note that some assets are not available in all countries, f.i. no CFDs in the US. Maximum allowed leverage varies from country to country.

Extra data

The Oanda plugin supports the following additional data streams:

Supported broker commands

The Oanda plugin supports the brokerCommand function with the following commands:

More commands, f.i. for retrieving order book data, can be implemented on user request.

Known Oanda API issues

The Oanda plugin uses the Oanda REST API. Compared with other broker APIs, the REST API is well structured, easy to implement, supports full trade management and allows unrestricted price history access. Known issues of the Oanda API are:

See also:

Links, order, brokers, broker plugin, MTR4 bridge, IB bridge, FXCM plugin

► latest version online