Fyers api v3 unsubscribe is not working as expected i am still receving updates
#function call, calling my unsubscribe method here in python
self.unsubscribe_symbol(sym, 'symbolData')
#function defenision
def unsubscribe_symbol(self, sym, data_type):
if self.subscription_active:
try:
self.fyers_websocket.unsubscribe(symbols=[sym], data_type=data_type)
self.subscription_active = False
return True
except Exception as e:
print(f"Error while unsubscribing: {e}")
Could you please send us the logs for the same.
Facing the same issue.
Link: https://community.fyers.inhttps://fyers.in/community/t/unable-to-unsubscribe/20985
https://community.fyers.inhttps://fyers.in/community/t/unable-to-unsubscribe/20985