{"uid":"cap_1qPwTQoZztQ-xFoBAOqeh","slug":"vextorium-impermanent-loss-calculator-5785b46e","name":"Vextorium Impermanent Loss Calculator","description":"Impermanent loss calculator for Uniswap v2 (full range) and v3/v4 concentrated ranges: IL vs holding, out-of-range flag and final token mix.","url":"https://api.vextorium.com/v1/impermanent-loss?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max_range":{"type":"number","description":"Optional upper bound of the range"},"min_range":{"type":"number","description":"Optional lower bound of the range"},"final_price":{"type":"number","description":"Current or target price"},"initial_price":{"type":"number","description":"Price at entry"}}},"responseSchema":{"type":"json","example":{"note":"Loss versus holding the tokens, excluding fees. Out of range the position earns no fees.","type":"concentrated range (Uniswap v3/v4)","range":[1800],"out_of_range":true,"price_change_pct":30,"final_composition":{"token0_pct":0,"token1_pct":100},"impermanent_loss_pct":-10.8289}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XL5RG-IOaVaaRyVm6HGP1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates impermanent loss percentage for Uniswap v2 (full range) and v3/v4 (concentrated range) positions given entry price, exit price, and optional range bounds.","exampleAgentPrompt":"I entered a Uniswap v3 ETH/USDC position at an initial price of 2000 with a concentrated range between 1800 and 2200 — the price is now at 2500. How much impermanent loss have I suffered compared to just holding, and am I out of range?","exampleUseCases":[{"title":"Assess IL before exiting Uniswap v3 LP","prompt":"I'm thinking of withdrawing my Uniswap v3 WBTC/USDC liquidity position — I entered at 30000, set a range of 28000 to 35000, and BTC is now at 36500. What's my impermanent loss versus just holding, and what token composition will I get back?"},{"title":"Compare full-range v2 IL for a large price move","prompt":"If I had provided full-range liquidity on Uniswap v2 with ETH priced at 1500 at entry and it's now at 2400, how much impermanent loss would I have taken compared to simply holding the tokens?"},{"title":"Stress-test concentrated range against downside scenario","prompt":"I have a Uniswap v4 concentrated position entered at 1.10 USDC/EURS with a range of 1.05 to 1.15 — if the price drops to 0.98, what would my IL be and would the position be out of range?"}],"resultDescription":"Returns impermanent_loss_pct (negative percentage representing loss vs holding), price_change_pct, whether the position is out_of_range (boolean), the final token composition as token0_pct and token1_pct, the position type (full range or concentrated), and an explanatory note clarifying that the loss excludes fees.","failureModes":["Missing required fields (initial_price or final_price) returns a validation error","Providing a min_range greater than max_range may produce undefined results","Providing a final_price equal to initial_price returns 0% IL trivially","Non-numeric values for price fields cause a schema validation failure","Extremely tight ranges combined with large price moves may produce 100% one-sided composition results"],"whenToPreferThis":"Choose this endpoint when you need a precise, formula-based impermanent loss calculation for Uniswap v2, v3, or v4 positions, especially when you want to compare holding vs LP returns, check whether a concentrated range position is out of range, or determine the final token composition on withdrawal. Prefer it over manual calculations or generic DeFi analytics when the user has specific entry price and range parameters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:05.286Z","isFirstParty":false,"canonicalSlug":"vextorium-impermanent-loss-calculator-9b64718e"}