Skip to main content

Positions

This API call retrieves the entire list of positions held by the user. The positions can be filtered based on the type, and the call includes an option to query for interoperability-based positions.

🛣️Path Parameter

ParameterTypeRequiredDescriptionExample/ENUM
typestringYesThe type of positions to fetch. Possible values are:
all: Fetch all positions,
daily: Fetch daily positions,
expiry: Fetch positions by expiry
all, daily, expiry

🔍Query Parameters

ParameterTypeRequriedDescriptionExample/ENUM
intropoStatusintegerNoFlag to indicate interoperability-based position.
0 means interoperability is off,
and 1 means interoperability is on
0: OFF, 1: ON

🔑Header Parameters

HeaderTypeRequiredDescriptionExample/ENUM
AuthorizationstringYesThe authorization token for the user.{{access_token}}
x-api-keystringYesThe API key to authenticate the request.{{x-api-key}}

🟢Success Response - 200 Ok

FieldTypeDescriptionExample
statusstringIndicates the status of the API Request"success"
codestringResponse code idnicating the result of the API call"s-101"
messagestringSuccess message of the API resultPosition Data fetched successfully
dataarraryAn array of position objects containing the user's position details.[ {...}, {...} ]

📘Data Object Info Fields

FieldTypeDescriptionExample
exchangestringThe Exchange segments where the scrip is tradedNSE, BSE, MCX, etc.
prefered_exchangestringThe preferred Exchange segments for trading the scrip.NSE, BSE
scrip_tokenintegerExchange token number assigned to the scrip or instrument."123456"
prefered_scrip_tokenstringPreferred exchange token number assigned to the scrip or instrument."456789"
product_typestringProduct type used for trading."INTRADAY"
symbolstringSymbol code provided in the exchange scripmaster file"KOLTEPATIL"
seriesstringSeries to which the scrip belongs (e.g., A, Eq, B, T, Z, etc.)."EQ"
instrumentstringInstrument name (e.g., underlying instrument for F&O)."EQUITIES"
expiry_datestringExpiry date of the contract in YYYY-MM-DD format.2025-06-30
strike_pricestringStrike price of the contract, usually in Paise."0.01"
option_typestringOption type (whether it is a Call or Put option).CE (Call Option), PE (Put Option)
market_lotintegerLot size of the scrip.50
buy_quantityintegerQuantity of the scrip bought by the user.50 , 100
avg_buy_pricestringAverage buy price of the scrip."271.70"
buy_valuestringTotal value of the buy order."815.10"
sell_quantityintegerQuantity of the scrip sold by the user100,200
avg_sell_pricestringAverage sell price of the scrip."360.50"
sell_valuestringTotal value of the sell order."36050"
net_quantityintegerNet quantity of the position (buy quantity - sell quantity)50,100
net_pricestringNet price of the position (average buy/sell price after carry forwards)."355.75"
net_valuestringTotal value of the net position (net quantity * net price)."1778.75"
cf_buy_valuestringCarry-forwarded buy value for the position."17500"
cf_sell_valuestringCarry-forwarded sell value for the position."18000"
cf_net_pricestringCarry-forwarded net price of the position."355.00"
unsettled_quantityintegerQuantity that is yet to be settled50 , 100
multiplierstringOrder type (e.g., Limit, Market, Stop-Loss). Refer to Global Constants."1.00"
daily_or_expirystringIndicates if the position is daily or related to expiry"DAILY", "EXPIRY"
get/transactional/v1/portfolio/positions/{type}