---
title: "Requesting Data"
canonical: https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/index-options/requesting-data
markdown: https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/index-options/requesting-data.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/03%20Writing%20Algorithms/03%20Securities/99%20Asset%20Classes/09%20Index%20Options/01%20Requesting%20Data
modified: 2026-10-31
index: https://www.quantconnect.com/llms.txt
---

# Requesting Data

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Writing Algorithms](https://www.quantconnect.com/docs/v2/writing-algorithms.md) > Securities > [Asset Classes](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes.md) > [Index Options](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/index-options.md) > Requesting Data

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

Request Index Options data in your algorithm to receive a feed of contract prices in the `on_data` method. For more information about the specific dataset we use for backtests, see the [US Index Options dataset listing](https://www.quantconnect.com/datasets/algoseek-us-index-options). To trade Index Options live, you can use one of the [brokerage data providers](https://www.quantconnect.com/docs/v2/cloud-platform/datasets.md). Index Options are exclusively European-style Options.

To request Index Options data, call one of the following methods:

- `self.add_index_option` to add a basket of contracts for a single underlying Index
- `self.add_index_option_contract` to add individual contracts for an underlying Index

### Request and Filter Contracts for Option Strategies

`self.add_index_option`

### Request and Filter All Contracts

`self.add_index_option`

### Select Individual Contracts

`self.add_index_option_contract`

### See Also

- [Introduction to Options](https://www.quantconnect.com/learning/articles/introduction-to-options)
- [Applied Options](https://www.quantconnect.com/learning/articles/applied-options)

## Pages in This Section

- [Universes](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/index-options/requesting-data/universes.md): Request Index Options data in your algorithm to receive a feed of contract prices in the OnData method.
- [Individual Contracts](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/index-options/requesting-data/individual-contracts.md): Request Index Options data in your algorithm to receive a feed of contract prices in the OnData method.
