Skip to main content

HOLDINGS API

This API retrieves the complete list of holdings from the portfolio, including quantity, valuation, and collateral details for each security.

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample
client_idstringNoClient ID to fetch holdings for a specific end userclient_id=VISHAL1

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media type of the request payloadapplication/json
AuthorizationstringDealer authentication tokenBearer {{access_token}}
x-api-keystringAPI key used to authorize the request{{x-api-key}}

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-101"
messagestringSuccess message"Holdings fetched successfully"
dataobject[]Array of holding objectsRefer below

📦 Holding Object Fields

FieldTypeDescriptionExample
isinstringISIN of the security"INE002A01018"
security_infoobject[]Array containing security-level detailsRefer below
total_freeintegerTotal free quantity (DP + Pool + SAR)100
dp_freeintegerFree quantity in DP60
pool_freeintegerFree quantity in pool30
t1_quantityintegerT+1 quantity10
average_pricestringAverage purchase price"2500.50"
last_pricestringCurrent market price"2550.00"
pnlstringProfit or Loss"4950"
current_valuestringCurrent market value"255000"
inv_valuestringInvested value"250050"
productstringProduct type"CNC"
collateral_quantitystringQuantity pledged as collateral"50"
collateral_valuestringValue of pledged collateral"125000"

📊 Security Info Object Fields

FieldTypeDescriptionExample
exchangestringExchange segment"NSE"
scrip_tokenintegerToken number of the instrument12345
symbolstringTrading symbol"RELIANCE"