> ## Documentation Index
> Fetch the complete documentation index at: https://polymarket-data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Portfolio Value

> Aggregate the total position value for a wallet across optional markets.

`client.data.core.getValue` aggregates a wallet’s exposure in USDC across all or selected markets.

## Request

```ts theme={null}
const summary = await client.data.core.getValue(params);
```

### Parameters

| Name     | Type               | Required | Notes                                            |
| -------- | ------------------ | -------- | ------------------------------------------------ |
| `user`   | `string` (address) | ✅        | Wallet or proxy address.                         |
| `market` | `string[]`         |          | Optional condition IDs to scope the calculation. |

## Response

```ts theme={null}
type UserValue = {
  user: string;
  value: number;
};
```

The API returns an array, even when querying a single user/market combination.

## Usage example

```ts theme={null}
const [summary] = await client.data.core.getValue({
  user: "0x56687bf447db6ffa42ffe2204a05edaa20f55839",
});

console.log(`Total position value: ${summary.value.toFixed(2)} USDC`);
```

## Failure modes

* Missing `user` → validation error.
* Invalid condition ID → validation error referencing the offending index.
