hl_user_abstraction
Retrieve a Hyperliquid user's unified account and portfolio margin state, abstracting positions and margin into a single view.
Instructions
Unified account / portfolio margin abstraction (userAbstraction).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user": "<user>"
},
"name": "hl_user_abstraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |