Skip to main content
GET
/
lending-stocks
/
api
/
positions
/
{marketId}
/
positions
/
{positionId}
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/positions/{positionId}" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "positionId": "pos_001",
    "onChainLoanId": "5",
    "userAddress": "0xabc...def",
    "borrowedAmount": "5000.000000",
    "collateralAmount": "100.000000000000000000",
    "accumulatedInterest": "12.500000",
    "healthFactor": "2.450000000000000000",
    "priceAtBorrow": "185.500000",
    "status": "active",
    "openedAt": "2025-06-10T08:00:00.000Z",
    "transactions": []
  }
}
Returns position details from the database, enriched with live on-chain data (principal, collateral, accrued interest, health factor) when an on-chain loan ID is linked.

Path Parameters

marketId
string
required
Market ID.
positionId
string
required
Position ID.
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/positions/{positionId}" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "positionId": "pos_001",
    "onChainLoanId": "5",
    "userAddress": "0xabc...def",
    "borrowedAmount": "5000.000000",
    "collateralAmount": "100.000000000000000000",
    "accumulatedInterest": "12.500000",
    "healthFactor": "2.450000000000000000",
    "priceAtBorrow": "185.500000",
    "status": "active",
    "openedAt": "2025-06-10T08:00:00.000Z",
    "transactions": []
  }
}