mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Apply black to all python files (bfxapi/**/*.py).
This commit is contained in:
@@ -4,16 +4,19 @@ Subscription = Union["Ticker", "Trades", "Book", "Candles", "Status"]
|
||||
|
||||
Channel = Literal["ticker", "trades", "book", "candles", "status"]
|
||||
|
||||
|
||||
class Ticker(TypedDict):
|
||||
channel: Literal["ticker"]
|
||||
sub_id: str
|
||||
symbol: str
|
||||
|
||||
|
||||
class Trades(TypedDict):
|
||||
channel: Literal["trades"]
|
||||
sub_id: str
|
||||
symbol: str
|
||||
|
||||
|
||||
class Book(TypedDict):
|
||||
channel: Literal["book"]
|
||||
sub_id: str
|
||||
@@ -22,11 +25,13 @@ class Book(TypedDict):
|
||||
freq: Literal["F0", "F1"]
|
||||
len: Literal["1", "25", "100", "250"]
|
||||
|
||||
|
||||
class Candles(TypedDict):
|
||||
channel: Literal["candles"]
|
||||
sub_id: str
|
||||
key: str
|
||||
|
||||
|
||||
class Status(TypedDict):
|
||||
channel: Literal["status"]
|
||||
sub_id: str
|
||||
|
||||
Reference in New Issue
Block a user