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
}
}
Retrieve live on-chain metrics for a lending market
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
}
}
Show child attributes
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
}
}