---
title: "Settlement"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/settlement
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/settlement.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/24%20Reality%20Modeling/08%20Settlement
modified: 2026-11-22
index: https://www.quantconnect.com/llms.txt
---

# Settlement

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

> 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/reality-modeling/settlement/key-concepts.md): After you trade an asset, the brokerage needs to settle the funds in your account. A settlement model simulates these settlement rules.
- [Supported Models](https://www.quantconnect.com/docs/v2/writing-algorithms/reality-modeling/settlement/supported-models.md): This page describes all of the pre-built settlement models in LEAN. If none of these models perform how you want, create a custom settlement model.
