Api not working properly


I am trying to get Midcap and Finnifty option chain data but no data is fetching for midcap although the response I am getting is “ successful”
Please provide me the solution for this asap.

Hi @Aashish_Tahlan you are using an invalid instrument key, the correct instrument key is NSE_INDEX|NIFTY MID SELECT

also you can try with this url → https://api.upstox.com/v2/option/chain?instrument_key=NSE_INDEX|NIFTY MID SELECT&expiry_date=2025-02-27.

Thank you!

I want to trad in algo trading I want Information of api how to use it

@MOHAMMAD_21672916 Our documentation is a great place to start. Wishing you the best on this journey!