Issue with Expired Contract Historical Data (10-Minute Timeframe) Using Python SDK

I’m currently using the Upstox Python SDK to fetch historical data for expired option contracts. While fetching data in most timeframes (such as 1 minute, 5 minutes, and daily) works correctly, I’m consistently encountering an issue with the 10-minute timeframe — the API returns “no data found”, even though data exists for the same contract in other timeframes.

Here are the details of my setup and the issue:

SDK Used: Upstox Python SDK (upstox_client)

API Endpoint: /historical-candle-data

Contract Type: Expired NIFTY Option (e.g., NSE_FO|47667|04-11-2025)

Issue: No data returned when timeframe = “10minute”

Expected: 10-minute OHLCV data similar to other timeframes

Could you please confirm if this is a known limitation or a bug in the historical data API for expired contracts? If not, kindly advise how I can fetch 10-minute data for expired contracts.

Looking forward to your assistance.

Hi @SRIKANTH_1851698

The following intervals are supported in the Expired Instruments API call:
1minute, 3minute, 5minute, 15minute, 30minute, and day.

For more details, please refer to the official documentation for the Expired OHLC Contracts API:
https://upstox.com/developer/api-documentation/get-expired-historical-candle-data

Thanks!

Hi @Ketan

It’s similar issue for me as well.

We followed the Expired Contracts Candles data documentation and subscribed for Upstox Pro as well.

When we try to fetch the data resulting the API response No candles data available.

There is use of these APIs if the data is not available.