{"uid":"cap_WgeLSGPbFZOFaksIJiyQc","slug":"price-impact-calculator-c098d57f","name":"Price Impact Calculator","description":"A quote shows today's price; it does NOT tell you a $5k buy into a $20k pool pays ~20% more. This takes the token's deepest Base pool, treats it as constant-product (Uniswap-V2 / Aerodrome volatile) and computes the exact x*y=k price impact for your USD size. Conservative — concentrated-liquidity pools usually do better. Also returns the largest size under 1% and 3% impact. Pass address= and size= (USD). An estimate; confirm with swap-route. Not financial advice.","url":"https://402.com.tr/api/x402/price-impact?utm_source=zero.xyz","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","size"],"properties":{"side":{"type":"string","description":"buy or sell (default buy)"},"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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IsRUezAYv4slYMP2M8Qyh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the exact x*y=k constant-product price impact percentage for a given USD trade size on a token's deepest Base pool, and returns the largest sizes under 1% and 3% impact thresholds.","exampleAgentPrompt":"Before I swap $8,000 into the token at 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base, can you calculate the price impact so I know if it's safe to proceed?","exampleUseCases":[{"title":"Safe entry size for small-cap token","prompt":"I want to buy into the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base with around $15,000 — can you tell me the price impact and what the max size is that keeps me under 1% slippage?"},{"title":"Large sell order risk check","prompt":"I'm about to sell a position worth about $25,000 of the token at 0x4200000000000000000000000000000000000006 — what price impact will that cause and what's the biggest sell that stays under 3% impact?"},{"title":"DeFi bot pre-trade validation","prompt":"Before my bot executes a $3,000 buy of the token at 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA on Base, check the price impact so it can decide whether to split the order."}],"resultDescription":"Returns the estimated price impact percentage for the requested USD trade size modeled as a constant-product AMM (x*y=k), along with the maximum trade sizes that stay below 1% and 3% impact thresholds. The response is conservative relative to concentrated-liquidity pools and is labeled as an estimate.","failureModes":["Invalid or unrecognized token contract address returns an error or empty result","Token with no Base liquidity pool found returns no data","Extremely small pools may produce 100% impact estimates that are technically correct but impractical","Network or RPC issues fetching pool data may cause timeouts","Size parameter missing or non-numeric causes a bad request error"],"whenToPreferThis":"Use this endpoint when you need a quick, conservative pre-trade price impact estimate for a token on Base using constant-product AMM math, especially to determine safe trade sizes under 1% or 3% impact thresholds. It is better than a live quote for understanding structural liquidity limits without executing a swap. Prefer this over on-chain quote endpoints when you want a size-threshold analysis (e.g. 'how big can I trade safely') rather than just a single-price quote.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:41:42.979Z","isFirstParty":false,"canonicalSlug":"price-impact-calculator-c098d57f"}