OANDA · Example Payload

Getposition

ForexFX TradingCFD TradingFinancial ServicesTrading APIs

Getposition is an example object payload from OANDA, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdsummarymethodpathparametersresponses

Example Payload

getPosition.json Raw ↑
{
  "operationId": "getPosition",
  "summary": "Instrument Position",
  "method": "GET",
  "path": "/accounts/{accountID}/positions/{instrument}",
  "parameters": {},
  "responses": {
    "200": {
      "description": "The Position is provided.",
      "schema_ref": ""
    },
    "401": {
      "description": "",
      "schema_ref": ""
    },
    "404": {
      "description": "",
      "schema_ref": ""
    },
    "405": {
      "description": "",
      "schema_ref": ""
    }
  }
}