---
title: "Corporate Actions"
description: "India Equity subscriptions provide notifications for splits, dividends, symbol changes, and delistings."
canonical: https://www.quantconnect.com/docs/v2/drafts/india-equity/corporate-actions
markdown: https://www.quantconnect.com/docs/v2/drafts/india-equity/corporate-actions.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/08%20Drafts/99%20India%20Equity/03%20Corporate%20Actions
modified: 2026-11-24
index: https://www.quantconnect.com/llms.txt
---

# Corporate Actions

[Documentation](https://www.quantconnect.com/docs/v2.md) > Drafts > [India Equity](https://www.quantconnect.com/docs/v2/drafts/india-equity.md) > Corporate Actions

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

## Introduction

India Equity subscriptions provide notifications for splits, dividends, symbol changes, and delistings.

> We don't have a live data source for India Equity corporate actions, so the following event handlers don't run in live mode.

## Splits

When a company does a stock split, the number of shares each shareholder owns increases and the price of each share decreases. When a company does a reverse stock split, the number of shares each shareholder owns decreases and the price of each share increases. A company may perform a stock split or a reverse stock split to adjust the price of their stock so that more investors trade it and the liquidity increases.

When a stock split or reverse stock split occurs for an Equity in your algorithm, LEAN sends a `Split` object to the `on_data` method. You receive `Split` objects when a split is in the near future and when it occurs. To know if the split occurs in the near future or now, check the `type` property.

If you backtest without the `RAW` [data normalization mode](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/asset-classes/india-equity/requesting-data.md#09-Data-Normalization), the splits are factored into the price and volume. If you backtest with the `RAW` data normalization mode or trade live, when a split occurs, LEAN automatically adjusts your positions based on the `split_factor`. If the post-split quantity isn't a valid [lot size](https://www.quantconnect.com/docs/v2/writing-algorithms/securities/key-concepts.md#06-Symbol-Properties), LEAN credits the remaining value to your [cashbook](https://www.quantconnect.com/docs/v2/writing-algorithms/portfolio/cashbook.md) in your account currency. If you trade live or backtest with the `RAW` data normalization mode, reset your indicators and consolidators when splits occur. To account for the price adjustment that the split causes, warm them up with `SCALED_RAW` data. For examples, see [Reset Indicators](https://www.quantconnect.com/docs/v2/writing-algorithms/indicators/key-concepts.md#11-Reset-Indicators) or [Reset Consolidators](https://www.quantconnect.com/docs/v2/writing-algorithms/consolidating-data/getting-started.md#08-Reset-Consolidators).

To get the `Split` objects, index the `splits` object with the security `symbol`. The `splits` object may not contain data for your `Symbol`. To avoid issues, check if the `splits` object contains data for your security before you index it with the security `Symbol`.

```python
def on_data(self, slice: Slice) -> None:
    split = slice.splits.get(self._symbol)
    if split:
        pass

def on_splits(self, splits: Splits) -> None:
    split = splits.get(self._symbol)
    if split:
        pass
```

You can also iterate through the `splits` dictionary. The keys of the dictionary are the `Symbol` objects and the values are the `Split` objects.

```python
def on_data(self, slice: Slice) -> None:
    for symbol, split in slice.splits.items():
        pass

def on_splits(self, splits: Splits) -> None:
    for symbol, split in splits.items():
        pass
```

To get historical splits, make a [history request](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/history-requests.md) with the `Split` type.

```python
splits_df = self.history(Split, symbol, timedelta(4*365))
splits = self.history[Split](symbol, timedelta(4*365))
```

LEAN stores the data for stock splits in factor files. To view some example factor files, see the [LEAN GitHub repository](https://github.com/QuantConnect/Lean/tree/master/Data/equity/india/factor_files). In backtests, your algorithm receives `Split` objects at midnight. In live trading, your algorithm receives `Split` objects when the factor files are ready.

If you hold an Option contract for an underlying Equity when a split occurs, LEAN closes your Option contract position.

If a split event occurs before your order is filled, the unfilled portion of the order is adjusted automatically, where its quantity is multiplied by the split factor and the limit/stop/trigger price (if any) is divided by the split factor.

`Split` objects have the following properties:

*Members of `QuantConnect.Data.Market.Split` (JSON): https://www.quantconnect.com/services/inspector?type=T:QuantConnect.Data.Market.Split&language=python*

## Dividends

A dividend is a payment that a company gives to shareholders to distribute profits. On the ex-dividend date of an Equity in your algorithm, LEAN sends a `Dividend` object to the `on_data` method.

If you backtest with the `ADJUSTED` or `TOTAL_RETURN` data normalization mode, the dividends are factored into the price. If you backtest with the `RAW` or `SPLIT_ADJUSTED` data normalization mode, LEAN adds the dividend amount to your cashbook on the ex-dividend date. If you deploy with [QuantConnect Paper Trading](https://www.quantconnect.com/docs/v2/cloud-platform/live-trading/brokerages/quantconnect-paper-trading.md), LEAN adds the dividend amount to your cashbook on the ex-dividend date. If you deploy with another brokerage, including its paper accounts, LEAN adds the dividend when it syncs your cash balance after the payment. If you trade live or backtest with the `RAW` data normalization mode, reset your indicators and consolidators on the ex-dividend date. To account for the price adjustment that the dividend causes, warm them up with `SCALED_RAW` data. For examples, see [Reset Indicators](https://www.quantconnect.com/docs/v2/writing-algorithms/indicators/key-concepts.md#11-Reset-Indicators) or [Reset Consolidators](https://www.quantconnect.com/docs/v2/writing-algorithms/consolidating-data/getting-started.md#08-Reset-Consolidators).

To get the `Dividend` objects, index the `dividends` object with the security `symbol`. The `dividends` object may not contain data for your `symbol`. To avoid issues, check if the `dividends` object contains data for your security before you index it with the security `symbol`.

```python
def on_data(self, slice: Slice) -> None:
    dividend = slice.dividends.get(self._symbol)
    if dividend:
        pass

def on_dividends(self, dividends: Dividends) -> None:
    dividend = dividends.get(self._symbol)
    if dividend:
        pass
```

You can also iterate through the `dividends` dictionary. The keys of the dictionary are the `Symbol` objects and the values are the `Dividend` objects.

```python
def on_data(self, slice: Slice) -> None:
    for symbol, dividend in slice.dividends.items():
        pass

def on_dividends(self, dividends: Dividends) -> None:
    for symbol, dividend in dividends.items():
        pass
```

To get historical dividends, make a [history request](https://www.quantconnect.com/docs/v2/writing-algorithms/historical-data/history-requests.md) with the `Dividend` type.

```python
dividends_df = self.history(Dividend, symbol, timedelta(4*365))
dividends = self.history[Dividend](symbol, timedelta(4*365))
```

For a full example, see the [DividendAlgorithm](https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/DividendAlgorithm.py) in the LEAN GitHub repository.

`Dividend` objects have the following properties:

*Members of `QuantConnect.Data.Market.Dividend` (JSON): https://www.quantconnect.com/services/inspector?type=T:QuantConnect.Data.Market.Dividend&language=python*

## Symbol Changes

The benefit of the `Symbol` class is that it always maps to the same security, regardless of their trading ticker. When a company changes its trading ticker, LEAN sends a `SymbolChangedEvent` to the `on_data` method.

To get the `SymbolChangedEvent` objects, index the `symbol_changed_events` object with the security `symbol`. The `symbol_changed_events` object may not contain data for your `symbol`. To avoid issues, check if the `symbol_changed_events` object contains data for your security before you index it with the security `symbol`.

```python
def on_data(self, slice: Slice) -> None:
    symbol_changed_event = slice.symbol_changed_events.get(self._symbol)
    if symbol_changed_event:
        pass

def on_symbol_changed_events(self, symbol_changed_events: SymbolChangedEvents) -> None:
    symbol_changed_event = symbol_changed_events.get(self._symbol)
    if symbol_changed_event:
        pass
```

You can also iterate through the `symbol_changed_events` dictionary. The keys of the dictionary are the `Symbol` objects and the values are the `SymbolChangedEvent` objects.

```python
def on_data(self, slice: Slice) -> None:
    for symbol, symbol_changed_event in slice.symbol_changed_events.items():
        pass

def on_symbol_changed_events(self, symbol_changed_events: SymbolChangedEvents) -> None:
    for symbol, symbol_changed_event in symbol_changed_events.items():
        pass
```

If you have an open order for a security when they change their ticker, LEAN cancels your order. To keep your order, in the `on_order_event` method, get the quantity and `Symbol` of the cancelled order and submit a new order.

```python
def on_order_event(self, order_event: OrderEvent) -> None:
    if order_event.status == OrderStatus.CANCELED:
        ticket = self.transactions.get_order_ticket(order_event.order_id)
        if "symbol changed event" in ticket.tag:
            self.transactions.add_order(ticket.submit_request)
```

LEAN stores the data for ticker changes in map files. To view some example map files, see the [LEAN GitHub repository](https://github.com/QuantConnect/Lean/tree/master/Data/equity/india/map_files).

`SymbolChangedEvent` objects have the following properties:

*Members of `QuantConnect.Data.Market.SymbolChangedEvent` (JSON): https://www.quantconnect.com/services/inspector?type=T:QuantConnect.Data.Market.SymbolChangedEvent&language=python*

## Delistings

When a company is delisting from an exchange, LEAN sends a `Delisting` object to the `on_data` method. You receive `Delisting` objects when a delisting is in the near future and when it occurs. To know if the delisting occurs in the near future or now, check the `type` property.

To get the `Delisting` objects, index the `delistings` object with the security `symbol`. The `delistings` objects may not contain data for your `symbol`. To avoid issues, check if the `delistings` object contains data for your security before you index it with the security `symbol`.

```python
def on_data(self, slice: Slice) -> None:
    delisting = slice.delistings.get(self._symbol)
    if delisting:
        pass

def on_delistings(self, delistings: Delistings) -> None:
    delisting = delistings.get(self._symbol)
    if delisting:
        pass
```

You can also iterate through the `delistings` dictionary. The keys of the dictionary are the `Symbol` objects and the values are the `Delisting` objects.

```python
def on_data(self, slice: Slice) -> None:
    for symbol, delisting in slice.delistings.items():
        pass

def on_delistings(self, delistings: Delistings) -> None:
    for symbol, delisting in delistings.items():
        pass
```

The delist warning occurs on the final trading day of the stock to give you time to gracefully exit out of positions before LEAN automatically liquidates them.

```python
if delisting.type == DelistingType.WARNING:
    # Liquidate with MarketOnOpenOrder on delisting warning
    quantity = self.portfolio[symbol].quantity
    if quantity != 0:
        self.market_on_open_order(symbol, -quantity)
```

The `on_securities_changed` event notifies the algorithm when delisted assets are removed from the universe.

To improve iteration speed, LEAN removes delisted securities from the `securities` primary collection. To access all the securities, iterate the `securities.total` property.

```python
# Access all the securities.
for security in self.securities.total:
    pass

# Exclude delisted securities.
for security in self.securities.values():
    pass
```

For a full example, see the [DelistingEventsAlgorithm](https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/DelistingEventsAlgorithm.py) in the LEAN GitHub repository.

`Delisting` objects have the following properties:

*Members of `QuantConnect.Data.Market.Delisting` (JSON): https://www.quantconnect.com/services/inspector?type=T:QuantConnect.Data.Market.Delisting&language=python*
