Skip to content
Skip to Content
DalalOSdocs

GET /stocks/{q}/peers

Peer comparison

Side-by-side valuation table vs sector/industry peers.

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.

Peer comparison for RELIANCE
curl -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/stocks/RELIANCE/peers?limit=8"
{
  "status": "success",
  "data": {
    "query_isin": "INE002A01018",
    "query_name": "Reliance Industries Limited",
    "grain": "isubgroup",
    "grain_value": "Refineries & Marketing",
    "grain_widened": false,
    "size_banded": true,
    "peer_count": 2,
    "peer_medians": {
      "market_cap": 10374738642200,
      "price": 763.405,
      "revenue_ttm": 11179785100000,
      "net_income_ttm": 728324350000,
      "pe": 13.4978,
      "pb": 1.42775,
      "net_margin": 0.0631,
      "roe": 0.16335,
      "roa": 0.07145,
      "roce": 0.16555,
      "debt_to_equity": 0.5038
    },
    "peers": [
      {
        "isin": "INE002A01018",
        "name": "Reliance Industries Limited",
        "nse_symbol": "RELIANCE",
        "company_type": "general",
        "market_cap": 18710088037000,
        "price": 1382.6,
        "pe": 22.7851,
        "pb": 1.9812,
        "revenue_ttm": 12128280000000,
        "ttm_basis": "revenue_from_operations",
        "net_income_ttm": 956250000000,
        "net_income_owners_ttm": 821100000000,
        "net_margin": 0.0775,
        "roe": 0.094,
        "roa": 0.0463,
        "roce": 0.1265,
        "interest_coverage": 5.2023,
        "ev": 20742378037000,
        "ev_to_ebitda": 9.6031,
        "ev_to_ebit": 13.2835,
        "earnings_yield": 0.0753,
        "price_to_cash_flow": 9.7391,
        "price_to_fcf": 27.0389,
        "fcf_yield": 0.037,
        "debt_to_equity": 0.4076,
        "bvps": 697.8527,
        "ebitda_margin": 0.175,
        "piotroski_f_score": 7,
        "altman_z_score": 2.3645,
        "null_reasons": {},
        "is_query": true
      }
    ],
    "null_reason_texts": {
      "not_meaningful_negative_earnings": "Earnings over the last twelve months are zero or negative, so this ratio is not meaningful.",
      "not_meaningful_negative_equity": "Shareholders' equity is negative, so ratios built on it are not meaningful.",
      "no_earnings_data": "Earnings for the last twelve months are not in our data yet (four consecutive quarters of results are needed).",
      "no_balance_sheet_data": "No balance sheet is in our data yet.",
      "structural_event": "A merger, demerger, spin-off or rights issue in the last 52 weeks means this ratio cannot be compared across the event, so it is left out.",
      "not_applicable_company_type": "This measure does not apply to this type of company (a bank, NBFC or insurer).",
      "suppressed_implausible_value": "The source figure failed a plausibility check and is withheld rather than shown.",
      "inputs_unavailable": "An input this figure needs is not in our data, or it is zero or negative, so the figure cannot be computed.",
      "not_applicable_trust": "This is a REIT or InvIT unit. Company ratios built on earnings or a balance sheet are not given for it; its results report distribution per unit and NAV inst…"
    },
    "notes": {
      "piotroski_f_score": [
        "The leverage criterion uses TOTAL debt / total assets (this pipeline extracts no separate long-term-debt concept -- the same gap _capital_employed's ROCE den…"
      ]
    },
    "definitions": {
      "pe": {
        "measure": "Price divided by earnings per share for the last four reported quarters (the latest annual figure where four are not held), on the owners' basis where filed;…",
        "basis": "computed",
        "formula": {
          "numerator": "price",
          "denominator": "earnings per share, last four quarters"
        },
        "unit": "times",
        "glossary": "pe"
      },
      "roe": {
        "measure": "Return on owners' equity",
        "basis": "computed",
        "formula": {
          "numerator": "net_income_owners_ttm (net_income_ttm where no owners' figure is filed)",
          "denominator": "average owners' equity"
        },
        "unit": "fraction",
        "glossary": "roe"
      },
      "net_income_ttm": {
        "measure": "Profit after tax of the whole group for the last four quarters, including non-controlling interests where the figures are consolidated",
        "basis": "computed",
        "unit": "INR",
        "glossary": "net_profit"
      },
      "net_income_owners_ttm": {
        "measure": "Profit after tax attributable to owners of the parent for the last four quarters",
        "basis": "computed",
        "unit": "INR",
        "glossary": "net_profit_owners"
      },
      "revenue_ttm": {
        "measure": "Revenue for the last four quarters on the basis named in ttm_basis",
        "basis": "computed",
        "unit": "INR",
        "glossary": "sales_ttm"
      },
      "net_margin": {
        "measure": "Group net profit as a fraction of total income, last four quarters",
        "basis": "computed",
        "formula": {
          "numerator": "net_income_ttm",
          "denominator": "total income, last four quarters"
        },
        "unit": "fraction",
        "glossary": "net_margin"
      },
      "debt_to_equity": {
        "measure": "Borrowings divided by owners' equity at the latest balance sheet; lease liabilities are excluded",
        "basis": "computed",
        "formula": {
          "numerator": "total debt (borrowings)",
          "denominator": "owners' equity"
        },
        "unit": "times",
        "glossary": "debt_to_equity"
      }
    }
  },
  "cached_at": "2026-11-27T14:45:05+00:00",
  "source": "indian-stock-mcp",
  "stale": false,
  "error": null,
  "reason_code": null,
  "data_age_seconds": 4081.545,
  "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}/peers

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.

Query Parameters

limit?integer

Max peers.

Default8

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
query_isinstring
query_namestring
grainstring
grain_valuestring
grain_widenedboolean
size_bandedboolean
peer_countnumber
peer_mediansobject
peerslist
null_reason_textsobject
notesobject
definitionsobject

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_peer_comparison reads the same data, for an AI assistant that connects over MCP, the Model Context Protocol, instead of REST.

Notes

  • revenue_ttm is on the same basis as the financials' TTM revenue and each row names it in ttm_basis.
  • Every null ratio on a row has a code in null_reasons; null_reason_texts gives the plain words.

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

KEEP EXPLORING