# Base L2 Token Spot Price (x402.donnyautomation.com)

> Base L2 Token Spot Price (x402.donnyautomation.com) is a paid API for AI agents from x402.donnyautomation.com, paid per call via x402, $0.01/call, status down (last checked 2026-10-13).

Returns the real-time USD spot price of any ERC-20 token on Base L2 by ticker symbol or contract address, sourced live from BaseSwap, SushiSwap, and Uniswap v3 pools, with liquidity depth and confidence rating.

## Facts

- Endpoint: POST https://x402.donnyautomation.com/base/price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-l2-token-spot-price-x402-donnyautomation-com-cc492495
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XwyxRa4wC8rtAaG4JPD1K

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-l2-token-spot-price-x402-donnyautomation-com-cc492495 -d '<json body>'
```

Example prompt: What's the current USD price of WETH on Base right now — and how confident is the quote based on pool liquidity?

## When to prefer this

Choose this endpoint when you need a real-time, on-chain USD price for any ERC-20 token on Base L2 — not just tokens on a fixed curated list. It is especially valuable when you need a confidence signal alongside the price (i.e., you need to know if the pool is deep enough to trust the quote), making it ideal for trading bots, price oracles, and DeFi dashboards that must avoid acting on thin-pool prices. Prefer it over centralized exchange price APIs when on-chain/Base-native data is required.

## Known failure modes

- Token symbol not found on Base — no matching pool exists across BaseSwap, SushiSwap, or Uniswap v3
- Token has extremely thin liquidity — price returned with low confidence rating warning
- Invalid or unrecognized contract address — returns error
- Network or RPC latency causes stale or missing pool state at call time
- Token exists but has no active USD-denominated pool — cannot derive USD price

## How this service works

Pay-per-call (x402/USDC on Base) market-data, geocoding, randomness and hook-risk endpoints. Free demo route included.

## Output

Returns a JSON object containing: priceUsd (the current USD spot price of the token), the DEX pair used to derive the quote (e.g. WETH/USDC on BaseSwap), the USD value of liquidity backing the quote, and a confidence rating indicating whether the pool is deep enough to treat the price as a reliable market price.

## 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-l2-token-spot-price-x402-donnyautomation-com-cc492495/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)
