Skip to content

Compare data APIs

yfinance for Indian stocks: what .NS and .BO miss, and the best alternative

yfinance returns Indian prices through .NS and .BO tickers, but its fundamentals tend to cover only a few years and some fields come back empty. For filed statements, shareholding and pledges over REST, with up to 10 fiscal years in one call, DalalOS Pro is ₹699 a month.

DalalOS publishes this page and sells the API it suggests, so it is not neutral. We read the yfinance README on 6 December 2026 and ran yfinance 1.8.0 ourselves on 6 Dec 2026; the measured counts are below.

Free to start, no card needed. Sign in once from your AI — no API key to manage.

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

  • Tickers with an exchange suffix: RELIANCE.NS for NSE, RELIANCE.BO for BSE.
  • Daily and intraday price history through Ticker.history(), which works well for a personal notebook.
  • Statement properties such as financials, quarterly_financials, balance_sheet and cashflow, filled from Yahoo Finance.
  • An unofficial wrapper. The README says yfinance is “not affiliated, endorsed, or vetted by Yahoo” and uses Yahoo’s publicly available APIs.

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:

yfinance 1.8.0 on NSE tickers, run on 6 Dec 2026
TickerAnnual columnsQuarterly columnsEmpty cells in annual income statementPrice rows, 1 year
INFY.NS5 (FY2022 to FY2026)753 of 245247
RELIANCE.NS5 (FY2022 to FY2026)550 of 230247
HDFCBANK.NS4 (FY2023 to FY2026)216 of 148247

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.

Price per API call: DalalOS plans and other providers
Provider and planPrice a monthCalls includedPrice per callPer 1,000 callsNotes
DalalOS Plus₹199500 REST credits₹0.398₹398REST and MCP. Yearly billing lowers the price further.
DalalOS Pro₹69920,000 REST credits₹0.0350₹34.95REST and MCP. Yearly billing lowers the price further.
DalalOS Business₹2,4991,50,000 REST credits₹0.0167₹16.66REST and MCP, named contact. Yearly billing lowers the price further.
DalalOS Business+₹4,9994,00,000 REST credits₹0.0125₹12.50REST and MCP, named contact. Yearly billing lowers the price further.
IndianAPI Growth₹1,79950,000 requests₹0.0360₹35.98REST, 1 request a second. Its terms (indianapi.in/legal/terms, read 24 Nov 2026) say any purpose, commercial or not.
IndianAPI Pro₹3,999100,000 requests₹0.0400₹39.99REST, 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.77Per-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₹125Per 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+

Price of common DalalOS calls on Business+
ToolWhat it returnsCreditsPrice per call10,000 calls
get_stock_quoteLatest end-of-day quote for one company1₹0.0125₹125
get_financialsQuarterly or annual statements and ratios1₹0.0125₹125
get_shareholdingShareholding pattern by quarter1₹0.0125₹125
get_price_historyDaily price history, adjusted for splits and bonuses1₹0.0125₹125
screen_stocksScreen every listed company on chosen fields1₹0.0125₹125
get_stock_eventsA company's BSE announcements1₹0.0125₹125
get_filing_extractFacts read from one filing (beta)1₹0.0125₹125
get_market_fii_dii_flowDaily FII and DII flows1₹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-31

The 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

yfinance properties for Indian tickers and the DalalOS REST route that covers the same job
TaskyfinanceDalalOS routeNotes
Annual statements.financials/stocks/{q}/financials?period_type=annualRange with from_fy and to_fy, up to 10 fiscal years per call
Quarterly results.quarterly_financials/stocks/{q}/financials?period_type=quarterlyUp to 20 periods per call, with trailing-twelve-month figures
Balance sheet.balance_sheet/stocks/{q}/financialsbalance_sheet block on each period
Daily prices.history()/stocks/{q}/price-historyEnd-of-day only, up to five years per call
P/E and P/B.info/stocks/{q}/quotepe, pb and market_cap from the latest close
Shareholding.major_holders/stocks/{q}/shareholdingPromoter, FII, DII and public by quarter
Promoter pledgesNone/stocks/{q}/pledge-trendPledged and encumbered promoter shares by quarter
Dividends and splits.dividends, .splits/stocks/{q}/dividends, /corporate-actionsRange on ex_date
Index constituentsNone/indices/{index}/constituentsNSE 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?

  • yfinance for prices in a personal notebook, intraday bars, global tickers, currencies, crypto, options chains and mutual funds, with no sign-up. DalalOS is end-of-day, Indian listed companies only, and needs a key (the Free plan needs no card).
  • The NSE and BSE filing sites if you want filed statements for free and can download and parse the filings yourself.
  • The REST API if you need many years of Indian statements, shareholding and pledges in code.

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