Skip to content
Skip to Content
DalalOSdocs

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.

Purpose-specific relevant peers for RELIANCE
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

GET
/stocks/{q}/relevant-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

purpose?string

operating | financial | valuation.

Default"operating"
event_context?string

Optional declared event context label; selection purpose remains explicit.

limit?integer

Maximum peers (1..15).

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"

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_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