# gate402 DEX Price & Liquidity

> gate402 DEX Price & Liquidity is a paid API for AI agents from gate402.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns live price, liquidity depth, and 24-hour trading volume for a Base chain ERC-20 token across all its DEX trading pairs via DexScreener.

## Facts

- Endpoint: POST https://gate402.app/v1/dex
- 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/gate402-dex-price-liquidity-0df6367d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pr4mgdYN7qmY0S6yr_LW9

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 gate402-dex-price-liquidity-0df6367d -d '<json body>'
```

Example prompt: What's the current DEX price, liquidity, and 24-hour trading volume for the Base token at contract address 0x4200000000000000000000000000000000000006 across all its trading pairs?

## When to prefer this

Use this endpoint when you need real-time on-chain DEX market data (price, liquidity, volume) for a specific Base chain token and already have its contract address. Prefer this over centralized exchange APIs when the token is only traded on DEX platforms or you need pair-level granularity. Choose this over the best-execution intel endpoint when you want raw market data rather than trade routing recommendations.

## Known failure modes

- Invalid or non-Base contract address returns an error or empty result
- Token with no DEX listings returns empty trading pairs array
- Unverified or very new token may have incomplete or stale data
- Network timeout if DexScreener upstream is slow or rate-limiting
- Malformed 0x address format causes input validation failure

## How this service works

Live DEX price, liquidity, and 24h volume for a Base token across its trading pairs (DexScreener).

## Output

Returns live market data for all DEX trading pairs of the specified Base token, including current price, liquidity depth per pool, 24-hour trading volume, and the names/identifiers of the DEX pools where the token trades (sourced from DexScreener).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "Base ERC-20 token contract address (0x-hex)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gate402-dex-price-liquidity-0df6367d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gate402.app](https://www.zero.xyz/host/gate402.app/llms.txt)
