waiaas_hl_get_spot_balances
Retrieve Hyperliquid spot token balances for a wallet to monitor cryptocurrency holdings and manage portfolio allocation.
Instructions
Get Hyperliquid spot token balances for a wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. Auto-resolved for single-wallet sessions. |
Implementation Reference
- The handler implementation for the 'waiaas_hl_get_spot_balances' tool, which fetches spot token balances from a Hyperliquid wallet.
server.tool( 'waiaas_hl_get_spot_balances', withWalletPrefix('Get Hyperliquid spot token balances for a wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'), }, async (args) => { const walletId = args.wallet_id || 'default'; const result = await apiClient.get(`/v1/wallets/${walletId}/hyperliquid/spot/balances`); return toToolResult(result); }, );