Instrument Key in API

In Documentation It is written that Instrument key gets update always at 6:00AM and could be changed during Market timings also. For options how general does it get updates and Is there any way to automate the process of Fetching NSE.json through api or something?

We update this through a scheduler, which is very reliable. You can also download the file using your scheduler, using the provided coordinates after 6:30 PM, and cache it on your end.

Currently, the instrument doesnā€™t have an API available. We recommend using the JSON file format instead.

For more details, please refer to JSON Files Documentation.

1 Like

Okh Sir, I want Instrument key for Options for NSE NIFTY Options. I was able to fetch within option chain.

I have a scheduler in my machine which runs below curl command which pulls the json and extract it to a location every dayā€¦

curl -O https://assets.upstox.com/market-quote/instruments/exchange/NSE.json.gz && gunzip -f ./NSE.json.gz