Skip to content

Commit 1909ad1

Browse files
committed
Fix L2BookData typing
1 parent 719c002 commit 1909ad1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyperliquid/utils/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
AllMidsData = TypedDict("AllMidsData", {"mids": Dict[str, str]})
6666
AllMidsMsg = TypedDict("AllMidsMsg", {"channel": Literal["allMids"], "data": AllMidsData})
6767
L2Level = TypedDict("L2Level", {"px": str, "sz": str, "n": int})
68-
L2BookData = TypedDict("L2BookData", {"coin": str, "levels": Tuple[List[L2Level]], "time": int})
68+
L2BookData = TypedDict("L2BookData", {"coin": str, "levels": Tuple[List[L2Level], List[L2Level]], "time": int})
6969
L2BookMsg = TypedDict("L2BookMsg", {"channel": Literal["l2Book"], "data": L2BookData})
7070
PongMsg = TypedDict("PongMsg", {"channel": Literal["pong"]})
7171
Trade = TypedDict("Trade", {"coin": str, "side": Side, "px": str, "sz": int, "hash": str, "time": int})

0 commit comments

Comments
 (0)