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?