I want to get websocket real time option data for the first ITM in the sensex option chain. I have successfully got the first ITM in option chain and subscribed for real time ltp. But when the ITM changes, how can i change the symbol in websocket. Please help. thanks. The language which am using to build script is python.
Hi @mathew.9i8z9ee7,
You need to unsubscribe from the old symbols and resubscribe to the new ones. Alternatively, you can use the Option Chain API. Refer API docs here: API - FYERS
thanks Naresh for your comments, Is it possible to code in python to unsubscribe from the old symbols and resubscribe to the new ones within the same script automatically?
Hey @mathew.9i8z9ee7 ,
Yes it is possible to do it in python
@WWhYB2qrsx may i know how to do it ? thanks