Facing UDAPI1087 Error for Bank Nifty Index in API V3 and 401 error code

I am facing an issue while fetching the live market data for the Bank Nifty Index using the Upstox Python SDK (V3). Despite having a valid access token generated today, I am unable to receive the LTP.

Here are the details of my setup:

API Version: 3.0

Instrument Key used: NSE_INDEX|Nifty Bank (also tried NSE_FO|46440)

SDK: upstox-python-sdk

Error Message: UDAPI1087 - Invalid symbol or No data available

Token Status: Generated fresh today.

Problem Description:

Even though the API connection is successful, the get_full_market_quote method returns an error or null value for the Bank Nifty Index. I have checked my Developer Console, and the app is active.

Questions:

Is there a specific subscription required for Market Data API to access Index LTP?

Is the instrument key format NSE_INDEX|Nifty Bank correct for V3?

Why am I getting the UDAPI1087 error for a valid index?

Could you please check if my account has the necessary permissions for Market Data Feed?

Thanks,

[Sibin]

Hi @Sibin_27978110, No special permissions are required for the Market Quote APIs, and the instrument key format appears to be correct. Could you please share your 6-digit UCC? Also, kindly try the cURL request below and let us know the response.

curl -X 'GET' \
  'https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_INDEX%7CNifty%20Bank' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer {access_token}'