As mentioned in your description In file ticker.py
List of current subscribed tokens
self.subscribed_tokens = {}
you have made it actually a dictionary instead of a list.
Reason for raising issue is if I want to unsubscribe from all the instruments I could have written ticker.unsubscribe[ticker. self.subscribed_tokens] but now I have to convert it to list , would be advisable to change it to a list instead.
As mentioned in your description In file ticker.py
List of current subscribed tokens
you have made it actually a dictionary instead of a list. Reason for raising issue is if I want to unsubscribe from all the instruments I could have written ticker.unsubscribe[ticker. self.subscribed_tokens] but now I have to convert it to list , would be advisable to change it to a list instead.