UDAPI100500 while fetching holdings from the API

Get Holdings API has stopped working for me recently. Please fix this as I am able to access other APIs but not holdings API.

❯ curl -L -X GET 'https://api.upstox.com/v2/portfolio/long-term-holdings' \
-H 'Accept: application/json' -H 'Authorization: Bearer <My_Token>'
"message":"Something went wrong... please contact us",

Similar command worked for me to fetch profile and funds information.

Could you please provide your user_id and the approximate time when you called this API for further investigation?

Thank you

Im getting same error while fetching Put/Call Option Chain data.

import requests

url = 'https://api.upstox.com/v2/option/chain'
params = {
    'instrument_key': 'NSE_FO|35803',
    'expiry_date': '2024-07-11'
headers = {
    'Accept': 'application/json',
    'Authorization': f'Bearer {your_access_token}'

response = requests.get(url, params=params, headers=headers)


User ID - KZ2184
Time - 30 June 2024, 7PM-10PM

Any update on this issue?

Your instrument key is incorrect. You need to provide the key of an underlying symbol. For example, for Nifty 50, the parameters should be:

params = {
    'instrument_key': 'NSE_INDEX|Nifty 50',
    'expiry_date': '2024-07-11'

You can refer to the sample code here: Put call option chain | Upstox Developer API

Hi @Ketan /@Pradeep_Jaiswar

Can you please check the error for my case? Curl command looks fine to me as it is working for other APIs. Please fix this issue, so I can use the API smoothly, otherwise I will have to shift to other brokers for api access. Thanks!


Your curl request is correct. We identified and resolved an issue that was causing errors for some users when calling the holdings API.

Kindly verify if the above curl request functions correctly for you.

We apologize for the inconvenience caused.

Thank you.

1 Like