LendingPosition
Position data for a single asset within a lending protocol.
marketUidstring
Unique market identifier (format: {lender}:{chainId}:{address})
Example:
AAVE_V3:1:0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2depositsstring
Deposit amount in token units (wei)
Example:
1000000000000000000debtstring
Variable debt in token units
Example:
0debtStablestring
Stable debt in token units
Example:
0depositsUSDnumber
Deposits in USD
Example:
2500debtUSDnumber
Variable debt in USD
Example:
0debtStableUSDnumber
Stable debt in USD
Example:
0collateralEnabledboolean
Whether this asset is enabled as collateral
Example:
trueclaimableRewardsnumber
Claimable rewards in USD
Example:
0.5withdrawablestring
Max tokens withdrawable while maintaining health >= 1. Equals full deposit balance if collateral is not enabled.
Example:
0.5borrowablestring
Max tokens borrowable against remaining credit line. Zero if borrowing is disabled, reserve is frozen, or debt is disabled for the active mode.
Example:
100LendingPosition
{
"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"
}