Positions & Queries
List Positions
List every borrowing position recorded for a market
GET
Returns all positions for a market, newest first, each with its five most recent transactions.
The endpoint reconciles against the chain before reading. Loan state is pulled from the market contract and written back to the position records, so
healthFactor, collateralAmount, borrowedAmount, and status reflect current chain state rather than the last value the backend happened to write. If the RPC is unavailable the reconciliation is skipped and stored values are returned unchanged.
Live state is fetched for the first 50 open positions only. Beyond that the stored values are served, so a market with more than 50 open loans returns a mix.
status is never inferred from that read. A terminal label is written only by the confirm calls and the event sweep that can attest to it. A loan the chain reports as closed therefore keeps its recorded status until its evidence arrives.
Path Parameters
string
required
Market ID.
Response Fields
object
Positions are recorded when a loan is opened through this API on confirm, and are backfilled from chain events during reconciliation. A loan opened by a wallet signing calldata directly is picked up on the next reconciliation pass rather than at broadcast time.
