OANDA

How to Connect OANDA to TradersPost

Step-by-step guide to connecting your OANDA account to TradersPost: generate a token, link your sub-accounts, and test a forex signal safely.

Tom Hartman

Marketing

6 Min Read Reviewed by Mike Christensen Fact-checked by Mike Christensen
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

Bottom Line

  • Confirm that your OANDA division can use the v20 API.
  • Generate the token under your live account.
  • Paste the token into a new connection and enable each required sub-account.
  • Validate the alert with "test": true.
  • Regenerate the token when a newer eligible sub-account is missing.

To connect OANDA to TradersPost, first confirm that your OANDA division has v20 API access, generate a personal access token for your live account, and paste that token into a new OANDA broker connection.

After connecting, enable the required sub-accounts and validate your forex alert with a test signal.

Before You Start

Check Your OANDA Account Type

Your ability to connect depends on the OANDA division that holds your account. OANDA assigns divisions according to country of residence, with separate divisions serving residents of the US, Canada, the UK, Singapore, and Australia.1

The v20 API is available to OANDA divisions except OANDA Global Markets and OANDA TMS Brokers S.A.2 Check your division before attempting to generate a token, particularly if your account was opened through OANDA TMS.

Understand the Risk

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.

Confirm Plan Room for Forex

Check that your current plan has room for one more asset class before adding a forex connection. Review your existing broker connections and asset classes so the new connection does not exceed your plan limits.

  • Confirm your OANDA division has v20 API access.
  • Verify that your plan has room for forex.
  • Identify the sub-accounts you intend to automate.

Generate an OANDA API Token

Log Into the OANDA Hub

Sign in to the OANDA Hub using your live account. At the top of the Hub, click Tools, then API to open the access token page.3

Create and Copy the Token

Click Generate. A personal access token containing letters and numbers will appear beneath the API key heading. Copy the entire line of text.3

Treat the token like a password. OANDA does not retain it, so a lost token must be revoked and replaced with a newly generated token.4 Store it in a secure credential manager rather than a strategy script, alert message, or shared document.

Connect OANDA in Your Dashboard

Select OANDA

In your dashboard, go to Brokers, and click Connect Broker. Select OANDA, then choose Live Account.

Authorize and Paste Your Token

The OANDA connection uses a manually pasted personal access token rather than an OAuth sign-in. Confirm that you are authorized to trade the account, paste the complete token into the API Key field, and click Connect OANDA.

Enable Each Sub-Account

A personal access token grants API access to the sub-accounts associated with the OANDA account.4 Once the connection loads, review the available sub-accounts and enable each one individually before allowing it to receive orders.

Do not assume that connecting the parent account automatically activates every sub-account for trading. Enable only the accounts that should receive signals.

What You See After Connecting

Balances and Buying Power

Each enabled sub-account displays its cash balance, buying power, and open profit and loss. OANDA account responses include fields for balance, available margin, account currency, and unrealized profit and loss.5

Review these values before attaching the account to a strategy. This helps catch an incorrect sub-account selection before an alert produces an order.

Why Day P&L Is Missing

OANDA exposes profit and loss over the life of the account rather than a calendar-day figure. The dashboard therefore does not show day profit and loss for OANDA sub-accounts. Open profit and loss remains available for monitoring current positions.

Positions and Currency Display

The connection keeps one position per currency pair, long or short, so a sell order reduces or closes an open buy instead of opening a separate short. Balances, position values, and profit and loss are shown in the account's currency.

Send a Test Signal

Build a Forex Alert

Create or select a forex strategy, then set the ticker to the required currency pair and the action to buy or sell. Send quantity as whole units of the base currency. Decimal quantities are rounded down, so 1000.5 becomes 1000.

Validate With a Test Signal

Set test to true. TradersPost will process and log the signal without sending an order to the broker. This confirms that the ticker, action, and quantity parse correctly.

{
  "ticker": "EUR/USD",
  "action": "buy",
  "quantity": 1000,
  "test": true
}

Check the signal log for validation errors. Correct an unrecognized ticker, unsupported value, or malformed JSON before removing the test flag.

Troubleshooting the Connection

Missing Sub-Account

A sub-account may be absent if hedging is enabled, if it was opened through MT4, OANDA One, or MT5, or if it was created after the current token was generated.

OANDA instructs users to revoke and regenerate a token when additional sub-accounts have been added.3 Generate the replacement in the OANDA Hub, then set the new token on the existing connection. Review the account list again before creating a separate connection.

Token Will Not Connect

Check the account division. OANDA does not provide v20 API access for OANDA TMS Brokers S.A. or OANDA Global Markets accounts.2 Regenerating a token will not resolve an unavailable API for those divisions.

Rejected or Cancelled Orders

Invalid ticker format: An invalid-forex-ticker-format error means the ticker does not match the expected currency pair format. Write the pair as EUR/USD; on a forex strategy, EURUSD and EUR_USD also work.

Unexpected cancellation: TradersPost sends a market order with day or gtc time in force to OANDA as fill or kill, so the order is cancelled when the whole quantity cannot fill at once. Send "timeInForce": "ioc" when a partial fill should be accepted.

Daily break: most pairs trade 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 when OANDA does not open or close positions.6 A market order sent during the break is cancelled.

When troubleshooting, change one variable at a time. Confirm the token first, then the sub-account, ticker, quantity, and time in force.

Frequently Asked Questions

Can European OANDA Accounts Connect?

UK accounts can. OANDA does not offer v20 API access to OANDA TMS Brokers S.A., the division for EU residents, or to OANDA Global Markets, so those accounts cannot connect. Check the division that holds your account before generating a token.

Why Is a Sub-Account Missing?

Possible causes include hedging settings, an account opened through MT4, OANDA One, or MT5, or a sub-account created after the token was generated. Revoke the old token, generate a new one, and set it on the existing connection.

What Quantity Format Is Required?

Use whole units of the base currency. Decimal quantities are rounded down to the nearest whole unit, so a quantity of 1000.5 becomes 1000.

Why Is Day P&L Missing?

OANDA reports profit and loss over the life of the account rather than by calendar day. TradersPost displays open profit and loss for each sub-account instead of an OANDA day profit and loss figure.

References

1 What Division Will I Contract With?
2 OANDA REST v20 API Introduction
3 REST v20 API Troubleshooting Guide
4 OANDA REST v20 Authentication
5 OANDA Account Endpoints
6 OANDA Hours of Operation

All In OANDA
  • Video
    OANDA Nov 16, 2026

    OANDA Beta Brings Forex to TradersPost

    OANDA launches in beta as the first forex broker on TradersPost. Who can connect, how to set up the integration, and what to check before your first order.

Ready to put what you read into practice?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.