KiteConnect gives you full read access to your portfolio: long-term holdings held in your DEMAT account, intraday and overnight positions, and instruments available for auction. You can also convert an open position from one margin product to another without squaring it off.Documentation 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.
getHoldings
Retrieve all equity holdings in your DEMAT account.Promise<PortfolioHolding[]>.
Exchange trading symbol of the instrument (e.g.,
RELIANCE).Exchange where the instrument is listed (
NSE or BSE).Numerical identifier used to subscribe to live market data via WebSocket.
Standard ISIN representing the stock across exchanges.
Margin product applied to the holding (e.g.,
CNC).Net quantity held (T+1 quantity plus realised delivery).
Quantity on T+1 day. Stocks purchased today appear here until they are
delivered on T+2.
Quantity already delivered to your DEMAT account.
Quantity sold from the net holding quantity.
Quantity authorised at the depository for sale.
Date from which you can sell the authorised holding stock.
Quantity carried forward overnight.
Quantity pledged as collateral.
Type of collateral pledge.
true if there is a price discrepancy detected in the holding.Average price at which the net holding quantity was acquired.
Last traded market price of the instrument.
Previous trading day’s closing price.
Net profit and loss on the holding based on the current market price.
Absolute price change from yesterday’s close to the current last price.
Percentage change from yesterday’s close to the current last price.
getPositions
Retrieve open intraday and overnight positions.Promise<{ net: Position[]; day: Position[] }>. The net array contains the combined overnight-plus-intraday view; the day array contains only intraday positions.
Exchange trading symbol.
Exchange where the instrument is listed.
Numerical instrument identifier.
Margin product applied to this position (
MIS, CNC, NRML, etc.).Current net quantity held. Negative values indicate a short position.
Quantity held before the trading day started (carried forward).
Lot-size multiplier used when calculating P&L for F&O instruments.
Average price at which the net quantity was acquired.
Last traded market price.
Previous day’s closing price.
Net profit and loss on the position.
Mark-to-market returns based on the last close and last traded price.
Unrealised intraday returns.
Realised intraday returns.
Net monetary value of the position.
Total quantity bought and added to the position.
Average price of bought quantities.
Total quantity sold from the position.
Average price of sold quantities.
convertPosition
Convert an open position from one margin product to another (for example, fromMIS to NRML before the intraday auto-square-off cutoff).
Promise<boolean>.
Exchange where the instrument is listed (
NSE, BSE, NFO, BFO, CDS, MCX).Trading symbol of the instrument.
BUY or SELL — the side of the original position.day for intraday positions or overnight for carry-forward positions.Quantity to convert. Passed as a string.
The current product code of the position (
NRML, MIS, or CNC).The target product code to convert to (
NRML, MIS, or CNC).getAuctionInstruments
Retrieve instruments available for the current auction session.Auction instruments are only available during exchange-designated auction
windows. Outside those windows the list is empty.