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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain to target. Supported: 1, 4663. Default: 1. | |
| userAddress | Yes | Wallet address to read positions for. |