Get open positions
get_positionsYOUR open Hyperliquid perp positions (the API key's user — no address input, identity comes from the key), for both the main wallet and the agent deposit wallet (null when no agent wallet; an {alias_of_main_wallet: true} marker when the agent trades from the main wallet itself). Each position carries side, size, entry price, position value, unrealized PnL, ROE, leverage, liquidation price (null when none), and margin used. Native perp positions come first, then HIP-3 builder-DEX positions with their dex-prefixed symbol (xyz:TSLA) and a dex field. hip3.failed_dexes lists any DEX that could not be read (meta.quality is then "partial") — positions there may be missing; hip3.included false means no HIP-3 DEX was read. Otherwise an empty list genuinely means no open positions. HIP-3 rows can be up to ~2 s old (shared cache). (Requires api:read.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||