DalalOS: Indian Stock Market Research (NSE/BSE)

v1.0.0
in.dalalos/mcp Checked 2 days ago Published 1 month ago

Filing-grounded Indian stock research (NSE/BSE): financials, ratios, screens.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ping Connection check

Use this only to confirm the DalalOS connection is working. Returns "pong". It does not check how current the data is; get_data_freshness does.

get_filing_extract Filing summary

Use this when the user asks for the contents or a summary of one specific BSE filing of an Indian company, using a news_id from get_stock_events. It may queue processing and use a small daily allowance. Returns the facts extracted from the filing's PDF, each with a verbatim quote, and a summary when those facts support one. `query` is the company's NSE symbol, ISIN or BSE code; `news_id` comes from get_stock_events or get_announcement_bucket. If the filing has not been extracted yet, the call queues it, waits up to about 30 seconds, and otherwise returns `status: "pending"` with `retry_after_…

ParameterTypeDescription
news_id *string
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_filing_extracts Several filing summaries

Use this when the user wants summaries of several filings of one Indian company at once (up to 10 news_ids from get_stock_events). It may queue processing and use allowance. Returns one entry per distinct filing, in the order asked: the extracted facts with quotes, or a status such as `pending`, `not_queued`, `failed` or `skipped` with the reason. `news_ids` takes up to 10 filings of the same company. Its only write: unextracted filings are queued, each using the daily allowance, and the call never waits: it lists the ones it can be asked for again in `pending_news_ids` with one `retry_after_…

ParameterTypeDescription
news_ids *array
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_market_fii_dii_flow FII and DII market flow

Use this when the user asks what FIIs and DIIs have been buying or selling in Indian equities day by day across the whole market. Not for a company's ownership percentage; use get_shareholding. Returns one row per trading day with FII and DII buy, sell and net values in Rs crore for the NSE cash segment. `from_date` and `to_date` are ISO dates; the default is the last 30 days and the longest window is 366 days. For F&O positions by participant use get_fo_participant_activity; for one sector, get_sector_fpi_investment.

ParameterTypeDescription
from_date
segmentstringOnly "cash" is accepted.
to_date

get_stock_fii_flow Stock FII flow (historical)

Use this when the user asks about daily FII transaction flow in one Indian stock in the historical CDSL data, which stops at March 2025. Returns a daily series of FII/FPI buy, sell and net for one stock from CDSL's disclosures, with a 30-day summary. The data covers CDSL only and ends in March 2025, so it is a partial, historical view. `days` (1 to 1825, default 90) is the length of the series, counted back from the latest day of data held for the stock, not from today; `effective_from` and `effective_to` give the dates covered. For current flow use get_market_fii_dii_flow (whole market) or g…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
daysinteger

get_watchlist Show watchlist

Use this when the user asks what is on their DalalOS watchlist, a saved list of stock symbols (not brokerage holdings). Returns the saved symbols, newest first, each with name, sector and market cap where available. The list holds symbols only: no quantities, purchase prices or brokerage holdings. Needs a signed-in DalalOS account.

add_to_watchlist Add to watchlist

Use this when the user asks to add, watch or track Indian stocks in their DalalOS watchlist. Changes only the user's own saved list. `symbols` is a list or one string, and may be a pasted list separated by commas, semicolons, new lines, tabs or pipes (not spaces), up to 200 entries. Each entry may be an NSE symbol, ISIN, BSE code or company name, and is saved only when it identifies one NSE-listed company exactly. A misspelt or partial name is not saved: it comes back in `ambiguous` with the candidates, to confirm with the user. It writes only to the user's own watchlist. Returns `watchlist`…

ParameterTypeDescription
symbols *List of NSE symbols, ISINs, BSE codes or company names, or one pasted string of them. Always send it as `symbols`.

remove_from_watchlist Remove from watchlist

Use this when the user asks to remove stocks from their DalalOS watchlist. Changes only the user's own saved list. `symbols` is a list or one string, and may be a pasted list separated by commas, semicolons, new lines, tabs or pipes, up to 200 entries. Each entry is a symbol as get_watchlist returns it, or the ISIN or BSE code of a company on the list; company names are not matched. To clear the list, pass every symbol get_watchlist returns. It deletes only from the user's own watchlist. Returns `removed` and `not_found`. Needs a signed-in DalalOS account.

ParameterTypeDescription
symbols *List of symbols as get_watchlist returns them (an ISIN or BSE code also works), or one pasted string of them. Always send it as `symbols`.

submit_dalalos_feedback Send DalalOS feedback

Use this when the user asks to report a problem with DalalOS data or tools, or to request a feature, or agrees after you offer to report a likely DalalOS issue. Not for questions about a company; it sends a report to the DalalOS team and does not change any data. Its only write: it saves the report in DalalOS's own store and returns a report ID; it uses no credits. Required: `category`, `summary` (up to 160 characters), `details` (up to 2,000) and `request_id`, a new UUID for each report, reused only to retry the same report. Optional: `related_tool`, `security_identifier` with `security_iden…

ParameterTypeDescription
category *string
details *string
request_id *string
summary *string
as_of_date
expected_value
metric
observed_value
related_tool
security_identifier
security_identifier_type
source_reference

search_stocks Find an Indian stock

Use this when the user names an Indian company, NSE symbol, BSE code or ISIN and you need to identify the listed security before calling another tool. Not for US or other non-Indian stocks. Returns matching securities with ISIN, NSE symbol, BSE code, name, sector and industry. It accepts part of a name, a former name, and everyday names such as SBI or L&T; `resolved_via` says when a match came from a former or everyday name. When nothing matches, the nearest names come back as suggestions with `reason_code: "typo_suggestion"`: confirm one with the user before using it. `limit` is 10 by defaul…

ParameterTypeDescription
query *stringCompany name or part of it, or an NSE symbol, ISIN or BSE code.
limitinteger

get_stock_quote Stock quote (end-of-day)

Use this when the user asks for the price, trading volume, 52-week range, PE or PB of an Indian company listed on NSE or BSE. Prices are end-of-day, not live. Not for non-Indian stocks or live intraday prices. Returns the latest close with open, high, low, volume, turnover, market cap, P/E, P/B, the 52-week high and low, and recent dividends. `query` is an NSE symbol, ISIN or BSE code. `as_of` is the trading day the quote is from. For several stocks use get_batch_quotes; for past prices, get_price_history; for P/E or P/B over time, get_valuation_history.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_batch_quotes Quotes for several stocks

Use this when the user wants end-of-day prices or ratios for several Indian stocks at once (up to 20), for example to line up peers. Returns one item per symbol, each with its own `status`; the fields of get_stock_quote are under `quote`. `symbols` takes up to 20 NSE symbols, ISINs or BSE codes. A symbol that is not found is reported in its own item and does not fail the call. For a table comparing similar companies use get_peer_comparison.

ParameterTypeDescription
symbols *arrayList of up to 20 NSE symbols, ISINs or BSE codes, e.g. ["TCS", "INFY"]. Always send it as `symbols`.

get_financials Company financials

Use this when the user asks how an Indian company listed on NSE or BSE has performed financially: revenue, profit, margins, balance sheet, cash flow or growth, quarterly or annual. Not for non-Indian companies; for a period-by-period growth series use get_financial_trends. Returns the profit and loss, balance sheet and cash flow for each period, with margins, the group's profit and the owners' share of it, a trailing-twelve-month block, and an annual growth summary (year-on-year and 3- and 5-year growth). `period_type` is "quarterly" (default), "annual" or "half_yearly" (what an SME files ins…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
from_dateRange start, inclusive (YYYY-MM-DD), on the record's own date. At most 10 years; clipped to the plan's history (Free 3 years, Plus 5, Pro 10). Not with days/years.
from_fyFiscal year (ending March) the range starts in: 2019 is FY2018-19.
limit
period_typestring
statement_typestring
to_dateEnd of a date range, inclusive (YYYY-MM-DD); default today.
to_fyFiscal year (ending March) the range ends in.

get_company_profile Company profile

Use this when the user asks what an Indian company listed on NSE or BSE is: its sector, industry, market cap and a headline financial summary. Returns the company's identity and classification, its latest end-of-day market figures (price, market cap, P/E, P/B, 52-week range), a summary of the latest quarter and the trailing twelve months, and, where its annual report has been read, a description of the business and its management. For full statements use get_financials; for a sourced report across topics, get_company_report.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_company_report Company report

Use this when the user asks a broad question about an Indian company listed on NSE or BSE ("how is X doing", "should I look at X"): a sourced report on quarterly and annual results, valuation, ownership, pledge, dividends and recent disclosures, no verdict. For one topic use get_financials, get_shareholding or get_stock_events. Returns one report built from DalalOS's stored data: facts with their sources, calculations, the statements those support, recent events, and a `coverage` block naming what is missing. It draws on results, valuation history, returns, ownership and pledge, dividends, co…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code. A company name is not accepted.
daysinteger
detailstring"compact" (default) leaves out older trend periods, quotes and audit hashes; "full" returns everything.
sectionsSection ids to return in full, e.g. quarterly_performance or ownership; the reply lists the valid ids if one is unknown. Cannot be combined with detail=full.

get_peer_comparison Peer comparison

Use this when the user compares an Indian company listed on NSE or BSE with similar companies on valuation, margins, return on capital or debt (PE, PB, ROE, debt-to-equity). For peers chosen by business, with reasons, use get_relevant_peers. Returns a table of up to `limit` companies (default 8, at most 15), the company asked about among them, from the same SEBI industry and of similar size (between one-tenth and ten times its market cap, largest first), with the medians across the table. Columns, on a trailing-twelve-month basis: market cap, P/E, P/B, revenue, net and EBITDA margin, ROE, ROA…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
limitinteger

get_shareholding Shareholding pattern

Use this when the user asks who owns an Indian company listed on NSE or BSE: promoter, FII, DII, mutual fund and public holding percentages by quarter. Not for daily buying or selling; for daily FII/DII flow use get_market_fii_dii_flow or get_stock_fii_flow. Returns the shareholding pattern for each quarter, newest first: promoter, FII, DII and non-promoter percentages with the change from the quarter before, the promoters' pledged shares as a percentage of their own holding and of all shares, and, where available, institutions split by type and the holders named in the filing. `limit` is the…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
from_dateRange start, inclusive (YYYY-MM-DD), on the record's own date. At most 10 years; clipped to the plan's history (Free 3 years, Plus 5, Pro 10). Not with days/years.
from_fyFiscal year (ending March) the range starts in: 2019 is FY2018-19.
limit
to_dateEnd of a date range, inclusive (YYYY-MM-DD); default today.
to_fyFiscal year (ending March) the range ends in.

get_price_history Price history

Use this when the user wants past share prices of an Indian company listed on NSE or BSE over a period, daily, weekly or monthly, for example to chart or compare a move. Returns end-of-day bars (open, high, low, close, volume) with 50- and 200-day averages. `days` (1 to 1825, default 90) counts calendar days back from today. `interval` is "daily", "weekly" or "monthly"; a daily series longer than 750 bars comes back weekly. `adjusted=true` rescales prices for splits and bonuses; the default is prices as traded. For returns over standard periods use get_returns; for bonds, funds and SME listin…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
adjustedboolean
daysinteger
intervalstring

get_valuation_history Valuation history

Use this when the user asks how an Indian stock's PE, PB (price-to-book, banks included), price-to-sales or market cap has changed over time. Returns a series of P/E, P/B, price to sales, market cap and net debt, and for non-financial companies the enterprise-value multiples. Each point uses that day's close and only the results that were public by then. `days` (1 to 1825, default 365) counts back from today; `interval` is "daily", "weekly" or "monthly". P/B is given for banks, NBFCs and insurers; their enterprise-value fields are empty.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
daysinteger
intervalstring

get_returns Stock returns

Use this when the user asks how much an Indian stock has returned over a period (1 week, 1, 3 or 5 years, or its full history), or about its volatility or drawdown. Returns price returns for 1 week, 1, 3 and 6 months, 1, 3 and 5 years, the year to date and the full history, with annualised returns, volatility, the largest fall from a peak, and the 52-week high and low. Returns use prices adjusted for splits and bonuses and do not include dividends. There is no period parameter: for another period use get_price_history or get_stock_vs_index.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_technical_indicators Technical indicators

Use this when the user asks for moving averages, RSI, MACD, Bollinger Bands, beta or circuit-limit data for an Indian stock. Returns the latest values of the moving averages, RSI (14), MACD (12, 26, 9), Bollinger Bands (20, 2) and beta against the Nifty 50, with the stock's circuit-filter band and the days it closed at that band. Latest values only: no history of an indicator and no signals. An indicator without enough history is empty and named in `insufficient_history`.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_dividends Dividend history

Use this when the user asks whether and when an Indian company paid or declared a dividend, or about its dividend yield. Returns each cash dividend with its ex-date, type and amount per share, the total for the last twelve months with the yield and payout ratio on it, and totals by financial year (April to March). `years` (1 to 15, default 5) or a date range sets how far back; 1 credit. The list includes dividends announced with an ex-date still to come. Each amount comes as disclosed and restated to today's share count for any later split or bonus; totals and yields use the restated amounts.…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
from_dateRange start, inclusive (YYYY-MM-DD), on the record's own date. At most 10 years; clipped to the plan's history (Free 3 years, Plus 5, Pro 10). Not with days/years.
to_dateEnd of a date range, inclusive (YYYY-MM-DD); default today.
years

get_brsr BRSR sustainability disclosures

Use this when the user asks about an Indian company's BRSR (Business Responsibility and Sustainability Report) or ESG disclosures. Returns the figures from the company's Business Responsibility and Sustainability Report as filed, by financial year, newest first: emissions, energy, water, waste, workforce and governance. `years` is 1 to 10 (default 3). Only the 1,000 largest listed companies file this report. A figure that is absent was not in the filing, or is not one DalalOS reads; it is not zero. Leave `include_raw` unset: the full filing is not returned here.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
include_rawboolean
yearsinteger

get_bulk_block_deals Bulk and block deals

Use this when the user asks about bulk or block trades in an Indian stock on the NSE. Returns the bulk and block deals NSE disclosed in the stock, newest first: date, client, buy or sell, quantity and price. Each row is one client on one side; NSE does not pair a buyer with a seller. `deal_type` is "bulk" or "block" (default both); `days` is 1 to 1825 (default 90); `limit` is 1 to 500 (default 100). Deals are held from the day DalalOS began collecting them, so older ones may be absent. For trades by promoters and directors use get_insider_trades.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
cursorOpaque page cursor from a previous response's `next_cursor`. Echo it back to continue; page until `has_more` is false and you have the complete history.
daysinteger
deal_type
exchangestringExchange to read: "nse" (default), "bse" or "all". BSE rows carry BSE's own side codes (B, S, P; P is a purchase) and an exchange label.
from_dateOptional ISO date (YYYY-MM-DD) bounding the window. `from_date` replaces the `days` trailing window with an explicit floor; `to_date` sets a ceiling, which `days` alone cannot do.
limitinteger
to_dateOptional ISO date (YYYY-MM-DD) bounding the window. `from_date` replaces the `days` trailing window with an explicit floor; `to_date` sets a ceiling, which `days` alone cannot do.

get_insider_trades Promoter and insider trades

Use this when the user asks which promoters, directors or company insiders bought, sold or pledged shares of Indian listed companies, market-wide or for one company. Not for bulk or block deals by funds; use get_bulk_block_deals. Returns disclosed trades and pledges by promoters, directors, key managers and designated persons, from BSE's insider-trading disclosures. Omit `symbol` for the whole market, or pass an NSE symbol, ISIN or BSE code. The window is by trade date: `days` back from today (1 to 365, default 30), or `from_date` and `to_date` (ISO, at most 365 days apart). `category` is "pr…

ParameterTypeDescription
categorystring
daysinteger
from_date
group_bystring
include_derivativesboolean
limitinteger
min_value_inr
sidestring
symbol
to_date

get_derivatives_positioning Futures and options positioning

Use this when the user asks about open interest, put-call ratio or futures and options positioning for an Indian stock or an index such as NIFTY or BANKNIFTY. Returns the latest trading day's totals across all contracts of one F&O underlying: futures open interest and its change, call and put open interest, the put-call ratio (put open interest divided by call open interest) volume, and whether it is in the ban list. `query` is a stock's NSE symbol, ISIN or BSE code, or an index name such as NIFTY or BANKNIFTY. Only stocks that trade in F&O have data. For positions by participant type across…

ParameterTypeDescription
query *stringA stock's NSE symbol, ISIN or BSE code, or an F&O index name such as NIFTY or BANKNIFTY.

get_fo_participant_activity F&O participant activity

Use this when the user asks how FIIs, DIIs, proprietary traders or clients are positioned in NSE futures and options across the whole market. Returns one row per day and participant type (FII, DII, proprietary, client) with long and short contract counts in index and stock futures and options, across the whole F&O segment: open interest, which is positions held, and the day's volume. `days` is 1 to 366 (default 10). Neither is cash-market buying and selling, which is in get_market_fii_dii_flow. For one stock or index use get_derivatives_positioning.

ParameterTypeDescription
daysinteger

get_fno_ban_list F&O ban list

Use this when the user asks which Indian stocks are in the NSE futures-and-options ban period today. Returns the securities in the F&O ban period on the latest day NSE published the list, with that date in `ban_date`. It takes no arguments. An empty list means nothing is in ban that day. To check one stock together with its open interest use get_derivatives_positioning.

get_corporate_actions Corporate actions

Use this when the user asks about an Indian company's splits, bonuses, dividends, buybacks or other corporate actions, past or announced. For events across the whole market use get_market_calendar. Returns the company's corporate actions, newest ex-date first, including any announced with an ex-date in the coming weeks. `years` is 1 to 20 (default 5) or give a date range; 1 credit. `types` filters to a list drawn from: dividend, bonus, split, consolidation, rights, buyback, demerger, spinoff, merger, distribution, other. For dividends with yield use get_dividends; for events across the market…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
from_dateRange start, inclusive (YYYY-MM-DD), on the record's own date. At most 10 years; clipped to the plan's history (Free 3 years, Plus 5, Pro 10). Not with days/years.
to_dateEnd of a date range, inclusive (YYYY-MM-DD); default today.
types
years

get_stock_events Recent company announcements

Use this when the user asks for the latest news on an Indian company, or what it has announced or filed recently: orders, board meetings, fundraising, acquisitions, management changes. It lists the company's own BSE disclosures, not media news. Returns the company's BSE announcements, newest first: a readable `title`, category, filing time, a link to the PDF and a `news_id`. It lists filings and does not read them: pass `news_id` values to get_filing_extracts for their contents. `days` is 1 to 365 (default 30), or give a date range (costs fiscal years less one credit, at least 1; else 1). `li…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
category
cursorThe previous page's meta.next_cursor; continues the same range, no credit.
days
from_dateRange start, inclusive (YYYY-MM-DD), on the record's own date. At most 10 years; clipped to the plan's history (Free 3 years, Plus 5, Pro 10). Not with days/years.
limit
to_dateEnd of a date range, inclusive (YYYY-MM-DD); default today.

get_glossary Plain-words glossary

Use this when the user asks what a term or ratio on an Indian company's page means or how it is calculated: P/E, ROE, TTM, gross NPA, promoter pledge and the like. It defines terms and never says whether a value is good or bad. Returns plain-word definitions of the terms, line items and ratios DalalOS reports: what each is, how it is calculated, its unit and which kinds of company it applies to. `term` is one or more keys separated by commas, such as `pe,market_cap`; one unknown key fails the call. `kind` filters to "metric", "line_item", "term" or "section". Without `term` it returns only th…

ParameterTypeDescription
kind
term

get_company_documents Company documents by type

Use this when the user wants the documents an Indian company filed, grouped by type: results, annual reports, investor presentations, call transcripts and recordings, board meeting and AGM papers, ratings. For what was announced and when use get_stock_events. Returns the documents the company filed with BSE, each with its type, date and link. `days` is 1 to 1825 (default 365), or give a date range (costs fiscal years less one credit, at least 1; else 1). `document_type` filters to one of: results, annual_report, presentation, transcript, recording, board_meeting, agm_egm, insider_takeover, ra…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
cursorThe previous page's meta.next_cursor; continues the same range, no credit.
days
document_type
from_dateRange start, inclusive (YYYY-MM-DD), on the record's own date. At most 10 years; clipped to the plan's history (Free 3 years, Plus 5, Pro 10). Not with days/years.
limit
to_dateEnd of a date range, inclusive (YYYY-MM-DD); default today.

search_company_disclosures Search past filings

Use this when the user needs historical detail from an Indian company's earlier filings, for example a prior order value or commissioning date. Returns passages from the company's filings that contain the search words, each with its page number, filing date and a link to the PDF. `search_text` is a few distinctive words: a passage matches if it contains any of them, best matches first, and words such as AND or OR are not operators. `from_date` and `to_date` (ISO) limit the filing date. `document_types` limits the kind of filing to a list from: concall, presentation, order_win, rating, debt_se…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
search_text *stringWords to find in the company's indexed filings, e.g. "fraud".
document_types
from_date
limitinteger
to_date

get_event_context Filing event context

Use this after get_filing_extract when the user wants the earlier state behind an order, capacity or similar event in a filing. Returns, for one filing given by `news_id` (from get_stock_events), the event recorded from it, the earlier event it follows, what changed between them, related disclosures, the timeline of that group of filings, and the questions those filings leave open. It covers events such as orders, capacity, acquisitions, guidance, credit ratings, shareholding changes and resignations. The filing must have been read first with get_filing_extract. Only links that the filings th…

ParameterTypeDescription
news_id *string
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_company_operating_metrics Operating metrics and order book

Use this when the user asks for an Indian company's disclosed operating figures such as order book, order inflow, capacity or other business KPIs over time. Returns the operating figures the company disclosed in its filings, each with its date, unit and source, and a `coverage` entry per metric saying whether it was found. `metrics` is a list from: order_book, order_inflow, execution_period, working_capital_days_change, capacity, installed_capacity, planned_capacity, power_capacity, utilisation, commissioning_date, announced_capex, capex_spent, remaining_capex, store_count, inventory, aum, di…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
from_date
latest_onlyboolean
limitinteger
metrics
to_date

get_company_macro_exposures Macro exposure signals

Use this when the user asks how an Indian company is exposed to a macro factor such as crude oil or the rupee-dollar rate, and whether the latest official move in it is large enough to matter. Returns the company's reviewed exposures to macro factors that apply on `as_of_date` (ISO, default today), and for crude oil and USD/INR whether the latest official move (PPAC Indian crude basket, FBIL reference rate) is large enough to flag, with a `coverage` entry for every factor asked about. Only crude oil and USD/INR are monitored; other factors report that no source is available. `factors` is a li…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
as_of_date
factors

get_company_exposures Company factor exposures

Use this when the user asks which macro or commodity factors an Indian company depends on, based on reviewed exposure mappings. Returns every reviewed exposure of the company to a macro or commodity factor: the factor, how it reaches the company (direct or indirect, direction, lag), any stated sensitivity and mitigants, the dates it applies, and the source quote. Entries are not filtered by date, so check `valid_from` and `valid_to`. A company with none reviewed returns an empty list. To see whether a current move in crude oil or USD/INR is large enough to matter use get_company_macro_exposur…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).

get_relevant_peers Relevant peers

Use this when the user asks who an Indian company's real peers or competitors are and why. For a valuation table of peers use get_peer_comparison. Returns up to `limit` peers (default 8, at most 15) chosen from reviewed descriptions of what each business does, each with a similarity score, what is shared, what differs, and figures to compare. `purpose` is "operating" (default), "financial" or "valuation". It can return few peers or none when the evidence is thin: it does not fall back to companies that only share an industry label. For a table of ratios across the industry use get_peer_compar…

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
event_contextOptional note, returned unchanged. It does not affect which peers are chosen.
limitinteger
purposestring

list_announcement_buckets Announcement categories

Use this when the user wants to browse market-wide disclosure types, such as order receipts or fundraises, before calling get_announcement_bucket. Returns the kinds of disclosure that can be listed across the market: order-receipts, fundraise, credit-rating, acquisitions and management-changes. It takes no arguments. Pass one to get_announcement_bucket.

get_announcement_bucket Companies by announcement type

Use this when the user asks which Indian companies recently announced a given kind of disclosure, for example order wins or fundraises, across the whole market. Returns BSE filings of one kind across all companies, newest first, each with the company, headline, filing time, a link to the PDF and a `news_id`. `bucket` is one of: order-receipts, fundraise, credit-rating, acquisitions, management-changes. `days` is 1 to 90 (default 7). To read a filing, pass its `news_id` and that row's `nse_symbol` or `isin` to get_filing_extract. A long list is cut to fit, with `truncated` set. Its only write:…

ParameterTypeDescription
bucket *string
daysinteger

screen_stocks Stock screener

Use this when the user asks for Indian stocks matching numeric criteria such as PE, PB, market cap, ROE, margins or debt, optionally within an index such as NIFTY 50. For OR logic or arithmetic between metrics use screen_by_query. Returns up to `limit` securities (default 25, at most 100) that meet every filter, sorted by `sort_by` (default market_cap) in `order` ("desc" or "asc"), with the filtered metrics on each row. `filters` is an object. A range filter is a metric name ending in `_min` or `_max`, and the unit depends on the metric. Fractions, where 0.15 means 15%: roe, roa, roce, net_ma…

ParameterTypeDescription
filters *objectObject of criteria, AND-combined, e.g. {"market_cap_min": 50000000000, "pe_max": 20} (market cap is in rupees). Range filters take a `_min` or `_max` suffix.
limitinteger
orderstring
sort_bystring

screen_by_query Screener query

Use this when the user's screen needs OR logic, arithmetic between two metrics or a screen expression that screen_stocks filters cannot express. Returns matching securities, 25 a page by default, with identity and core valuation columns and the metrics the query names; name any other metric you want returned in `columns`. `query` is one expression of metric names, numbers, = != > < >= <=, AND, OR, brackets, + - * / and the functions COALESCE, IF, LEAST, POWER, ABS, SQRT and LOG, for example `Return on capital employed > 22% AND (Debt to equity < 0.5 OR Interest Coverage Ratio > 8)`. It has no…

ParameterTypeDescription
query *stringOne boolean expression over metric names, e.g. "Market Capitalization > 5000 AND Return on capital employed > 20%" in the default screener dialect.
columns
definitions
dialectstring
include_column_scalesbooleantrue adds the minimum, maximum and 5th and 95th percentile of each numeric column across all matches.
include_condition_countsbooleantrue adds `condition_counts`: for each AND-ed condition, how many companies pass it and how many fail only it.
include_row_contextbooleantrue adds to each row its 52-week low and high and the dates of the filings behind it.
limitinteger
offsetinteger
only_failing_condition0-based index of a condition in `condition_counts`: returns the companies that fail only that condition.
only_latest_resultsbooleantrue keeps only companies that have filed results for the latest quarter most companies have reported.
orderstring"desc" (default) or "asc". Missing values sort last.
scope
snapshot_id
sort_bystringMetric id to sort by. Default market_cap.

get_sector_overview Sector overview

Use this when the user asks how an Indian sector or industry looks in aggregate: number of companies, market cap, valuation and returns. Returns, for each group, the number of companies, total market cap, median and average P/E and median P/B, and where available the median dividend yield and one-year return. `grain` is "sector" (default), "igroup" (SEBI industry) or "isubgroup" (SEBI basic industry). Omit `sector` to list every group; pass a name at that grain for one group, and a name that is not recognised returns the valid ones. Totals only: no company rows.

ParameterTypeDescription
grainstring
sector

list_index_constituents Index constituents

Use this when the user asks which stocks are in an Indian index such as NIFTY 50 or NIFTY Bank. Returns the stocks in an index, largest first, with ISIN, NSE symbol, sector and market cap. `index` is an index name such as NIFTY 50 or BSE SENSEX; a name that is not recognised returns the valid ones. `limit` is 1 to 500 (default 100). It gives membership only, not index weights.

ParameterTypeDescription
index *stringIndex name, e.g. "NIFTY 50" or "BSE SENSEX" (a name, not a slug).
as_ofOptional date YYYY-MM-DD: the members on that date, from the index membership record (complete from the index's history start). Omit for the current members.
limitinteger

list_indices Available indices

Use this when the user needs the list of Indian market indices DalalOS covers. Returns every index whose membership DalalOS holds, with the number of members. These names are the `index` values for list_index_constituents, get_market_heatmap, get_top_movers and screen_stocks. For indices with P/E and P/B history use list_index_valuations.

get_market_heatmap Index heatmap

Use this when the user wants valuation and returns across the stocks in an Indian index at a glance. Not for ranking by return; use get_top_movers. Returns each stock in an index with market cap, P/E, P/B and its return over 1 day, 1 week and 1, 3, 6 and 12 months, largest company first. `index` is an index name such as NIFTY 50; a name that is not recognised returns the valid ones. `limit` is 1 to 500 (default 100). The order is by size and cannot be changed: to rank by the day's move use get_top_movers.

ParameterTypeDescription
index *stringIndex name, e.g. "NIFTY 50" or "BSE SENSEX" (a name, not a slug).
limitinteger

get_top_movers Top gainers and losers

Use this when the user asks which Indian stocks in an index gained or lost the most, or traded the most, in the latest end-of-day session. Returns the stocks in an index ranked on their latest end-of-day quote. `metric` is "pct_change" (the day's percentage change, default), "change" (in rupees), "turnover" (rupees traded) or "volume" (shares traded). `direction` is "desc" (default: largest first) or "asc". `index` defaults to NIFTY 500; a name that is not recognised returns the valid ones. `limit` is 1 to 100 (default 20). The session cannot be chosen: the result's `as_of` says which one was…

ParameterTypeDescription
directionstring
indexstringIndex name, e.g. "NIFTY 50" or "BSE SENSEX" (a name, not a slug).
limitinteger
metricstring

list_preset_screens Preset screens

Use this when the user asks what ready-made screens are available, before calling run_preset_screen. Returns the ready-made screens, each with a description and the time its result was last computed: low_price_to_earnings, high_dividend_yield_large_market_cap, low_leverage_high_roe, high_promoter_holding_low_pledge and high_growth_latest_results. It takes no arguments. Run one with run_preset_screen; for your own conditions use screen_stocks.

run_preset_screen Run a preset screen

Use this when the user wants the latest result of a named ready-made screen from list_preset_screens. Returns the stored result of one ready-made screen, computed nightly: up to 50 rows, the filters it applied and the number of matches. `name` is one of the names from list_preset_screens. For more rows or other thresholds, pass the returned `filters` to screen_stocks.

ParameterTypeDescription
name *string

get_upcoming_results Upcoming results

Use this when the user asks which Indian companies report results soon, optionally by sector. For a past window or other event types use get_market_calendar. Returns companies with a board meeting for results in the next `days` days (1 to 90, default 14), earliest first, with the date and identifiers. `sector` filters to one sector; a name that is not recognised returns the closest valid names, and companies DalalOS has not matched to a sector are left out. `limit` is 1 to 200 (default 50); `truncated` says when later dates were cut. For past dates or other kinds of event use get_market_calen…

ParameterTypeDescription
daysinteger
limitinteger
sector

get_index_valuation Index valuation

Use this when the user asks for an Indian index's PE, PB or dividend yield over time, for example whether NIFTY 50 is expensive relative to its history. Returns one index's daily open, high, low, close, P/E, P/B and dividend yield as NSE publishes them. `index` is an NSE index name such as Nifty 50, Nifty Bank or Nifty IT; the names are in list_index_valuations. `from_date` and `to_date` are ISO dates at most 1825 days apart; the default is the 30 days to today. A long window returns the most recent rows. An empty result can mean the window holds no trading days, not that the name is wrong. F…

ParameterTypeDescription
index *stringNSE index name, e.g. "Nifty 50" or "Nifty Bank"; list_index_valuations gives the names.
from_date
to_date

list_index_valuations Indices with valuation data

Use this when the user needs the names of the NSE indices that have daily close, PE, PB and dividend-yield history. Returns every NSE index DalalOS holds daily data for, with its latest date and close. These are the names get_index_valuation, compare_indices and get_stock_vs_index accept. It lists names, not valuations.

get_india_vix India VIX

Use this when the user asks about the India VIX, the NSE volatility index, today or over a period. Returns the daily open, high, low, close and change of the India VIX. `from_date` and `to_date` are ISO dates at most 1825 days apart; the default is the 30 days to today.

ParameterTypeDescription
from_date
to_date

get_market_ranking Market ranking by day

Use this when the user asks which Indian stocks had the most volume, turnover, trades, delivery percentage or the largest move on a given trading day. For today's movers within one index use get_top_movers. Returns NSE securities ranked on one trading day. `metric` is "volume" (default), "turnover", "num_trades", "deliv_pct" or "pct_change"; `direction` is "desc" (default) or "asc"; `limit` is 1 to 100 (default 25). `date` is an ISO date, by default the latest day held. `instrument_class` is "equity" (default), "sme", "fund_unit" or "all". `series` narrows to one NSE series such as EQ or BE a…

ParameterTypeDescription
date
directionstring
instrument_classstring
limitinteger
metricstring
series

get_security_history Daily history, any NSE series

Use this when the user wants the raw daily NSE rows for a security, including SME stocks, bonds, G-secs, SGBs or fund units, with delivery and trade counts. Returns the daily rows NSE published for one security in every series it trades in, newest first: open, high, low, close, volume, turnover, trades and delivery. It covers SME stocks, bonds, government securities, gold bonds and fund units, which get_price_history does not. `symbol` is an NSE symbol or ISIN; `series` narrows to one, such as EQ, BE, SM or GB. The window is `days` back from the latest day held (default 30, at most 1825), or…

ParameterTypeDescription
symbol *string
days
from_date
series
to_date

get_market_cap_history NSE market capitalisation

Use this when the user asks for NSE's own market cap and shares in issue, for one company over time or the largest companies on a day. Returns NSE's published market capitalisation, shares in issue and face value. With `symbol` (an NSE symbol): that security day by day over `days` (default 30, at most 1825) or `from_date` and `to_date`; `date` and `limit` are then ignored. Without `symbol`: the `limit` largest companies (1 to 100, default 25) on `date` (default the latest day held), with NSE's totals for the market; the window arguments are then ignored. NSE publishes it from 1 February 2024;…

ParameterTypeDescription
date
days
from_date
limitinteger
symbol
to_date

get_price_band_hits Price band hits

Use this when the user asks which Indian stocks hit their upper or lower circuit on a day, or how often a stock has. Returns NSE's record of securities that hit their upper or lower price band. With `date` (default the latest day held): the hits on that day. With `symbol`: that security's hits over `days` (default 90, at most 1825), newest first. Pass one or the other, not both. `direction` is "upper", "lower" or "all" (default). `limit` is 1 to 500 (default 200), and `truncated` says when there are more. This is the exchange's own list: a stock can touch its band during the day and close ins…

ParameterTypeDescription
date
days
directionstring
limitinteger
symbol

compare_indices Compare indices

Use this when the user wants several Indian indices compared on return, volatility and drawdown over the same period. Returns, for each index over the same window, the price return, annualised volatility, largest fall from a peak, and best and worst day, computed from NSE's daily closes. `indices` is a list of 2 to 10 NSE index names, such as ["Nifty 50", "Nifty Bank"]; a name that is not found is reported along with the valid names. The window is `days` back from the latest day held (default 365, at most 1825), or `from_date` and `to_date`. Returns exclude dividends. For one index's P/E and…

ParameterTypeDescription
indices *array
days
from_date
to_date

get_stock_vs_index Stock against an index

Use this when the user asks how an Indian stock's return compared with an index such as Nifty 50 over a period. Returns the stock's price return beside the index's over the same window, with each side's annualised volatility, largest fall from a peak, and best and worst day, and the difference between the two returns in percentage points. `symbol` is the NSE symbol of a mainboard equity; SME stocks, funds and bonds are not covered. `index` is an NSE index name (default Nifty 50). The window is `days` (default 365, at most 1825), or `from_date` and `to_date`. Returns exclude dividends and adju…

ParameterTypeDescription
symbol *string
days
from_date
indexstringNSE index name, e.g. "Nifty 50" or "Nifty Bank"; list_index_valuations gives the names.
to_date

get_market_breadth Market breadth

Use this when the user asks how many NSE-listed securities advanced, declined or were unchanged on a trading day. Returns one row per trading day with the number of NSE securities that advanced, declined and were unchanged. `from_date` and `to_date` are ISO dates at most 366 days apart; the default is the 30 days to today. By default the counts are NSE's own published figures, held from the day DalalOS began collecting them. `universe` switches to counts computed from the daily price file, which go back further: "all_series" (every listed security, including funds and bonds), "equity_sme" (sh…

ParameterTypeDescription
from_date
to_date
universe

get_macro_indicators Indian macro indicators

Use this when the user asks for official Indian macro data: CPI inflation, WPI, IIP, GDP or the crude-oil basket price. Returns official Indian macro series, newest period first. `dataset` is required: "cpi" (consumer prices, headline and by group), "wpi" (wholesale prices, overall and food only), "iip" (industrial production by category), "gdp" (annual level and growth, one row per published estimate) or "crude_basket" (the Indian crude basket monthly average, USD per barrel). `from_period` and `to_period` are YYYY-MM, or a fiscal year such as 2024-25 for gdp. `series_contains` keeps series…

ParameterTypeDescription
dataset *stringRequired. One of: cpi, wpi, iip, gdp, crude_basket.
from_period
limitinteger
series_contains
to_period

get_fx_reference_rates FX reference rates

Use this when the user asks for official FBIL reference rates of the rupee against USD, GBP, EUR, JPY, AED, IDR or RUB, for example the USD to INR rate. Returns FBIL's daily reference rates for the rupee against USD, GBP, EUR, JPY, AED, IDR and RUB, as published by RBI. `currency_pair` filters to one pair, such as USD/INR. `from_date` and `to_date` are ISO dates; the default is the last 30 days. `rate` is rupees per `unit_base` units of the foreign currency: 1 for most, 100 for JPY, 10,000 for IDR. These are reference rates published on business days, not live quotes.

ParameterTypeDescription
currency_pair
from_date
to_date

get_sector_fii_flow FII flow by sector (historical)

Use this when the user asks about daily FII flow by sector in the historical CDSL data, which stops at March 2025. For current sector flows use get_sector_fpi_investment. Returns daily FII/FPI buy, sell and net value by sector from CDSL's disclosures. The data covers CDSL only and ends in March 2025. `from_date` and `to_date` are ISO dates at most 366 days apart; when they are omitted the window is the 30 days up to the latest data held, and `effective_from` and `effective_to` give the dates covered. `sector` filters to one sector; a name that is not found returns the valid names. For current…

ParameterTypeDescription
from_date
sector
to_date

get_sector_fpi_investment FPI investment by sector

Use this when the user asks which Indian sectors foreign portfolio investors are buying or selling, using fortnightly NSDL data. Returns, for each fortnight NSDL reports, FPI net investment and assets under custody by sector, in Rs crore and USD million, covering all FPIs across both depositories from 2012. `from_date` and `to_date` are ISO dates matched to the fortnight's end; the default is the last six months, and the longest window is five years unless `sector` is given. `sector` is one of NSDL's own sector names, or "Grand Total" for all sectors: call without `sector` to see the names. T…

ParameterTypeDescription
from_date
include_subsectorsboolean
instrumentstring
sector
to_date

get_fii_activity Stock FII flow (deprecated alias)

Deprecated alias of get_stock_fii_flow; use get_stock_fii_flow for per-stock daily FII transaction flow. Returns the same result as get_stock_fii_flow, which replaces it: a daily series of FII/FPI buy, sell and net for one stock from CDSL's disclosures, ending in March 2025, with a 30-day summary. `days` (1 to 1825, default 90) is counted back from the latest day of data held, not from today.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
daysinteger

get_market_calendar Market calendar

Use this when the user asks what events are scheduled or happened across Indian markets in any date window: results, board meetings, dividends, splits. Returns disclosed events across all companies in a date window, past or future: board meetings for results, corporate actions, and IPO opening, closing and listing dates. `date_from` defaults to today and `date_to` to 30 days later; the window is at most 180 days. `types` filters to a list from: results, ipo, dividend, bonus, split, consolidation, rights, buyback, demerger, spinoff, merger, distribution, other. `limit` is 1 to 2000 (default 15…

ParameterTypeDescription
date_fromISO date YYYY-MM-DD. Defaults to today.
date_toISO date YYYY-MM-DD, on or after date_from, at most 180 days later. Defaults to 30 days after date_from.
limitinteger
typesEvent types to include, e.g. results, dividend, ipo. Also accepts index_review (announced index changes not yet effective), returned only when named here.

get_ipos IPOs

Use this when the user asks about Indian IPOs: upcoming, open, awaiting listing or recently listed. Returns public issues with price band, issue size, opening, closing and listing dates, the closing price on listing day and a link to the prospectus, each with a `status`: "upcoming", "open", "listing_pending" or "listed". `status` filters to one of these; `limit` is 1 to 500 (default 100). Rows are ordered by opening date, latest first, whatever their status. Lot size, final issue price, subscription multiples and listing gain are not available, and there is no grey-market premium: DalalOS hol…

ParameterTypeDescription
limitinteger
status

get_pledge_trend Promoter pledge trend

Use this when the user asks how much of an Indian company's promoter holding is pledged and how that has changed. Returns, for each quarter, newest first, the percentage of the promoters' own shares that are pledged or otherwise encumbered, the same shares as a percentage of all shares, their number and the promoters' holding, with the latest figure and its change from the quarter before. `limit` is 1 to 16 (default 12). `pledge_disclosed` is false where the filing gave no pledge figure, which is not the same as zero. For the full ownership breakdown use get_shareholding.

ParameterTypeDescription
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
limitinteger

get_data_freshness Data freshness

Use this when the user asks how recent DalalOS data is, or when a figure looks stale. Returns, for each of DalalOS's refresh jobs, when it last succeeded and whether it is overdue, and for each dataset any failed quality check. It takes no arguments. It reports whether refreshes are running, not the date of the data: for one figure, read `as_of` and `cached_at` in that tool's own result. The envelope's `stale` is true whenever the overall status is not ok (a job overdue or stuck, or a failed quality check), so it does not mean every figure is out of date; `data.stale` lists the overdue jobs.

list_index_events Index membership changes

Use this when the user asks which stocks joined or left an Indian index or list (MSCI India, Nifty, Sensex, the F&O list, AMFI categories) and when, or which changes are announced but not yet effective. Returns the changes, newest first. Give `index` (id or name), `query` (NSE symbol, ISIN or BSE code), or `from_date` and `to_date` (YYYY-MM-DD, on the effective date). `change_type` is add, delete, segment_up, segment_down or weight_change. `limit` is 1 to 200 (default 100); `include_superseded` adds superseded and cancelled rows. For members now, or on a past date with `as_of`, use list_index…

ParameterTypeDescription
change_type
from_date
include_supersededboolean
indexIndex id, display name or the provider's name, e.g. msci:india_standard, Nifty 50 or India Standard (case-insensitive).
limitinteger
queryOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
to_date

get_index_event_study Index change event study

Use this when the user asks how a stock traded around the announcement and effective dates of its entry to or exit from an index or the F&O list, alone or as a group. These are index dates, not results announcements. Returns stock and benchmark returns in windows around those dates, volume and delivery against a baseline, and flags for other events nearby. Give `index`; add `query` (NSE symbol, ISIN or BSE code) for one company, or leave it out for a group (statistics from 5 analysed events). `change_type` defaults to add; `from_date` and `to_date` bound the effective date; `benchmark` is an…

ParameterTypeDescription
benchmark
change_typestring
from_date
include_flaggedboolean
indexIndex id, display name or the provider's name, e.g. msci:india_standard, Nifty 50 or India Standard (case-insensitive).
limitinteger
queryOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
to_date

estimate_index_flow Index change flow estimate

Use this when the user asks how much index funds may need to buy of a stock joining an index, or its estimated weight there. Estimates with their inputs, not a price forecast or FII flows. Returns the estimated weight and the rupees, share of free float and days of median traded value it implies for money tracking the index, each input with its date and source; `not_computed` names what is missing. `query` is an NSE symbol, ISIN or BSE code; `index` an id or name. `tracking_assets` replaces the stored figure, in full units of `tracking_assets_currency` (default INR). For daily FII and DII flo…

ParameterTypeDescription
index *stringIndex id, display name or the provider's name, e.g. msci:india_standard, Nifty 50 or India Standard (case-insensitive).
query *stringOne company: NSE symbol, ISIN or BSE code, e.g. TCS, INE467B01029 or 532540. Always send it as `query` (not `symbol`).
tracking_assets
tracking_assets_currency