Regarding Upstox Api

While using the Upstox API (v2), I am facing an issue with fetching historical candlestick data for NSE_FO and NSE_EQ instruments. Specifically:

  1. API Endpoint Used: `https://api.upstox.com/v2/historical-candle/{instrument_key}/{interval}`
  2. Instrument Example: NSE_EQ|INFY, NSE_FO|RELIANCE
  3. Interval Tried: daily, 15minute, 5minute
  4. Observed Issue: The API returns empty data or HTTP 404 errors for these instruments, even though the access token is valid.

I would like to confirm:

  • Is historical candlestick data for F&O instruments available via the API?
  • Are there any limitations or special permissions required to access this data?
  • If available, could you provide an example API request that would successfully return candle data?

This data is crucial for implementing breakout detection and other technical analysis features in my application.

Hi @MOKSH_28918099

You’re using an invalid URL. Please use the correct endpoint as described in the API documentation: Get Historical Candle Data.

Additionally, the instrument key you provided is incorrect. Please refer to the correct instruments here: Instruments — JSON Files.

Thanks!