OANDA Accounts API

The Accounts API from OANDA — 29 operation(s) for accounts.

Business capability
Trading Position Management BC-1370.20

Operations 31

GET /accounts/{accountID}/positions List Positions #
GET /accounts/{accountID}/openPositions Open Positions #
GET /accounts/{accountID}/positions/{instrument} Instrument Position #
PUT /accounts/{accountID}/positions/{instrument}/close Close Position #
GET /accounts/{accountID}/trades List Trades #
GET /accounts/{accountID}/openTrades List Open Trades #
GET /accounts/{accountID}/trades/{tradeSpecifier} Trade Details #
PUT /accounts/{accountID}/trades/{tradeSpecifier}/close Close Trade #
PUT /accounts/{accountID}/trades/{tradeSpecifier}/clientExtensions Set Trade Client Extensions #
PUT /accounts/{accountID}/trades/{tradeSpecifier}/orders Set Dependent Orders #
GET /accounts List Accounts #
GET /accounts/{accountID} Account Details #
GET /accounts/{accountID}/summary Account Summary #
GET /accounts/{accountID}/instruments Account Instruments #
PATCH /accounts/{accountID}/configuration Configure Account #
GET /accounts/{accountID}/changes Poll Account Updates #
GET /accounts/{accountID}/transactions List Transactions #
GET /accounts/{accountID}/transactions/{transactionID} Transaction Details #
GET /accounts/{accountID}/transactions/idrange Transaction ID Range #
GET /accounts/{accountID}/transactions/sinceid Transactions Since ID #
GET /accounts/{accountID}/transactions/stream Transaction Stream #
GET /accounts/{accountID}/pricing Current Account Prices #
GET /accounts/{accountID}/pricing/stream Price Stream #
GET /accounts/{accountID}/instruments/{instrument}/candles Get Candlesticks #
POST /accounts/{accountID}/orders Create Order #
GET /accounts/{accountID}/orders List Orders #
GET /accounts/{accountID}/pendingOrders Pending Orders #
GET /accounts/{accountID}/orders/{orderSpecifier} Get Order #
PUT /accounts/{accountID}/orders/{orderSpecifier} Replace Order #
PUT /accounts/{accountID}/orders/{orderSpecifier}/cancel Cancel Order #
PUT /accounts/{accountID}/orders/{orderSpecifier}/clientExtensions Set Order Extensions #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/oanda-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

oanda-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OANDA v20 REST Accounts API
  description: The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more.
  contact:
    name: OANDA API Support
    url: http://developer.oanda.com/rest-live-v20/introduction/
    email: api@oanda.com
  license:
    name: MIT
    url: https://github.com/oanda/v20-openapi/blob/master/LICENSE.txt
  version: 3.0.25
servers:
- url: /v3
tags:


# --- truncated at 32 KB (349 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/oanda/refs/heads/main/openapi/oanda-accounts-api-openapi.yml