Apply black to all python files (bfxapi/**/*.py).

This commit is contained in:
Davide Casale
2024-02-26 19:43:14 +01:00
parent 2b7dfc5b8a
commit 38dbff1141
33 changed files with 1843 additions and 1335 deletions

View File

@@ -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