API Error – Incorrect Response for Nifty Futures Data Request

I am facing issues while retrieving Nifty Futures market data using the Upstox API. Despite following the documentation and using the correct request format, I am consistently encountering errors.

Issue Details:

API Endpoint Used: /market-quote/quotes and /historical-candle

I am using following URL:

https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_FO|NIFTY20250327

Instrument Key Used: NSE_FO|NIFTYFUT

Error Message Received:

{
“status”: “error”,
“errors”: [{
“errorCode”: “UDAPI100500”,
“message”: “Something went wrong… please contact us”,
“propertyPath”: null,
“invalidValue”: null,
“error_code”: “UDAPI100500”,
“property_path”: null,
“invalid_value”: null
}]
}

Possible Issue:
The error message suggests either an internal server issue or an invalid instrument key format. However, I have double-checked the instrument key format based on the Upstox documentation and the latest expiry dates.

Request for Assistance:

  1. Verify the correct instrument key format for retrieving Nifty Futures data. Please provide the example URL for Nifty Index Future & Equity Future data

  2. Provide guidance on resolving this issue so that I can successfully retrieve live and historical market data.

Hi @Sonika,

The instrument key you are using is invalid. Please refer to the instrument JSON file available at this link for valid instrument keys. For example, NSE_FO|35345 is a valid instrument key for BANKBARODA FUT 27 MAR 25.

Thank you!