How to fetch live option chain data

need to fetch option chain live

Live data for the option chain can be accessed through the websocket. For guidance, please refer to the WebSocket API documentation available at Market Data Feed | Upstox Developer API.

Additionally, to assist you in getting started swiftly, we offer examples in Python, Java, Node.js, PHP, and React.js at Sample Implementation | Upstox Developer API.

To retrieve the necessary instrument key for options, you can download it in CSV or JSON format at Instruments | Upstox Developer API.

I hope you find this information helpful.

thank Pradeep . that is very helpfull

one more question can we get same with historical data to access the option chain and also for historical option expiry data

You can retrieve the historical data of active contracts using the API at Historical Data | Upstox Developer API using the instrument for options.

The inclusion of option expiry data is currently on our backlog. We will inform you once we consider it for implementation.

1 Like

Thanks .it will be a great features if we got expired option expiry data .
however is there any way we can get expired data from the api or using socket?

The inclusion of option expiry data is currently on our backlog. We will inform you once we consider it for implementation. There is no way to retrieve the expired data from API or Socket as of now.