---
title: "Get sector, country, and holding exposures for the given portfolio and the markdown of respective charts"
method: POST
path: "/portfolio_exposures"
---

# Get sector, country, and holding exposures for the given portfolio and the markdown of respective charts

`POST /portfolio_exposures`

## Request body

- object
  - `portfolio` Portfolio[]
    - Investment[] — Provided portfolio for the user. Use ticker CUR:USD for cash, ticker Reserved.RealEstate for real estate, ticker Reserved.Crypto for cryptocurrencies, ticker Private.MoneyMarket for money market funds
      - `T` string, required — ticker symbol
      - `A` number, required — amount representing current market value

## Response `200`

OK

- GetPortfolioExposuresResponse
  - `exposure_dicts` object
    - `country` object
    - `sector` object
    - `holding` object
  - `country_exposure_chart_markdown` string — Markdown for displaying the country exposure pie chart
  - `sector_exposure_chart_markdown` string — Markdown for displaying the sector exposure pie chart
  - `holding_exposure_chart_markdown` string — Markdown for displaying the holding exposure pie chart

## Other responses

- `400` — Bad Request
- `405` — Method not allowed (e.g. GET request type is not supported, use POST method instead)

---

[API](https://skmtc.net/portfoliopilot/apis/portfoliopilot-plugin.md) · [All operations](https://skmtc.net/portfoliopilot/apis/portfoliopilot-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portfoliopilot/portfoliopilot-plugin/versions/7ed0083c9099/schema)
