🔮

DeFi Oracle

Yield, Routes, Risk, MEV — Data for AI Agents
DeFiLlama x402 Protocol Base Chain
Multi-chain • Real-time • Pay-per-call
12
Endpoints
$0.05+
Starting Price
6
Chains
2000+
Protocols

Endpoints

📈 Yield & Staking

POST /api/yield-rates
Best yield farming APY across protocols & chains
$0.05
POST /api/staking-yields
Staking & liquid staking derivatives comparison
$0.05
POST /api/protocol-compare
Side-by-side protocol analysis (TVL, APY, chains)
$0.10

🔄 Swap & Liquidity

POST /api/best-route
Optimal swap route across DEXes with price impact
$0.10
POST /api/token-liquidity
Token liquidity depth across pools & chains
$0.05
POST /api/lp-health
LP position health check with risk scoring
$0.10

⚠️ Risk & Analysis

POST /api/il-calculator
Impermanent loss calculator with scenarios
$0.05
POST /api/liquidation-risk
Lending position liquidation risk & health factor
$0.15
POST /api/mev-scan
MEV opportunity scanner (recent blocks)
$0.15
POST /api/tvl-tracker
TVL tracking — protocol history or top protocols
$0.05

🆓 Free

GET /health
Service health check
FREE
POST /api/protocols
Top 50 protocols by TVL
FREE

Try It

# Top yield rates on Base (free to test)
curl -X POST https://defi-oracle.vercel.app/api/protocols

# Best yields (requires x402 payment)
curl -X POST https://defi-oracle.vercel.app/api/yield-rates \
  -H "Content-Type: application/json" \
  -d '{"chain": "Ethereum", "min_tvl": 1000000, "limit": 10}'

# Impermanent loss calculator
curl -X POST https://defi-oracle.vercel.app/api/il-calculator \
  -H "Content-Type: application/json" \
  -d '{"price_change_pct": 50}'

# Health check (free)
curl https://defi-oracle.vercel.app/health
Data powered by DeFiLlama • On-chain via public RPCs