Market Quotes Api not working

I am unable to fetch the market quotes data for the NSE indexes and other instruments,
I am using the following code in python:
import requests

marketQuoteUrl = “https://api-v2.upstox.com/market-quote/quotes?instrument_key=NSE_INDEX|Nifty50

headers = {
“accept”: “application/json”,
“Content-Type”: “application/x-www-form-urlencoded”,
“Authorization” : f"Bearer {upstox_token}"
}
response = requests.get(marketQuoteUrl, headers=headers)
print(response.text);

and getting the following error :
{“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}]}

and this is happening for almost all NSE indices. How to resolve this?

Hi @Ashish_Bedi,

Welcome to the Upstox Community!

We are checking this now and will get back to you soon. Thanks.

Hi @Ashish_Bedi
You are using an invalid instrument token NSE_INDEX|Nifty50. Please use the correct instrument key: NSE_INDEX|Nifty 50.

Thanks!