---
title: "Account Allocations"
method: GET
path: "/portfolio/{accountId}/allocation"
tags: ["tradingPortfolio"]
---

# Account Allocations

`GET /portfolio/{accountId}/allocation`

Get an account's allocations by asset class, sector group, and sector.

## Path parameters

- `accountId` string, required

## Query parameters

- `model` unknown

## Response `200`

response with allocations

- PortfolioAllocations
  - `assetClass` PortfolioAllocationsAssetClass — Object containing values of positions sorted by long/short and asset class.
    - `long` object — Object containing value of long positions in the account aggregated by asset class.
    - `short` object — Object containing value of short positions in the account aggregated by asset class.
  - `group` PortfolioAllocationsGroup — Object containing values of positions sorted by long/short and Sector Group.
    - `long` object — Object containing value of long positions in the account aggregated by Sector Group.
    - `short` object — Object containing value of short positions in the account aggregated by Sector Group.
  - `sector` PortfolioAllocationsSector — Object containing values of positions sorted by long/short and Sector.
    - `long` object — Object containing value of long positions in the account aggregated by Sector.
    - `short` object — Object containing value of short positions in the account aggregated by Sector.

## Other responses

- `400` — Missing, empty, non-numeric, or out-of-range parameter. The `error` field is always prefixed with `Bad Request:`.
- `401` — Missing, invalid, or unparseable Authorization token.
- `500` — internal server error, returned when incoming request cannot be processed. It can sometimes include subset of bad requests. For example, wrong accountId passed and it can only be detected later in handling request. Error contains reason of the problem.
- `503` — service is unavailable. For example if request takes more than 10s due to some internal service unavailability, request aborted and this status returned

---

[API](https://skmtc.net/interactivebrokers/apis/api-reference.md) · [All operations](https://skmtc.net/interactivebrokers/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/interactivebrokers/api-reference/revisions/67f9f562c2c6/schema)
