# MoneyTools DEX Token Price

> MoneyTools DEX Token Price is a paid API for AI agents from tools.moneytools.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-05).

Returns the executable DEX price of any ERC-20 token in USDC, including price impact at a chosen trade size, routing details, and deviation vs DefiLlama reference price.

## Facts

- Endpoint: GET https://tools.moneytools.dev/v1/dex-price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-05
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/moneytools-dex-token-price-eb3164cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HRbSZW63BldPOAnEks_SM

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 moneytools-dex-token-price-eb3164cc
```

Example prompt: What's the current DEX price of WETH (0x4200000000000000000000000000000000000006) on Base in USDC, and what would the price impact be for a $5000 trade?

## When to prefer this

Use this endpoint when you need an executable, real-time DEX price for an ERC-20 token (not just a reference price), especially when you also need price impact for a specific trade size or want to verify price against DefiLlama. Prefer this over CoinGecko or CoinMarketCap lookups when you need the actual on-chain tradeable price rather than a market average. Best for DeFi automation, pre-trade analysis, or arbitrage detection across 7 supported EVM chains.

## Known failure modes

- Token address not found or unsupported on the specified chain — returns error with no charge
- Chain not supported — returns validation error
- Free tier (10/day) exhausted and no payment method provided — returns HTTP 402 with payment-required details
- Invalid ERC-20 address format — returns validation error
- DEX aggregator unable to find a route for the token — returns error with no charge
- Network connectivity issues with the DEX aggregator

## How this service works

Token price from DEX quotes: Executable-style price of any ERC-20 in USDC from DEX aggregator quotes (KyberSwap, quote only), price impact at a chosen size, route DEXes and deviation vs DefiLlama reference. Free tier 10/day; then $0.002 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.002 USDC per call via x402 on Base. Run by MoneyTools.

## Output

A JSON object containing the executable token price in USDC derived from DEX aggregator quotes, price impact at the requested trade size (default $1000), the DEX route used, deviation from the DefiLlama reference price, and payment metadata (whether a charge was made, network, amount, transaction hash).

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain",
      "token"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "examples": [
        "base"
       ],
       "description": "chain: base, ethereum, arbitrum, optimism, polygon, bsc, avalanche"
      },
      "token": {
       "type": "string",
       "examples": [
        "0x4200000000000000000000000000000000000006"
       ],
       "description": "ERC-20 address"
      },
      "sizeUsd": {
       "type": "number",
       "examples": [
        "1000"
       ],
       "description": "size for impact check (default 1000)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "payment": {
       "type": "object",
       "properties": {
        "charged": {
         "type": "boolean"
        },
        "network": {
         "type": "string"
        },
        "amountUsd": {
         "type": "string"
        },
        "transaction": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "freeTier": {
       "type": "object"
      },
      "_moneytools": {
       "type": "object",
       "description": "optional plan / partner hints"
      }
     },
     "description": "Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/moneytools-dex-token-price-eb3164cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.moneytools.dev](https://www.zero.xyz/host/tools.moneytools.dev/llms.txt)
