Hi,
I’ve been using the websockets-api to get the realtime prices of the instruments present in watchlist.
The application is designed to subscribe to a single socket connection, and the user can add or remove instruments from the watchlist.
Is it possible to update the list of instrument keys on the fly, for the same socket connection? or the socket has to be closed and a new socket connection has to be initiated with the new set of instrument keys?
Certainly, it’s feasible to dynamically update the list of instrument keys while maintaining the same socket connection. You can explore our WebSocket implementations in various programming language SDK for more details.