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
string
required
Market ID.
Response Fields
object
Show child attributes
Show child attributes
boolean
Whether on-chain data was successfully fetched
string
Total USDC deposited by LPs (6-decimal formatted)
string
Total USDC currently borrowed
string
USDC available for new borrows
string
Utilization in basis points
string
Annual borrow rate in basis points
string
Annual supply rate in basis points
integer
Number of open loans
integer
Number of active Dutch auctions
integer
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
}
}
