Analyze e-mode switch possibilities
POST/v1/data/lending/e-mode/analysis
Evaluate all e-mode switching options for a user sub-account.
Input: POST a UserDataForSubAccount object (the same shape returned by /user-positions per sub-account).
Output: For each available e-mode on the specified lender/chain, returns:
- healthFactor — the hypothetical health factor if the user switches to that mode (
nullif no debt) - supportedAssets — which marketUids are eligible as collateral or for borrowing in that mode
- canSwitch — whether the switch is safe (health factor > 1 and no incompatible debt)
E-mode categories are cached server-side (1 hour TTL). Market configs are cached (3 minute TTL).
Request
Responses
- 200
- 400
E-mode analysis results
Validation error