Skip to content
Skip to Content
DalalOSdocs

GET /stocks/{q}/returns

Return statistics

Period returns (1W to 1Y, 3Y, 5Y, YTD, max), CAGR, volatility, max drawdown, 52w high/low.

Try it

To test this route you need an API key on a plan that includes the REST API. Create one on the keys page of your dashboard, paste it into the Authorization field of the reference on this page and press Send. Your key stays in this browser tab.

Return statistics for RELIANCE
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.

A call can also answer 402, 403, 409 or 429 when a plan's limit is reached; those are described on Plans, credits and errors.

Parameters and response

GET
/stocks/{q}/returns

Authorization

bearerAuth
headerAuthorizationBearer <token>

DalalOS API key (isk_live_...) as a Bearer token. Create one in the DalalOS dashboard.

Path Parameters

q*string

NSE symbol, ISIN, or BSE code.

Response Body

Success (or success-with-empty when nothing is cached).

application/json
  1. response

Standard DalalOS response envelope. source is a per-tool provenance tag; stale/data_age_seconds describe cache freshness.

as_of?string

ISO date (YYYY-MM-DD) the data refers to: the trade date of the newest row, or the end date of the newest period. Present only on tools that state one; cached_at is the fetch time.

Formatdate
cached_at?string

ISO timestamp the served data was refreshed.

data?unknown

Tool payload (object or array); null on error.

data_age_seconds?number

Present only when cached_at is set.

error?string
reason_code?string

Stable machine-readable category (no_data, not_found, bad_request,...).

resolved_via?string

Present only when a query resolved via a rename/merger alias (rename, merger, demerger_successor; single-company result) or, on /v1/search, an everyday name (common_name: the company it means is the first row and carries the same resolved_via on the row; ordinary matches follow).

source?string
stale*boolean
status*string
Value in"success""error"

What comes back

The top-level fields of data in the saved answer, run on 2026-11-27. The fields can differ for another company or window.

Fields of data
FieldType
isinstring
nse_symbolstring
namestring
as_ofstring
window_startstring
max_windowobject
trading_daysnumber
returnsobject
cagrnumber
cagr_reasonnull
cagr_reason_textnull
cagr_3ynumber
cagr_5ynull
annualized_volatilitynumber
max_drawdownnumber
high_52wnumber
low_52wnumber
week52object
incomplete_windowslist
corporate_action_flagged_windowslist
corporate_action_caveatstring

Where the inputs come from

  • q: An NSE symbol, an ISIN or a BSE code. Find one with GET /search.

Errors

The errors every route can return (401, 402, 403, 429 and the rest) are on Plans, credits and errors.

In MCP

The MCP tool get_returns reads the same data, for an AI assistant that connects over MCP, the Model Context Protocol, instead of REST.

Notes

  • cagr is null with cagr_reason: "history_under_one_year" for a window under 365 days; cagr_3y/cagr_5y are the annualised 3- and 5-year returns.
  • max_window (from_date, to_date, days, price_history_max_days, covered_by_price_history) is the span returns.max covers and whether /price-history (capped at price_history_max_days) can draw all of it.

Research data only. Answers are disclosed facts and mechanically computed figures. They are not investment advice.

KEEP EXPLORING