GET /stocks/{q}/relevant-peers
Purpose-specific relevant peers
Cache-only, provenance-backed peer selection for a declared comparison purpose.
Not answering (checked 2026-11-27). This route answers, but with no peers. On 27 Nov 2026 it returned 200 with reason_code no_data and an empty peers list for every company tried (RELIANCE, TCS, HDFCBANK, SUNPHARMA, MARUTI, ASIANPAINT, CAPACITE), for each purpose. For peers that answer today, use GET /stocks/{q}/peers.
Try it
A call to this route cannot give a useful answer today (see the note at the top, checked 2026-11-27). The call and the reference are below for when it does.
curl -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/stocks/RELIANCE/relevant-peers?purpose=valuation&limit=8"{
"status": "error",
"error": "limit: Input should be a valid integer, unable to parse string as an integer",
"reason_code": "bad_request"
}A real 400 answer, captured on 28 Nov 2026 from GET /search?q=RELIANCE&limit=abc. Errors have this shape on every route; the error text names what went wrong.
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
bearerAuthAuthorizationBearer <token>DalalOS API key (isk_live_...) as a Bearer token. Create one in the DalalOS dashboard.
q*stringNSE symbol, ISIN, or BSE code.
purpose?stringoperating | financial | valuation.
"operating"event_context?stringOptional declared event context label; selection purpose remains explicit.
limit?integerMaximum peers (1..15).
8Success (or success-with-empty when nothing is cached).
application/json- response
Standard DalalOS response envelope. source is a per-tool provenance tag; stale/data_age_seconds describe cache freshness.
as_of?stringISO 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.
datecached_at?stringISO timestamp the served data was refreshed.
data?unknownTool payload (object or array); null on error.
data_age_seconds?numberPresent only when cached_at is set.
error?stringreason_code?stringStable machine-readable category (no_data, not_found, bad_request,...).
resolved_via?stringPresent 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?stringstale*booleanstatus*string"success""error"Where the inputs come from
q: An NSE symbol, an ISIN or a BSE code. Find one withGET /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_relevant_peers reads the same data, for an AI assistant that connects over MCP, the Model Context Protocol, instead of REST.
Notes
- May return fewer peers when business-model evidence is insufficient.
Research data only. Answers are disclosed facts and mechanically computed figures. They are not investment advice.
KEEP EXPLORING