# DeFi Oracle Protocol Compare

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

Compares two or more DeFi protocols side-by-side by TVL, category, chain, and recent TVL change to identify the dominant protocol

## Facts

- Endpoint: POST https://oraclius.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-154c50ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PBfwt18WfkPeatmzWzxW0

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-154c50ea -d '<json body>'
```

Example prompt: Compare Aave and Compound for me — which one has more TVL right now and which has been growing faster over the past 7 days?

## When to prefer this

Use this endpoint when you need a direct side-by-side TVL and growth comparison between two or more specific DeFi protocols by slug. Prefer this over general yield or swap endpoints when the user wants to know which protocol is bigger, growing faster, or dominant in a category.

## Known failure modes

- Invalid or unrecognized protocol slug returns an error or missing data for that protocol
- Fewer than 2 protocols provided triggers validation error on the required array
- DeFiLlama data temporarily unavailable causes upstream fetch failure
- Protocol with no on-chain TVL data returns zero or null TVL values

## 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 containing name, slug, chain, category, current TVL, 1-day TVL change, and 7-day TVL change, plus a winner_tvl field identifying the protocol with the highest total value locked.

## 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-154c50ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oraclius.vercel.app](https://www.zero.xyz/host/oraclius.vercel.app/llms.txt)
