Get account positions & margin
hl_get_accountGet a perpetual account snapshot for any EVM address: equity, margin usage, withdrawable funds, and open positions with entry price, unrealized PnL, leverage, and liquidation price.
Instructions
Perp account snapshot for any address: equity, margin usage, withdrawable, and open positions (size, entry, uPnL, leverage, liquidation price). Read-only; works for any public 0x address.
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": {
"address": "<address>"
},
"name": "hl_get_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | EVM 0x address (42 hex chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| positions | Yes | ||
| totalNtlPos | Yes | ||
| accountValue | Yes | ||
| withdrawable | Yes | ||
| totalMarginUsed | Yes | ||
| marginUtilization | Yes |