Skip to main content

Get Holdings

API to retrieve the list of mutual fund (MF) holdings for the user. The data reflects the user’s current MF portfolio and can be used to track investment performance and portfolio allocation.

Request

curl --location 'https://api.upstox.com/v2/mf/holdings' \
--header 'accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

Additional samples in various languages are available in the Sample Code section on this page.

Responses

Response Body

{
"status": "success",
"data": [
{
"instrument_key": "INF200K01T51",
"folio": "3108290884",
"fund": "SBI SMALL CAP FUND - DIRECT PLAN - GROWTH",
"pnl": -703.68,
"quantity": 110.0,
"average_price": 181.80,
"last_price": 175.43,
"last_price_date": "2026-03-06",
"pledged_quantity": 0
},
{
"instrument_key": "INF179K01WM1",
"folio": "310829013",
"fund": "HDFC NIFTY 50 INDEX FUND - DIRECT PLAN - GROWTH",
"pnl": -46.8,
"quantity": 2.0,
"average_price": 250.0,
"last_price": 226.6,
"last_price_date": "2026-03-06",
"pledged_quantity": 0
},
{
"instrument_key": "INF204K01K15",
"folio": "3108290881",
"fund": "NIPPON INDIA SMALL CAP FUND DIRECT PLAN GROWTH PLAN GROWTH",
"pnl": 796.86,
"quantity": 11.0,
"average_price": 100.0,
"last_price": 172.45,
"last_price_date": "2026-03-06"
}
]
}
NameTypeDescription
statusstringOutcome of the request.
dataarrayHolding rows.
data[].instrument_keystringFund ISIN when available.
data[].foliostringFolio number when available.
data[].average_pricenumberAverage cost per unit.
data[].last_pricenumberLast available NAV.
data[].last_price_datestringDate for which last NAV applies.
data[].pledged_quantitynumberUnits pledged when applicable.
data[].fundstringFund display name.
data[].pnlnumberUnrealized profit or loss.
data[].quantitynumberUnits held.

Sample Code

Get mutual fund holdings

import requests

url = 'https://api.upstox.com/v2/mf/holdings'
headers = {
'accept': 'application/json',
'Authorization': 'Bearer {your_access_token}',
}
print(requests.get(url, headers=headers).json())
Loading...