Skip to main content
Reads a wallet’s leverage positions directly from chain state (read-only).

Input

string
required
Wallet address to read positions for.
integer
default:"1"

Output

Each position carries:

Exit health (per position)

Closing swaps the full leveraged collateral, so exit health is measured against the whole position — not your equity:
Poll this on open positions. A market can be deep while your position still exceeds the depth that exits cleanly — exceedsCleanExitSize: true means expect slippage on close. If a route disappears entirely, you can still exit in-kind (repay + remove_collateral need no swap) — see Oracle & exit liquidity.

Example

No cost-basis or realized P&L — those require off-chain history. Positions are read live from chain and returned newest-first.