---
title: "Get combined NW + PnL history aggregated across all user wallets"
method: GET
path: "/v1/portfolio/history/combined"
tags: ["portfolio"]
---

# Get combined NW + PnL history aggregated across all user wallets

`GET /v1/portfolio/history/combined`

## Request

- Base URL: `https://app.legend.trade/api/rest`
- URL: `https://app.legend.trade/api/rest/v1/portfolio/history/combined`
- Auth: HTTP bearer

## Query parameters

- `userId` string, uuid, required
- `days` integer

## Response `200`

Successful response

- CombinedPortfolioHistoryOutput
  - `history` CombinedPortfolioPoint[], required
    - `time` number, required
    - `account_value` number, required
    - `pnl` number, required

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `404`: Not found
- `500`: Internal server error

---

[API](https://skmtc.dev/legend/apis/legend-api.md) - [All operations](https://skmtc.dev/legend/apis/legend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/legend/apis/legend-api/revisions/c3e45061cf81?raw)
