---
title: "GET /v2/user/accounts/{server}/{accountId}/portfolio/positions/{instrument}"
method: GET
path: "/v2/user/accounts/{server}/{accountId}/portfolio/positions/{instrument}"
tags: ["Portfolio (v2)"]
deprecated: true
---

# GET /v2/user/accounts/{server}/{accountId}/portfolio/positions/{instrument}

`GET /v2/user/accounts/{server}/{accountId}/portfolio/positions/{instrument}`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v2/user/accounts/{server}/{accountId}/portfolio/positions/{instrument}`
- Auth: HTTP bearer

> **Deprecated.**

## Path parameters

- `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
- `accountId` string, required
- `instrument` string, required

## Response `200`

response

- object
  - `accountId` string, required
  - `id` string, required
  - `instrument` string, required
  - `commission` number, required
  - `swap` number
  - `long` object, required
    - `quantity` number
    - `avgPrice` number
    - `swap` number
  - `short` object, required
    - `quantity` number
    - `avgPrice` number
    - `swap` number

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
