Agent Intel Dex Depth Slippage Calculator
agent_intel_dex_depth_slippage_calculatorEstimated output, price impact and minimum output for a swap in one DEX pair, using the pair's reserves from DexScreener and a constant-product (x*y=k) model with a fee. Exact for constant-product pools (for example Aerodrome volatile pools, Uniswap V2 style); for concentrated-liquidity pools (labelled v3 or v4) it is only an approximation. Raydium is not covered. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | Pair (pool) address | |
| side | No | sell = you give the base token; buy = you give the quote token (default sell) | |
| chain | No | DexScreener chain name, e.g. base, ethereum, arbitrum (default base) | |
| amount | Yes | Amount you give, in that token's units (positive number) | |
| feePct | No | Pool fee in percent, 0 to 5 (default 0.3) | |
| slippagePct | No | Your tolerance in percent, 0 to 50 (default 0.5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | ||
| pair | No | ||
| side | No | ||
| chain | No | ||
| model | No | ||
| feePct | No | ||
| source | No | ||
| spotOut | No | ||
| amountIn | No | ||
| reserves | No | ||
| checkedAt | No | ||
| baseSymbol | No | ||
| quoteSymbol | No | ||
| slippagePct | No | ||
| estimatedOut | No | ||
| priceImpactPct | No | ||
| minOutAtSlippage | No |