Skip to content
Skip to Content
DalalOSdocs

Tool reference

Compare an Indian stock with its industry peers

get_peer_comparison — Auto-selected peer group with valuation & profitability medians. 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_peer_comparison for you and answers from the figures it returns.

EXAMPLE PROMPTS

  • Compare HDFC Bank against its peers on PE, PB and ROE.
  • Compare Infosys with its peers on P/E, ROE and net margin.
  • Show the median P/B and ROE of ICICI Bank's peer group.

Parameters and response fields

get_peer_comparison

Auto-selected peer group with valuation & profitability medians

USE WHEN

Compare a company against its actual industry peers — sized and grouped automatically, not a hand-picked watchlist.

PARAMETERS

get_peer_comparison parameters
NameTypeRequiredDefaultDescription
querystringYes—One company: NSE symbol, ISIN or BSE code. For a name, call search_stocks first.
limitintegerNo8Max peers, capped at 15.

RESPONSE DATA

  • peers — market_cap, price, pe, pb, revenue_ttm, net_income_ttm, net_margin, roe/roa/roce, ev multiples, price-to-fcf, debt_to_equity, is_query.
  • peer_medians — pe, pb, net_margin, roe.
  • grain, grain_value, grain_widened, size_banded, peer_count.

NOTES

  • Peers are picked by SEBI industry classification (isubgroup, widening to igroup if fewer than 4 peers) within a 0.1x–10x market-cap band.
Also available via REST: /stocks/{q}/peers

See the same data on DalalOS

Public pages that need no sign-in and show data from the same source.

The same data over REST, run on 2026-11-27

This tool reads the same data as GET /stocks/{q}/peers. The call and the answer below were run against the live API.

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.

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.