Skip to main content
GET
/
lending-stocks
/
api
/
markets
/
{marketId}
/
metrics
curl "https://api.trusset.org/lending-stocks/api/markets/{marketId}/metrics" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "isOnChain": true,
    "totalDeposits": "500000.000000",
    "totalBorrows": "125000.000000",
    "availableLiquidity": "375000.000000",
    "utilizationRate": "2500",
    "borrowRate": "450",
    "supplyRate": "84",
    "totalShares": "500000000000.000000000000000000",
    "totalCollateral": "2500.000000000000000000",
    "activeLoans": 12,
    "activeAuctions": 0,
    "pendingLiquidations": 0
  }
}
Returns real-time market data read directly from the smart contract: total liquidity, borrows, utilization, borrow rate, and pending liquidation debt.

Path Parameters

marketId
string
required
Market ID.

Response Fields

data
object
curl "https://api.trusset.org/lending-stocks/api/markets/{marketId}/metrics" \
  -H "X-API-Key: trusset_your_key_here"
{
  "success": true,
  "data": {
    "isOnChain": true,
    "totalDeposits": "500000.000000",
    "totalBorrows": "125000.000000",
    "availableLiquidity": "375000.000000",
    "utilizationRate": "2500",
    "borrowRate": "450",
    "supplyRate": "84",
    "totalShares": "500000000000.000000000000000000",
    "totalCollateral": "2500.000000000000000000",
    "activeLoans": 12,
    "activeAuctions": 0,
    "pendingLiquidations": 0
  }
}