# call402 DEX Quote

> call402 DEX Quote is a paid API for AI agents from call402.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Returns the current USD price of an EVM token from on-chain DEX pools, including liquidity depth and risk flags, for a given chain.

## Facts

- Endpoint: POST https://call402.com/dex-quote?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/call402-dex-quote-f8893ea7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pv28Ha32wzAUm3v-1dZjF

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 call402-dex-quote-f8893ea7 -d '<json body>'
```

Example prompt: What's the current on-chain DEX price of the token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — include liquidity depth and any risk flags?

## When to prefer this

Use this endpoint when you need real-time, on-chain DEX prices for EVM tokens on Base, BSC, or Ethereum — especially when CEX prices are unavailable or insufficient, or when liquidity depth and risk flags matter. Prefer this over off-chain price feeds when you need DEX-native data including pool references and depth. Best for DeFi agents, trading bots, or risk-screening workflows that pay per call via USDC micropayments.

## Known failure modes

- Unknown or untracked token address returns empty pools array and null ref_pool
- Invalid 20-byte address format causes request rejection
- Unsupported chain value returns validation error
- Insufficient on-chain liquidity may yield unreliable price_usd
- HTTP 402 returned on first request if payment not yet attached; must retry with PAYMENT-SIGNATURE header
- Payment failure or expired signature results in 402 rejection

## How this service works

USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.

## Output

A JSON object containing the token address, chain, current USD price (price_usd), an array of DEX pools contributing to the quote, total on-chain liquidity depth in USD (total_depth_usd), a reference pool object (dex name, pool address, quote asset, price), any identified risk flags, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "bsc",
    "ethereum"
   ],
   "type": "string"
  },
  "token": {
   "type": "string",
   "description": "20-byte EVM token address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "token",
   "chain",
   "price_usd",
   "pools",
   "total_depth_usd",
   "risk_flags",
   "ts",
   "ref_pool"
  ],
  "properties": {
   "ts": {
    "type": "string"
   },
   "chain": {
    "type": "string"
   },
   "pools": {
    "type": "array"
   },
   "token": {
    "type": "string"
   },
   "ref_pool": {
    "type": [
     "object",
     "null"
    ]
   },
   "price_usd": {
    "type": "number"
   },
   "risk_flags": {
    "type": "array"
   },
   "total_depth_usd": {
    "type": "number"
   }
  }
 },
 "example": {
  "ts": "2026-10-23T00:00:00.000Z",
  "chain": "base",
  "pools": [],
  "token": "0x...",
  "ref_pool": {
   "dex": "Uniswap V3",
   "pool": "0x...",
   "quote": "WETH",
   "price_usd": 4000
  },
  "price_usd": 0.01,
  "risk_flags": [],
  "total_depth_usd": 1000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/call402-dex-quote-f8893ea7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from call402.com](https://www.zero.xyz/host/call402.com/llms.txt)
