> For the complete documentation index, see [llms.txt](https://city-protocol.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://city-protocol.gitbook.io/docs/developers/city-protocol-sdk/vault/portfolio-sdk.md).

# Portfolio SDK

Query indexed portfolio and activity data from the subgraph.

{% hint style="info" icon="circle-quarter-stroke" %}
The `CityPortfolioClient` handles subgraph query methods for indexed portfolio and activity data. Use this alongside `CityClient` (which handles live onchain reads) for a complete frontend experience.
{% endhint %}

### Create a portfolio client

```tsx
import { CityPortfolioClient } from "@cityprotocol/core";
const portfolioClient = new CityPortfolioClient();
// By default, uses the City subgraph endpoint.
```
