{"uid":"cap_BU_W-0GWnsIuzxaer2aeg","slug":"defi-oracle-impermanent-loss-calculator-b28955a9","name":"DeFi Oracle — Impermanent Loss 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://aracil.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_zHyvPxCbZ_LRlC6pSWnOR","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 and scenarios for liquidity providers given a price change percentage","exampleAgentPrompt":"Calculate the impermanent loss I'd face if the token price increases by 75% from when I entered a liquidity pool — show me the formula, the loss percentage, and how to interpret it.","exampleUseCases":[{"title":"Pre-liquidity IL risk check","prompt":"I'm thinking about adding liquidity to a pool but ETH could move up 60% over the next month — how much impermanent loss would I suffer at that price change before I commit my funds?"},{"title":"Post-pump LP loss assessment","prompt":"The token I'm LPing just pumped 120% since I entered the pool. Can you calculate how much impermanent loss I've actually experienced so far and explain the formula?"},{"title":"Conservative downside scenario planning","prompt":"What would my impermanent loss look like if the asset price drops 40%? I want to understand whether the yield I'm earning is enough to offset that risk."}],"resultDescription":"Returns the impermanent loss percentage (impermanent_loss_pct), the mathematical formula used, an array of multiple price-change scenarios for comparison, and a plain-English interpretation of the loss magnitude and its implications for liquidity providers.","failureModes":["Missing required price_change_pct field returns a validation error","Extreme price change values (e.g. >10000%) may return unexpected or edge-case results","Payment failure via x402 USDC on Base results in 402 response blocking the computation","Non-numeric price_change_pct input returns a type error"],"whenToPreferThis":"Choose this endpoint when you need a quick, on-demand computation of impermanent loss for a single price-change scenario with full formula transparency and scenario comparison, especially within an AI agent workflow that pays per-call via USDC on Base. Prefer it over manual calculations when you want interpreted natural-language output alongside the raw numbers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:35.794Z","isFirstParty":false}