{"uid":"cap_4zwj8p-etlHPyhhNlMIdq","slug":"lp-impermanent-loss-estimator-httpay-xyz-714dcae8","name":"LP Impermanent Loss Estimator (httpay.xyz)","description":"LP Impermanent Loss Estimator — calculates IL for any Uniswap V2-style liquidity position. Params: ?tokenA=ETH&tokenB=USDC&entryPriceA=3000&currentPriceA=3500&liquidityUsd=10000. Demo: ?demo=true.","url":"https://httpay.xyz/api/lp-il-estimator","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"LP Impermanent Loss Estimator — calculates IL for any Uniswap V2-style liquidity position. Params: ?tokenA=ETH&tokenB=USDC&entryPriceA=3000&currentPriceA=3500&liquidityUsd=10000. Demo: ?demo=true."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7iWyaRah0SCpmzSTFGOEP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates impermanent loss for a Uniswap V2-style liquidity pool position given token pair, entry price, current price, and position size.","exampleAgentPrompt":"Calculate the impermanent loss on my ETH/USDC liquidity position — I entered when ETH was $3000, it's now at $3500, and my position was worth $10,000 USD when I deposited.","exampleUseCases":null,"resultDescription":"Returns a JSON object describing the estimated impermanent loss for the specified LP position, including the IL percentage and dollar value lost relative to simply holding the tokens, based on the price ratio change between entry and current price.","failureModes":["Missing required parameters (tokenA, tokenB, entryPriceA, currentPriceA, liquidityUsd) returns an error or demo response","Invalid or non-numeric price/liquidity values cause computation errors","Payment not included or insufficient USDC results in HTTP 402 response requiring x402 payment","Demo mode (?demo=true) returns example data rather than a real calculation"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call calculation of impermanent loss for a Uniswap V2-style AMM LP position without managing API keys or subscriptions. Ideal for DeFi agents assessing LP profitability, rebalancing decisions, or risk reporting at $0.005 per call via USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:59:29.929Z","isFirstParty":false}