Dear Team,
Although I am passing the correct instrument_key(“NSE_INDEX|Nifty 50”) ,I am getting an error, could you please check and let me know, what I am missing.
TIA
My code (Python):
import requests
access_token = json_response[‘access_token’]
url = “https://api.upstox.com/v2/market-quote/quotes”
payload={
“instrument_key”: “SE_INDEX|Nifty 50”
}
headers = {
“Api-Version”: “2.0”,
“Authorization”: f"Bearer {access_token}",
“Accept”: “application/json”
}
response = requests.request(“GET”, url, headers=headers, data=payload)
print(response.text)