{"uid":"cap_af_OF4cPvJrrVEVhnuHmG","slug":"aave-v3-wsteth-depeg-liquidation-exposure-analyzer-9a4d5f9e","name":"Aave V3 wstETH Depeg Liquidation Exposure Analyzer","description":"Onchain- and crypto-market data for trading AI agents. Payment via x402 (USDC, exact scheme).","url":"https://api402x.com/lending-depeg-exposure?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain","borrower"],"properties":{"chain":{"enum":["ethereum","base"],"type":"string","description":"REQUIRED. Chain key, not a chain id: \"ethereum\" or \"base\"."},"borrower":{"type":"string","description":"REQUIRED. The borrower address (0x + 40 hex) whose Aave V3 position is analysed."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","description":"Full JSON Schema for this response is at /openapi.json, and the free /preview sibling returns the same shape on live data. It is not inlined here because response headers have a hard 16 KB limit in common HTTP clients (Node's default) and this response is large. The example alongside is complete and real."}}}}},"responseSchema":{"type":"json","example":{"debt":[{"asset":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","symbol":"USDC","balance":"4456.633226","decimals":6,"is_wsteth":false,"price_base":"99976696","value_base":"445559465220","balance_raw":"4456633226"}],"pool":"0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2","chain":"eip155:1","status":"wsteth_exposed","borrower":"0x1C1795bffeDa25De01A7C21c88b49D9592B0598D","protocol":"aave-v3","scenarios":[{"liquidatable":false,"health_factor":"1269539095992521220","steth_depeg_bps":100,"wsteth_price_base":"232514666591"},{"liquidatable":false,"health_factor":"1250303655143075449","steth_depeg_bps":250,"wsteth_price_base":"228991717097"}],"blind_spot":"Aave prices wstETH as (wstETH/stETH rate) x (ETH/USD) with stETH pinned to ETH at exactly 1:1, so a stETH secondary-market depeg does not move Aave's published health factor at all. 100.00% of this position's collateral is wstETH. This position would be liquidatable at a stETH depeg of 21.88% against ETH. That threshold is computed from Aave's own accounting at oracle prices: it says when the position becomes eligible for liquidation, not whether liquidators could actually execute at that price. Secondary-market depth is not modelled here and typically thins out during exactly the kind of depeg that would trigger this.","collateral":[{"asset":"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0","symbol":"wstETH","balance":"3.003422170265307695","decimals":18,"is_wsteth":true,"price_base":"234863299587","value_base":"705393640961","balance_raw":"3003422170265307695","emode_override_applied":false,"liquidation_threshold_bps":8100,"asset_liquidation_threshold_bps":8100}],"fetched_at":"2026-08-13T06:45:01.581Z","emode_label":null,"block_number":"25744383","aave_reported":{"ltv_bps":7850,"health_factor":"1282362723225485067","total_debt_base":"445559465220","total_collateral_base":"705393640961","available_borrows_base":"108174542934","health_factor_is_max_uint":false,"current_liquidation_threshold_bps":8100},"wsteth_pricing":{"asset":"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0","ratio":"1241514859119434274","eth_usd_base":"189174779393","oracle_adapter":"0xe1D97bF61901B075E9626c8A2340a7De385861Ef","ratio_decimals":18,"ratio_provider":"0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84","wsteth_usd_base":"234863299587","adapter_description":"Capped wstETH / stETH(ETH) / USD","decomposition_exact":true,"steth_priced_at_par_with_eth":true},"block_timestamp":"2026-08-13T06:44:47.000Z","emode_category_id":0,"onchain_verified_at":"2026-08-13T06:45:01.581Z","independent_recompute":{"ltv_bps":7850,"health_factor":"1282362723225485067","total_debt_base":"445559465220","matches_aave_exactly":true,"total_collateral_base":"705393640961","available_borrows_base":"108174542934","current_liquidation_threshold_bps":8100},"liquidation_depeg_bps":2202,"wsteth_collateral_share_bps":10000,"liquidation_depeg_unreachable":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0O839iGl0Ymjk52zE2i3m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the stETH secondary-market depeg percentage at which an Aave V3 borrower position becomes liquidatable — a risk Aave's own health factor does not surface.","exampleAgentPrompt":"Check whether my Aave V3 position on Ethereum for borrower address 0x1C1795bffeDa25De01A7C21c88b49D9592B0598D is exposed to stETH depeg risk, and tell me at what depeg percentage I'd get liquidated — because Aave's own health factor doesn't show this.","exampleUseCases":[{"title":"DeFi risk audit before stETH volatility","prompt":"My Aave V3 position on Ethereum uses wstETH as collateral and I'm worried about a stETH depeg event — can you check address 0x1C1795bffeDa25De01A7C21c88b49D9592B0598D and tell me at what stETH depeg I'd get liquidated and what my health factor looks like at 1%, 2.5%, and 5% depeg?"},{"title":"Automated position monitoring for depeg exposure","prompt":"I want to monitor this Aave V3 borrower 0xAbCd1234eFgH5678iJkL9012mNoP3456qRsT7890 on Base for hidden stETH depeg liquidation risk — run the depeg exposure check and tell me if they're exposed and what their liquidation threshold is."},{"title":"Third-party due diligence on a whale's Aave position","prompt":"Can you analyze the Aave V3 position for 0xDeAdBeEf0000000000000000000000000000000 on Ethereum and tell me whether their wstETH collateral would survive a stETH depeg of 15%, and what the actual liquidation depeg percentage is according to the recomputed health factor?"}],"resultDescription":"Returns a JSON object with: full collateral and debt asset breakdowns (including per-asset liquidation thresholds and e-mode override flags), a 'blind_spot' narrative explaining the Aave pricing gap, a 'scenarios' array showing recomputed health factor and liquidatability at specified stETH depeg basis points, Aave's own reported aggregate metrics for verification, the depeg percentage at which the position becomes liquidatable, pool address, chain, block number, and a status field ('wsteth_exposed' or 'not_exposed').","failureModes":["Missing required 'chain' or 'borrower' query parameters returns a 400 error","Invalid borrower address format (not 0x + 40 hex) returns a validation error","Unsupported chain value (not 'ethereum' or 'base') returns an enum validation error","Borrower has no active Aave V3 position — may return empty or zero-value data","Position holds no wstETH — returns status 'not_exposed' rather than a depeg score","Payment failure or expired x402 payment token returns a 402 Payment Required response","On-chain RPC timeout or node unavailability may cause a 5xx error"],"whenToPreferThis":"Use this endpoint when you need to understand liquidation risk from stETH secondary-market depegging specifically — a risk invisible to Aave's published health factor because it pins stETH to ETH at 1:1. Prefer this over reading getUserAccountData directly when the position uses wstETH as collateral and you need per-asset breakdown, e-mode-aware recomputation, and a concrete depeg liquidation threshold. Do not use this for general Aave health monitoring unrelated to wstETH/stETH, or for protocols other than Aave V3.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T23:26:03.095Z","isFirstParty":false,"canonicalSlug":"aave-v3-wsteth-depeg-liquidation-exposure-analyzer-9a4d5f9e"}