Hi Team
I am not receiving any data while fetching the option chain data. Data filed is EMPTY.
Can you please look into this issue.
Code :
option_chain_url = "https://api.upstox.com/v2/option/chain"
params = {
"instrument_key": "NSE_INDEX|Nifty 50",
"expiry_date": "2025-09-04"
}
headers = {
"accept": "application/json",
"Authorization": f"Bearer {ACCESS_TOKEN}"
}
response = requests.get(option_chain_url, headers=headers, params=params)
print(response.json())
Output :
{'status': 'success', 'data': []}