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

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

Interoperability (Interop) is an NSE/BSE cross-exchange settlement mechanism that allows positions held on one exchange to be squared off on another. The intropStatus flag controls whether such cross-exchange positions are included in the response.

  • Pass intropStatus=1 to include interop-eligible positions in the result (i.e., positions that can be squared off across exchanges).
  • Pass intropStatus=0 or omit the parameter to return only standard (non-interop) positions.

🔑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 indicating the result of the API call"s-101"
messagestringSuccess message of the API resultPosition Data fetched successfully
dataarrayAn array of position objects containing the user's position details.[ {...}, {...} ]

📘Data Object Info Fields

FieldTypeDescriptionExample
exchangestringExchange segments where the scrip is traded. May be "EQ Combined" for interop positions"NSE_EQ", "BSE_EQ", "EQ Combined"
preferred_exchangestringThe preferred Exchange segments for trading the scrip.NSE, BSE
scrip_tokenintegerExchange token number assigned to the scrip or instrument."123456"
preferred_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"
reference_ratenumberReference rate used for cross-currency or interop positions; 0 for standard positions0
gen_numintegerGeneral numerator for price conversion1
gen_denintegerGeneral denominator for price conversion1
price_numintegerPrice numerator for price conversion1
price_denintegerPrice denominator for price conversion1
unsettled_quantityintegerQuantity that is yet to be settled50 , 100
multiplierstringContract multiplier used for P&L and value calculations."1.00"
daily_or_expirystringIndicates if the position is daily or related to expiry"DAILY", "EXPIRY"

Note on exchange field:** When intropStatus=1 is passed, positions that span both NSE and BSE may be returned with exchange set to "EQ Combined" rather than a specific exchange segment. The actual preferred exchange for that position is indicated by the preferred_exchange field.