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.
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.
Real-life uses
Session and news filter
Pauses trading around high-impact news and outside your chosen sessions.
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.
- https://developer.oanda.com/rest-live-v20/introduction/: features, history since 2005, demo account, token process, account restrictions
- https://github.com/oanda/v20-python: official Python bindings, last update 2021, MIT license
Alternatives in Broker & exchange APIs
Kraken API
Kraken's trading APIs over REST, WebSocket and FIX, plus a command-line tool with paper trading against live market data.
Tradier
US broker built around an API, with commission-based or subscription plans and API access included on every plan.
Binance Python connectors
Binance's official, auto-generated Python SDKs for its APIs, split into separate packages for spot, USDⓈ-M and COIN-M futures, options, margin and more.
CCXT
Library that unifies the APIs of 100+ crypto exchanges behind a single interface, available in seven languages.