# DeFi Oracle Protocol Comparison

> DeFi Oracle Protocol Comparison is a paid API for AI agents from aracil.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-13).

Compares two or more DeFi protocols side-by-side by TVL, chain, category, and 1d/7d change, returning the highest-TVL winner

## Facts

- Endpoint: POST https://aracil.vercel.app/api/protocol-compare
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-oracle-protocol-comparison-e5b33c10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7C4woLZ-wCjhOFZ0_MIVl

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-protocol-comparison-e5b33c10 -d '<json body>'
```

Example prompt: Compare Uniswap, Aave, and Curve for me — I want to see which one has the most TVL, what chain they're on, and how they've changed over the past day and week.

## When to prefer this

Use this endpoint when you need a direct side-by-side comparison of 2+ DeFi protocols by TVL and recent momentum, especially when you want a clear winner identified automatically. Prefer this over general DeFi data feeds when the user's question is explicitly comparative (e.g. 'which is bigger?', 'which is growing faster?') rather than a single-protocol deep-dive.

## Known failure modes

- Invalid or unrecognized protocol slugs return empty or null entries
- Fewer than 2 protocols in the array causes a validation error
- Stale TVL data if DeFiLlama upstream is delayed
- Payment failure if USDC on Base is not provided via x402
- Network timeout from on-chain RPC data source

## 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 a JSON object containing a count of compared protocols, an array of protocol objects each with name, slug, chain, category, TVL, 1-day change, and 7-day change, plus a 'winner_tvl' field identifying the protocol slug with the highest TVL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "protocols"
 ],
 "properties": {
  "protocols": {
   "type": "array",
   "description": "Array of protocol slugs (min 2)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number"
  },
  "comparison": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "tvl": {
      "type": "number"
     },
     "name": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "chain": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "change_1d": {
      "type": "number"
     },
     "change_7d": {
      "type": "number"
     }
    }
   }
  },
  "winner_tvl": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-oracle-protocol-comparison-e5b33c10/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)
