{"uid":"cap_Y-SvlN8FK12-VEC9EX_Ld","slug":"defi-shield-hazel-vercel-app-e547e78d","name":"DeFi Exit Strategy Analyzer","description":"","url":"https://defi-shield-hazel.vercel.app/api/defi/exit-strategy","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"chain":{"type":"string","description":"Chain (default: base)"},"token_address":{"type":"string","description":"Token address to exit (0x + 40 hex chars)"},"position_size_usd":{"type":"number","description":"Position size in USD to simulate exit"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"chain":"base","token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","position_size_usd":5000},"type":"http","method":"POST","bodyType":"json"}},"response":{"chain":"base","price_usd":"0.3570","analyzed_at":"2026-06-13T04:21:58.609Z","token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","trades_needed":1,"recommendation":"SAFE — minimal price impact","volume_24h_usd":54125993.18000001,"price_impact_pct":0.03,"response_time_ms":345,"position_size_usd":5000,"optimal_exit_route":[{"dex":"aerodrome","pair":"AERO/USDC","volume_24h":1013698.53,"pair_address":"0x6cDcb1C4A4D1C3C6d054b27AC5B77e89eAFb971d","liquidity_usd":20715684.18,"allocation_pct":71},{"dex":"aerodrome","pair":"VELVET/USDC","volume_24h":14794815.6,"pair_address":"0x6b0F53cbD9272D8117e9535FE25371dedF39a1bE","liquidity_usd":3165328.3,"allocation_pct":11},{"dex":"aerodrome","pair":"NOCK/USDC","volume_24h":380600.18,"pair_address":"0x85f1Aa3a70fEdd1C52705c15BAEd143e675CD626","liquidity_usd":1232587.82,"allocation_pct":4}],"slippage_estimate_pct":0.02,"available_liquidity_usd":29382912.070000015}},"exampleRequest":{"chain":"base","token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","position_size_usd":5000},"tags":["x402"],"displayCostAmount":"0.5","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Phlna68GXPuyFsuhJSuDf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.5","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes price impact, liquidity depth, and optimal exit routes for closing DeFi positions","exampleAgentPrompt":"I want to exit my 50,000 USDC worth of ETH position on Uniswap v3 on Ethereum mainnet — can you calculate the price impact, check the liquidity depth, and tell me the optimal exit route with minimum slippage?","exampleUseCases":null,"resultDescription":"Returns a structured analysis including estimated price impact percentage, available liquidity depth at various price levels, recommended exit route (DEX, pool, path), optimal order sizing to minimize slippage, and overall exit cost estimate.","failureModes":["Token address not recognized or unsupported — returns 400 with invalid token error","Insufficient liquidity data available for the requested pool — returns partial result or 404","Position size too large for on-chain liquidity data to compute accurately — returns warning with best-effort estimate","Unsupported chain or protocol — returns 400 with unsupported network error","Payment not received or insufficient — returns 402 payment required"],"whenToPreferThis":"Use this endpoint when an agent needs to help a user plan or execute a DeFi position exit with awareness of price impact and liquidity constraints, especially for larger positions where slippage matters. Prefer this over generic token price APIs when you need actionable routing recommendations, not just spot prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:57:25.776Z","isFirstParty":false}