An underlying stock instrument key is required, but you are entering the option contract instrument key, as indicated below:
{
"weekly": false,
"segment": "NSE_FO",
"name": "RELIANCE INDUSTRIES LTD",
"exchange": "NSE",
"expiry": 1714069799000,
"instrument_type": "CE",
"asset_symbol": "RELIANCE",
"underlying_symbol": "RELIANCE",
"instrument_key": "NSE_FO|129973",
"lot_size": 250,
"freeze_quantity": 7500.0,
"exchange_token": "129973",
"minimum_lot": 250,
"asset_key": "NSE_EQ|INE002A01018",
"underlying_key": "NSE_EQ|INE002A01018",
"tick_size": 5.0,
"asset_type": "EQUITY",
"underlying_type": "EQUITY",
"trading_symbol": "RELIANCE 2600 CE 25 APR 24",
"strike_price": 2600.0
}
Refer to the underlying stock detailed below:
{
"segment": "NSE_EQ",
"name": "RELIANCE INDUSTRIES LTD",
"exchange": "NSE",
"isin": "INE002A01018",
"instrument_type": "EQ",
"instrument_key": "NSE_EQ|INE002A01018",
"lot_size": 1,
"freeze_quantity": 100000.0,
"exchange_token": "2885",
"tick_size": 5.0,
"trading_symbol": "RELIANCE",
"short_name": "Reliance Industries",
"security_type": "NORMAL"
}
Use the following URL when you fetch the option for the trading symbol “RELIANCE”:
https://api.upstox.com/v2/option/chain?instrument_key=NSE_EQ|INE002A01018&expiry_date=2024-04-25