From 387ea5efcb38b421d7bf6784ddb34efafdf5a174 Mon Sep 17 00:00:00 2001 From: Julian Wiest Date: Mon, 10 Nov 2025 19:46:36 +0100 Subject: [PATCH] Implement vault_details method in info.py Added a method to retrieve vault details including user equity. --- hyperliquid/info.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hyperliquid/info.py b/hyperliquid/info.py index b59f81e8..baaa7455 100644 --- a/hyperliquid/info.py +++ b/hyperliquid/info.py @@ -705,6 +705,21 @@ def user_vault_equities(self, user: str) -> Any: """ return self.post("/info", {"type": "userVaultEquities", "user": user}) + def vault_details(self, vaultAddress: str, user: Optional[str] = None) -> Any: + """Retrieve details for a vault. + + POST /info + + Args: + vaultAddress (str): Onchain vault address in 42-character hexadecimal format. + user (Optional[str]): Onchain address in 42-character hexadecimal format. + + Returns: + Detailed information about a given vault. + If a user is given, this will also show information about the users equity in the vault. + """ + return self.post("/info", {"type": "vaultDetails", "vaultAddress": vaultAddress, "user": user}) + def user_role(self, user: str) -> Any: """Retrieve the role and account type information for a user.