84trust / 100

Crypto Price

by Crypto price in Onchain & crypto

x402 APIPassing, checked 2 h ago

Live spot price for one or many coins in any quote currency: last price, 24h change, 24h volume and market cap per coin, from a maintained market feed and answered in under a second. Use it when an agent needs a current crypto price to size, compare or display, or a cheap read to poll on a schedule.

GET https://agent402.tools/api/crypto-price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
188 ms typical, 188 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://agent402.tools/api/crypto-price?coins=BTC%2CETH%2CSOL&currency=usd"
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%2Fagent402.tools%2Fapi%2Fcrypto-price
const res = await pay("https://agent402.tools/api/crypto-price?coins=BTC%2CETH%2CSOL&currency=usd");
console.log(await res.json());

Example input

{
  "coins": "BTC,ETH,SOL",
  "currency": "usd"
}

Example output

{
  "coins": {
    "bitcoin": {
      "change24hPct": 1.42,
      "lastUpdated": "2026-06-20T00:30:00Z",
      "marketCap": 1320000000000,
      "price": 67234.12,
      "volume24h": 28100000000
    },
    "ethereum": {
      "change24hPct": 2.18,
      "lastUpdated": "2026-06-20T00:30:00Z",
      "marketCap": 423000000000,
      "price": 3520.45,
      "volume24h": 14200000000
    },
    "solana": {
      "change24hPct": -0.65,
      "lastUpdated": "2026-06-20T00:30:00Z",
      "marketCap": 68000000000,
      "price": 148.2,
      "volume24h": 2400000000
    }
  },
  "count": 3,
  "currency": "usd"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402188 ms$0.001
7 h agoPassed402189 ms$0.001