Markets
Get Market Metrics
Retrieve live on-chain metrics for a lending market
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
Market ID.
Response Fields
Show child attributes
Show child attributes
Whether on-chain data was successfully fetched
Total USDC deposited by LPs (6-decimal formatted)
Total USDC currently borrowed
USDC available for new borrows
Utilization in basis points
Annual borrow rate in basis points
Annual supply rate in basis points
Number of open loans
Number of active Dutch auctions
Pending liquidation debt count
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
}
}
⌘I
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
}
}
