Holdings
This API allows you to fetch the equity and mutual fund holdings in your demat account.
USE CASE
Show a portfolio view with quantity, cost price, market value and profit or loss for each holding.
Details
- Fetches the equity and mutual fund holdings which the user has in this demat account. This will include T1 and demat holdings.
- Your app needs the Transactions Info permission. Holdings is part of that template, along with Orders, Positions, Trades, Funds and Market Status.
- The request takes no parameters. The
holdingslist returns equity and mutual fund holdings, including T1 holdings and holdings already in demat. holdingTypetells the kind of holding. See Holding Types for the values.quantityis the quantity at the start of the day.remainingQuantityis that quantity minus what was sold during the day.qty_t1is the T+1 quantity.collateralQuantityis the pledged quantity andremainingPledgeQuantityis the pledged quantity still remaining.- The
overallobject givescount_total,total_investment,total_current_value,total_plandpnl_percfor the whole portfolio. - Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Request Attributes - For each holding
| Attribute | Data Type | Description |
|---|---|---|
symbol | string | Eg: NSE:RCOM-EQ |
holdingType | string |
|
quantity | int | The quantity of the symbol which the user has at the beginning of the day |
remainingQuantity | int | This reflects the quantity - the quantity sold during the day |
pl | float | Profit and loss made |
costPrice | float | The original buy price of the holding |
marketVal | float | The Market value of the current holding |
ltp | float | LTP is the price from which the next sale of the stocks happens |
id | int | The unique value for each holding |
fytoken | string |
|
exchange | int |
|
segment | int |
|
isin | string | Unique ISIN provided by exchange for each symbol |
qty_t1 | int | Quantity t+1 day |
remainingPledgeQuantity | int | Remaining Pledged quantity |
collateralQuantity | int | Pledged quantity |
Response Attributes - Overall holdings
| Attribute | Data Type | Description |
|---|---|---|
count_total | int | Total number of holdings present |
total_investment | float | Invested amount for the current holdings |
total_current_value | float | The present value of the holdings |
total_pl | float | Total profit and loss made |
pnl_perc | float | Percentage value of the total pnl |
Last updated on