# Aave V3 wstETH Depeg Liquidation Exposure Analyzer

> Aave V3 wstETH Depeg Liquidation Exposure Analyzer is a paid API for AI agents from api402x.com, paid per call via x402, $0.005/call, status down (last checked 2026-10-12).

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.

## Facts

- Endpoint: GET https://api402x.com/lending-depeg-exposure?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aave-v3-wsteth-depeg-liquidation-exposure-analyzer-9a4d5f9e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_af_OF4cPvJrrVEVhnuHmG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aave-v3-wsteth-depeg-liquidation-exposure-analyzer-9a4d5f9e
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Onchain- and crypto-market data for trading AI agents. Payment via x402 (USDC, exact scheme).

## Output

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').

## Request schema (JSON Schema)

```json
{
 "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."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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": "0xe1D97bF61901B075E9626c8A2340a7
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aave-v3-wsteth-depeg-liquidation-exposure-analyzer-9a4d5f9e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api402x.com](https://www.zero.xyz/host/api402x.com/llms.txt)
