mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-21 15:54:26 +01:00
Move subscriptions type hinting from bfxapi/websocket/types.py to bfxapi/websocket/subscriptions.py.
This commit is contained in:
28
bfxapi/websocket/subscriptions.py
Normal file
28
bfxapi/websocket/subscriptions.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from typing import TypedDict, Optional
|
||||
|
||||
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
|
||||
subId: int
|
||||
pair: str
|
||||
|
||||
class Candles(TypedDict):
|
||||
chanId: int
|
||||
key: str
|
||||
|
||||
class Status(TypedDict):
|
||||
chanId: int
|
||||
key: str
|
||||
Reference in New Issue
Block a user