---
title: "Portfolio Positions"
method: GET
path: "/portfolio/{accountId}/positions/{pageId}"
tags: ["Portfolio"]
---

# Portfolio Positions

`GET /portfolio/{accountId}/positions/{pageId}`

## Request

- Base URL: `http://localhost:5000/v1/api`
- URL: `http://localhost:5000/v1/api/portfolio/{accountId}/positions/{pageId}`
- Auth: none declared

Returns a list of positions for the given account. The endpoint supports paging, page's default size is 30 positions. /portfolio/accounts or /portfolio/subaccounts must be called prior to this endpoint.

## Path parameters

- `accountId` string, required
- `pageId` string, required

## Query parameters

- `model` string
- `sort` string
- `direction` string
- `period` string

## Response `200`

returns a list of positions in the portfolio

- object[]
  - `acctId` string
  - `conid` integer
  - `contractDesc` string
  - `assetClass` string
  - `position` number
  - `mktPrice` number
  - `mktValue` number
  - `currency` string
  - `avgCost` number
  - `avgPrice` number
  - `realizedPnl` number
  - `unrealizedPnl` number
  - `exchs` string
  - `expiry` string
  - `putOrCall` string
  - `multiplier` number
  - `strike` number
  - `exerciseStyle` string
  - `undConid` integer
  - `conExchMap` string[]
  - `baseMktValue` number
  - `baseMktPrice` number
  - `baseAvgCost` number
  - `baseAvgPrice` number
  - `baseRealizedPnl` number
  - `baseUnrealizedPnl` number
  - `name` string
  - `lastTradingDay` string
  - `group` string
  - `sector` string
  - `sectorGroup` string
  - `ticker` string
  - `undComp` string
  - `undSym` string
  - `fullName` string
  - `pageSize` integer
  - `model` string

---

[API](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api.md) - [All operations](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api/llms.txt) - [OpenAPI document](https://skmtc.dev/interactivebrokers/apis/client-portal-web-api/revisions/32edbfe496d1?raw)
