mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Add bfxapi/websocket/typing.py script and define some custom types.
This commit is contained in:
16
bfxapi/websocket/typings.py
Normal file
16
bfxapi/websocket/typings.py
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
from typing import TypedDict, Optional
|
||||||
|
|
||||||
|
class BalanceUpdateStream(TypedDict):
|
||||||
|
AUM: float
|
||||||
|
AUM_NET: float
|
||||||
|
|
||||||
|
class WalletUpdateStream(TypedDict):
|
||||||
|
WALLET_TYPE: str
|
||||||
|
CURRENCY: str
|
||||||
|
BALANCE: float
|
||||||
|
UNSETTLED_INTEREST: float
|
||||||
|
BALANCE_AVAILABLE: Optional[float]
|
||||||
|
DESCRIPTION: str
|
||||||
|
META: dict
|
||||||
|
|
||||||
|
WalletSnapshotStream = list[WalletUpdateStream]
|
||||||
Reference in New Issue
Block a user