moneycontrol_get_index
Retrieve current level, change, and key statistics for any market index, including Nifty 50 and Sensex.
Instructions
Get the current level and movement for a market index.
Built-in fast-path names: Nifty 50, Sensex, Nifty Bank, Nifty IT, Nifty Auto, Nifty Pharma, Nifty FMCG, Nifty Metal, Nifty Midcap 100, Nifty Smallcap 100, Nifty 500. Other index names are resolved automatically via Moneycontrol search.
Args: params (IndexInput): - index (str): Index name or raw pricefeed code. - response_format (ResponseFormat): 'markdown' or 'json'.
Returns: str: Index data with this shape (JSON mode): { "name": str, "level": str, "change": str, "percent_change": str, "open": str, "high": str, "low": str, "prev_close": str, "advances": str, "declines": str, "year_high": str, "year_low": str, "ytd_percent": str } Returns "Error: ..." on failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |