---
title: "Datasets"
description: "Learn how to obtain and access data to run algorithm in Lean CLI."
canonical: https://www.quantconnect.com/docs/v2/lean-cli/datasets
markdown: https://www.quantconnect.com/docs/v2/lean-cli/datasets.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/05%20Lean%20CLI/05%20Datasets
modified: 2026-11-22
index: https://www.quantconnect.com/llms.txt
---

# Datasets

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Lean CLI](https://www.quantconnect.com/docs/v2/lean-cli.md) > Datasets

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

## Pages in This Section

- [Format and Storage](https://www.quantconnect.com/docs/v2/lean-cli/datasets/format-and-storage.md): LEAN developed an open format based on open protocols (CSV, ZIP). The data format is simply compressed on disk.
- [Generating Data](https://www.quantconnect.com/docs/v2/lean-cli/datasets/generating-data.md): Generate random data to run backtest locally by Lean CLI
- [Custom Data](https://www.quantconnect.com/docs/v2/lean-cli/datasets/custom-data.md): Importing custom data from local files in your algorithm when running the LEAN engine locally
- [QuantConnect](https://www.quantconnect.com/docs/v2/lean-cli/datasets/quantconnect.md): Purchase and download data from QuantConnect Datasets using Lean CLI.
- [Brokerages](https://www.quantconnect.com/docs/v2/lean-cli/datasets/brokerages.md): Learn how to connect and feed data to a live algorithm from your brokerage in Lean CLI.
- [Alpha Vantage](https://www.quantconnect.com/docs/v2/lean-cli/datasets/alpha-vantage.md): Learn how to connect and feed data to a live algorithm from Alpha Vantage in Lean CLI.
- [Databento](https://www.quantconnect.com/docs/v2/lean-cli/datasets/databento.md): Learn how to connect and feed data to a live algorithm from Databento in Lean CLI.
- [FactSet](https://www.quantconnect.com/docs/v2/lean-cli/datasets/factset.md): Learn how use historical data from FactSet for research and backtest in Lean CLI.
- [IQFeed](https://www.quantconnect.com/docs/v2/lean-cli/datasets/iqfeed.md): Learn how to connect and feed data to a live algorithm from IQFeed in Lean CLI.
- [Polygon](https://www.quantconnect.com/docs/v2/lean-cli/datasets/polygon.md): Learn how to connect and feed data to a live algorithm from Polygon in Lean CLI.
- [Quant Bridge](https://www.quantconnect.com/docs/v2/lean-cli/datasets/quant-bridge.md): Learn how to connect and feed data to a live algorithm from Quant Bridge in Lean CLI.
- [Theta Data](https://www.quantconnect.com/docs/v2/lean-cli/datasets/theta-data.md): Learn how to connect and feed data to a live algorithm from Theta Data in Lean CLI.
