Skip to main content
GET
/
lending-stocks
/
api
/
positions
/
{marketId}
/
loan
/
{loanId}
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/loan/5" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "loanId": "5",
    "borrower": "0xabc...def",
    "collateralAmount": "100.000000000000000000",
    "principal": "5000.000000",
    "accruedInterest": "12.500000",
    "healthFactor": "2.450000000000000000",
    "active": true
  }
}
Returns live loan data from the on-chain contract by numeric loan ID.

Path Parameters

marketId
string
required
Market ID.
loanId
integer
required
On-chain loan ID (positive integer).
curl "https://api.trusset.org/lending-stocks/api/positions/{marketId}/loan/5" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "loanId": "5",
    "borrower": "0xabc...def",
    "collateralAmount": "100.000000000000000000",
    "principal": "5000.000000",
    "accruedInterest": "12.500000",
    "healthFactor": "2.450000000000000000",
    "active": true
  }
}