Historical api not working properly

Dear Upstox Support Team,

I hope this message finds you well. I am reaching out to report an issue with the historical API endpoints, which seem to be returning 400 Client Errors for certain requests. Below are the details of the errors encountered:

Error fetching data for NSE_EQ|INE291W01029: 400 Client Error: Bad Request for URL: https://api.upstox.com/v2/historical-candle/NSE_EQ%7CINE291W01029/day/2024-12-10/2014-12-13

Error fetching data for NSE_EQ|INE651C01018: 400 Client Error: Bad Request for URL: https://api.upstox.com/v2/historical-candle/NSE_EQ%7CINE651C01018/day/2024-12-10/2014-12-13
Error fetching data for NSE_EQ|INE516K01024: 400 Client Error: Bad Request for URL: https://api.upstox.com/v2/historical-candle/NSE_EQ%7CINE516K01024/day/2024-12-10/2014-12-13

giving out error code as : UDAPI100011

This issue appears to persist across multiple instruments and date ranges. Could you please investigate and provide guidance on the following:

  1. Are there any known issues or updates affecting the historical API service?
  2. Is the URL format or payload incorrect based on recent API changes?
  3. Could you suggest any steps I should take to troubleshoot this on my end?

Your assistance in resolving this issue promptly would be greatly appreciated, as it is impacting my ability to retrieve historical data for analysis.

Looking forward to your response.
Best regards,
lakshay chauhan

Hi @lakshay_chauhan,

The error UDAPI100011 signifies an Invalid Instrument Key. To use the correct and updated instrument keys, it is recommended to fetch them from our instrument JSON file daily.

The first instrument key you shared, INE291W01029, corresponds to Global Education Ltd. However, as per this NSE circular, the ISIN for the company has been updated to INE291W01037.

Thank you

thank you ketan for drawing my attension to this.

1 Like