{"uid":"cap_4Mq1_rdzEI0urz2vtXsFH","slug":"bot-bazaar-impermanent-loss-calculator-92f4fb6a","name":"Bot Bazaar Impermanent Loss Calculator","description":"Calculate liquidity provider impermanent loss % for a given token price ratio change and net return after fee yield.","url":"https://bot-bazaar.fly.dev/v1/x402/impermanent-loss-calc?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"price_ratio":{"type":"string","description":"Token price ratio change (e.g. 2.0 for 2x)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ilqOTeRwUVHowvIDFXPz_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 for liquidity providers given a token price ratio change, plus net return after fee yield.","exampleAgentPrompt":"What's my impermanent loss percentage if the token price ratio changes to 2.0x compared to when I entered the liquidity pool?","exampleUseCases":[{"title":"Evaluating 3x price surge impact","prompt":"If a token I've provided liquidity for has gone up 3x in price since I entered the pool, what's my impermanent loss percentage and what's my net return after fees?"},{"title":"Comparing LP vs hold strategy","prompt":"A token in my liquidity pool has dropped to half its original price — can you calculate my impermanent loss at a 0.5 price ratio so I can decide whether to stay in the pool or just hold?"},{"title":"DeFi yield farming optimization","prompt":"I'm considering adding liquidity to a pool but worried about IL — can you compute the impermanent loss percentage for a 1.5x price ratio change so I can weigh it against the fee yield?"}],"resultDescription":"Returns the impermanent loss percentage for the given token price ratio change and the net return figure after accounting for fee yield, allowing LPs to assess whether their fee income compensates for the divergence loss.","failureModes":["Missing price_ratio parameter returns a validation error","Non-numeric or zero/negative price_ratio may return a bad request error","Network timeout or service unavailability on the fly.dev host","Payment failure via x402 protocol results in 402 response before computation","Price ratio of exactly 1.0 (no change) should return 0% IL but edge cases may vary"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.01 USDC) programmatic computation of impermanent loss for AMM/LP positions given a specific price ratio change. Ideal for DeFi agents automating portfolio monitoring, yield comparisons, or LP entry/exit decisions where a formula-based calculation is sufficient and no on-chain data lookup is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:59.748Z","isFirstParty":false,"canonicalSlug":"bot-bazaar-impermanent-loss-calculator-92f4fb6a"}