Skip to main content

POSITIONS

This API allows an ADMIN user to fetch the net position details of an end user, including buy/sell quantities, MTM-related data, and instrument-level breakdown.

🔗 Path Parameters

ParameterTypeRequiredDescriptionExample / Enum
typestringYesPosition type filter"all", "daily", "expiry"

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample / Enum
userIdstringYesUser ID (UCC)"{{user_id}}"
intropStatusintegerNoInteroperability flag0 = OFF, 1 = ON

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringRequest payload formatapplication/json
AuthorizationstringAccess token for authenticated requests{{access_token}}
x-api-keystringAPI key used to authorize request{{x-api-key}}

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code"s-101"
messagestringSuccess message"Positions fetched successfully"
dataarrayList of position detailsRefer Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample / Enum
exchangestringExchange segment"NSE_EQ"
preferred_exchangestringPreferred exchange"NSE_EQ"
scrip_tokenintegerScrip token12345
preferred_scrip_tokenintegerPreferred scrip token12345
product_typestringProduct type"MIS", "CNC"
symbolstringTrading symbol"RELIANCE"
seriesstringSeries"EQ"
market_lotintegerLot size1
gen_numintegerGenerator numerator1
gen_denintegerGenerator denominator1
price_numintegerPrice numerator1
price_denintegerPrice denominator1
reference_rateintegerReference rate2500
instrumentstringInstrument name"EQ", "FUTIDX"
expiry_datestringExpiry date"2026-06-25"
strike_pricestringStrike price"250000"
option_typestringOption type"CE", "PE"
buy_quantityintegerTotal buy quantity100
avg_buy_pricestringAverage buy price"2500.50"
buy_valuestringTotal buy value"250050"
sell_quantityintegerTotal sell quantity50
avg_sell_pricestringAverage sell price"2510.00"
sell_valuestringTotal sell value"125500"
net_quantityintegerNet quantity (Buy - Sell)50
net_pricestringNet price"2505.25"
net_valuestringNet value"125250"
cf_buy_valuestringCarry-forward buy value"50000"
cf_sell_valuestringCarry-forward sell value"20000"
cf_net_pricestringCarry-forward net price"2400.00"
unsetteled_quantitystringUnsettled quantity"10"
multiplierstringContract multiplier"1"
daily_or_expirystringPosition type"daily", "expiry"