# DeFi Oracle Protocol Compare

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

Compares multiple DeFi protocols side-by-side by TVL, category, chain, and recent TVL changes to identify the dominant protocol.

## Facts

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

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-compare-c42a0047 -d '<json body>'
```

Example prompt: Compare Aave, Compound, and MakerDAO for me — which one has the highest TVL right now, and how have they changed over the past week?

## When to prefer this

Use this endpoint when you need to directly compare two or more DeFi protocols on TVL metrics and recent momentum. Prefer this over generic DeFi data APIs when you need a structured head-to-head breakdown with a clear winner declared by TVL, powered by DeFiLlama data.

## Known failure modes

- Invalid or unrecognized protocol slugs return empty or partial comparison results
- Fewer than 2 protocol slugs provided triggers a validation error
- DeFiLlama data source temporarily unavailable causes stale or missing TVL data
- Protocol slugs that are valid but not tracked by DeFiLlama return null TVL entries

## 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 array of protocol objects each with TVL, name, slug, chain, category, 1-day change, and 7-day change, plus a winner field identifying the protocol 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-compare-c42a0047/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-oracle-two.vercel.app](https://www.zero.xyz/host/defi-oracle-two.vercel.app/llms.txt)
