{"uid":"cap_R7MS9ZDM-q8XRSPJnfyXn","slug":"defi-oracle-il-calculator-452f5d49","name":"DeFi Oracle IL Calculator","description":"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.","url":"https://oraclius.vercel.app/api/il-calculator","method":"POST","headers":{},"bodySchema":{"type":"object","required":["price_change_pct"],"properties":{"price_change_pct":{"type":"number","description":"Price change percentage (e.g. 50 for +50%)"}}},"responseSchema":{"type":"object","properties":{"input":{"type":"object"},"formula":{"type":"string"},"scenarios":{"type":"array"},"interpretation":{"type":"string"},"impermanent_loss_pct":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_P_YZ5-b5oqiVh6eBZObdu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates impermanent loss percentage for liquidity providers given a price change, with multiple scenarios and interpretation","exampleAgentPrompt":"What would my impermanent loss be if the token price changes by +75%? I'm considering adding liquidity to an AMM pool and want to understand the IL risk.","exampleUseCases":null,"resultDescription":"Returns the impermanent loss percentage for the given price change, the mathematical formula used, an array of IL scenarios across different price change magnitudes for context, and a human-readable interpretation explaining the loss impact.","failureModes":["Missing required price_change_pct field returns 400 error","Payment not submitted or insufficient USDC balance causes 402 payment required","price_change_pct of -100% (complete price collapse) may cause division by zero or edge case errors","Extremely large price changes (e.g. 10000%) may return edge case values","Network timeouts from on-chain RPC data sources could cause 503 errors"],"whenToPreferThis":"Choose this endpoint when you need a quick, quantitative impermanent loss calculation for DeFi liquidity provision decisions. Ideal when an agent or user is evaluating whether to provide liquidity to an AMM pool and wants to understand the downside IL risk for a given expected price movement. More useful than manual formula computation because it also returns scenario comparisons and a plain-English interpretation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:37:21.850Z","isFirstParty":false}