{"uid":"cap_2G2NGa_k9q5lfJnD3UL03","slug":"signalharness-defi-impermanent-loss-calculator-2e0d221d","name":"SignalHarness DeFi Impermanent Loss Calculator","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/defi_impermanent_loss/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"impermanent_loss_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Model excludes fees, incentives, and concentrated liquidity."],"service_id":"defi_impermanent_loss","evidence_scope":"caller_supplied_data","impermanent_loss":"{\"impermanent_loss_percent\":\"-5.719095841794\",\"model\":\"two_asset_50_50_constant_product\",\"price_ratio\":\"2\",\"value_ratio_vs_hold\":\"0.942809041582\"}"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"defi_impermanent_loss","executionId":"example-execution","startedAtMs":0,"amountAtomic":"5000","resultSha256":"ec41cabce341ce755aa863514580c8484e0c274279ac2607e667aed0af81b2f7","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_s-ZdVMpFouKOZiwltAz4p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates impermanent loss for DeFi liquidity pool positions based on caller-supplied token price and allocation data","exampleAgentPrompt":"Calculate the impermanent loss for my liquidity pool position where I entered the ETH/USDC pool when ETH was $1,800 and now ETH is $2,700, with an initial 50/50 split.","exampleUseCases":[{"title":"Evaluate LP position after price surge","prompt":"I provided liquidity to an ETH/DAI pool when ETH was $1,200 and it's now at $2,000 — can you calculate how much impermanent loss I've suffered on that position?"},{"title":"Compare IL across multiple DeFi pools","prompt":"I'm considering three different liquidity pools with different token volatilities. Can you calculate the impermanent loss scenario for a pool where one token has doubled in price relative to the other since I deposited?"},{"title":"DeFi risk assessment before withdrawing","prompt":"I'm about to withdraw my liquidity from a pool where token A went from $50 to $120 since I deposited with equal weights — what's my impermanent loss before I pull out?"}],"resultDescription":"Returns a JSON object containing the computed impermanent loss value, any warnings about the input data, evidence scope indicator (caller_supplied_data), a service status field, and a detailed receipt with payment ID, execution ID, network (Base/eip155:8453), USDC asset address, latency, and a SHA-256 result hash for verification.","failureModes":["Malformed or empty impermanent_loss_request string returns a validation error","Request string too short (< 2 chars) or too long (> 65536 chars) triggers schema rejection","Insufficient price data in request body may cause warnings or incomplete IL calculation","Payment failure via x402 protocol results in 402 response before execution","Ambiguous or uninterpretable pool data may yield warnings alongside a best-effort result"],"whenToPreferThis":"Choose this endpoint when you need a quick, agent-native on-chain-payment-compatible impermanent loss computation without standing up your own DeFi math infrastructure. Ideal for AI agents operating in DeFi contexts that need per-call micro-payment pricing ($0.005 USDC) via x402 rather than API key subscriptions. Prefer this over generic calculators when you need a verifiable receipt with SHA-256 result hash for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:47:35.013Z","isFirstParty":false}