---
title: "Account Alloction (All Accounts)"
method: POST
path: "/portfolio/allocation"
tags: ["Portfolio"]
---

# Account Alloction (All Accounts)

`POST /portfolio/allocation`

Similar to /portfolio/{accountId}/allocation but returns a consolidated view of of all the accounts returned by /portfolio/accounts. /portfolio/accounts or /portfolio/subaccounts must be called prior to this endpoint.

## Request body

- object
  - `acctIds` string[]

## Response `200`

returns an object of three different allocations

- object[]
  - `assetClass` object — portfolio allocation by asset class
    - `long` object — long positions allocation
      - `STK` number
      - `OPT` number
      - `FUT` number
      - `WAR` number
      - `BOND` number
      - `CASH` number
    - `short` object — short positions allocation
      - `STK` number
      - `OPT` number
      - `FUT` number
      - `WAR` number
      - `BOND` number
      - `CASH` number
  - `sector` object — portfolio allocation by sector
    - `long` object — long positions allocation
      - `Others` number
      - `Utilities` number
      - `Energy` number
      - `Technology` number
      - `Financial` number
      - `Communications` number
    - `short` object — short positions allocation
      - `Industrial` number
      - `Consumer` number
      - `Diversified` number
  - `group` object — portfolio allocation by group
    - `long` object — long positions allocation
      - `Computers` number
      - `Semiconductors` number
      - `Others` number
      - `Chemicals` number
      - `Apparel` number
      - `Communications` number
    - `short` object — short positions allocation
      - `Banks` number
      - `Airlines` number
      - `Internet` number

---

[API](https://skmtc.dev/ibkr/apis/client-portal-web-api.md) · [All operations](https://skmtc.dev/ibkr/apis/client-portal-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ibkr/client-portal-web-api/revisions/32edbfe496d1/schema)
