mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Split websocket package in multiple sub-package. Split handlers.py in public_channels_handler.py and authenticated_channels_handler.py. Rename files attaining to new conventions.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from typing import TypedDict, Optional
|
||||
from typing import TypedDict, Union, Optional
|
||||
|
||||
__all__ = [
|
||||
"Subscription",
|
||||
|
||||
"Ticker",
|
||||
"Trades",
|
||||
"Book",
|
||||
@@ -8,6 +10,10 @@ __all__ = [
|
||||
"Status"
|
||||
]
|
||||
|
||||
_Header = TypedDict("_Header", { "event": str, "channel": str, "subId": str })
|
||||
|
||||
Subscription = Union["Ticker", "Trades", "Book", "Candles", "Status"]
|
||||
|
||||
class Ticker(TypedDict):
|
||||
chanId: int; symbol: str
|
||||
pair: Optional[str]
|
||||
|
||||
Reference in New Issue
Block a user