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

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

`GET /v4/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/v4/user/accounts/{server}/{accountId}/portfolio/positions/{instrument}`
- Auth: HTTP bearer

## 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
  - `data` object, required
    - `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)
