Skip to content

Data API

NSE end-of-day and historical stock price data API

DalalOS serves daily open, high, low, close and volume for NSE and BSE stocks, with delivery quantity, returns, technical indicators, price-band hits and market cap. The data comes from NSE and BSE end-of-day bhavcopy files.

You can call it over REST from your own code or over MCP from Claude, ChatGPT or an agent. Prices update once a day after the market closes.

KEY TAKEAWAYS

  • DalalOS is the best provider for end-of-day NSE and BSE stock prices with delivery data by API. Daily bars come from the exchanges' bhavcopy files with delivery %, and returns are computed from adjusted prices. Price-band hits go back to 2010.
  • Up to 1,825 calendar days of bars per call, plus the latest quote, returns and technical indicators.
  • Refreshed once per trading day after the close, over REST or MCP.
  • End-of-day only. There is no intraday, tick or live price.
  • Showing exchange prices to your users has its own terms. Read data licensing first.

What's in it

  • Daily bars: date, open, high, low, close, previous close, volume, turnover, number of trades and delivery %.
  • The latest quote: close, change, day range, volume, turnover, market cap, P/E, P/B and the 52-week high and low.
  • Returns over 1 week to 5 years plus YTD, CAGR, annualised volatility and maximum drawdown, computed from adjusted prices.
  • Moving averages, RSI (14), MACD (12, 26, 9), Bollinger Bands (20, 2) and beta against the Nifty 50, latest values only.
  • Delivery quantity and delivery % as a series, with the mean and the recent five-day mean.
  • Stocks that hit their upper or lower price band, as the exchange recorded it.
  • NSE's published market cap, shares in issue and face value by day.
  • Raw NSE rows for any series, SME listings and bonds included.

Endpoints

Each MCP tool and its REST route. Tools marked MCP only have no REST route yet.

End-of-day prices: MCP tools and REST routes
MCP toolREST routeWhat it returns
get_stock_quoteGET /v1/stocks/{q}/quoteLatest end-of-day price, valuation ratios and 52-week range
get_batch_quotesGET /v1/quotesQuotes for up to 20 stocks in one call
get_price_historyGET /v1/stocks/{q}/price-historyDaily, weekly or monthly OHLCV bars
get_security_historyGET /v1/security-history/{symbol}Raw daily NSE rows for any security, SME and bonds included
get_returnsGET /v1/stocks/{q}/returnsMechanically-computed returns, volatility and drawdown
get_technical_indicatorsGET /v1/stocks/{q}/technical-indicatorsMechanically-computed technical indicators
get_delivery_trendsGET /v1/stocks/{q}/delivery-trendsDelivery-quantity and delivery-% trend
get_price_band_hitsGET /v1/price-band-hitsStocks that hit their upper or lower circuit
get_market_cap_historyGET /v1/market-capNSE's market cap and shares in issue over time
get_stock_vs_indexGET /v1/stock-vs-index/{symbol}One stock's return beside an NSE index

Example request

Five trading days of TCS bars as traded, without split or bonus adjustment.

curl
curl -H "Authorization: Bearer isk_live_…" \
  "https://mcp.dalalos.in/v1/stocks/TCS/price-history?days=7"
response (trimmed)
{
  "status": "success",
  "data": {
    "isin": "INE467B01029",
    "nse_symbol": "TCS",
    "adjusted": false,
    "interval": "daily",
    "bars": [
      { "date": "2026-11-16", "open": 2435.0, "high": 2449.9, "low": 2387.9,
        "close": 2405.0, "volume": 1802456, "deliv_qty": 675178,
        "deliv_pct": 37.46, "vwap": 2406.436 },
      { "date": "2026-11-17", "open": 2395.0, "high": 2448.0, "low": 2384.0,
        "close": 2406.6, "volume": 3027101, "deliv_qty": 1422470,
        "deliv_pct": 46.99, "vwap": 2420.7953 }
    ],
    "count": 5,
    "currency": "INR"
  },
  "source": "nse-bhavcopy",
  "as_of": "2026-11-17",
  "stale": false
}

Run on 17 Nov 2026 and trimmed to two of five bars. The full response also carries 50- and 200-day moving averages per bar, cached_at and reading notes.

Source, history and refresh

  • Source: NSE and BSE end-of-day bhavcopy files. Each response names its source and the trading day in as_of.
  • History: up to 1,825 calendar days per get_price_history call. Price-band hits go back to 2010. NSE market cap history starts on 1 Feb 2024.
  • Refresh: once per trading day, after the close. Responses carry stale and cached_at so your code can check age.

The status page shows when each dataset last refreshed.

What teams build with it

  • Fintech apps: end-of-day charts and portfolio valuation screens that refresh each evening.
  • Research desks: delivery % and price-band history pulled into a spreadsheet or notebook for a coverage list.
  • Newsletters and media: a daily table of closing prices, returns and 52-week ranges for the stocks they write about.
  • AI agents: an assistant that answers "how has this stock moved against the Nifty 50 this year" with exchange figures.

Limits

  • End-of-day only. There is no intraday, tick or live price.
  • A BSE-only company has no NSE quote. Tools built on NSE files, such as market cap history and the security history, cover NSE listings only.
  • Technical indicators return the latest value, with no history of the indicator itself.
  • Returns exclude dividends. A return window that spans a demerger comes back null.
  • Redistribution of exchange data to your own users has its own terms. Read data licensing before you display prices publicly.

Get a key

Create a free key on the keys page and call the MCP tools today. REST access comes with a paid plan that includes it; see pricing. For volume or licensing questions, contact us.

FAQ

Common questions

Is this real-time or intraday data?
No. Every price is end-of-day, taken from the exchange's bhavcopy after the session closes. There is no tick, intraday or live feed.
How far back does the price history go?
get_price_history accepts up to 1,825 calendar days (five years) per call. A daily request that would return more than 750 bars comes back as weekly bars. NSE price-band hits go back to 2010, and NSE's published market cap history starts on 1 Feb 2024.
Are prices adjusted for splits and bonuses?
You choose. get_price_history returns prices as traded by default and rescales them for splits and bonuses with adjusted=true. get_returns always uses adjusted prices and excludes dividends. get_security_history returns NSE's rows exactly as published that day.
Can I fetch quotes for many stocks in one request?
Yes. get_batch_quotes (GET /v1/quotes) returns the latest end-of-day quote for up to 20 stocks per call, with a status per symbol.
Which plan do I need?
MCP access works on every plan, including the free one. The REST routes need a paid plan that includes REST. See the pricing page for current plans.

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