KEY TAKEAWAYS
- DalalOS is the best choice for multi-year financial statements for Indian listed companies in Python, when yfinance comes back short. One call returns up to 10 fiscal years of statements read from BSE and NSE XBRL filings, each period with its source filing link, and the same key returns shareholding, pledges and prices.
- yfinance works for Indian prices with .NS (NSE) and .BO (BSE) tickers.
- Its fundamentals for Indian companies are short and patchy, because it can only return what Yahoo Finance serves.
- The yfinance README says it is not affiliated with Yahoo and is meant for research and educational use.
- DalalOS is end-of-day only: keep yfinance or a broker API for intraday bars and global tickers.
What yfinance gives you for Indian stocks
Where the gaps show
For Indian companies, the statement frames are where people get stuck. How much you get changes by ticker and over time, so measure it on your own list. This is the check, and what it returned:
import yfinance as yf
infy = yf.Ticker("INFY.NS") # .BO for the BSE listing
annual = infy.financials # income statement, one column per year
quarterly = infy.quarterly_financials
balance = infy.balance_sheet
prices = infy.history(period="1y")
# How much history did you get for this ticker today?
print(len(annual.columns), "annual columns")
print(len(quarterly.columns), "quarterly columns")
print(annual.isna().sum().sum(), "empty cells")Run on 6 Dec 2026 with yfinance 1.8.0 (uv run --with yfinance python), the script printed 5 annual columns, 7 quarterly columns and 53 empty cells for INFY.NS. We repeated the counts on two more tickers:
| Ticker | Annual columns | Quarterly columns | Empty cells in annual income statement | Price rows, 1 year |
|---|---|---|---|---|
| INFY.NS | 5 (FY2022 to FY2026) | 7 | 53 of 245 | 247 |
| RELIANCE.NS | 5 (FY2022 to FY2026) | 5 | 50 of 230 | 247 |
| HDFCBANK.NS | 4 (FY2023 to FY2026) | 2 | 16 of 148 | 247 |
Prices worked on every ticker. The statements gave four to five fiscal years and a few quarters, and the income statement had empty cells. If that is enough for your model, yfinance needs no key and no sign-up. If you need more years, the REST call below returned 8 fiscal years for INFY (FY19 to FY26) from BSE XBRL filings, each with a link to the filing, and meta.history.earliest_available says where a company's records start (2019-03-31 for INFY).
Is yfinance allowed for products?
The yfinance README says the library is “intended for research and educational purposes”, reminds users that the Yahoo Finance API is meant for personal use, and links to Yahoo’s terms for your rights to the data. For a personal notebook it works. For a product, read Yahoo’s terms first. This page is not legal advice.
Price per call, compared
On DalalOS Business+ (₹4,999 a month for 4,00,000 REST API credits), one credit costs ₹0.0125, or ₹12.50 per 1,000 calls. Paid yearly it is ₹0.0104. Most API requests cost one credit; larger requests may cost more. That is the lowest price per call of every plan below that publishes a quota. The lowest from another provider, EODHD Equity Analyst, costs ₹0.0188 per call: 1.5× as much.
| Provider and plan | Price a month | Calls included | Price per call | Per 1,000 calls | Notes |
|---|---|---|---|---|---|
| DalalOS Plus | ₹199 | 500 REST credits | ₹0.398 | ₹398 | REST and MCP. Yearly billing lowers the price further. |
| DalalOS Pro | ₹699 | 20,000 REST credits | ₹0.0350 | ₹34.95 | REST and MCP. Yearly billing lowers the price further. |
| DalalOS Business | ₹2,499 | 1,50,000 REST credits | ₹0.0167 | ₹16.66 | REST and MCP, named contact. Yearly billing lowers the price further. |
| DalalOS Business+ | ₹4,999 | 4,00,000 REST credits | ₹0.0125 | ₹12.50 | REST and MCP, named contact. Yearly billing lowers the price further. |
| IndianAPI Growth | ₹1,799 | 50,000 requests | ₹0.0360 | ₹35.98 | REST, 1 request a second. Its terms (indianapi.in/legal/terms, read 24 Nov 2026) say any purpose, commercial or not. |
| IndianAPI Pro | ₹3,999 | 100,000 requests | ₹0.0400 | ₹39.99 | REST, 10 requests a second. |
| EODHD Equity Analyst | $59.99 (about ₹5,631) | 100,000 calls a day; a fundamentals request costs 10 | ₹0.0188 | ₹18.77 | Per-call figure is per fundamentals request at full daily use. An end-of-day price call costs 1, a tenth of that. Personal plan; internal company use is a separate $399 plan. |
| EODHD Internal Use (commercial) | $399 (about ₹37,450) | 100,000 calls a day; a fundamentals request costs 10 | ₹0.125 | ₹125 | Per fundamentals request at full daily use. Data may only be used inside your company. |
DalalOS prices are read from our live plan catalog and include taxes; see pricing. Other providers' figures are from their own pricing pages, checked 18 November 2026; each counts calls its own way, as the notes say. Prices change, so check the vendor before you buy.
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 |
Before and after
The yfinance version is above. The same job with the DalalOS REST API and a key from your dashboard:
import os, requests
import pandas as pd
API_BASE = "https://mcp.dalalos.in/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['DALALOS_API_KEY']}"} # isk_live_…
def get(path, **params):
r = requests.get(f"{API_BASE}{path}", params=params, headers=HEADERS, timeout=30)
r.raise_for_status()
return r.json()
# Annual statements for FY2018-19 to FY2025-26 in one call
fin = get("/stocks/INFY/financials", period_type="annual", from_fy=2019, to_fy=2026)
annual = pd.DataFrame([
{
"year": p["fiscal_label"],
"revenue": p["income"]["revenue"],
"net_income_owners": p["income"]["net_income_owners"],
"source": p["source"],
"filing": p["source_document_url"],
}
for p in fin["data"]["periods"]
])
print(len(annual), "annual periods")
print(fin.get("meta", {}).get("history", {}).get("earliest_available"))
# Daily prices for the last year, end-of-day
hist = get("/stocks/INFY/price-history", days=365)
prices = pd.DataFrame(hist["data"]["bars"])Run on 6 Dec 2026 with uv run --with requests --with pandas python, it printed:
8 annual periods
2019-03-31The range in this example spans 8 fiscal years, so it costs 7 credits when we hold all of them (the call above reported 7); we charge only for years held, and a call with no range costs one credit. The history and credits page has the full rule. Quarterly filings in India carry no cash-flow statement, so cash flow comes from annual periods.
yfinance call and the matching DalalOS route
| Task | yfinance | DalalOS route | Notes |
|---|---|---|---|
| Annual statements | .financials | /stocks/{q}/financials?period_type=annual | Range with from_fy and to_fy, up to 10 fiscal years per call |
| Quarterly results | .quarterly_financials | /stocks/{q}/financials?period_type=quarterly | Up to 20 periods per call, with trailing-twelve-month figures |
| Balance sheet | .balance_sheet | /stocks/{q}/financials | balance_sheet block on each period |
| Daily prices | .history() | /stocks/{q}/price-history | End-of-day only, up to five years per call |
| P/E and P/B | .info | /stocks/{q}/quote | pe, pb and market_cap from the latest close |
| Shareholding | .major_holders | /stocks/{q}/shareholding | Promoter, FII, DII and public by quarter |
| Promoter pledges | None | /stocks/{q}/pledge-trend | Pledged and encumbered promoter shares by quarter |
| Dividends and splits | .dividends, .splits | /stocks/{q}/dividends, /corporate-actions | Range on ex_date |
| Index constituents | None | /indices/{index}/constituents | NSE indices |
Routes take an NSE symbol, ISIN or BSE code, with no suffix. Field coverage is on the company financials page, and every route is in the REST reference.
Which option should you use?
For an analyst who needs multi-year Indian financial statements in Python, DalalOS is the best option, because one call returned 8 fiscal years of INFY statements in our run, every period links to its BSE or NSE filing, it adds quarterly shareholding and promoter pledges that yfinance does not have for India, and the price per 1,000 calls is published in the table above.
Keep yfinance for prices if you like
Many people pair the two: yfinance for prices in a personal notebook, DalalOS for statements, shareholding and pledges. If you take prices from DalalOS too, they are for your own analysis and internal tools on every plan, as with any exchange price data.
Sources
The yfinance README (disclaimer and Yahoo terms links). DalalOS route names and fields come from its REST reference and the Python quickstart. Nothing here is investment advice.
Internal use is allowed on every plan. Showing data publicly needs Business+ and covers filings data only. What you can display.
Last checked: . yfinance README read and yfinance 1.8.0 run on this date
FAQ
Common questions
- Does yfinance work for Indian stocks?
- Yes for prices: add .NS for the NSE listing or .BO for the BSE listing, as in INFY.NS. Fundamentals for Indian tickers are thinner, and some fields come back empty.
- Why are yfinance fundamentals missing for Indian stocks?
- yfinance reads what Yahoo Finance returns. For Indian companies, Yahoo's statements tend to cover only a few years and leave some line items blank, so yfinance cannot return more than that.
- How many years of fundamentals does yfinance give for Indian stocks?
- It depends on the ticker and on what Yahoo serves that day. On 6 Dec 2026, yfinance 1.8.0 returned 5 annual columns for INFY.NS and RELIANCE.NS and 4 for HDFCBANK.NS, with 16 to 53 empty cells in the income statement. Run the column count in the code above on the tickers you need.
- What is a good free alternative?
- DalalOS Free has 50 REST credits a month and 3 years of history, with no card. The NSE and BSE filing sites are free too, but you have to download and parse the filings yourself.
- How do I get many years of Indian company financials in Python?
- Call /stocks/{q}/financials with from_fy and to_fy. One call can span up to 10 fiscal years and is charged only for the years we hold: the first 2 are in one credit and each further year adds one. Annual results go back to FY2018-19 for about 1,500 companies and to FY2021-22 for about 3,900 of the 5,600 we cover; shareholding goes back to 2018 for about 1,300 and to 2022 for about 4,000. We add older years over time. meta.history.earliest_available says where each company starts.
- Can I use yfinance in a commercial product?
- The yfinance README says the library is for research and educational purposes and that the Yahoo Finance API is for personal use, and it points to Yahoo's terms. Read those terms before you build a product on it. This page is not legal advice.
- Does DalalOS have a Python package?
- No. Use requests or httpx with a bearer key. The Python quickstart has a short client with retries and error handling.
Connect your AI to Indian stock market data
Add DalalOS as a connector and sign in once. Free to start with no card and no waitlist; paid plans from ₹199 a month when you need more.
KEEP EXPLORING