hl_get_user_state
Retrieve your Hyperliquid account details: positions, equity, margin, and unrealized PnL. Check your account state to monitor trading performance.
Instructions
Get your Hyperliquid account: positions, equity, margin, unrealized PnL. Requires HL_WALLET_ADDRESS (read-only) or HL_PRIVATE_KEY (trading) in env.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hl_get_user_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |