---
title: "Portfolio"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/portfolio
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/portfolio.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/08%20Portfolio
modified: 2026-11-23
index: https://www.quantconnect.com/llms.txt
---

# Portfolio

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Writing Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms.md) > Portfolio

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Pages in This Section

- [Key Concepts](https://www.quantconnect.com/docs/v2/writing-algorithms/portfolio/key-concepts.md): The Portfolio object provides information about the whole portfolio state.
- [Holdings](https://www.quantconnect.com/docs/v2/writing-algorithms/portfolio/holdings.md): The Portfolio is a dictionary where the key is a Symbol and the value is a SecurityHolding.
- [Cashbook](https://www.quantconnect.com/docs/v2/writing-algorithms/portfolio/cashbook.md): The CashBook is a dictionary where the keys are currency tickers and the values are Cash objects. The Cash objects track the portfolio currencies.
