KiteConnect provides four methods for live market data (instruments master, full quote, OHLC, and LTP) and one method for historical candles. You identify instruments using theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/anurag-roy/kiteconnect-ts/llms.txt
Use this file to discover all available pages before exploring further.
exchange:tradingsymbol format (e.g., NSE:INFY) for quote methods, and by numeric instrument_token for historical data.
getInstruments
Download the full list of tradeable instruments across all exchanges, or filter by one or more exchanges.Promise<Instrument[]>.
The instruments master is a large dataset — often several hundred kilobytes
with tens of thousands of entries. Fetch it once at application startup or
cache it, rather than calling it on every request.
Numerical identifier used to subscribe to live market data via the WebSocket
API (returned as a string from the CSV source).
The numerical identifier issued by the exchange.
Exchange trading symbol (e.g.,
RELIANCE, NIFTY23DECFUT).Company or contract name (populated for equity instruments).
Last traded market price at the time of the master download.
Expiry date for derivatives instruments. Empty for equity.
Strike price for options contracts.
0 for non-options.Minimum price movement (price tick).
Quantity of a single lot (relevant for F&O).
EQ (equity), FUT (futures), CE (call option), or PE (put option).Segment the instrument belongs to (e.g.,
NSE, NFO-FUT, NFO-OPT).Exchange where the instrument is listed.
getQuote
Retrieve full market depth and quote data for one or more instruments.Promise<Record<string, Quote>>. The response is keyed by the exchange:tradingsymbol string you passed in.
Numerical exchange instrument identifier.
Exchange timestamp of the quote packet.
Timestamp of the last trade.
Last traded market price.
Quantity of the last trade.
Volume-weighted average price (VWAP) for the session.
Total volume traded today.
Aggregate pending buy order quantity at the exchange.
Aggregate pending sell order quantity at the exchange.
Open interest (F&O only).
Current open interest for the session.
Highest open interest recorded during the day.
Lowest open interest recorded during the day.
Absolute change from the previous close to the last price.
Current lower circuit breaker price.
Current upper circuit breaker price.
getOHLC
Retrieve OHLC and last price for one or more instruments. Lighter than a full quote when you don’t need order book depth.Promise<Record<string, { instrument_token: number; last_price: number; ohlc: { open: number; high: number; low: number; close: number } }>>.
getLTP
Retrieve only the last traded price for one or more instruments. Use this for the most lightweight market-data call.Promise<Record<string, { instrument_token: number; last_price: number }>>.
getHistoricalData
Retrieve OHLCV candle data for an instrument over a date range.The numeric instrument token from the instruments master. Retrieve it via
getInstruments() and look up your symbol.Candle interval. Supported values:
minute— 1-minute candles3minute— 3-minute candles5minute— 5-minute candles10minute— 10-minute candles15minute— 15-minute candles30minute— 30-minute candles60minute— 60-minute candlesday— Daily candles
Start of the date range. Pass a
Date object or a string in yyyy-mm-dd HH:MM:SS format.End of the date range. Same format as
from_date.When
true, returns a continuous back-adjusted series for futures and options
instruments instead of the front-month contract.When
true, each candle includes an oi field with the open interest at that
timestamp (F&O instruments only).| Field | Type | Description |
|---|---|---|
date | Date | Candle open timestamp |
open | number | Opening price |
high | number | Highest price in the interval |
low | number | Lowest price in the interval |
close | number | Closing price |
volume | number | Volume traded in the interval |
oi | number | Open interest (only present when oi: true) |