Hi,

Once i have started websocket streaming of data, subscibing a new symbol works, but unsubscribing doesnt works.

I keep getting the data of symbols which i had unsubscribed

Here is the sample Code

def unSubscribeSymbol(self,symbol=None):
    data_type = "symbolData"
    symbol = ["NSE:NIFTY50-INDEX"]
    print("UnSubscribe Called")
    self.fs.unsubscribe(symbol=symbol)

 

PS:

self.fs is globally accessed variable which has the object of websocket.