{"uid":"cap_U0vEfrBEO0IQgl8WcAL52","slug":"delx-commerce-impermanent-loss-fee-breakeven-calculator-be4939e2","name":"Delx Commerce — Impermanent Loss Fee Breakeven Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/il-fee-breakeven?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"price_ratio":{"type":"number","description":"New/old price ratio for IL math"}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-il-fee-breakeven/v1","fee_fraction_needed":0.0202041028867288}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6ixDCMnW0QCv2CP-ExZFY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the fee fraction a liquidity provider needs to earn in order to break even against impermanent loss for a given price ratio change.","exampleAgentPrompt":"What fee fraction do I need to break even on impermanent loss if the new price is 1.5 times the old price — so a price ratio of 1.5?","exampleUseCases":[{"title":"LP position evaluation before entry","prompt":"I'm thinking of providing liquidity to a pool where the token price might double. What fee fraction do I need to earn to break even against impermanent loss if the price ratio goes to 2.0?"},{"title":"Post-price-move LP profitability check","prompt":"The asset in my LP position dropped to 80% of its original price, so the price ratio is now 0.8. How much in fees do I need to have collected to have broken even against the impermanent loss?"},{"title":"Sensitivity analysis for volatile token pair","prompt":"Can you run an IL fee breakeven calculation for a price ratio of 3.0? I want to understand how high the fee fraction needs to be before it even makes sense to LP a volatile pair like this."}],"resultDescription":"Returns a JSON object with a `fee_fraction_needed` field (a decimal number, e.g. 0.0202) representing the fraction of pool value that must be earned in trading fees for a liquidity provider to break even against impermanent loss at the given price ratio. Also includes a schema identifier string.","failureModes":["Missing or invalid price_ratio (non-numeric or absent) may return a 400 or error response","Price ratio of exactly 1.0 (no price change) may return 0 or near-zero fee fraction — trivially correct but may confuse callers","Negative or zero price ratios are mathematically undefined and likely cause errors","Payment failure via x402 protocol will block the computation from executing"],"whenToPreferThis":"Use this endpoint when you need a quick, precise, on-demand computation of the impermanent loss breakeven fee fraction for a given price ratio — particularly in DeFi agent workflows evaluating LP positions, AMM strategies, or yield farming profitability. It is pay-per-result with no signup, making it ideal for agents that need occasional one-off IL math without integrating a full financial analytics platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:53.951Z","isFirstParty":false,"canonicalSlug":"delx-commerce-impermanent-loss-fee-breakeven-calculator-be4939e2"}