diff --git a/bfxapi/websocket/typings.py b/bfxapi/websocket/typings.py new file mode 100644 index 0000000..f1e39ec --- /dev/null +++ b/bfxapi/websocket/typings.py @@ -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] \ No newline at end of file