Missing Data in Option Chain Response

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': []}
1 Like

Even I am facing the same issue!

@Upstox Please look into this matter!

Hi @AMIT_33013870
Nifty expiry dates have now shifted from Thursdays to Tuesdays.

For more details, please refer to this article:
Read here

If you enter data for 2nd September or 9th September, you will be able to retrieve it.

Thanks!

Hi @Ketan

Thanks for the response.
Now, I was able to retrieve the data.

Thanks!

Got it! Thanks