Historical API Suddenly Failing – No Prior Notice

Hi Upstox Team,

Until a few days ago, the historical API was working perfectly. But since yesterday, it’s throwing the following error even for previously working requests:

400 - {"message":"From and to difference too high for interval"}

After reviewing community discussions and your team’s response, it’s clear that a new restriction limits 1-minute candle requests to 3–4 days, citing server load issues. While we understand infrastructure challenges, this sudden change without any prior notice, documentation update, or migration plan is highly disappointing.

Many developers (including myself) rely on stable, predictable APIs for live systems. Dynamic data ranges, multiple indicators, and rate-limited environments cannot be adjusted overnight. Expecting users to redesign systems mid-week is not acceptable.

What’s more frustrating is:

  • No official announcement was made.
  • No rollback or temporary workaround offered.
  • It seems like users are forced to find hacks or move to other platforms.

Please clarify urgently:

  1. Is this a temporary bug or a permanent change?
  2. If permanent, will proper documentation and versioning be maintained going forward?
  3. If temporary, when can we expect normal functionality to resume?

If Upstox wants to support serious developers, transparency and developer-focused communication are essential. This silent backend change has disrupted real trading systems and left many of us reconsidering platform reliability.

Looking forward to a proper response.

they wont resolve this, you better look somewhere else

2 Likes

needs response on this … @Ushnota , @Pradeep_Jaiswar , @MohitGolecha @Ketan @Ketan_Gupta @shrini

Hi @NIRAV_21780358

I’m waiting for a couple of things to get clarified on our end and will post a detail on it soon. Meanwhile, fetch less than 2000 instruments at once and you will be able to fetch the data w/o any issues. For example, if you’re fetching 1min - 1day = 375 candles. Go for 4/5 days at once between the to-and-from days.

Hi @MohitGolecha, thanks for your response.

While I understand the temporary workaround of fetching 1-minute data in 4–5 day chunks, I want to raise a concern.

Your recent announcement about V3 Historical APIs promised major improvements—expanded intervals, better performance, and long-range data access (from Jan 2022). However, limiting 1-min candles to just a few days per request defeats the purpose of these enhancements.

For algo trading and backtesting, we often need weeks or months of minute data. If we have to make dozens of API calls just to get 1–2 months of data, it increases complexity and risks hitting rate limits.

If this restriction is temporary, please let us know when it will be lifted. If permanent, then the V3 API’s “enhanced” capability becomes meaningless in real-world use.

Looking forward to a clear update on whether this is a short-term limitation or a long-term change.

Thanks,

@NIRAV_21780358

Commenting anything right now is a bit risky. Both the possibilities are still relevant while we are working on this and trying on the best possible solution. Allow me a couple of days while we solve & patch this and get back to you with clarity on the way forward

1 Like

Hi @MohitGolecha , any update on this?

By chunking 2–3 days of 1-min data, we’re already hitting API limits and our backtesting systems are collapsing. Please resolve this urgently and let us know:

Is this a temporary issue?

What’s the tentative timeline for a fix?

Will proper long-range data access be restored?

Looking forward to clear clarification ASAP. Thanks.

Hi @SALONI_24197695 @NIRAV_21780358 @AMIT_21710050

An update on the same: New Update to Historical Market Data APIs

1 Like

@MohitGolecha and Team Upstox,

Thank you

Appreciate the effort! :folded_hands: