{"uid":"cap_avvjRDeY4_tP7WetIt7qc","slug":"speraxos-liquidity-range-optimizer-8c7be47b","name":"SperaxOS Liquidity Range Optimizer","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/liquidity-advisor/optimizeRange?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","description":"Chain of the position."},"protocol":{"type":"string","description":"Protocol name."},"strategy":{"type":"string","description":"Optimization strategy: \"maximize_fees\" (narrow range, high APR), \"minimize_il\" (wide range, low IL), or \"balanced\"."},"positionId":{"type":"string","description":"Position ID (Uni V3 or other concentrated liquidity position)."},"volatilityWindowDays":{"type":"number","description":"Lookback period for volatility analysis. Default: 30."}}},"responseSchema":null,"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_Pzxkxxa49UMwbyN403eWR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0xD74f5255D557944cf7Dd0E45FF521520002D5748","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a concentrated liquidity position and recommends an optimal price range based on historical volatility and the chosen optimization strategy (maximize fees, minimize impermanent loss, or balanced).","exampleAgentPrompt":"I have a Uniswap V3 position on Base (position ID 12345) — can you analyze the last 30 days of volatility and recommend an optimized price range using a balanced strategy to balance fees and impermanent loss?","exampleUseCases":[{"title":"Maximizing fee yield on LP position","prompt":"I have a Uniswap V3 concentrated liquidity position (ID 98765) on Base — run a 30-day volatility analysis and tell me the tightest range I can set to maximize fee APR without getting knocked out of range too often. Use the maximize_fees strategy."},{"title":"Reducing impermanent loss on volatile pair","prompt":"My position ID is 55210 on Uniswap V3 on Base and it's been suffering bad impermanent loss. Can you look back 60 days and suggest a wider price range using the minimize_il strategy so I can stay in range longer with less IL risk?"},{"title":"Rebalancing LP range with balanced strategy","prompt":"I want to rebalance my concentrated liquidity position (ID 77431) on Uniswap V3 on Base — use a balanced strategy and analyze the past 14 days of price volatility to recommend an updated price range that gives me a decent mix of fees and safety."}],"resultDescription":"Returns an AI-generated recommendation for the optimal price range (tick bounds) for the specified concentrated liquidity position, including the suggested lower and upper price bounds, expected fee APR under the recommended range, estimated impermanent loss exposure, and an explanation of the reasoning based on historical volatility over the specified lookback window.","failureModes":["Invalid or non-existent position ID returns an error or empty result","Unsupported chain or protocol causes a validation error","Insufficient historical data for the requested volatility window returns a degraded or fallback recommendation","Payment failure via x402 (insufficient USDC balance or network error) blocks the request","Malformed strategy value returns a parameter validation error"],"whenToPreferThis":"Choose this endpoint when you need AI-driven, data-backed range optimization for a specific concentrated liquidity position (Uniswap V3 or compatible) and want to tune the tradeoff between fee income and impermanent loss exposure. It is especially useful when you want strategy-specific guidance (maximize fees, minimize IL, or balanced) grounded in recent price volatility rather than static heuristics. Prefer it over generic DeFi dashboards when you need actionable, per-position recommendations payable per-request without an API key.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:54:05.660Z","isFirstParty":false,"canonicalSlug":"speraxos-liquidity-range-optimizer-8c7be47b"}