# DeFi Oracle — Liquidation Risk Calculator

> DeFi Oracle — Liquidation Risk Calculator is a paid API for AI agents from aracil.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Calculates liquidation risk for a DeFi borrowing position given collateral and borrow token details, returning risk level, liquidation thresholds, and actionable recommendations.

## Facts

- Endpoint: POST https://aracil.vercel.app/api/liquidation-risk
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-oracle-liquidation-risk-calculator-e1a7c6fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fj17Oo9oT3TDBZmMS_yYb

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 defi-oracle-liquidation-risk-calculator-e1a7c6fd -d '<json body>'
```

Example prompt: Check my liquidation risk for a DeFi position where I've borrowed $5,000 USDC against $8,000 worth of ETH collateral with a liquidation threshold of 0.8 — tell me my risk level and any recommendations.

## When to prefer this

Use this endpoint when an AI agent needs to evaluate liquidation risk for an open or hypothetical DeFi lending/borrowing position and wants structured risk assessment with recommendations. It is specifically suited for agents managing DeFi portfolios, alerting users to dangerous health factors, or running pre-trade risk checks before opening leveraged positions. Prefer this over generic price feeds when you need a holistic risk score with actionable advice rather than raw price data alone.

## Known failure modes

- Missing required fields (borrow_token or collateral_token) returns a validation error
- Unknown or unsupported token symbols may return null pricing data or an error
- If on-chain RPC data is unavailable, the endpoint may return stale or incomplete liquidation details
- Payment failure (insufficient USDC on Base) blocks the request before processing

## How this service works

DeFi data for AI agents — yield rates, swap routes, IL calculator, liquidation risk, MEV scanner, TVL tracking. Powered by DeFiLlama + on-chain RPC data. Pay with USDC on Base via x402.

## Output

Returns an object containing the chain, borrow and collateral token labels, a position summary object, a risk_level string (e.g. low/medium/high/critical), a liquidation object with threshold and price details, and an array of human-readable recommendations to reduce risk or maintain the position.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "borrow_token",
  "collateral_token"
 ],
 "properties": {
  "borrow_token": {
   "type": "string"
  },
  "collateral_token": {
   "type": "string"
  },
  "borrow_amount_usd": {
   "type": "number"
  },
  "collateral_value_usd": {
   "type": "number"
  },
  "liquidation_threshold": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "borrow": {
   "type": "string"
  },
  "position": {
   "type": "object"
  },
  "collateral": {
   "type": "string"
  },
  "risk_level": {
   "type": "string"
  },
  "liquidation": {
   "type": "object"
  },
  "recommendations": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-oracle-liquidation-risk-calculator-e1a7c6fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aracil.vercel.app](https://www.zero.xyz/host/aracil.vercel.app/llms.txt)
