I am running the websocket successfully, but unable to Unsubscribe the Symbols for the existing running websocket from subscribed symbols.
Am using this code but it isn’t working. please help me to get the right code for it.
data = {
"guid": "someguidaa",
"method": "unsub",
"data": {
"mode": "full",
"instrumentKeys": ['NSE_FO|63197']
}
}
binary_data = json.dumps(data).encode('utf-8')
await websocket.send(binary_data)