Skip to content

Commit 7a5c911

Browse files
committed
call lower on user address
1 parent 40d2598 commit 7a5c911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hyperliquid/websocket_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def subscription_to_identifier(subscription: Subscription) -> str:
3636
elif subscription["type"] == "activeAssetCtx":
3737
return f'activeAssetCtx:{subscription["coin"].lower()}'
3838
elif subscription["type"] == "activeAssetData":
39-
return f'activeAssetData:{subscription["coin"].lower()},{subscription["user"]}'
39+
return f'activeAssetData:{subscription["coin"].lower()},{subscription["user"].lower()}'
4040

4141

4242
def ws_msg_to_identifier(ws_msg: WsMsg) -> Optional[str]:
@@ -71,7 +71,7 @@ def ws_msg_to_identifier(ws_msg: WsMsg) -> Optional[str]:
7171
elif ws_msg["channel"] == "activeAssetCtx" or ws_msg["channel"] == "activeSpotAssetCtx":
7272
return f'activeAssetCtx:{ws_msg["data"]["coin"].lower()}'
7373
elif ws_msg["channel"] == "activeAssetData":
74-
return f'activeAssetData:{ws_msg["data"]["coin"].lower()},{ws_msg["data"]["user"]}'
74+
return f'activeAssetData:{ws_msg["data"]["coin"].lower()},{ws_msg["data"]["user"].lower()}'
7575

7676

7777
class WebsocketManager(threading.Thread):

0 commit comments

Comments
 (0)