Skip to content
Skip to Content
DalalOSdocs

REST reference

DalalOS REST API

Use the REST surface when your script, dashboard, or service does not speak MCP. It exposes the same read-only data functions and JSON envelope under /v1.

Base URL: https://mcp.dalalos.in/v1. The live data surface documents all 66 GET routes.

Building a product on this data? The data API pages describe each dataset, its source and refresh, and /status shows when each feed last refreshed. The OpenAPI spec is at https://mcp.dalalos.in/v1/openapi.json. For a first script, see the Python quickstart.

The live spec lists 92 routes, 88 GET and 4 POST. Each has its own page, filed under a job below.

Start here

First, a call that needs no API key. It lists the data sources behind DalalOS.

Data sources
curl "https://mcp.dalalos.in/v1/sources"
{
  "status": "success",
  "data": {
    "active_source_count": 7,
    "companies_covered": 4974,
    "sources": [
      {
        "id": "nse",
        "display_name": "NSE",
        "gives": "prices, trading data, F&O, FII and DII flows",
        "cadence": "every trading day",
        "status": "active",
        "stopped_since": null,
        "envelope_source_tags": [
          "nse",
          "nse-bhavcopy"
        ],
        "tools": [
          "get_stock_quote",
          "get_batch_quotes"
        ],
        "last_success_at": "2026-11-27T14:55:01+00:00"
      },
      {
        "id": "nse_indices",
        "display_name": "NSE Indices",
        "gives": "index levels and valuations",
        "cadence": "every trading day",
        "status": "active",
        "stopped_since": null,
        "envelope_source_tags": [
          "nse",
          "niftyindices"
        ],
        "tools": [
          "list_indices",
          "list_index_constituents"
        ],
        "last_success_at": "2026-11-27T14:54:00+00:00"
      }
    ]
  },
  "cached_at": "2026-11-27T14:56:29+00:00",
  "source": "indian-stock-mcp",
  "stale": false,
  "error": null,
  "reason_code": null,
  "data_age_seconds": 189.361
}

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.

Then a call with a key. Create a key on the keys page of your dashboard and send it in the Authorization header. This reads the latest end-of-day quote of one company.

Latest quote for RELIANCE
curl -H "Authorization: Bearer $DALALOS_API_KEY" "https://mcp.dalalos.in/v1/stocks/RELIANCE/quote"
{
  "status": "success",
  "data": {
    "isin": "INE002A01018",
    "nse_symbol": "RELIANCE",
    "price": 1382.6,
    "change": -13.6,
    "pct_change": -0.974072482452,
    "volume": 12173225,
    "market_cap": 18894130563700,
    "pe": 23.0092,
    "pb": 2.0007,
    "week52_high": 1611.8,
    "week52_low": 1152.2,
    "week52_high_unadjusted": 1611.8,
    "week52_low_unadjusted": 1152.2,
    "week52_adjustment_incomplete": 0,
    "day_open": 1393.8,
    "day_high": 1398,
    "day_low": 1373.1,
    "prev_close": 1396.2,
    "turnover": 16824840078.3,
    "num_trades": 249818,
    "deliv_pct": 54.74,
    "market_cap_source": "nse_daily_market_cap",
    "bse_reported": {
      "roe": 0.0836,
      "operating_margin": 0.1046,
      "net_margin": 0.0507,
      "note": "BSE ComHeader's own published figures (fractions) — a different, BSE-computed number from this project's XBRL-derived TTM ratios, not necessarily TTM or the …"
    },
    "week52": {
      "high": 1611.8,
      "low": 1152.2,
      "validity": "valid",
      "reason_codes": [],
      "reason_text": null,
      "reason_texts": {},
      "as_of": "2026-11-27"
    },
    "recent_dividends": [
      {
        "ex_date": "2026-06-05",
        "type": "final",
        "amount": 6
      }
    ],
    "upcoming_dividends": [],
    "dividend_yield": 0.0043,
    "currency": "INR",
    "vwap": 1382.1185,
    "pe_reason": null,
    "pe_reason_text": null,
    "pb_reason": null,
    "pb_reason_text": null
  },
  "cached_at": "2026-11-27T14:45:05+00:00",
  "source": "nse-bhavcopy",
  "stale": false,
  "error": null,
  "reason_code": null,
  "data_age_seconds": 901.726,
  "as_of": "2026-11-27",
  "freshness": {
    "version": 1,
    "stale": false,
    "price": {
      "basis": "end_of_day",
      "session": "2026-11-27",
      "market_latest_session": "2026-11-27",
      "fetched_at": "2026-11-27T14:45:05+00:00",
      "status": "latest_session"
    },
    "source_check": {
      "job": "refresh_quotes",
      "job_last_success_at": "2026-11-27T14:48:26+00:00",
      "status": "recent"
    },
    "reason_codes": [
      "end_of_day_price"
    ],
    "reason_text": "Closing price for Friday 27 Nov 2026, the latest trading session on file. This is not a live price."
  }
}

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.

Without a key the API answers 401 with this text: Missing or malformed Bearer token. Send your API key as 'Authorization: Bearer <key>' followed by where to create a key.

Browse by job

Every route in the live spec has its own page, filed under one job. Pick what you want to do, or open a recipe that chains a few routes into a small app.

About the data

About the data: jobs the REST API is grouped by
I want to…JobRoutes
Check where data comes from, how fresh it is and what a term meansSources, freshness and terms3

Authentication

Send an API key from your dashboard as Authorization: Bearer isk_live_…. Keep keys server-side and out of browser code.

Plans, credits and errors

REST works on every plan, with lower limits on Free. REST credits are separate from MCP credits, so you can start free to check your integration; the current allowances are on the pricing page. When the month's REST credits run out, the API answers 402 quota_exceeded until they reset. Each request costs credits, the units your plan spends on each call; what a request costs is on service availability and versioning.

Every failed call returns {"status":"error","error":"…","reason_code":"…"}. These are the codes any route can return. A route page lists only the errors that are specific to it. An empty result is not an error: it is a 200 with reason_code no_data.

Errors every route can return
Statusreason_codeMeaning
400bad_requestMalformed request (reason_code=bad_request).
401unauthorizedMissing/invalid API key (reason_code=unauthorized).
402quota_exceededMonthly quota exhausted (reason_code=quota_exceeded).
403surface_not_in_plan, account_suspendedAccount or plan is not permitted to use this route.
404not_foundIdentifier resolves to nothing (reason_code=not_found).
409snapshot_expiredA screen call pinned a snapshot that a newer one replaced. Run the screen again.
429rate_limited, concurrency_limitedRate or concurrency limit exceeded.
503snapshot_unavailableNo metrics generation is published yet (reason_code=snapshot_unavailable).

Envelope and example

curl -H "Authorization: Bearer isk_live_…" \
  "https://mcp.dalalos.in/v1/stocks/RELIANCE/quote"

{"status":"success","data":{...},"source":"nse-bhavcopy","cached_at":"…","stale":false}

Errors use {"status":"error","error":"…","reason_code":"…"}. Values are raw disclosed facts and mechanically-computed ratios; the API does not provide investment advice or recommendations.

Machine-readable spec

The OpenAPI 3.1 document is live and needs no API key: https://mcp.dalalos.in/v1/openapi.json. It describes every route, its query parameters and defaults, and the status codes each can return, so Swagger, Redoc or a client generator can read it directly.

What it does not yet describe is the shape of data inside the envelope: payload fields are not typed per route, so a generated client hands you the envelope rather than a typed body. Until that lands, read the field-level contract from each route's tool page below, or ask us for sample responses for the companies you care about — we will send real ones rather than a fabricated schema.

Each route page shows its call filled in with working inputs, its parameters, a box to send the call from your browser, and, where a saved answer exists, the fields it holds.

Limits, versioning and support

What a request costs in credits, the API's beta status, how a breaking change reaches you, and what we do and do not commit to are on service availability and versioning. Error handling and retries in working code are in the Python quickstart.

Endpoint reference

The table below is the earlier list of 66 routes by category. The job pages above list all 92.

Each route below links to the matching MCP tool reference. The REST and MCP surfaces use the same underlying data function.

Search & discovery

Search & discovery REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/searchSearch securitiessearch-stocksRoute page
GEThttps://mcp.dalalos.in/v1/screenScreen stocks by mechanical filtersscreen-stocksRoute page
GEThttps://mcp.dalalos.in/v1/sectorsList sector and industry aggregatesget-sector-overviewRoute page
GEThttps://mcp.dalalos.in/v1/sectors/{sector}Get one sector or industry aggregateget-sector-overviewRoute page
GEThttps://mcp.dalalos.in/v1/indicesList tracked indiceslist-indicesRoute page
GEThttps://mcp.dalalos.in/v1/indices/{index}/constituentsList index constituentslist-index-constituentsRoute page
GEThttps://mcp.dalalos.in/v1/indices/{index}/heatmapGet index constituents with multi-horizon returnsget-market-heatmapRoute page
GEThttps://mcp.dalalos.in/v1/presetsList preset screenslist-preset-screensRoute page
GEThttps://mcp.dalalos.in/v1/presets/{name}Run a preset screenrun-preset-screenRoute page
GEThttps://mcp.dalalos.in/v1/glossaryGet the plain-words glossaryget-glossaryRoute page

Quotes & prices

Quotes & prices REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/quotesGet batch quotesget-batch-quotesRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/quoteGet the latest end-of-day quoteget-stock-quoteRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/price-historyGet historical OHLCV barsget-price-historyRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/returnsGet mechanical return statisticsget-returnsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/delivery-trendsGet delivery trendsget-delivery-trendsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/technical-indicatorsGet technical indicatorsget-technical-indicatorsRoute page
GEThttps://mcp.dalalos.in/v1/security-history/{symbol}Get daily bhavcopy history for any seriesget-security-historyRoute page
GEThttps://mcp.dalalos.in/v1/stock-vs-index/{symbol}Get one stock's return against an indexget-stock-vs-indexRoute page

Financials & ratios

Financials & ratios REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/financialsGet financial statements and ratiosget-financialsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/financial-trendsGet financial trendsget-financial-trendsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/profileGet a company profileget-company-profileRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/brsrGet BRSR filing dataget-brsrRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/valuation-historyGet valuation historyget-valuation-historyRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/reportGet a company reportget-company-reportRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/operating-metricsGet operating KPI historyget-company-operating-metricsRoute page

Peer comparison

Peer comparison REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/peersCompare company peersget-peer-comparisonRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/relevant-peersGet purpose-specific relevant peersget-relevant-peersRoute page

Ownership & risk

Ownership & risk REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/shareholdingGet shareholding dataget-shareholdingRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/pledge-trendGet promoter pledge trendsget-pledge-trendRoute page
GEThttps://mcp.dalalos.in/v1/insider-tradesGet insider trades (SEBI PIT)get-insider-tradesRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/exposuresGet reviewed macro-factor exposuresget-company-exposuresRoute page

Corporate actions & events

Corporate actions & events REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/dividendsGet dividend disclosuresget-dividendsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/corporate-actionsGet corporate actionsget-corporate-actionsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/eventsGet corporate events and filingsget-stock-eventsRoute page
GEThttps://mcp.dalalos.in/v1/results-calendarGet upcoming resultsget-upcoming-resultsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/filings/{news_id}/extractExtract a filingget-filing-extractRoute page
GEThttps://mcp.dalalos.in/v1/calendarGet the market event calendarget-market-calendarRoute page
GEThttps://mcp.dalalos.in/v1/iposGet IPO calendar dataget-iposRoute page
GEThttps://mcp.dalalos.in/v1/bucketsList announcement bucketslist-announcement-bucketsRoute page
GEThttps://mcp.dalalos.in/v1/buckets/{bucket}Get one announcement bucketget-announcement-bucketRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/documentsGet company documents by typeget-company-documentsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/disclosure-searchSearch a company's past filingssearch-company-disclosuresRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/filings/{news_id}/contextGet filing event contextget-event-contextRoute page

Market context

Market context REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/fii-diiGet FII/DII flowget-market-fii-dii-flowRoute page
GEThttps://mcp.dalalos.in/v1/fii-dii/sectorsGet sector FII flowget-sector-fii-flowRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/fii-activityGet security FII activityget-fii-activityRoute page
GEThttps://mcp.dalalos.in/v1/index-valuationsList index valuationslist-index-valuationsRoute page
GEThttps://mcp.dalalos.in/v1/index-valuations/{index}Get one index valuationget-index-valuationRoute page
GEThttps://mcp.dalalos.in/v1/india-vixGet India VIX dataget-india-vixRoute page
GEThttps://mcp.dalalos.in/v1/market-breadthGet market breadthget-market-breadthRoute page
GEThttps://mcp.dalalos.in/v1/fo-participant-activityGet F&O participant activityget-fo-participant-activityRoute page
GEThttps://mcp.dalalos.in/v1/macro/indicatorsGet macro indicatorsget-macro-indicatorsRoute page
GEThttps://mcp.dalalos.in/v1/macro/fx-ratesGet FX reference ratesget-fx-reference-ratesRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/bulk-block-dealsGet bulk and block dealsget-bulk-block-dealsRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/derivatives-positioningGet derivatives positioningget-derivatives-positioningRoute page
GEThttps://mcp.dalalos.in/v1/fo-ban-listGet the F&O securities-in-ban listget-fno-ban-listRoute page
GEThttps://mcp.dalalos.in/v1/fpi/sectorsGet sector-wise FPI investmentget-sector-fpi-investmentRoute page
GEThttps://mcp.dalalos.in/v1/market-fii-dii-flowGet market-wide FII/DII flowget-market-fii-dii-flowRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/fii-flowGet per-stock FII flowget-stock-fii-flowRoute page
GEThttps://mcp.dalalos.in/v1/top-moversGet top gainers, losers and most activeget-top-moversRoute page
GEThttps://mcp.dalalos.in/v1/market-rankingRank securities on one dayget-market-rankingRoute page
GEThttps://mcp.dalalos.in/v1/market-capGet NSE market capitalisation historyget-market-cap-historyRoute page
GEThttps://mcp.dalalos.in/v1/price-band-hitsGet securities that hit their price bandget-price-band-hitsRoute page
GEThttps://mcp.dalalos.in/v1/compare-indicesCompare indices over one windowcompare-indicesRoute page
GEThttps://mcp.dalalos.in/v1/stocks/{q}/macro-exposuresGet company macro exposure evidenceget-company-macro-exposuresRoute page

System

System REST endpoints
MethodAPI URLPurposeMCP toolRoute page
GEThttps://mcp.dalalos.in/v1/freshnessGet data freshnessget-data-freshnessRoute page

MCP-only account tools

ping, get_watchlist, add_to_watchlist, remove_from_watchlist, and submit_dalalos_feedback are account-scoped MCP tools with no public REST equivalent. See Questions DalalOS can answer for their behavior.

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.