Merge pull request #22 from Davi0kProgramsThings/fix/subscriptions

Exclude subId field from every subscription dictionary.
This commit is contained in:
Davide Casale
2023-01-24 19:04:20 +01:00
committed by GitHub
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):