LenderDataEntry
Fused lender entry combining sub-account position data with aggregated summary metrics.
Lender identifier
AAVE_V3Chain ID
1User account address
0xbadA9c382165b31419F4CC0eDf0Fa84f80A3C8E5data object[]required
Sub-account position data
Sub-account identifier (e.g., "0" for default, NFT ID for Init)
0Health factor (null if no debt). Values > 1 are healthy, < 1 at risk of liquidation.
1.85Total USD borrowable while maintaining health >= 1
3000balanceData objectrequired
Aggregated balance data for a sub-account.
Total deposits in USD
10000.5Total debt in USD
5000.25Debt adjusted for borrow factors
5500Collateral value in USD
9000Collateral if all assets were enabled
10000.5Collateral discounted by borrow factors
8000Discounted collateral if all enabled
9000Net asset value (deposits - debt)
5000.25Deposits 24h ago (for change calculation)
9800Debt 24h ago
4900NAV 24h ago
4900rewards object
Pending rewards by token
Pending rewards by token
aprData objectrequired
APR breakdown for a sub-account.
Net APR (deposit - borrow)
2.5Weighted deposit APR
3.5Weighted borrow APR
5.2Total reward APR
1.2Reward APR on deposits
0.8Reward APR on borrows
0.4Intrinsic yield APR (e.g., stETH staking)
0Intrinsic yield APR portion from deposits
0Intrinsic yield APR portion from borrows
0rewards object
Reward token details
Reward token details
positions object[]required
Individual asset positions in this sub-account
Unique market identifier (format: {lender}:{chainId}:{address})
AAVE_V3:1:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2Deposit amount in token units (wei)
1000000000000000000Variable debt in token units
0Stable debt in token units
0Deposits in USD
2500Variable debt in USD
0Stable debt in USD
0Whether this asset is enabled as collateral
trueClaimable rewards in USD
0.5Max tokens withdrawable while maintaining health >= 1. Equals full deposit balance if collateral is not enabled.
0.5Max tokens borrowable against remaining credit line. Zero if borrowing is disabled, reserve is frozen, or debt is disabled for the active mode.
100userConfig objectrequired
User configuration for a sub-account.
E-Mode category (0 = none)
0Config identifier
0Whether user is whitelisted (for permissioned markets)
Total deposits in USD
10000Total debt in USD
5000Net worth (deposits - debt)
5000Net worth 24h ago
4900Weighted deposit APR
3.5Weighted borrow APR
5.2Net APR (deposit - borrow, weighted)
1.8Reward APR
1.2Health factor (null if no debt)
1.85Leverage ratio (deposits / netWorth)
2Collateral value in USD
9000{
"lender": "AAVE_V3",
"chainId": "1",
"account": "0xbadA9c382165b31419F4CC0eDf0Fa84f80A3C8E5",
"data": [
{
"accountId": "0",
"health": 1.85,
"borrowCapacityUSD": 3000,
"balanceData": {
"deposits": 10000.5,
"debt": 5000.25,
"adjustedDebt": 5500,
"collateral": 9000,
"collateralAllActive": 10000.5,
"borrowDiscountedCollateral": 8000,
"borrowDiscountedCollateralAllActive": 9000,
"nav": 5000.25,
"deposits24h": 9800,
"debt24h": 4900,
"nav24h": 4900,
"rewards": {}
},
"aprData": {
"apr": 2.5,
"depositApr": 3.5,
"borrowApr": 5.2,
"rewardApr": 1.2,
"rewardDepositApr": 0.8,
"rewardBorrowApr": 0.4,
"intrinsicApr": 0,
"intrinsicDepositApr": 0,
"intrinsicBorrowApr": 0,
"rewards": {}
},
"positions": [
{
"marketUid": "AAVE_V3:1:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"deposits": "1000000000000000000",
"debt": "0",
"debtStable": "0",
"depositsUSD": 2500,
"debtUSD": 0,
"debtStableUSD": 0,
"collateralEnabled": true,
"claimableRewards": 0.5,
"withdrawable": "0.5",
"borrowable": "100"
}
],
"userConfig": {
"selectedMode": 0,
"id": "0",
"isWhitelisted": true
}
}
],
"totalDepositsUSD": 10000,
"totalDebtUSD": 5000,
"netWorth": 5000,
"netWorth24h": 4900,
"depositApr": 3.5,
"borrowApr": 5.2,
"netApr": 1.8,
"rewardApr": 1.2,
"healthFactor": 1.85,
"leverage": 2,
"collateral": 9000
}