Tool reference
How stocks trade around index inclusion dates
get_index_event_study — How a stock traded around the dates of an index change. This is a read-only research or operational tool. It does not place trades or issue investment recommendations.
What you can ask
Connect DalalOS to Claude or ChatGPT and ask in plain English; the assistant calls get_index_event_study for you and answers from the figures it returns.
EXAMPLE PROMPTS
- How did stocks added to the Nifty 50 trade in the 20 days before and after their effective date?
- What was the median return of Nifty 50 additions in the 20 sessions after the effective date?
- How did volume compare with its baseline on the day a stock joined the Nifty Next 50?
Parameters and response fields
get_index_event_study
How a stock traded around the dates of an index changeUSE WHEN
Read a stock's return, volume and delivery in fixed windows around an index change, set beside a benchmark. Pass an index alone to get statistics across all its changes.
PARAMETERS
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
index | string | Yes | — | Index id, display name or the provider's name, such as nse:nifty_50 or Nifty 50. |
query | string | null | No | — | One company: NSE symbol, ISIN or BSE code. Leave it out to study every matching event as a group. |
change_type | string | No | add | One of add, delete, segment_up, segment_down or weight_change. |
from_date | date | null | No | — | Optional ISO date, matched to the effective date. |
to_date | date | null | No | — | Optional ISO date, matched to the effective date. |
benchmark | string | null | No | Nifty 500 | NSE index to compare against. |
include_flagged | boolean | No | true | false leaves out events near results, corporate actions, deals, price-band hits or another index event. |
limit | integer | No | 50 | Event rows to return, 1 to 200. It caps the rows, not the statistics. |
RESPONSE DATA
- One company: the event, then study with the stock return, benchmark return and excess_return_pp in each window (run_up, reaction, announce_to_effective, effective_day, after_20, after_60), the volume, traded value and delivery baseline and multiples, and flags for other events nearby.
- A group: counts (events_found, analysed, pending, not_analysed, excluded_as_flagged), statistics per figure (n, median, 25th and 75th percentile, minimum, maximum, share_above_zero), the event rows and definitions.
NOTES
- The figures say what happened before, around and after the dates. They do not say that the index change caused any move.
- Returns are price returns without dividends. excess_return_pp is the stock return minus the benchmark return in percentage points, with no beta adjustment.
- A window that runs past the data has complete false and covers only the sessions that exist. While the effective date is ahead of the data, the effective-side figures do not exist yet.
- Group statistics start at 5 analysed events and are marked a small sample under 20. Events with no price history or no matched security are listed in not_analysed_events with the reason.
See the same data on DalalOS
Public pages that need no sign-in and show data from the same source.
Related tools
KEEP EXPLORING
Connect your AI to Indian stock market data
Sign in to DalalOS and connect your AI in one line of config. Free to start; paid plans when you need more.
Account holders get product-update emails about every two weeks. Turn them off any time.