{"uid":"cap_f9W1BlyM23NWgx7Fhk2U-","slug":"speraxos-il-scenario-simulator-fd8ad82e","name":"SperaxOS IL Scenario Simulator","description":"AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.","url":"https://chat.sperax.io/api/x402/tools/il-calculator/simulateILScenarios?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token0":{"type":"string","description":"First token symbol."},"token1":{"type":"string","description":"Second token symbol."},"feeTier":{"type":"number","description":"Fee tier for fee earning simulation."},"priceLower":{"type":"number","description":"For concentrated liquidity: lower price bound."},"priceUpper":{"type":"number","description":"For concentrated liquidity: upper price bound."},"investmentUsd":{"type":"number","description":"Investment amount in USD."},"numSimulations":{"type":"number","description":"Number of Monte Carlo paths. Default: 1000."},"timeHorizonDays":{"type":"number","description":"Simulation time horizon in days."},"currentPriceRatio":{"type":"number","description":"Current price ratio. If omitted, fetched live."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qa7vU-rvl0QzcT4135CS9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs Monte Carlo simulations to estimate impermanent loss scenarios for a DeFi liquidity position across token pairs, fee tiers, and custom price ranges","exampleAgentPrompt":"Simulate impermanent loss scenarios for a $5,000 ETH/USDC position on the 0.05% fee tier, with a price range of 1800 to 2500, over 60 days using 1000 Monte Carlo paths.","exampleUseCases":[{"title":"Pre-deposit LP risk assessment","prompt":"I'm thinking of putting $10,000 into a WBTC/ETH pool at the 0.3% fee tier with a price range of 0.05 to 0.08 — can you run 1000 Monte Carlo simulations over 90 days to show me how bad the impermanent loss could get?"},{"title":"Concentrated liquidity range optimization","prompt":"Run an IL simulation for a $3,000 USDC/ETH position at the 0.05% fee tier, price range 1900 to 2100, over 30 days with 500 paths — I want to see if the tight range is worth the IL risk."},{"title":"Long-horizon DeFi LP stress test","prompt":"Simulate impermanent loss for a $20,000 ARB/USDC liquidity position at the 1% fee tier over 180 days with 2000 Monte Carlo paths, using a wide price range of 0.5 to 2.5, so I can gauge worst-case scenarios before committing funds."}],"resultDescription":"Returns a distribution of impermanent loss outcomes across Monte Carlo simulation paths, including estimated fee earnings, net P&L scenarios, and statistical summaries (e.g. median, worst-case, best-case IL) for the specified token pair, price range, fee tier, investment amount, and time horizon.","failureModes":["Missing required token symbols returns validation error","Invalid or unsupported fee tier value causes rejection","Price range where priceLower >= priceUpper returns error","Payment not received or underpaid via x402 returns 402 Payment Required","Live price fetch fails if currentPriceRatio omitted and oracle is unavailable","Very high numSimulations may time out or be rate-limited","Unsupported token pair with no price feed returns data-not-found error"],"whenToPreferThis":"Choose this endpoint when you need probabilistic, simulation-based impermanent loss analysis for a DeFi liquidity position — especially for Uniswap v3 style concentrated liquidity with custom price ranges. It is ideal when you want Monte Carlo path distributions rather than a single deterministic IL formula, and when you want fee-earning estimates alongside IL risk. Prefer this over simple IL calculators when the user needs statistical risk profiling (worst-case, median, distribution) rather than a point estimate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:23.388Z","isFirstParty":false,"canonicalSlug":"speraxos-il-scenario-simulator-fd8ad82e"}