What Is OANDA? A Forex Broker Guide
OANDA is a forex broker operating through regulated regional divisions. Learn its account types, platforms, the v20 API, and how it fits automated trading.
Marketing
Bottom Line
- OANDA operates through regional divisions rather than one universal client entity.
- The v20 account is the authoritative record for execution and margin.
- Netting is the default, while US accounts also follow FIFO requirements.
- Automation compatibility depends on the division, sub-account type, asset class, and API access.
- Whole-unit sizing and accepted ticker formats should be validated before live deployment.
An OANDA broker account gives you currency trading through OANDA Web, OANDA Mobile, TradingView, and MetaTrader 4, plus a v20 REST API that automation tools use to place orders in eligible accounts.
The account experience depends on the regional OANDA division that serves your country of residence. That division determines the applicable regulator, account eligibility, and whether the v20 API is available. Account configuration also matters because netting, hedging, and MT4 sub-accounts handle positions differently.
This guide covers OANDA's divisions, account types, platforms, API access, trading hours, pricing mechanics, and the limits that matter for automation. 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.
What Is the OANDA Broker?
OANDA as a Forex Broker
OANDA's US platforms page lists OANDA Web, OANDA Mobile, TradingView, and MT4. Features differ between them: its comparison table shows price alerts on OANDA Mobile and TradingView but not on MT4, and an advanced order tool pack only on MT4.1
OANDA is not one legal entity serving every customer under identical terms. It operates through regional divisions, and the division holding your account affects the contract, regulatory framework, available products, and technical access.
OANDA's Regional Divisions
OANDA assigns a division according to the applicant's country of residence. You cannot pick a division independently of where you live. Applications are assessed individually, so residence in an eligible country does not guarantee acceptance.2
Named divisions include OANDA Corporation in the US, OANDA (Canada) Corporation ULC, OANDA Europe Limited, OANDA Asia Pacific Pte Ltd, OANDA Australia Pty Ltd, OANDA TMS Brokers S.A., and OANDA Global Markets.2
Regulation by Division
OANDA Corporation is registered with the Commodity Futures Trading Commission as a Futures Commission Merchant and Retail Foreign Exchange Dealer, and it is an NFA member. OANDA Canada is regulated by CIRO, while OANDA Europe Limited is authorised and regulated by the Financial Conduct Authority.2
OANDA Asia Pacific holds a Capital Markets Services Licence issued by the Monetary Authority of Singapore, OANDA Australia is regulated by the Australian Securities and Investments Commission, OANDA TMS is supervised by the Polish Financial Supervision Authority, and OANDA Global Markets is regulated by the Financial Services Commission in the British Virgin Islands.2
Live, Demo, and Sub-Accounts
Live Versus Demo Accounts
OANDA offers live accounts for funded trading and free demo accounts for practice, and its API introduction points new users to a demo account as a first step.3
How API Tokens Work
A personal access token authenticates requests to OANDA's API. You generate it after agreeing to OANDA's API licence, and OANDA says the same token works with both its legacy API and the v20 API.3
Live and demo accounts are separate environments and require separate tokens. Treat each token as a credential, store it securely, and replace it if it has been exposed.
Sub-Accounts Explained
OANDA Canada's sub-account comparison describes two types, v20 and v20 MT4, which differ in interfaces and some order handling. Other divisions publish their own comparisons, so check yours. On a v20 MT4 sub-account, MT4 may display a linked account, but the underlying v20 account remains the definitive system for order monitoring, execution, open positions, margin use, and margin close-out.4
Netting Versus Hedging Accounts
What a Netting Account Does
On OANDA Canada's comparison, netting is the default for both v20 and v20 MT4 sub-accounts.4 Under netting, activity in the same instrument contributes to one combined position. A sell can reduce, close, or reverse an existing long position rather than creating a separately tracked offsetting position.
What a Hedging Account Does
The same page says you can create a separate sub-account with hedging enabled, which disables netting, so long and short trades in the same instrument stay open at once. There, OANDA calculates margin on offsetting positions using the larger leg, or the long leg when the quantities offset exactly.4
The FIFO Rule for US Accounts
First In First Out (FIFO) is a requirement that OANDA applies to comply with National Futures Association regulation. When multiple open trades have the same pair and size, the oldest must close first. OANDA's FIFO changes apply only to accounts contracted with OANDA Corporation, including live and demo accounts.5
OANDA requires every open trade with a take profit, stop loss, or trailing stop to have a unique size, and a limit, stop, or entry order that would break FIFO when it triggers is cancelled.5 Automated strategies using repeated fixed quantities should account for this behavior.
OANDA Platforms and V20 API
OANDA's Native Trading Platforms
OANDA Web and OANDA Mobile are the broker's own interfaces, and TradingView and MT4 connect to the same account for order placement. One detail worth knowing: OANDA notes that MT4 shows only the bid price, while its web platform can draw candles from the mid, ask, or bid.1
The V20 REST API
The v20 REST API provides programmatic access to OANDA's v20 trading engine. OANDA lists real-time rates, historical pricing back to 2005, account and trading history, and placing, modifying, and closing orders.3
A v20 trading account is required. OANDA states that this account is available through every division except OANDA Global Markets and OANDA TMS Brokers S.A.3 Access also needs the personal token described above.
MT4 Is a Front End
For linked v20 MT4 accounts, MT4 acts primarily as an interface for chart viewing and order placement. OANDA attempts to mirror the underlying account in MT4, but the v20 record controls execution, marked-to-market positions, margin use, and margin close-out.4 Check the native OANDA interface when an MT4 display appears inconsistent with account state.
Trading Hours and Pricing Basics
Weekly Market Hours
OANDA's US hours page lists most currency pairs from Sunday 17:05 to Friday 16:59 New York time, with a six-minute break from 16:59 to 17:05 each day. TRY pairs keep shorter hours, NZD pairs take a second short break, and hours can shift with daylight saving time and some public holidays.6
Spreads and Financing
The spread is the difference between the buy and sell price at any moment. OANDA explains that a long trade opens at the ask and closes at the bid, a short does the reverse, and many charts show an average price that ignores the spread, so a fill can differ from the chart. It also advises placing take profit and stop loss levels beyond the spread, with extra room for wider spreads around news.1 For current pricing, use OANDA's own pages.
On OANDA Canada's v20 accounts, financing is credited or debited daily, usually at the end of the trading day, which OANDA sets at 5 p.m. ET.4 Financing can affect an open position even when the strategy does not send another signal.
How OANDA Works With TradersPost
Connecting an OANDA Account
Generate an API token in the OANDA Hub by selecting Tools, API, and Generate. The token covers sub-accounts that exist when it is generated, so adding a sub-account later requires a new token and a connection update.
From there, your own TradingView alert or strategy sends JSON to your strategy's webhook, and the order goes to your own connected OANDA account. Detailed setup steps are available in the OANDA connection guide.
Symbols and Order Types
A forex strategy accepts EUR/USD, the TradingView form EURUSD, and OANDA's form EUR_USD. Other symbol shapes are rejected. A strategy can also be limited to a list of pairs.
Supported order types for this connection are market, limit, stop, and trailing stop. A trailing stop can be used only as a stop loss or exit, not as an entry. Take profit and stop loss orders can be attached to an entry as an OTO or bracket order. Stop-limit entries are not available through this connection.
Sizing in OANDA Units
Orders use whole OANDA units of the base currency rather than lots. Decimal results round down. Amount per position, risk per position, and percent of equity calculations use the account's currency.
For example, an Amount per position setting of 1000 in a USD account, with EUR/USD priced at 1.0800, produces 925 EUR units after conversion and rounding. Review the broader forex automation overview before finalizing sizing rules.
Limits to Check Before Connecting
Accounts That Cannot Connect
OANDA TMS Brokers and OANDA Global Markets accounts cannot connect because those divisions do not provide v20 API accounts. EU residents typically apply through OANDA TMS Brokers, so division confirmation should be the first compatibility check.
The connection also cannot enable hedging sub-accounts, MT4 sub-accounts, or OANDA One or MT5 sub-accounts. US accounts are netting-only, so the hedging restriction does not affect them. See where OANDA connections are available for a focused division overview.
Unavailable Asset Classes
Only currency pairs can be traded through this connection. OANDA metals, indices, commodities, bonds, and crypto instruments are outside its supported scope, even if those instruments appear elsewhere in an OANDA interface.
Testing Before Going Live
The connection is in beta, so test the full signal path before committing real funds.
Test entries, exits, reversals, brackets, rounding, and invalid ticker handling. The "test": true field can validate signal processing without sending an order.
Is OANDA Right for Automation?
Confirm Your Division First
Identify the division that holds your account before anything else. Residence decides the division, and the division decides the regulator and whether v20 is available. OANDA's help center lists which entity serves each country.
A Pre-Connection Checklist
- Confirm that the account belongs to a division with v20 API access.
- Use a netting v20 sub-account, not hedging, MT4, OANDA One, or MT5.
- Limit the automated strategy to supported currency pairs.
- Verify symbols and whole-unit sizing.
When to Involve Professionals
Forex tax treatment varies by jurisdiction. Ask a qualified tax professional how gains, losses, financing, and records apply to your circumstances. Direct eligibility, account-contract, and regulatory-protection questions to OANDA or an appropriately licensed advisor.
If the account passes these checks, the TradingView and OANDA automation guide explains the signal path without repeating account setup.
Frequently Asked Questions
Is OANDA a regulated broker?
Yes, but the regulator depends on the division holding the account. OANDA Corporation is registered with the CFTC and is an NFA member, while the Canada, Europe, Australia, and Asia Pacific entities identify CIRO, the FCA, ASIC, and MAS respectively. Country of residence determines the applicable division.
What are netting and hedging?
Netting combines activity in one instrument into a single position and is the default. A separately created hedging sub-account can retain offsetting long and short trades. US OANDA accounts are netting-only.
Can MT4 accounts be automated here?
No. OANDA's US platforms page lists OANDA Web, OANDA Mobile, TradingView, and MT4, but the automation connection described here uses the v20 API only. MT4, OANDA One, and MT5 sub-accounts cannot be enabled on it.
Can TradingView automate OANDA trades?
OANDA lists TradingView as a platform for placing orders by hand. To automate, a TradingView alert can send a JSON payload through TradersPost to your own connected account. For a forex strategy, accepted pair formats include EUR/USD, EURUSD, and EUR_USD.
Which assets can the connection trade?
Only currency pairs are available through this connection. Metals, indices, commodities, bonds, and crypto instruments are excluded. A strategy can be limited to specific pairs by listing them.
References
1 OANDA: Trading Platforms (US)
2 OANDA Help: What Division Will I Contract With?
3 OANDA Developer: v20 REST API Introduction
4 OANDA Canada: Sub-Account Differences
5 OANDA Help: FIFO Requirement
6 OANDA: Hours of Operation