{"uid":"cap_jRc9flDp2augQhtrcEsP1","slug":"defi-yield-risk-optimizer-99b91f09","name":"DeFi Yield Risk Optimizer","description":"Ranks DeFi pools by total APY from DefiLlama's public yields data, filtered by chain, minimum TVL and optional stablecoin-only, with each pool's TVL, 7-day impermanent loss, reward share of APY and IL-risk flag. Ranking is by APY, not by safety: there is no audit or exploit-history score (none is in this free source).","url":"https://api.fadeandco.workers.dev/api/agent-intel/defi-yield-risk-optimizer?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"chain":{"type":"string","description":"Chain name as DefiLlama spells it, e.g. Base, Ethereum, Arbitrum (default Base)"},"limit":{"type":"string","description":"How many pools, 1 to 20 (default 5)"},"maxApyPct":{"type":"string","description":"Hide pools above this APY percent (default 1000); extreme APYs are usually reward-token artefacts"},"minTvlUsd":{"type":"string","description":"Minimum pool TVL in USD (default 1000000)"},"stablecoinOnly":{"type":"string","description":"true to list only stablecoin pools"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"note":"Ranked by APY only. No audit, exploit-history or contract-risk score in this source; check the protocol before using a pool.","chain":"Base","pools":[{"chain":"Base","apyPct":788.653,"ilRisk":"yes","poolId":"37a01d83-3eed-407a-9703-720f632ce288","symbol":"WETH-EDEL","tvlUsd":1088749,"il7dPct":null,"project":"aerodrome-v1","exposure":"multi","apyBasePct":null,"stablecoin":false,"apyRewardPct":788.653,"rewardShareOfApy":1},{"chain":"Base","apyPct":243.305,"ilRisk":"yes","poolId":"bf599ba2-97ae-48bb-9fd0-4f647ad7a832","symbol":"USDC-CBBTC","tvlUsd":6352333,"il7dPct":null,"project":"aerodrome-slipstream","exposure":"multi","apyBasePct":243.305,"stablecoin":false,"apyRewardPct":0,"rewardShareOfApy":0}],"source":"https://yields.llama.fi/pools","checkedAt":"2026-10-23T09:35:20.466Z","maxApyPct":1000,"minTvlUsd":1000000,"stablecoinOnly":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BwnKArV72I84pfXLlLbYV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks DeFi liquidity pools by total APY from DefiLlama, filtered by chain, minimum TVL, and stablecoin preference, with TVL, 7-day impermanent loss, and reward share data per pool.","exampleAgentPrompt":"Show me the top 10 DeFi pools on Arbitrum with at least $500,000 TVL, stablecoins only, and hide anything above 200% APY — I want to see each pool's TVL, impermanent loss risk, and how much of the yield comes from rewards.","exampleUseCases":[{"title":"Stablecoin yield hunting on Base","prompt":"Find the top 5 stablecoin-only DeFi pools on Base with at least $1 million TVL, and tell me the APY, TVL, and whether each one has impermanent loss risk."},{"title":"Ethereum yield comparison for portfolio rebalancing","prompt":"List the top 10 highest-APY pools on Ethereum with a minimum TVL of $2 million, but cap at 500% APY to filter out the sketchy reward-token inflated ones — I want to see the reward share breakdown too."},{"title":"Cross-chain DeFi opportunity scouting","prompt":"Pull the top 8 DeFi liquidity pools on Arbitrum by APY, with at least $750,000 TVL, and show me the impermanent loss data and what fraction of each pool's APY is coming from rewards versus base fees."}],"resultDescription":"Returns a JSON array of ranked DeFi pools sorted by total APY descending, each with pool ID, symbol, project name, chain, TVL in USD, total APY percent, base APY, reward APY, reward share of APY (0–1), 7-day impermanent loss percent, stablecoin flag, exposure type, and an IL risk flag. Includes metadata: source URL, checked timestamp, applied filter values, and a disclaimer that ranking is by APY only with no audit or exploit-history scoring.","failureModes":["Invalid chain name not recognized by DefiLlama returns empty pool list or error","Limit outside 1–20 range may return default or error","DefiLlama upstream outage causes fetch failure","No pools match the filter combination (e.g., stablecoin-only on a chain with no qualifying pools) returns empty array","Extremely high minTvlUsd filters out all pools"],"whenToPreferThis":"Use this endpoint when you need a quick, ranked snapshot of DeFi yield opportunities on a specific chain with basic risk indicators (TVL, IL risk, reward share). It is ideal for agents doing yield discovery or portfolio screening without needing on-chain audit data. Prefer it over raw DefiLlama API calls when you want pre-filtered, pre-ranked results with IL and reward metadata in a single response. Do not use it as a safety oracle — it carries no audit score or exploit history.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:33:35.614Z","isFirstParty":false,"canonicalSlug":"defi-yield-risk-optimizer-99b91f09"}