83trust / 100

Token Price

by Otto AI in Onchain & crypto

x402 APIPassing, checked 2 h ago

Live DEX token price in USD by ticker symbol or contract address across Base, Ethereum, Solana, Polygon, BSC, Arbitrum, Optimism and Avalanche (bare 0x tries Base then all chains, else network:address). Symbols resolve to the canonical top-market-cap asset — squat-proof. Flat JSON: price, 24h change, volume, market cap, FDV, liquidity — echoes the matched deployment. Token price, crypto price, DEX price. $0.001 per call.

GET https://x402.ottoai.services/token-price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
70 ms typical, 70 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.ottoai.services/token-price?token=ETH"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.ottoai.services%2Ftoken-price
const res = await pay("https://x402.ottoai.services/token-price?token=ETH");
console.log(await res.json());

Example input

{
  "token": "ETH"
}

Example output

{
  "data": {
    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "fdvUsd": 195203400000,
    "generatedAt": "2026-06-10T12:00:00.000Z",
    "liquidityUsd": 88210445.1,
    "lookup": "eth",
    "marketCapUsd": 195203400000,
    "mode": "symbol",
    "name": "Wrapped Ether",
    "network": "ethereum",
    "priceChange24hPct": -3.05,
    "priceUsd": 1621.02,
    "sourcedFrom": "geckoterminal",
    "symbol": "WETH",
    "topPool": {
      "address": "0x11b815efb8f581194ae79006d24e0d814b7697f6",
      "dex": null,
      "name": "WETH / USDT 0.05%"
    },
    "volume24hUsd": 184205500.4
  },
  "meta": {
    "degraded": false,
    "generatedAt": "",
    "stalenessSec": 0,
    "validUntil": ""
  },
  "status": "success"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40270 ms$0.001
7 h agoPassed402127 ms$0.001