Fyers websocket - symbol change based on the option chain

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.

4 replies