Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions hyperliquid/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down