Files
bitfinex-api-py/bfxapi/websocket/subscriptions.py
2023-01-24 19:02:44 +01:00

35 lines
557 B
Python

from typing import TypedDict, Optional
__all__ = [
"Ticker",
"Trades",
"Book",
"Candles",
"Status"
]
class Ticker(TypedDict):
chanId: int; symbol: str
pair: Optional[str]
currency: Optional[str]
class Trades(TypedDict):
chanId: int; symbol: str
pair: Optional[str]
currency: Optional[str]
class Book(TypedDict):
chanId: int
symbol: str
prec: str
freq: str
len: str
pair: str
class Candles(TypedDict):
chanId: int
key: str
class Status(TypedDict):
chanId: int
key: str