{"uid":"cap_8Khrtr_p_xMSFTe3I9sXS","slug":"defi-oracle-il-calculator-0614ec0f","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://defi-oracle-two.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_aZCgcr3rzT4__UrycAxGF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates impermanent loss percentage for a given price change, returning scenarios, formula, and interpretation for DeFi liquidity providers.","exampleAgentPrompt":"What would my impermanent loss be if one of my liquidity pool tokens goes up 75% in price? Give me the full breakdown with scenarios and interpretation.","exampleUseCases":null,"resultDescription":"Returns the impermanent loss percentage, multiple price-change scenarios, the mathematical formula used, and a plain-English interpretation of the loss magnitude — all computed for the given price change input.","failureModes":["Missing required field price_change_pct returns validation error","Non-numeric price_change_pct causes schema error","Payment failure via x402 USDC on Base returns 402 status","Extreme or out-of-range price change values may produce edge-case outputs","Service downtime on Vercel hosting returns 5xx"],"whenToPreferThis":"Use this endpoint when an agent needs to quantify the impermanent loss risk for an AMM/liquidity pool position given a specific projected price change. Ideal for DeFi portfolio risk assessment, LP strategy evaluation, and educating users about IL before they deposit into a pool.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:24.447Z","isFirstParty":false}