Exclude subId field from every subscription dictionary.

This commit is contained in:
Davide Casale
2023-01-24 19:02:44 +01:00
parent 8047e3609d
commit 28c00d460b
2 changed files with 1 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class PublicChannelsHandler(object):
_clear = lambda dictionary, *args: { key: value for key, value in dictionary.items() if key not in args }
if channel := subscription["channel"] or channel in self.__handlers.keys():
return self.__handlers[channel](_clear(subscription, "event", "channel"), *stream)
return self.__handlers[channel](_clear(subscription, "event", "channel", "subId"), *stream)
def __ticker_channel_handler(self, subscription, *stream):
if subscription["symbol"].startswith("t"):

View File

@@ -24,7 +24,6 @@ class Book(TypedDict):
prec: str
freq: str
len: str
subId: int
pair: str
class Candles(TypedDict):