We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 719c002 commit 1909ad1Copy full SHA for 1909ad1
hyperliquid/utils/types.py
@@ -65,7 +65,7 @@
65
AllMidsData = TypedDict("AllMidsData", {"mids": Dict[str, str]})
66
AllMidsMsg = TypedDict("AllMidsMsg", {"channel": Literal["allMids"], "data": AllMidsData})
67
L2Level = TypedDict("L2Level", {"px": str, "sz": str, "n": int})
68
-L2BookData = TypedDict("L2BookData", {"coin": str, "levels": Tuple[List[L2Level]], "time": int})
+L2BookData = TypedDict("L2BookData", {"coin": str, "levels": Tuple[List[L2Level], List[L2Level]], "time": int})
69
L2BookMsg = TypedDict("L2BookMsg", {"channel": Literal["l2Book"], "data": L2BookData})
70
PongMsg = TypedDict("PongMsg", {"channel": Literal["pong"]})
71
Trade = TypedDict("Trade", {"coin": str, "side": Side, "px": str, "sz": int, "hash": str, "time": int})
0 commit comments