Index Performance Ranking
get_index_performanceRank NSE indices by RETURN over recent completed weeks or months, using official NSE index closing levels. Returns per-period % plus cumulative % for each index, sorted best-to-worst. Covers ~140 indices: all sectoral (IT, Bank, Auto, Pharma, FMCG, Metal, Realty, Energy, Oil & Gas, PSU Bank, Private Bank, Media, Healthcare, Consumer Durables, Power, Insurance, Telecom, Chemicals, Cement, Capital Goods, NBFC, Retail and more), plus broad market/size, thematic and strategy/factor indices. USE THIS for 'rank sectoral indices by 3-week return', 'which sector performed best last month', 'top gaining sectors', or weekly close-to-close index returns — do NOT compute a sector return from its constituents, which is only an approximation. Only COMPLETED periods are counted; the in-progress week/month is excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max indices to return after ranking (1-50) | |
| order | No | 'gainers' = best cumulative first, 'losers' = worst first | gainers |
| periods | No | How many COMPLETED periods to measure (1-12, e.g. 3 = last 3 completed weeks) | |
| category | No | Restrict to one index family. Use 'sectoral' for sector rankings — that is almost always what a 'which sector' question means. Omit for all indices. | |
| granularity | No | Period length: 'week' = weekly close-to-close, 'month' = monthly | week |
| index_names | No | Explicit index names, e.g. ['Nifty IT','Nifty Bank']. Overrides category. Matched case-insensitively against the catalog. |