Banknifty LTP api returning empty data

Hi Team, I am trying to fetch the last traded price using API curl --location ‘https://api.upstox.com/v2/market-quote/ltp?instrument_key=NSE_INDEX|NIFTY%20BANK’ --header ‘Accept: application/json’ --header 'Authorization: Bearer {MyAccessToken}
I am receiving the response like : {“status”:“success”,“data”:{}} What does it mean and how to get the correct price? Same URL returns the required data for individual stocks.

Also when try this : curl --location ‘https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_INDEX|NIFTY%20BANK’ --header ‘Accept: application/json’ --header ‘Authorization: Bearer {My Token}’, this is the response I get : {“status”:“error”,“errors”:[{“errorCode”:“UDAPI100500”,“message”:“Something went wrong… please contact us”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100500”,“property_path”:null,“invalid_value”:null}]}

Are there any reliable API’s I can use to get the LTP of Indices?

Thanks in advance

Hi @SAIKISHORE_1089227

You can use the following API to get the Last Traded Price (LTP) of indices: Upstox LTP API. Please refer to this cURL request as a reference.

curl --location 'https://api.upstox.com/v2/market-quote/ltp?instrument_key=NSE_INDEX%7CNifty%20Bank' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {MyAccessToken}'

If you use this same curl request, Then can you please tell the time at which you faced this issue so we can further investigate.

Thanks!