Get account balances
get_account_balancesYOUR Hyperliquid balances (the API key's user — no address input, identity comes from the key): the main wallet you trade from manually, plus your Gambit agent's deposit wallet when one is registered (null when absent; an {alias_of_main_wallet: true} marker, with no balances to avoid double-counting, when the agent trades from the main wallet itself). Each wallet reports native_perp (the NATIVE perp clearinghouse's margin summary: account value, margin used, withdrawable, open-position count), spot token balances, and hip3_perp: one entry per HIP-3 builder DEX (xyz, flx, …) where the wallet has funds or positions, with the same margin fields plus collateral_token (null when unknown). Each DEX is its own margin account, possibly in a different collateral token, so never add them into native_perp. Unified accounts hold pooled collateral in spot, so a zero native_perp does not mean no funds. hip3.failed_dexes lists any DEX that could not be read (meta.quality is then "partial"); hip3.included false means the DEX list itself was unavailable. (Requires api:read.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||