Api call successful but getting the candle array empty

Hello Upstox API Team,

I am trying to fetch historical candle data using your v2 API, but I am consistently receiving an empty candle list, even though the API call is successful and returns a “success” status.

Here are the details of my request:

My User ID:

313068

Request URL:

https://api.upstox.com/v2/historical-candle/NSE_EQ|INE155A01022/1minute/2025-07-24/2025-07-24

Response I am Receiving:

{“status”:“success”,“data”:{“candles”:}}

What I have already tried:

Generating a new access token multiple times.

Testing with different instrument keys (e.g.,

NSE_EQ|INE155A01022

for TATA MOTORS and

NSE_EQ|INE002A01018

for RELIANCE).

Testing with different date ranges (both for the last 30 minutes and for the full day).

In all cases, the API call is successful, but the ‘candles’ array is empty. Could you please check if there is an issue with my account’s API data permissions or if there is a problem on your server’s end?

Hi @VIKAS_1232060, it looks like you’re trying to fetch historical candles for the current day. For this, please use the Intraday Candles API V3.

Kindly note that the V2 API will be deprecated soon, so we recommend migrating to V3 as early as possible.

Thanks

1 Like

in you documentation , for loging python sdk , you example code also use version 2 , why not v3

i am trying to fetch todaydata for supertrend calculation, why its showing this {‘candles’: } i am getting live data but i need previuos 10 candles data , how to do that ?

For current day you need to use intraday data api. In historical you will get upto previous day data.