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 }
|
_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():
|
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):
|
def __ticker_channel_handler(self, subscription, *stream):
|
||||||
if subscription["symbol"].startswith("t"):
|
if subscription["symbol"].startswith("t"):
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ class Book(TypedDict):
|
|||||||
prec: str
|
prec: str
|
||||||
freq: str
|
freq: str
|
||||||
len: str
|
len: str
|
||||||
subId: int
|
|
||||||
pair: str
|
pair: str
|
||||||
|
|
||||||
class Candles(TypedDict):
|
class Candles(TypedDict):
|
||||||
|
|||||||
Reference in New Issue
Block a user