# Base DEX Liquidity Depth Risk Check

> Base DEX Liquidity Depth Risk Check is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Classifies liquidity depth (DEEP/MODERATE/SHALLOW/VERY_THIN) for a Base trading pair across BaseSwap, SushiSwap, and Uniswap v3, flagging thin markets before you trade.

## Facts

- Endpoint: GET https://x402.donnyautomation.com/base/risk
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-dex-liquidity-depth-risk-check-3d536c99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AT8GHWrrwnG2lQrxdD5Fz

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 base-dex-liquidity-depth-risk-check-3d536c99
```

Example prompt: Before I swap a large amount, check the liquidity depth for WETH/USDC on Base — I need to know if the market is deep enough or if it's dangerously thin across BaseSwap, SushiSwap, and Uniswap v3.

## When to prefer this

Use this endpoint when you need a pre-trade liquidity risk signal specifically on the Base blockchain and want a human-readable depth classification (not raw numbers) aggregated across the three major Base DEXs. Prefer it over raw pool reserve endpoints when you need a go/no-go signal rather than raw TVL figures, and over generic price APIs when slippage risk — not price — is your concern. Not a substitute for contract audits or honeypot detection.

## Known failure modes

- Unknown or unsupported token pair symbol returns an error or empty result
- Pair exists on Base but has no liquidity pools indexed — may return VERY_THIN or no data
- Malformed pair format (missing slash, wrong symbols) causes a 400-level validation error
- RPC or indexer downtime may cause stale or missing TVL data
- Pairs only listed on venues not covered (BaseSwap/SushiSwap/Uniswap v3) may be under-reported

## How this service works

Pre-trade depth verdict for a pair on Base: is this market thin enough to hurt you. Returns depthClass DEEP|MODERATE|SHALLOW|VERY_THIN, totalTvlUsd, venueCount, topVenueShare, midSpreadBps, flags. Requires ?pair=SYM/SYM (e.g. WETH/USDC). Errors: 400 bad_pair, 404 no_pools, 502 upstream_read_failed. Depth only - NOT a contract audit or honeypot check. Per-venue detail is /liquidity. Chain-pinned; bare /risk = BSC.

## Output

Returns a liquidity depth classification (DEEP, MODERATE, SHALLOW, or VERY_THIN) based on live pool TVL aggregated across BaseSwap, SushiSwap, and Uniswap v3. Also includes the number of venues that can route the trade, concentration ratio of the largest venue, single-venue market flag, and wide-spread warning indicator.

## 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": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Token pair as SYM/SYM on Base (e.g. WETH/USDC)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": "2026-07-31T00:00:00.000Z",
  "chainId": 8453,
  "network": "base"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-dex-liquidity-depth-risk-check-3d536c99/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.donnyautomation.com](https://www.zero.xyz/host/x402.donnyautomation.com/llms.txt)
