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 mediansUSE WHEN
Compare a company against its actual industry peers — sized and grouped automatically, not a hand-picked watchlist.
PARAMETERS
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Company name, symbol, code or ISIN. |
limit | integer | No | 8 | Max 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.
/stocks/{q}/peersSee the same data on DalalOS
Public pages that need no sign-in and show data from the same source.
Related tools
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.