{"uid":"cap_4dABWbrVaigEfJ8zgjcxL","slug":"exit-liquidity-check-b8e7d2f8","name":"Exit Liquidity Check","description":"Give a Base token + a trade size in USD → estimated buy AND sell price impact, whether you can unwind that size without collapsing the pool, and the largest safe exit. The hidden form of a rug isn't 'you can't buy' — it's 'you can't sell'. Built for trading agents sizing positions.","url":"https://402.com.tr/api/x402/exit-liquidity","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["address"],"properties":{"size":{"type":"string","description":"Trade size in USD"},"address":{"type":"string","description":"Token contract address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_1wHpPcIXw6Osz23WyuKy0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates buy and sell price impact for a Base token at a given trade size and identifies the largest safe exit position without collapsing the pool.","exampleAgentPrompt":"Before I size into this position, can you check if I can actually exit — run an exit liquidity check on Base token 0x1234...abcd for a $5000 trade size and tell me the sell price impact and the largest amount I can unwind safely?","exampleUseCases":[{"title":"Pre-trade rug detection for new token","prompt":"I'm thinking about buying into this new Base token at 0xabc123...def456 with $2000. Can you check the exit liquidity — specifically what the sell price impact would be and whether I could actually get out at that size without crashing the pool?"},{"title":"Sizing a safe exit for existing position","prompt":"I'm holding a $15000 position in Base token 0x9f8e7d...6c5b4a — what's the largest amount I can sell without collapsing the liquidity, and what would the price impact be if I tried to exit the whole thing at once?"},{"title":"Rug risk screen before bot deployment","prompt":"My trading bot is about to start accumulating Base token 0x3344aabb...ccdd. Before it does, check whether there's real exit liquidity at a $10000 position size — I need both the buy and sell price impact so I know if we can actually get out."}],"resultDescription":"Returns estimated buy and sell price impact percentages for the specified trade size, a flag or assessment of whether that size can be unwound without collapsing the pool, and the calculated largest safe exit size in USD — helping agents determine whether a position is safely exitable before entering.","failureModes":["Invalid or non-existent token contract address returns an error or empty result","Token with no liquidity pool on Base returns an uncomputable impact","Trade size parameter missing or malformed causes a validation error","Very low liquidity pools may return extreme impact figures that indicate unsellable positions","Network or RPC issues on Base chain may cause timeouts or stale data"],"whenToPreferThis":"Use this endpoint when an agent or trader needs to evaluate sell-side liquidity risk before sizing into or out of a Base token position. It is specifically designed to catch the hidden rug scenario where tokens appear buyable but are effectively unsellable. Prefer this over generic token screeners when the specific concern is exit feasibility at a given dollar size, and over DEX interfaces when you need a programmatic impact estimate without executing a trade.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:09:53.717Z","isFirstParty":false}