mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Exclude subId field from every subscription dictionary.
This commit is contained in:
@@ -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"):
|
||||
|
||||
@@ -24,7 +24,6 @@ class Book(TypedDict):
|
||||
prec: str
|
||||
freq: str
|
||||
len: str
|
||||
subId: int
|
||||
pair: str
|
||||
|
||||
class Candles(TypedDict):
|
||||
|
||||
Reference in New Issue
Block a user