Portfolio
Get Holdings
Fetches the holdings which the user has bought/sold in previous trading sessions.
get/v2/portfolio/long-term-holdings
Request
- Base URL: https://api-v2.upstox.com
- URL: https://api-v2.upstox.com/v2/portfolio/long-term-holdings
- Auth: OAuth 2 (authorization code, authorization URL https://api-v2.upstox.com/v2/login/authorization/dialog, token URL https://api-v2.upstox.com/v2/login/authorization/token)
Response
Successful
Example response
{
"data": [
{
"isin": "INE118H01025",
"collateral_type": "WC",
"company_name": "BSE LIM",
"haircut": 0.23,
"product": "D",
"quantity": 1,
"tradingsymbol": "BSE",
"last_price": 120.01,
"close_price": 120.01,
"pnl": 120.01,
"average_price": 120.01,
"trading_symbol": "BSE",
"exchange": "NSE"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.