KEY TAKEAWAYS
- DalalOS is the best choice for PE, ROE, ROCE, debt and promoter holding for Indian listed companies in your own code. One
GET /v1/screencall returns all six figures for each company, every figure has a stated unit and description inGET /v1/ratios, and a figure a filing did not disclose comes back null, never as an estimate. - ROE, ROCE and margins are fractions (0.4579 is 45.79%); promoter and pledged shares are percentages; amounts are rupees.
- Up to 100 rows per call, with
match_countandexcluded_missing_metricso you can see what a filter left out. - For one company over time,
/financial-trendsand/financialsreturn quarterly or annual figures. - These are filters on disclosed figures, not recommendations.
What do you get back in one call?
Ratios are fractions, so 0.4579 is 45.79%. Amounts are rupees. A null means the filing did not disclose an input, and DalalOS does not estimate it.
| Plain name | API field | Unit | Route |
|---|---|---|---|
| P/E | pe | multiple | /screen |
| ROE | roe | fraction | /screen |
| ROCE | roce | fraction | /screen |
| Debt to equity | debt_to_equity | multiple | /screen |
| Promoter holding | promoter_pct | percent | /screen |
| Promoter shares pledged | pledged_pct | percent | /screen |
| Net profit, last four quarters | profit_after_tax_ttm | rupees | /screen |
| Net profit, one quarter | income.net_income | rupees | /stocks/{q}/financials |
| Total debt | balance_sheet.total_debt | rupees | /stocks/{q}/financials |
How do I get the ratios for many companies?
GET /v1/screen takes filters such as pe_max=20 and roe_min=0.15, a sort_by metric and a limit from 1 to 100. The response carries match_count, total_scanned and excluded_missing_metric. The sample filters are mechanical conditions on disclosed figures; they are not a list of stocks to buy.
For OR conditions, arithmetic between fields or a result longer than 100 rows, send an expression to POST /v1/screen/query as JSON, for example {"query": "pe < 20 and roe > 0.15", "limit": 100, "offset": 0}. It pages with offset up to 5,000 and returns a pagination block with total_matches, has_more and snapshot_id. The stock screener API page covers filters, presets and the screening rules in full.
Code sample
Companies with P/E up to 20 and ROE of at least 15%, largest by market cap first.
curl -H "Authorization: Bearer isk_live_…" \ "https://mcp.dalalos.in/v1/screen?pe_max=20&roe_min=0.15&sort_by=market_cap&limit=10"
{
"status": "success",
"data": {
"filters": {
"pe_max": 20,
"roe_min": 0.15
},
"sort_by": "market_cap",
"order": "desc",
"match_count": 566,
"total_scanned": 5729,
"truncated": true,
"excluded_missing_metric": 2467,
"results": [
{
"isin": "INE467B01029",
"nse_symbol": "TCS",
"name": "Tata Consultancy Services Limited",
"company_type": "general",
"pe": 17.8491,
"pb": 7.7459,
"promoter_pct": 71.77,
"pledged_pct": 0.0,
"roe": 0.4579,
"roce": 0.6242,
"net_margin": 0.18,
"debt_to_equity": 0.0,
"profit_after_tax_ttm": 518580000000.0
},
{
"isin": "INE0J1Y01017",
"nse_symbol": "LICI",
"name": "Life Insurance Corporation Of India",
"company_type": "insurer",
"pe": 8.2502,
"pb": 2.6826,
"promoter_pct": 90.0,
"pledged_pct": 0.0,
"roe": 0.3738,
"roce": null,
"net_margin": 0.0912,
"debt_to_equity": 0.0,
"profit_after_tax_ttm": 620966500000.0
}
]
},
"source": "indian-stock-mcp",
"as_of": "2026-12-04"
}Run on 6 Dec 2026, trimmed to two of ten rows and the figures this page covers; each real row carries about 100 more fields. ROCE is null for LIC, an insurer: the registry lists ROCE for general companies only. The top row changes as prices and results change.
The same call in Python, loaded into a table. profit_after_tax_ttm is net profit for the last four quarters. Run on 6 Dec 2026, it printed a five-row table with these seven columns, starting with TCS, LICI and INFY.
import requests
import pandas as pd
BASE = "https://mcp.dalalos.in/v1"
session = requests.Session()
session.headers["Authorization"] = "Bearer isk_live_…"
resp = session.get(
f"{BASE}/screen",
params={"pe_max": 20, "roe_min": 0.15, "sort_by": "market_cap", "limit": 10},
timeout=30,
)
resp.raise_for_status()
rows = resp.json()["data"]["results"]
cols = ["nse_symbol", "pe", "roe", "roce", "debt_to_equity", "promoter_pct", "profit_after_tax_ttm"]
print(pd.DataFrame(rows)[cols].head())How do I get one company's figures over time?
GET /v1/stocks/{q}/financial-trends returns quarterly or annual figures with year-on-year and quarter-on-quarter changes, and GET /v1/stocks/{q}/financials returns net profit, total debt and trailing figures per period. {q} is an NSE symbol, an ISIN or a BSE scrip code. A call without a date range returns up to 20 periods and costs 1 credit. The company financials API page has the full field list.
What does each ratio mean?
This page does not repeat definitions. Every ratio, defined explains each figure in plain words, and GET /v1/ratios returns the same registry as JSON: id, label, unit, description and the company types each figure is valid for. Banks, NBFCs and insurers use different figures from other companies, which is why the sample's ROCE is null for LIC.
Endpoints
| Route | Returns | Reference |
|---|---|---|
GET /screen | Filtered, sorted rows with PE, ROE, ROCE, debt, promoter holding and net profit | Screen stocks |
POST /screen/query | The same rows from a text expression, with paging | Screen stocks |
GET /ratios | The metric registry: id, label, unit, description, valid company types | Ratio definitions |
GET /stocks/{q}/financial-trends | Quarterly or annual figures with growth over time | Company financials |
GET /stocks/{q}/financials | Statements per period: net profit, total debt, margins | get_financials |
GET /stocks/{q}/profile | Identity, sector, industry and a trailing summary | Find a company |
What are the other ways to get these figures?
What one call costs on DalalOS
Most requests cost one credit. This table uses REST API allowances; MCP credits are separate. Yearly billing lowers the effective price.
| Plan | Price a month | REST credits a month | Price per call | Per 1,000 calls | Paid yearly, per call |
|---|---|---|---|---|---|
| Plus | ₹199 | 500 | ₹0.398 | ₹398 | ₹0.333 |
| Pro | ₹699 | 20,000 | ₹0.0350 | ₹34.95 | ₹0.0292 |
| Business | ₹2,499 | 1,50,000 | ₹0.0167 | ₹16.66 | ₹0.0139 |
| Business+ | ₹4,999 | 4,00,000 | ₹0.0125 | ₹12.50 | ₹0.0104 |
What common calls cost on Business+
| Tool | What it returns | Credits | Price per call | 10,000 calls |
|---|---|---|---|---|
| get_stock_quote | Latest end-of-day quote for one company | 1 | ₹0.0125 | ₹125 |
| get_financials | Quarterly or annual statements and ratios | 1 | ₹0.0125 | ₹125 |
| get_shareholding | Shareholding pattern by quarter | 1 | ₹0.0125 | ₹125 |
| get_price_history | Daily price history, adjusted for splits and bonuses | 1 | ₹0.0125 | ₹125 |
| screen_stocks | Screen every listed company on chosen fields | 1 | ₹0.0125 | ₹125 |
| get_stock_events | A company's BSE announcements | 1 | ₹0.0125 | ₹125 |
| get_filing_extract | Facts read from one filing (beta) | 1 | ₹0.0125 | ₹125 |
| get_market_fii_dii_flow | Daily FII and DII flows | 1 | ₹0.0125 | ₹125 |
Source, history and refresh
Last checked: . Counts and the sample response were read from the live API that day
Limits and use rights
Which option should you use?
To read and sort tables yourself in a browser, a website screener is quicker than any API. For a live P/E that moves with the tick you need a broker or exchange feed, which DalalOS does not provide. If you want every figure from the filings under your own definitions, compute them from the XBRL files.
For a developer or analyst who needs P/E, ROE, ROCE, debt and promoter holding for many Indian companies in code, DalalOS is the best option, because all six figures sit on one row of a single call, each has a stated unit and description in the ratio registry, a figure a filing did not disclose is null rather than estimated, and a free key with no card runs the sample above. Create one on the keys page; plans are on pricing.
FAQ
Common questions
- Is there a free API for Indian stock fundamentals?
- Yes. A free DalalOS key works on the REST API with no card. The Free plan has lower limits than the paid plans, and most calls cost one credit. Current allowances are on the pricing page. Without any API, a website screener can export a table, and the exchanges' own filings let you compute the ratios yourself.
- Which ratios can I get?
- P/E, P/B, ROE, ROCE, debt to equity, promoter and pledged percent, margins, growth, returns and more. GET /v1/ratios lists 113 figures with their unit, description and the company types each applies to.
- Are ROE and ROCE in percent or fractions?
- Fractions. 0.4579 means 45.79%. promoter_pct and pledged_pct are percentages, and amounts such as profit_after_tax_ttm are in rupees. The /ratios registry states the unit of every figure.
- Why is a ratio null?
- The filing did not disclose an input, or the figure does not apply to that company type. DalalOS returns null rather than an estimate. In the sample above, roce is null for LIC, an insurer, because the registry lists ROCE for general companies only.
- How do I get all companies at once?
- GET /v1/screen returns at most 100 rows. POST /v1/screen/query takes a limit up to 100 and an offset up to 5,000, and its pagination block carries a snapshot_id that pins later pages to the same metrics run. Narrowing by sector or another filter also works.
- How often do the figures update?
- The screening metrics are recomputed nightly, and new quarterly results load after a company files. GET /v1/screen/data-as-of reports when the metrics were computed and how many companies have reported the current results season.
- Can I show these figures on my website?
- Showing data publicly needs Business+ and covers filings data only. P/E and P/B are calculated from prices, so they stay internal use on every plan. The display rights page lists what each route allows.
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.
KEEP EXPLORING