{"uid":"cap_u5TEEbOl5niYk-UAXdR8C","slug":"vextorium-impermanent-loss-calculator-9b64718e","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/calculadora-il-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["precio_inicial","precio_final"],"properties":{"rango_max":{"type":"number","description":"Optional upper bound of the range"},"rango_min":{"type":"number","description":"Optional lower bound of the range"},"precio_final":{"type":"number","description":"Current or target price"},"precio_inicial":{"type":"number","description":"Price at entry"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"nota":{"type":["string","null"]},"tipo":{"type":["string","null"]},"rango":{"type":["array","null"],"items":{"type":["number","null"]}},"fuera_de_rango":{"type":["boolean","null"]},"cambio_precio_pct":{"type":["number","null"]},"composicion_final":{"type":["object","null"],"properties":{"token0_pct":{"type":["number","null"]},"token1_pct":{"type":["number","null"]}}},"perdida_impermanente_pct":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"nota":"Perdida frente a mantener los tokens, sin contar comisiones. Fuera de rango la posicion...","tipo":"rango concentrado (Uniswap v3/v4)","rango":[1800],"fuera_de_rango":true,"cambio_precio_pct":30,"composicion_final":{"token0_pct":0,"token1_pct":100},"perdida_impermanente_pct":-10.8289}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_8Sr5cxfnxpQATKnO8UJ86","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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 Uniswap v2 (full range) and v3/v4 (concentrated range) positions, including IL vs holding comparison, out-of-range flag, and final token composition.","exampleAgentPrompt":"I entered a Uniswap v3 concentrated liquidity position when the price was 1800 USDC per ETH, with a range from 1600 to 2200. The current price is now 2500 — can you calculate my impermanent loss, tell me if I'm out of range, and show my final token mix?","exampleUseCases":[{"title":"Uniswap v3 out-of-range IL check","prompt":"My Uniswap v3 position was opened at a price of 2000, with a concentrated range between 1800 and 2400. The price has moved to 2600 — calculate my impermanent loss, flag whether I'm out of range, and tell me what my token composition looks like now."},{"title":"Uniswap v2 full-range IL estimate","prompt":"I provided full-range liquidity on Uniswap v2 when ETH was at 1500 USDC. It's now at 2500 USDC. How much impermanent loss have I suffered compared to just holding, and what's my current token split?"},{"title":"Pre-entry IL scenario planning","prompt":"Before I add liquidity to a Uniswap v3 pool, I want to know: if the entry price is 100 and I set a range of 80 to 130, what would my impermanent loss be if the price drops to 75? Would I be out of range at that point?"}],"resultDescription":"Returns an object with: impermanent loss as a percentage (perdida_impermanente_pct), price change percentage (cambio_precio_pct), whether the position is out of range (fuera_de_rango boolean), final token composition showing token0 and token1 percentages, the pool type (v2 full range or v3 concentrated), the price range used, and an optional note with additional context.","failureModes":["Missing required fields (precio_inicial or precio_final) returns a validation error","Invalid numeric types for price inputs cause a 400 error","Providing rango_min > rango_max may result in unexpected IL output or an error","Extreme price ratios (e.g. 0 or near-infinity) may return null values for some fields","If the pool type cannot be determined from inputs, tipo and nota may be null"],"whenToPreferThis":"Use this endpoint when you need a fast, structured computation of impermanent loss for Uniswap v2 or v3/v4 positions without querying on-chain data — ideal for pre-entry scenario planning, portfolio monitoring, or educational tools. Prefer this over on-chain pool queries (like the sibling Uniswap v3 pool state endpoint) when you already know the entry and current prices and just need the IL math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:54:18.814Z","isFirstParty":false,"canonicalSlug":"vextorium-impermanent-loss-calculator-9b64718e"}