API keys 🗝️ issue from upstock for option chain

Hello Upstox API Team,

I am using the official Upstox Python SDK v2.0.0 with a valid access token.

All API endpoints (intraday candles, trades, order book, market data) work correctly.

However, when I call the Option Chain / Option Contract API for index symbols:

- NIFTY 50 → NSE_INDEX|Nifty 50

- BANKNIFTY

- SENSEX

the response returns:

success = true

but data = (no contracts received)

This appears to be an entitlement / permission issue on my API key.

Request:

1. Please verify if my account has Index Derivatives data access enabled.

2. Please enable Option Chain API access for:

  • NIFTY

  • BANKNIFTY

  • SENSEX

3. Confirm if the Option Contract API is active for retail API users.

My integration works perfectly for all other APIs, so this issue is isolated to derivatives data only.

Thank you.

Hi @Saurabh_34509642,
Please verify that you are passing the correct expiry dates for these indices.
Since you are receiving a successful response, your access token and the index instrument key appear to be correct — the issue is likely with the expiry date being used.

Regarding your questions, all users have access to these APIs.

Also you can refer to these example codes