---
title: "Get both account value and PnL history for a clan in one request"
method: GET
path: "/v1/portfolio/history/clan/combined"
tags: ["portfolio"]
---

# Get both account value and PnL history for a clan in one request

`GET /v1/portfolio/history/clan/combined`

## Request

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

## Query parameters

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

## Response `200`

Successful response

- object
  - `accountValueHistory` object[], required
    - `time` number, required
    - `value` number, required
  - `pnlHistory` object[], required
    - `time` number, required
    - `value` 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)
