Skip to Content

Market Data

Get live quotes, market depth, historical candles, option chains and expired futures and options data for analysis. Ask your AI client in plain language; it picks the tool.

get_quotesPermalink for this section

Get live market quotes (LTP, change, % change, OHLC, previous close, bid/ask, spread, ATP, volume) for one or more symbols. Use for current price checks, snapshots of multiple stocks or indices, and comparing price moves. Up to 50 symbols per call.

Example prompts

  • “What are the live prices of SBIN, HDFCBANK and NIFTY 50?”
  • “Compare today’s move in RELIANCE and TCS.”

Parameters

ParameterTypeRequiredDescription
symbolsstringyesComma-separated trading symbols, max 50 (e.g., ‘NSE:SBIN-EQ,NSE:NIFTY50-INDEX’) A symbol that cannot be found comes back as an error entry (code -300) while the other symbols are still returned.

get_market_depthPermalink for this section

Get market depth (order book) for a single symbol: top bid/ask prices with quantity and order count, total buy/sell quantity, OHLCV, LTP, last traded quantity and time, circuit limits, and open interest for derivatives. Use for liquidity checks, bid-ask analysis, and pre-trade price discovery. For an index the depth lists are empty.

Example prompts

  • “Show the market depth for SBIN.”
  • “How liquid is this NIFTY option right now? Show the bid and ask.”

Parameters

ParameterTypeRequiredDescription
symbolstringyesSingle trading symbol (e.g., NSE:SBIN-EQ)

get_chart_dataPermalink for this section

Get historical OHLCV candlestick data for technical analysis and charting. Use for price charts, technical analysis, trading signals, and calculating indicators like RSI, MACD. Supports various timeframes. A date range that ends before it starts, lies in the future, or uses an unsupported resolution returns an Invalid input error.

Example prompts

  • “Show daily candles for NIFTY 50 for the last 3 months.”
  • “Calculate the 14-day RSI of RELIANCE.”

Parameters

ParameterTypeRequiredDescription
contFlagnumbernoContinuation flag (optional, use 1 for continuous data)
dateFormatstringyesDate format (always use ‘1’)
oiFlagnumbernoOpen interest flag (optional, use 1 to include OI data)
rangeFromstringyesStart date in YYYY-MM-DD format (e.g., ‘2021-01-01’)
rangeTostringyesEnd date in YYYY-MM-DD format (e.g., ‘2021-03-01’)
resolutionstringyesTime resolution (e.g., ‘1’, ‘5’, ‘15’, ‘30’ for minutes, ‘1D’ for daily)
symbolstringyesTrading symbol (e.g., NSE:SBIN-EQ)

get_option_chainPermalink for this section

Get option chain data with strike prices, premiums, Open Interest, and volatility for CE/PE options. Use for option chain tables, analyzing premiums, monitoring OI changes, market sentiment, option strategy planning, and getting expiries.

Example prompts

  • “Show the NIFTY option chain with 10 strikes around the ATM strike.”
  • “What are the available expiries for BANKNIFTY options?”

Parameters

ParameterTypeRequiredDescription
strikecountnumbernoNumber of ITM and OTM strikes to include per option type (1-50). Total strikes = (strikecount * 2) + 1 ATM. Default shows all available strikes.
symbolstringyesUnderlying symbol (e.g., NSE:NIFTY50-INDEX) - must be valid equity symbol with listed options
timestampnumbernoExpiry to show, as the epoch value from expiryData in an earlier result, for example the 17 Nov 2026 expiry. It does not select a past date: an epoch that is not a listed expiry returns an error. Omit it to see the nearest expiry.

get_indus_historyPermalink for this section

Get historical OHLCV data from Indus endpoint for options/futures contracts and granular data access. Use when main chart data endpoint doesn’t provide sufficient data or for complex technical analysis of derivatives.

Example prompts

  • “Get 5-minute candles for this month’s NIFTY futures contract.”
  • “Fetch historical data for a BANKNIFTY option contract.”

Parameters

ParameterTypeRequiredDescription
contFlagnumbernoContinuation flag (optional, 0 or 1)
countbacknumbernoNumber of candles to fetch (optional). It does not limit the result when from and to are given.
currencyCodestringnoCurrency code (optional, e.g., ‘INR’)
dataReqstringnoData request parameter (optional)
fromstringyesStart timestamp in epoch format (e.g., ‘1708819200’)
resolutionstringyesTime resolution (e.g., ‘1D’, ‘1H’, ‘30’, ‘15’)
symbolstringyesTrading symbol (e.g., NSE:NIFTY2560526000CE for options)
tostringyesEnd timestamp in epoch format (e.g., ‘1748822400’)
tokenIdstringyesToken ID for the symbol. The tool requires it, but the value is not checked.

Expired futures and optionsPermalink for this section

Use these three tools together to read data for contracts that have already expired. This is useful for backtesting options and futures strategies. Data is available from 10 Oct 2018 for NSE, 7 Aug 2023 for BSE and 11 Oct 2018 for MCX. Work through them in order: expiry dates, then contracts, then candles.

get_expired_fno_expiry_datesPermalink for this section

Step 1. List past futures and options expiry dates for an underlying within a date range (max 366 days). Then call get_expired_fno_contracts with a returned expiry date.

Example prompts

  • “List all NIFTY weekly expiry dates for the last year.”
  • “Which BANKNIFTY futures expiries were there in 2025?”

Parameters

ParameterTypeRequiredDescription
symbolstringyesUnderlying symbol (e.g., NSE:NIFTY50-INDEX, NSE:SBIN-EQ, BSE:SENSEX-INDEX)
dateFormatstringyes’1’ for yyyy-mm-dd dates, ‘0’ for epoch seconds (use ‘1’)
rangeFromstringyesStart date (e.g., ‘2025-01-01’)
rangeTostringyesEnd date, at most 366 days after rangeFrom (e.g., ‘2025-03-31’)

get_expired_fno_contractsPermalink for this section

Step 2. List expired futures and options contract symbols for an underlying and expiry date. If the expiry date is unknown, call get_expired_fno_expiry_dates first. Then pass a returned contract symbol to get_expired_fno_data.

Example prompts

  • “List the NIFTY option contracts that expired on 27 March 2025.”
  • “Show the strikes available for the last BANKNIFTY monthly expiry.”

Parameters

ParameterTypeRequiredDescription
symbolstringyesUnderlying symbol (e.g., NSE:NIFTY50-INDEX, NSE:SBIN-EQ)
expiryDatestringyesExpiry date in yyyy-mm-dd format, as returned by get_expired_fno_expiry_dates (e.g., ‘2025-03-27’) It must be an actual expiry date; any other date returns an error.

get_expired_fno_dataPermalink for this section

Step 3. Get historical intraday candles for an expired futures or options contract, optionally with open interest and option Greeks (IV, delta, gamma, theta, vega). Works only for expired contracts; for active contracts use get_chart_data. Minute resolutions allow up to 100 days per request. Five-second candles are very large: one day holds thousands of candles, so request a short range. The response has a columns array naming each value in candles.

Example prompts

  • “Get 5-minute candles for the expired NIFTY 23000 CE of 27 March 2025.”
  • “Show open interest and IV for that contract on its last trading day.”

Parameters

ParameterTypeRequiredDescription
symbolstringyesExpired contract symbol from get_expired_fno_contracts (e.g., NSE:NIFTY25MAR23000CE)
resolutionstringyesCandle resolution: ‘5S’ (5 seconds), or minutes ‘1’, ‘2’, ‘3’, ‘5’, ‘10’, ‘15’, ‘20’, ‘30’, ‘45’, ‘60’, ‘120’, ‘180’, ‘240’
dateFormatstringyes’1’ for yyyy-mm-dd dates, ‘0’ for epoch seconds (use ‘1’)
rangeFromstringyesStart date (e.g., ‘2025-03-01’)
rangeTostringyesEnd date (e.g., ‘2025-03-27’)
includeOIbooleannoInclude the open interest column
includeGreeksbooleannoInclude IV and Greeks columns (options CE/PE only; errors for futures; not available for MCX)
Last updated on