Launch offer20% off your first trading bot, for our first 1,000 clients. Free 30-minute strategy call included.−20% · LAUNCH20 See packs →
TradeBot Check
Broker & exchange APIs

OANDA v20 API

OANDA's REST API for forex and CFD trading, with real-time rates, historical prices back to 2005 and a practice environment.

Our take

A solid, well-known forex API; the official Python bindings are old, so many people call the REST API directly.

Who it is for

Forex traders who want to automate on a broker with a documented REST API and a free demo.

Strengths

  • Real-time rates for all tradeable pairs and historical prices back to 2005.
  • Free demo (practice) account to test before going live.
  • Personal access token generated from the account portal.

Good to know

  • Requires a v20 account; not available through every OANDA entity (the docs exclude OANDA Global Markets and OANDA TMS Brokers).
  • The official v20-python bindings have not been updated since 2021.
  • Leveraged forex and CFDs carry high risk; start on the demo account.

Want a bot built on OANDA v20 API, or something similar?
We set it up, connect it to your accounts and keep it running.

Get a free quote

Real-life uses

Session and news filter

Pauses trading around high-impact news and outside your chosen sessions.

⏸️ Trading paused: US CPI in 15 minutes.
from €99 €79Order this bot

Sources

Every fact on this page comes from these sources, checked on 2026-10-24. If something has changed, the source wins; tell us at contact@tradebotcheck.com.

  1. https://developer.oanda.com/rest-live-v20/introduction/: features, history since 2005, demo account, token process, account restrictions
  2. https://github.com/oanda/v20-python: official Python bindings, last update 2021, MIT license

Alternatives in Broker & exchange APIs