Best APY Across 50+ Protocols in Real Time
Stop manually comparing Aave vs Compound vs Yearn. Purple Flea's yield aggregator finds the highest APY for any asset across 50+ protocols on 8 chains and deploys your funds automatically.
Overview
The DeFi yield landscape changes every hour. Aave USDC supply APY moves up and down with borrowing demand. Convex Finance boosts rewards when CRV incentives are distributed. Yearn vaults shift strategies to capture the highest-yielding opportunity available at any given moment. For a human analyst checking rates manually, keeping up with 50+ protocols across 8 chains is simply not feasible at the speed DeFi moves.
Purple Flea's yield aggregator continuously polls every supported protocol's smart contracts and
official subgraphs to maintain a real-time APY index for every asset on every chain.
When your agent calls GET /yield/best?asset=USDC,
it gets back the current best APY, the protocol offering it, the chain to use, and a direct
transaction to deploy funds — all in a single API call.
The aggregator also maintains 90-day APY history for every protocol and asset. This is critical for distinguishing between sustainable organic yield (driven by real borrowing demand or trading fees) and short-term incentivized yields (driven by temporary token emissions that will decay). An agent that chases today's highest number without understanding sustainability will often deposit into a protocol just as its incentive program ends, watching APY collapse within days.
Beyond simply finding the best rate, Purple Flea can auto-deploy your agent's capital to whichever protocol currently offers the highest yield for a given asset, and auto-rebalance on a schedule — weekly, daily, or whenever the yield gap between your current position and the best available exceeds a configurable threshold.
Supported Protocols
Purple Flea indexes yield opportunities from every major DeFi lending, liquidity, and vaulting protocol. New protocols are added as they reach sufficient TVL and audit maturity.
Aave V3, Compound V3, Spark, Morpho Blue, Euler Finance, Radiant Capital, Benqi (Avalanche), Venus (BNB Chain), Solend (Solana), Kamino (Solana). Real-time supply APY pulled from on-chain interest rate models.
Yearn Finance V3, Beefy Finance, Convex Finance, Concentrator, Sommelier Finance, Idle Finance. Vault APYs include auto-compounding effects and are reported as net APY after protocol fees.
Curve Finance, Balancer, Uniswap V3 (LP fee yield), Velodrome (Optimism), Aerodrome (Base), Camelot (Arbitrum). LP yields include swap fee revenue plus any gauge/emission rewards.
Pendle Finance (fixed and variable rate markets), Notional Finance, Element Finance. Pendle yield tokens allow agents to lock in a fixed APY or speculate on yield rate movements.
All Supported Chains
Live Rates Example
Example rates as of a recent snapshot — actual rates vary continuously. Your agent gets live data via the API, not this static table.
| Protocol | Chain | APY (7-day avg) | TVL | Yield Type |
|---|---|---|---|---|
| Morpho Blue | Ethereum | 8.4% | $2.1B | Lending |
| Aave V3 | Arbitrum | 6.9% | $4.8B | Lending |
| Yearn V3 | Ethereum | 6.2% | $890M | Vault |
| Compound V3 | Base | 5.8% | $1.2B | Lending |
| Kamino | Solana | 5.5% | $740M | Lending |
| Curve 3pool | Ethereum | 4.8% | $3.4B | AMM LP |
| Spark | Ethereum | 4.5% | $2.8B | Lending |
| Beefy Finance | BNB Chain | 4.1% | $520M | Vault |
| Aave V3 | Ethereum | 3.9% | $12.1B | Lending |
| Venus | BNB Chain | 3.4% | $1.9B | Lending |
Code Examples
import PurpleFlea from '@purpleflea/sdk'; const pf = new PurpleFlea({ apiKey: process.env.PURPLE_FLEA_API_KEY }); // Get best APY for USDC across all 50+ protocols and 8 chains const best = await pf.yield.getBest({ asset: 'USDC', risk_filters: { min_tvl_usd: 100_000_000, // at least $100M TVL audited: true, // must have a third-party audit min_protocol_age_days: 180 // protocol older than 6 months } }); // Returns: { protocol: 'morpho-blue', chain: 'ethereum', apy: 0.084, ... } console.log(`Best APY: ${(best.apy * 100).toFixed(2)}% on ${best.protocol} (${best.chain})`);
// Deploy capital to whichever protocol currently has the best APY const deployment = await pf.yield.deploy({ asset: 'USDC', amount: '10000', // $10,000 USDC strategy: 'best_apy', // or 'best_risk_adjusted', 'safest', 'fixed_rate' risk_filters: { min_tvl_usd: 100_000_000, audited: true } }); console.log(`Deployed to ${deployment.protocol} at ${deployment.apy_pct}% APY`); console.log(`Position ID: ${deployment.position_id}`); console.log(`Tx hash: ${deployment.tx_hash}`);
// Auto-compound position every Sunday at 00:00 UTC await pf.yield.setAutoCompound({ position_id: deployment.position_id, schedule: '0 0 * * 0', // weekly cron min_earnings_usd: 5 // only compound if >$5 accrued (saves gas) }); // Also auto-rebalance if a better yield exceeds current by 1.5% await pf.yield.setAutoRebalance({ position_id: deployment.position_id, trigger_apy_gap: 0.015, // rebalance if better APY is >1.5% higher max_rebalances_per_week: 2 });
Risk-Adjusted Yield
The highest headline APY in DeFi is almost never the best risk-adjusted opportunity. Yield sources can be classified broadly into three categories: sustainable organic yield (interest paid by borrowers or trading fees earned by liquidity providers), incentivized yield (token emissions that supplement real yield to attract deposits), and leveraged yield (yield amplified by borrowing, which multiplies both gains and liquidation risk).
Purple Flea's APY history endpoint allows your agent to query the 30-day and 90-day trailing APY for any position alongside the current rate. If a protocol is offering 25% APY today but has averaged 4% over the past 90 days, that gap is almost certainly driven by a temporary incentive program. Deploying into that protocol means you are likely to experience the incentive cliff — the sharp drop when the program ends — while other agents who spotted the same opportunity exit ahead of you.
Three risk filters that Purple Flea exposes to agents are particularly useful: minimum TVL (protocols with less than $100M TVL have higher smart contract risk and shallower liquidity), audit status (at minimum one credible third-party security audit), and protocol age in days (newer protocols carry higher unknown-bug risk regardless of audits). Combining these three filters eliminates the overwhelming majority of higher-risk opportunities while leaving a solid set of battle-tested protocols with consistent, sustainable yields.
Only consider protocols above $100M TVL. Shallow liquidity means large withdrawals move the market and create exit risk.
Require at least one credible audit from firms such as Trail of Bits, Certora, OpenZeppelin, or Spearbit before deployment.
Set a minimum protocol age of 180 days. Smart contract vulnerabilities are typically discovered and exploited in the first six months.
One API call replaces hours of manual DeFi protocol research. Get your API key and deploy to the best APY in minutes.