Skip to main content

Stock View

This API fetches demat-level holding data directly from the OMS, providing a granular breakdown of quantity across DP, Pool, and T+1 buckets per scrip per market segment. It supports two modes — HOLDINGS for a lightweight listing and ALL for a full breakdown including pledge and collateral details.

🛣️ Path Parameters

ParameterTypeRequiredDescriptionExample
sUserIdstringYesUser ID (UCC) of the authenticated user. Obtained from the Login API response (user_id)"APITEST"
GroupIdstringYesGroup ID of the user. Obtained from the Login API response (others.groupId)"HO"
ExchangeAllowedintegerYesExchange segment filter. Pass -1 to fetch holdings across all segments-1
ISINstringYesISIN of the scrip to fetch. Pass %20 (URL-encoded space) to retrieve all holdings"INE012A01025", %20
CallerbyIdstringYesIdentifier for the calling module or application. Pass the application name or source identifier"WAVEAPI"
VersionNostringYesVersion number of the calling application"1.0"
ModestringYesResponse mode: HOLDINGS returns a lightweight scrip listing; ALL returns the full DP/Pool/pledge breakdown"HOLDINGS", "ALL"

🔑Header Parameters

HeaderTypeRequiredDescriptionExample/ENUM
Content-typestringYesDefines the content type of the request.application/json
AuthorizationstringYesBearer token for Authorization{{access_token}}
x-api-keystringYesAPI key provided{{x-api-key}}
api_keystringYesThe API key for identifying the application.{{api_key}}

🟢Success Response - 200 Ok

FieldTypeDescriptionExample
statusstringIndicates the status of the API call"true"
resultarrayArray of holding objects. Fields vary based on Mode.Refer below

📦 Result Object Fields — Mode: HOLDINGS

Returns a lightweight scrip listing. Use this when you only need to know what scrips are held and their total free quantity.

FieldTypeDescriptionExample
ISINstringISIN code of the holding"INE012A01025"
sSeriesstringSeries of the scrip"EQ"
sSymbolstringTrading symbol of the scrip"ACC"
nMarketSegmentIdintegerMarket segment ID where the scrip is listed1
nTokenintegerExchange token of the scrip on this market segment22
TOTALFREEQUANTITYstringTotal free quantity available for this scrip"100"
sCurvRecvFreestringCurrent day's receivable free quantity (T+1 settlements arriving today)"0"
nBuyAvgPricenumberAverage buy price; may be 0 if not available from the OMS at the time of the call0
OtherSegmentTokensstringComma-separated list of segmentId:token pairs for all other exchange segments this scrip is listed on. Format: "segmentId:token,segmentId:token,...""1:22,8:500410,8192:150049,512:101618"
nNormal_MarketAllowedintegerWhether the scrip is allowed for trading in the normal market. 1 = Allowed, 0 = Not Allowed1
nScripTypeintegerType of scrip. 1 = Equity1
nTodayAvgBuyPriceintegerAverage buy price for trades executed today; 0 if no trades today0
nUploadedAvgBuyPriceintegerAverage buy price as uploaded/imported into the system; may differ from actual traded price0

📦 Result Object Fields — Mode: ALL

Returns all fields from HOLDINGS mode plus a full breakdown of DP, Pool, and T+1 quantities, pledge details, and collateral data. Use this mode for EDIS workflows or pledge management.

All fields from HOLDINGS mode are included. The following additional fields are returned only in ALL mode:

FieldTypeDescriptionExample
sDPAvailablestringTotal quantity available in the DP (Demat) account"100"
sPOOLAvailablestringTotal quantity available in the broker's Pool account"0"
sRecvAvailablestringQuantity in the receivable (T+1/T+2) bucket — purchased but not yet settled"0"
sCurRecvAvailablestringCurrent day's receivable quantity"0"
TOTALQUANTITYstringTotal quantity across all buckets (DP + Pool + Receivable)"100"
nTotalDPBlockstringTotal quantity blocked/encumbered in the DP account"0"
nTotalPOOLBlockstringTotal quantity blocked/encumbered in the Pool account"0"
nTotalRecvBlockstringTotal quantity blocked in the receivable bucket"0"
sCurRecvBlockstringCurrent day's blocked receivable quantity"0"
TOTALBLOCKQUANTITYstringTotal blocked quantity across all buckets"0"
sDPFreestringFree (unblocked) quantity in the DP account"100"
sPOOLFreestringFree (unblocked) quantity in the Pool account"0"
sRecvFreestringFree quantity in the receivable bucket"0"
POOLPriorityintegerPriority of pool account in delivery; 1 = Pool is used before DP for delivery1
nPreferredMTMTokenintegerToken of the preferred exchange for MTM (Mark-to-Market) price calculation22
nPreferredMTMMarketSegmentIdintegerMarket segment ID of the preferred exchange for MTM calculation1
nCollateralQtyintegerQuantity currently pledged as collateral for margin0
nCollateralPricenumberPrice at which the collateral was valued0
ClosePricenumberPrevious day's closing price of the scrip2619.35
nPOOLPledgeCollateralQtyintegerQuantity pledged from the Pool account as collateral0
nDPPledgeCollateralQtyintegerQuantity pledged from the DP account as collateral100