The OANDA integration is in BETA and you may experience issues that we have not discovered yet. If you have any issues or questions, please email us at [email protected].
Forex trading on margin is high risk and not suitable for everyone, because leverage magnifies losses as well as gains and you can lose money quickly.
Contact Information
Email: [email protected]
Supported Asset Classes
- Forex
Forex on OANDA, connected with an API token
TradersPost sends forex orders to OANDA. Connect a live account with a token you generate in the OANDA Hub.
OANDA divisions
TradersPost uses OANDA's v20 API, which OANDA offers to every division but two.
-
Supported
Other OANDA divisions
Accounts with these divisions can connect.
-
Not available
OANDA Global Markets
OANDA does not offer the v20 API to this division.
-
Not available
OANDA TMS Brokers S.A.
OANDA does not offer the v20 API to this division.
What OANDA supports
Order types and features by asset class, as TradersPost sends them to OANDA.
| Capability | Forex Long and short |
|---|---|
| Order types | |
| Market orders | Yes |
| Limit orders | Yes |
| Stop orders | Yes |
| Stop-limit orders | No |
| Trailing stops | Yes |
| Time in force | |
| Day | Yes |
| Good till canceled | Yes |
| Immediate or cancel | Yes |
| Fill or kill | Yes |
| At the open | No |
| At the close | No |
| Attached exits | |
| Bracket orders | Yes |
| OCO orders | No |
| OTO orders | Yes |
| Trailing stop attached | Yes |
| Direction and size | |
| Short selling | Yes |
OANDA: 2 things that work differently
-
Setup OANDA connects with an API key, not a login
Create the key in OANDA, copy it, and paste it into TradersPost. The steps are above.
-
Account No paper trading
OANDA has no paper mode on TradersPost. Rehearse a strategy on the TradersPost paper broker first, or start with small live sizes.
Connect OANDA
OANDA live accounts connect to TradersPost with an API token.
- Generate a token in OANDA:
- Log in to the live account you want to connect in the OANDA Hub.
- Click Tools, then API, and click Generate.
- Copy the token.
- Connect it to TradersPost:
- Go to Brokers and click Connect Broker.
- Choose OANDA.
- Choose Live Account.
- Tick the box confirming you are authorized to trade the account.
- Paste the token into the API Key field and click Connect OANDA.
- Enable your accounts: on the connection page, enable each account you want TradersPost to trade.
The token covers the sub-accounts you have when you generate it. If you add a sub-account in OANDA later, generate a new token and set it on the connection in TradersPost.
The TradersPost paper broker does not trade forex. To check a forex alert without placing an order, send it with "test": true.
Accounts That Can Connect
Accounts with OANDA's US, Canada, UK, Singapore, and Australia divisions can connect.
TradersPost uses OANDA's v20 API, which OANDA offers to every division except OANDA TMS Brokers and OANDA Global Markets, so accounts with those divisions cannot connect. Your division depends on your country of residence; EU residents hold accounts with OANDA TMS Brokers. To check yours, see OANDA's help center.
Sub-accounts with hedging turned on, MT4 sub-accounts, and OANDA One or MT5 sub-accounts are not listed, so they cannot be enabled. TradersPost keeps one position per pair, which a hedging account does not, and OANDA does not let TradersPost label its orders on an MT4 account. US OANDA accounts are netting-only, so the hedging rule never hides one.
TradersPost trades OANDA's currency pairs only. OANDA's metals, index, commodity, bond, and crypto instruments are not available.
Symbols and Sizing
Use pair symbols with a slash, for example EUR/USD. A forex strategy also accepts the TradingView form EURUSD and OANDA's own EUR_USD.
Orders are sized in OANDA units (units of the base currency), not standard lots, and only in whole units. On an account held in a currency other than USD, amounts such as Amount per position are in the account's currency, and so are its balances and profit and loss. See Forex Trading.
Order Types
OANDA takes market, limit, and stop orders, and TradersPost can attach a take profit, a stop loss, or both to an entry as a bracket or OTO order. A trailing stop works as a stop loss or an exit. OANDA attaches it to an open trade, so it cannot open a position.
Market Orders
OANDA takes a market order only as fill or kill (FOK) or immediate or cancel (IOC). A market order with a DAY or GTC time in force is sent as fill or kill: when OANDA cannot fill all of it at once, for example in thin liquidity, it is cancelled rather than partly filled. Send it with IOC to take a partial fill instead.
Trading Hours
OANDA trades most currency pairs from Sunday 5:05 PM to Friday 4:59 PM New York time, with a daily break from 4:59 PM to 5:05 PM. OANDA does not open or close positions during the break, so avoid sending signals from 4:59 PM to 5:05 PM.
TRY pairs trade a shorter session, Monday to Friday from 8:00 AM to 5:00 PM Central European time, and NZD pairs have a second short break each day. The full schedule, which shifts with daylight saving time and some holidays, is on OANDA's trading hours page.
OANDA automation questions
- How do I connect my OANDA account?
- Log in to your live account in the OANDA Hub, click Tools, then API, and generate a token. In TradersPost, connect OANDA, choose Live Account, and paste that token.