hl_clearinghouse_state
Get a Hyperliquid user's clearinghouse state: positions, margin summary, and withdrawable balances. Query real-time public user data without a private key.
Instructions
Perpetual clearinghouse state: positions, margin summary, withdrawable (clearinghouseState).
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_clearinghouse_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | ||
| user | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |