Get Positions
get_positionsRead a wallet's open/closed Spiral leverage positions from chain state (read-only). For each: collateral/loan, leveraged collateral, net equity, debt, current LTV vs liquidation LTV (with headroom), current leverage, net USD value, and current leveraged APY. No cost-basis / realized P&L (those need off-chain history). Newest first. equityPositions lists the wallet's open equity vaults (stock leg + the yield loop(s) it funds); those loops are excluded from positions.
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": {
"userAddress": "<userAddress>"
},
"name": "get_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain to target. Supported: 1, 4663. Default: 1. | |
| userAddress | Yes | Wallet address to read positions for. |