Hi There
My user id is 68ACEW
Can someone please explain me why I am getting below error?
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.upstox.com/v3/historical-candle/NSE_EQ|INF769K01HS7/minutes/30/2025-06-10/2024-10-04
Hi @Jagdish_j_ptl, It appears you’re attempting to fetch historical data exceeding the allowed quarterly range. Please review the constraints outlined in the documentation as below.
I don’t understand why we should think about this date ranges? This could be done by your end. Instead of giving error you should modify date range as per the interval. If we have entered 30 minutes and our date range is for year then your server should return only latest quarter record from the specified to_date without giving error.