Actions61
- Activity Actions
- Asset Actions
- Custom Query Actions
- Hub Actions
- Lending Actions
- Market Data Actions
- Position Management Actions
- Position Swap Actions
- Protocol Actions
- Reserve Actions
- Spoke Actions
- Swap Actions
- User Position Actions
User Position → Get Risk Premium Breakdown
AI-generatedSummary
Fetch the risk premium breakdown for a user's Aave V4 position
Inputs
- chainId — Chain name or ID; choose from the list or specify an ID using an expression
- userAddress (required) — The Ethereum address of the user
- positionId — The ID of the user position (optional if spoke ID provided)
- spokeIdForPosition — The spoke for the position (optional if position ID provided); choose from the list or specify an ID using an expression
Output shape
an object containing the risk premium breakdown for the specified position
The response shape depends on the underlying Aave API; it typically includes risk premium metrics and related details, but the exact field list may vary
Examples
Example 1: Retrieve risk premium breakdown using a position ID on Ethereum mainnet
{"chainId":"1","userAddress":"0xAbc123...","positionId":"position_789","spokeIdForPosition":""}
Example 2: Retrieve risk premium breakdown using a spoke ID instead of a position ID
{"chainId":"1","userAddress":"0xAbc123...","positionId":"","spokeIdForPosition":"spoke_456"}
Example 3: Fetch risk premium breakdown for a custom chain using default options
{"chainId":"56","userAddress":"0xDef456...","positionId":"","spokeIdForPosition":""}