Get user lending positions with portfolio summary
GET/v1/data/lending/user-positions
Fetches lending and borrowing positions for a given account across one or more chains.
Response Structure:
data: Flat array of lender entries sorted by net worth (descending). Each entry fuses sub-account position data with aggregated summary metrics (deposits, debt, APRs, health, leverage).summary: Portfolio-wide totals (net worth, APRs, leverage, active counts) plus per-chain breakdowns.
Lender Entry includes:
- Per-asset deposits and debt (in USD and token units)
- Sub-account data with health factors and borrow capacity
- Aggregated lender-level metrics (total deposits/debt, weighted APRs, health factor, leverage)
- Collateral status, withdrawable/borrowable amounts per position
Portfolio Summary includes:
- Total deposits, debt, and net worth (current + 24h ago) across all chains
- Weighted average APRs and overall leverage ratio
- Count of active lenders and chains
- Per-chain totals (deposits, debt, net worth, lender count)
The server executes RPC calls internally and returns fully parsed results.
Request
Responses
- 200
- 400
User position data with portfolio summary
Validation error