{"uid":"cap_EmwmDZsCXsIKNbUakfMtF","slug":"speraxos-il-hedge-recommendation-api-2758f908","name":"SperaxOS IL Hedge Recommendation API","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/getHedgeRecommendation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"type":"string","description":"Preferred chain for on-chain hedge venues."},"token0":{"type":"string","description":"First token of the pair."},"token1":{"type":"string","description":"Second token of the pair."},"currentILUsd":{"type":"number","description":"Current IL in USD (or estimated future IL)."},"riskTolerance":{"type":"string","description":"Risk tolerance: \"conservative\", \"moderate\", or \"aggressive\"."},"positionSizeUsd":{"type":"number","description":"LP position size in USD."}}},"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_K0Lk1LBpbn2P0h8R5F_LZ","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":"Given an LP position's token pair, size, and current impermanent loss, returns AI-generated hedge strategy recommendations tailored to the user's risk tolerance and preferred chain.","exampleAgentPrompt":"I have a $15,000 ETH/USDC LP position on Base with about $320 in impermanent loss — can you give me a moderate-risk hedge recommendation to protect it?","exampleUseCases":[{"title":"Conservative hedge for stablecoin LP","prompt":"I've got a $5,000 USDC/DAI LP position on Base and I'm seeing around $50 in impermanent loss — I'm pretty risk-averse, what's the safest hedging strategy you'd recommend?"},{"title":"Aggressive hedge for volatile pair","prompt":"My ETH/WBTC LP on Base is $25,000 and I'm already down $1,200 to IL — I'm comfortable with aggressive strategies, what hedge should I put on?"},{"title":"Moderate hedge for mid-size position","prompt":"I have a $8,000 MATIC/ETH liquidity position on Base with about $180 in impermanent loss. I want a moderate risk hedge recommendation — what on-chain venues and strategies make sense?"}],"resultDescription":"Returns an AI-generated hedge recommendation including suggested strategies, on-chain hedging venues appropriate for the specified chain, risk-adjusted advice based on the user's risk tolerance, and guidance relative to current IL and position size.","failureModes":["Invalid or unrecognized token symbols return an error","Unsupported chain returns no viable venue suggestions","Missing required fields (token0, token1, positionSizeUsd) cause validation errors","Payment failure via x402 protocol results in 402 response before processing","Extremely small position sizes may yield limited or generic recommendations"],"whenToPreferThis":"Use this endpoint when an AI agent needs to generate actionable, risk-calibrated hedging strategies for a specific DeFi LP position experiencing impermanent loss. Prefer this over generic DeFi data APIs when the goal is prescriptive advice (not just IL calculation) and when the user has a known risk tolerance and on-chain preference. Especially useful for agents managing LP positions autonomously on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:08.571Z","isFirstParty":false,"canonicalSlug":"speraxos-il-hedge-recommendation-api-2758f908"}