{"uid":"cap_Jpg1XFH3KGw4FcllGtnpm","slug":"basebuilder-defi-price-impact-calculator-543c68aa","name":"BaseBuilder DeFi Price Impact Calculator","description":"BaseBuilder Defi API hub - 22 paid endpoints","url":"https://bbx-defi.vercel.app/api/dex/price-impact","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.068717","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.068717/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.068717","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.068717","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i2pY11K_VKyH8KSmaH9PG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.068717","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the price impact of a token swap on a decentralized exchange (DEX) given a trade size and token pair","exampleAgentPrompt":"What's the price impact if I swap 50,000 USDC to ETH on Uniswap right now — is that trade size going to move the market significantly?","exampleUseCases":[{"title":"Whale trade slippage check","prompt":"I'm about to swap 200,000 USDC into WBTC on a DEX — can you calculate the price impact first so I know if I should split the order into smaller chunks?"},{"title":"Arbitrage opportunity assessment","prompt":"Before I execute this arbitrage, calculate the price impact of swapping 15,000 DAI for USDC on the target pool so I know if the spread will still be profitable after slippage."},{"title":"DeFi bot pre-trade validation","prompt":"My trading bot wants to buy 5 ETH worth of a small-cap token on Base — calculate the price impact so it knows whether to proceed or abort the trade."}],"resultDescription":"Returns the estimated price impact as a percentage for the specified token swap, along with effective price after the trade, slippage metrics, and market depth indicators that help determine whether the trade is viable at that size.","failureModes":["Insufficient liquidity in the pool returns a very high or undefined price impact","Invalid token pair or unsupported DEX returns a 400 or 404 error","Extremely large trade sizes may exceed computable limits","Network or RPC issues on the underlying chain may cause timeouts","Stale liquidity data may result in inaccurate estimates if pool state changed recently"],"whenToPreferThis":"Use this endpoint when you need to estimate trade execution costs and market impact before committing a DEX swap, especially for large orders where slippage is a meaningful concern. Prefer this over generic price quote APIs when you specifically need impact percentage and pool-depth analysis rather than just a spot price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:40.196Z","isFirstParty":false}