Tool reference
Indian stock returns, volatility and drawdown
get_returns — Mechanically-computed returns, volatility and drawdown. 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_returns for you and answers from the figures it returns.
EXAMPLE PROMPTS
- What's the 1-year and 3-year return for this stock, and its max drawdown?
- What were the 1-month, 6-month and 1-year returns for Bajaj Finance?
- Show the annualised volatility, CAGR and maximum drawdown for Sun Pharma.
Parameters and response fields
get_returns
Mechanically-computed returns, volatility and drawdownUSE WHEN
Returns over 1 week to 5 years, year to date and full history, with annualised returns, volatility and max drawdown — computed from the price series, not opinion.
PARAMETERS
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | One company: NSE symbol, ISIN or BSE code. For a name, call search_stocks first. |
RESPONSE DATA
- returns (1W/1M/3M/6M/1Y/3Y/5Y/YTD/max), cagr, annualized_volatility, max_drawdown, high_52w, low_52w.
NOTES
- There is no period parameter: for another period use get_price_history or get_stock_vs_index. Returns use prices adjusted for splits and bonuses and exclude dividends.
- A window spanning a major corporate action (e.g. a demerger) is nulled rather than reported as a distorted figure.
/stocks/{q}/returnsSee the same data on DalalOS
Public pages that need no sign-in and show data from the same source.
Related tools
The same data over REST, run on 2026-11-27
This tool reads the same data as GET /stocks/{q}/returns. The call and the answer below were run against the live API.
curl -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/stocks/RELIANCE/returns"{
"status": "success",
"data": {
"isin": "INE002A01018",
"nse_symbol": "RELIANCE",
"name": "Reliance Industries Limited",
"as_of": "2026-11-27",
"window_start": "2021-07-07",
"max_window": {
"from_date": "2021-07-07",
"to_date": "2026-11-27",
"days": 1969,
"price_history_max_days": 1825,
"covered_by_price_history": false
},
"trading_days": 1332,
"returns": {
"1W": 0.0037,
"1M": 0.194,
"3M": 0.0743,
"6M": 0.0465,
"1Y": -0.1156,
"3Y": 0.1551,
"5Y": null,
"YTD": -0.1225,
"max": null
},
"cagr": 0.0514,
"cagr_reason": null,
"cagr_reason_text": null,
"cagr_3y": 0.0491,
"cagr_5y": null,
"annualized_volatility": 0.2295,
"max_drawdown": -0.2767,
"high_52w": 1611.8,
"low_52w": 1152.2,
"week52": {
"high": 1611.8,
"low": 1152.2,
"validity": "valid",
"reason_codes": [],
"reason_text": null,
"reason_texts": {},
"as_of": "2026-11-27"
},
"incomplete_windows": [],
"corporate_action_flagged_windows": [
"5Y",
"max"
],
"corporate_action_caveat": "A structural corporate action (rights issue/demerger/spin-off/merger/bare share consolidation) occurred inside one or more windows, mechanically transferring…"
},
"cached_at": "2026-11-27T00:00:00+00:00",
"source": "nse-bhavcopy",
"stale": false,
"error": null,
"reason_code": null,
"data_age_seconds": 54010.548,
"as_of": "2026-11-27"
}Saved answer. Run on 2026-11-27, answered 200. Lists show their first item in full; the other items and long text are shortened. A call you make now gets the current answer.
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.