# Token Slippage and Pool Depth

> Token Slippage and Pool Depth is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.008/call, status healthy (last checked 2026-10-30, last successful call 2026-10-26).

Returns per-pool liquidity depth and estimated price impact slippage for a token across DEXs like Uniswap, Aerodrome, PancakeSwap, and Sushi for given trade sizes.

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/token-liquidity?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: healthy
- Last checked: 2026-10-30
- Last successful call: 2026-10-26
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-slippage-and-pool-depth-903bc145
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D4rLir2yvWmawIG8r4wEt

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability token-slippage-and-pool-depth-903bc145 -d '<json body>'
```

Example prompt: Before I buy, can you check the pool depth and slippage for token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — show me the price impact for trade sizes of $1,000, $10,000, $100,000, and $500,000, and tell me the largest trade I can make at 1% and 5% impact.

## When to prefer this

Use this endpoint when you need to size a trade, assess exit feasibility, or compare liquidity depth across DEX pools for a specific token before executing. Ideal for DeFi trading agents that need slippage estimates across Uniswap, Aerodrome, PancakeSwap, Sushi, and other AMMs without querying each protocol separately. Prefer this over on-chain calls when you need a quick multi-pool overview with trade-size-specific impact estimates.

## Known failure modes

- No pool exists for the token on the specified chain — returns an error and is not charged
- Invalid or malformed token contract address
- Unsupported chain name provided
- More than 6 trade sizes specified in sizes_usd
- Network timeouts or on-chain data unavailability

## How this service works

Pool depth and slippage for a token: per pool (Uniswap, Aerodrome, PancakeSwap, Sushi and more) the liquidity in USD, estimated price impact for each size in sizes_usd and the largest trade at 1% and 5% impact. Use to size a trade or check if an exit is possible. Estimate based on constant product; conservative for concentrated liquidity pools. Errors with Not charged if no pool exists.

## Output

A JSON response with per-pool breakdown including pool name, liquidity in USD, estimated price impact for each requested trade size, and the maximum trade size achievable at 1% and 5% price impact thresholds. Based on constant-product AMM formula; conservative estimates for concentrated liquidity pools. Returns an error if no pool exists for the token.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "base (default), ethereum, bsc, arbitrum, polygon, avalanche or optimism"
  },
  "token": {
   "type": "string",
   "description": "Token contract address (0x...)"
  },
  "sizes_usd": {
   "type": "array",
   "description": "Up to 6 trade sizes in USD, default [100,1000,10000,100000]"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-slippage-and-pool-depth-903bc145/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
