# DEX Token Liquidity Depth & Slippage Risk API

> DEX Token Liquidity Depth & Slippage Risk API is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Returns aggregated DEX liquidity depth, 24h volume, and a depth rating for a token across all pools to assess whether a large trade can be safely executed without heavy slippage.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/token-liquidity
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-token-liquidity-depth-slippage-risk-api-d162c3f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iSjjjk3jkBSZt-fPf-4f8

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 dex-token-liquidity-depth-slippage-risk-api-d162c3f6
```

Example prompt: Before I swap 50,000 USDC worth of PEPE on Base, can you check the total DEX liquidity depth and slippage risk for the PEPE token so I know if it's safe to execute a trade that size?

## When to prefer this

Use this endpoint when you need pre-trade liquidity intelligence for a specific token — especially before executing large swaps — and want a single aggregated view across all DEX pools rather than checking individual pools manually. Prefer this over order-book endpoints when trading on decentralized exchanges where pool depth and slippage are the key risk factors.

## Known failure modes

- Token not found or not traded on any DEX pool — returns empty or 404
- Unsupported chain specified — returns error
- Stale or incomplete pool data if aggregation sources are temporarily unavailable
- API key missing or payment not processed — returns 402 Payment Required
- Rate limiting if called too frequently

## How this service works

Total DEX liquidity depth for a token across all pools with 24h volume and a depth rating that tells agents whether a large trade is safe or will suffer heavy slippage - essential pre-trade liquidity intelligence aggregated from data behind an API key. token liquidity, liquidity depth, can i trade large, slippage risk, dex liquidity, market depth, pool liquidity

## Output

Returns the total aggregated liquidity depth across all DEX pools for the specified token, 24-hour trading volume, and a depth rating indicating whether a large trade can be safely executed without suffering significant slippage.

## Request schema (JSON Schema)

```json
{
 "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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "base (default), eth, arbitrum, optimism, polygon"
      },
      "token": {
       "type": "string",
       "description": "Token contract (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-token-liquidity-depth-slippage-risk-api-d162c3f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
