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

# Historical Data

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

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

## Pages in This Section

- [Getting Started](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/getting-started.md): There are two ways to request historical data in your algorithms: direct historical data requests and indirect algorithm warm up.
- [History Requests](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/history-requests.md): You can use a direct historical data request at any time throughout your algorithm. It returns all of the data you request as a single object.
- [History Responses](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/history-responses.md): Depending on how you request the data, history requests return a specific data type or the result may have missing data points.
- [Asset Classes](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/asset-classes/us-equities.md)
- [Alternative Data](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/alternative-data.md): Alternative datasets provide signals to inform trading decisions. This page explains how to get historical data for alternative datasets.
- [Custom Data](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/custom-data.md): You can import external datasets into your algorithm to use alongside other datasets from the Dataset Market.
- [Universe Data](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/universe-data.md): To get the history of a universe, call the history method with the universe object.
- [Warm Up Periods](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/warm-up-periods.md): LEAN supports an automated fast-forward system called "Warm Up". It simulates winding back the clock from the time you deploy the algorithm.
- [Rolling Window](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/rolling-window.md): A RollingWindow is an array of a fixed-size that holds trailing data. It's more efficient to store data than to make many historical data requests.
- [Common Errors](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/common-errors.md): Errors can occur when you request historical data. This page explains some of the most common ones you may encounter.
- [Live Trading](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/live-trading.md): When you make history requests in live trading, be aware of the associated data delays and the data provider's functionality.
