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.
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.
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.
One company
| I want to… | Job | Routes |
|---|---|---|
| Turn a name, symbol or ISIN into a company and its profile | Find a company | 2 |
| Get the latest price, price history and returns | Prices and charts | 10 |
| Read reported results, track revisions and compare peers | Financials and peers | 7 |
| Follow what a company files and read a filing | Filings and announcements | 8 |
| Know when results, dividends, splits and IPOs happen | Results dates, dividends and corporate actions | 5 |
| See shareholding, promoter pledges, insider trades and large deals | Who owns a company | 4 |
| Read what a company said on calls and in filings, and its stated guidance | Earnings calls and guidance | 6 |
| Get one sourced report or rule-based scorecard for a company | Company report and scorecard | 4 |
The market
| I want to… | Job | Routes |
|---|---|---|
| Find the companies that meet conditions I set | Screen stocks | 12 |
| Track foreign and domestic institutional money and F&O positions | FII, DII and F&O flows | 7 |
| List indices, their members, valuations and membership changes | Indices | 10 |
| See movers, breadth, price-band hits and sector totals for a day | The market and sectors | 6 |
| Add inflation, GDP, FX rates and how a company is exposed to them | Macro, FX and company exposure | 6 |
About the data
| I want to… | Job | Routes |
|---|---|---|
| Check where data comes from, how fresh it is and what a term means | Sources, freshness and terms | 3 |
Authentication
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.
| Status | reason_code | Meaning |
|---|---|---|
| 400 | bad_request | Malformed request (reason_code=bad_request). |
| 401 | unauthorized | Missing/invalid API key (reason_code=unauthorized). |
| 402 | quota_exceeded | Monthly quota exhausted (reason_code=quota_exceeded). |
| 403 | surface_not_in_plan, account_suspended | Account or plan is not permitted to use this route. |
| 404 | not_found | Identifier resolves to nothing (reason_code=not_found). |
| 409 | snapshot_expired | A screen call pinned a snapshot that a newer one replaced. Run the screen again. |
| 429 | rate_limited, concurrency_limited | Rate or concurrency limit exceeded. |
| 503 | snapshot_unavailable | No 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
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/search | Search securities | search-stocks | Route page |
| GET | https://mcp.dalalos.in/v1/screen | Screen stocks by mechanical filters | screen-stocks | Route page |
| GET | https://mcp.dalalos.in/v1/sectors | List sector and industry aggregates | get-sector-overview | Route page |
| GET | https://mcp.dalalos.in/v1/sectors/{sector} | Get one sector or industry aggregate | get-sector-overview | Route page |
| GET | https://mcp.dalalos.in/v1/indices | List tracked indices | list-indices | Route page |
| GET | https://mcp.dalalos.in/v1/indices/{index}/constituents | List index constituents | list-index-constituents | Route page |
| GET | https://mcp.dalalos.in/v1/indices/{index}/heatmap | Get index constituents with multi-horizon returns | get-market-heatmap | Route page |
| GET | https://mcp.dalalos.in/v1/presets | List preset screens | list-preset-screens | Route page |
| GET | https://mcp.dalalos.in/v1/presets/{name} | Run a preset screen | run-preset-screen | Route page |
| GET | https://mcp.dalalos.in/v1/glossary | Get the plain-words glossary | get-glossary | Route page |
Quotes & prices
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/quotes | Get batch quotes | get-batch-quotes | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/quote | Get the latest end-of-day quote | get-stock-quote | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/price-history | Get historical OHLCV bars | get-price-history | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/returns | Get mechanical return statistics | get-returns | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/delivery-trends | Get delivery trends | get-delivery-trends | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/technical-indicators | Get technical indicators | get-technical-indicators | Route page |
| GET | https://mcp.dalalos.in/v1/security-history/{symbol} | Get daily bhavcopy history for any series | get-security-history | Route page |
| GET | https://mcp.dalalos.in/v1/stock-vs-index/{symbol} | Get one stock's return against an index | get-stock-vs-index | Route page |
Financials & ratios
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/stocks/{q}/financials | Get financial statements and ratios | get-financials | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/financial-trends | Get financial trends | get-financial-trends | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/profile | Get a company profile | get-company-profile | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/brsr | Get BRSR filing data | get-brsr | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/valuation-history | Get valuation history | get-valuation-history | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/report | Get a company report | get-company-report | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/operating-metrics | Get operating KPI history | get-company-operating-metrics | Route page |
Peer comparison
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/stocks/{q}/peers | Compare company peers | get-peer-comparison | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/relevant-peers | Get purpose-specific relevant peers | get-relevant-peers | Route page |
Ownership & risk
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/stocks/{q}/shareholding | Get shareholding data | get-shareholding | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/pledge-trend | Get promoter pledge trends | get-pledge-trend | Route page |
| GET | https://mcp.dalalos.in/v1/insider-trades | Get insider trades (SEBI PIT) | get-insider-trades | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/exposures | Get reviewed macro-factor exposures | get-company-exposures | Route page |
Corporate actions & events
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/stocks/{q}/dividends | Get dividend disclosures | get-dividends | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/corporate-actions | Get corporate actions | get-corporate-actions | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/events | Get corporate events and filings | get-stock-events | Route page |
| GET | https://mcp.dalalos.in/v1/results-calendar | Get upcoming results | get-upcoming-results | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/filings/{news_id}/extract | Extract a filing | get-filing-extract | Route page |
| GET | https://mcp.dalalos.in/v1/calendar | Get the market event calendar | get-market-calendar | Route page |
| GET | https://mcp.dalalos.in/v1/ipos | Get IPO calendar data | get-ipos | Route page |
| GET | https://mcp.dalalos.in/v1/buckets | List announcement buckets | list-announcement-buckets | Route page |
| GET | https://mcp.dalalos.in/v1/buckets/{bucket} | Get one announcement bucket | get-announcement-bucket | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/documents | Get company documents by type | get-company-documents | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/disclosure-search | Search a company's past filings | search-company-disclosures | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/filings/{news_id}/context | Get filing event context | get-event-context | Route page |
Market context
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/fii-dii | Get FII/DII flow | get-market-fii-dii-flow | Route page |
| GET | https://mcp.dalalos.in/v1/fii-dii/sectors | Get sector FII flow | get-sector-fii-flow | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/fii-activity | Get security FII activity | get-fii-activity | Route page |
| GET | https://mcp.dalalos.in/v1/index-valuations | List index valuations | list-index-valuations | Route page |
| GET | https://mcp.dalalos.in/v1/index-valuations/{index} | Get one index valuation | get-index-valuation | Route page |
| GET | https://mcp.dalalos.in/v1/india-vix | Get India VIX data | get-india-vix | Route page |
| GET | https://mcp.dalalos.in/v1/market-breadth | Get market breadth | get-market-breadth | Route page |
| GET | https://mcp.dalalos.in/v1/fo-participant-activity | Get F&O participant activity | get-fo-participant-activity | Route page |
| GET | https://mcp.dalalos.in/v1/macro/indicators | Get macro indicators | get-macro-indicators | Route page |
| GET | https://mcp.dalalos.in/v1/macro/fx-rates | Get FX reference rates | get-fx-reference-rates | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/bulk-block-deals | Get bulk and block deals | get-bulk-block-deals | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/derivatives-positioning | Get derivatives positioning | get-derivatives-positioning | Route page |
| GET | https://mcp.dalalos.in/v1/fo-ban-list | Get the F&O securities-in-ban list | get-fno-ban-list | Route page |
| GET | https://mcp.dalalos.in/v1/fpi/sectors | Get sector-wise FPI investment | get-sector-fpi-investment | Route page |
| GET | https://mcp.dalalos.in/v1/market-fii-dii-flow | Get market-wide FII/DII flow | get-market-fii-dii-flow | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/fii-flow | Get per-stock FII flow | get-stock-fii-flow | Route page |
| GET | https://mcp.dalalos.in/v1/top-movers | Get top gainers, losers and most active | get-top-movers | Route page |
| GET | https://mcp.dalalos.in/v1/market-ranking | Rank securities on one day | get-market-ranking | Route page |
| GET | https://mcp.dalalos.in/v1/market-cap | Get NSE market capitalisation history | get-market-cap-history | Route page |
| GET | https://mcp.dalalos.in/v1/price-band-hits | Get securities that hit their price band | get-price-band-hits | Route page |
| GET | https://mcp.dalalos.in/v1/compare-indices | Compare indices over one window | compare-indices | Route page |
| GET | https://mcp.dalalos.in/v1/stocks/{q}/macro-exposures | Get company macro exposure evidence | get-company-macro-exposures | Route page |
System
| Method | API URL | Purpose | MCP tool | Route page |
|---|---|---|---|---|
| GET | https://mcp.dalalos.in/v1/freshness | Get data freshness | get-data-freshness | Route 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.