Crypto market overview

$0.015 per call · USDC via x402 · GET /api/crypto-market

Top N coins by market capitalization with full market snapshot per coin: rank, price, 24h change, 7d change, 24h volume, market cap, circulating supply, and all-time high. Send GET /api/crypto-market with no required fields (2 optional) and pay $0.015 per call over x402 or MPP (there is no free tier). It returns a JSON object with currency, count and coins.

Default 10, max 100 per call. Backed by CoinGecko's public API.

Category: Live public data · Tags: crypto market ranking marketcap top-coins

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
limitnumbernoNumber of coins to return (1-100, default 10)
currencystringnovs_currency (default: usd)

Example request

curl -i "https://agent402.tools/api/crypto-market?limit=10&currency=usd"

Without payment this returns HTTP 402 Payment Required with the exact price for crypto-market; any x402 v2 or MPP client pays it and retries.

Example response

{
  "currency": "usd",
  "count": 2,
  "coins": [
    {
      "rank": 1,
      "id": "bitcoin",
      "symbol": "btc",
      "name": "Bitcoin",
      "price": 67234.12,
      "change24hPct": 1.42,
      "change7dPct": 4.81,
      "volume24h": 28100000000,
      "marketCap": 1320000000000,
      "circulatingSupply": 19700000,
      "ath": 73750,
      "athDate": "2024-03-14T07:10:36Z"
    },
    {
      "rank": 2,
      "id": "ethereum",
      "symbol": "eth",
      "name": "Ethereum",
      "price": 3520.45,
      "change24hPct": 2.18,
      "change7dPct": 1.92,
      "volume24h": 14200000000,
      "marketCap": 423000000000,
      "circulatingSupply": 120300000,
      "ath": 4878.26,
      "athDate": "2021-11-10T14:24:11Z"
    }
  ]
}
FieldTypeAlways presentIn the example
currencystringyesusd
countnumberyes2
coinsarray of objectsyes2 items in the example

From an MCP client

catalog.call {
  "slug": "crypto-market",
  "params": {
    "limit": 10,
    "currency": "usd"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for crypto-market; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/crypto-market?limit=10&currency=usd");

Part of these workflows

Crypto market overview is one step in these 3 skill packs, each sold as a single call:

Related tools

Crypto global market

$0.008 · GET /api/crypto-global

Global crypto market snapshot: total market cap, total 24h volume, BTC dominance, ETH dominance, active coin count, acti…

Crypto price history

$0.015 · GET /api/crypto-history

Historical price, market cap, and volume time series for a coin. Granularity is automatic per CoinGecko: <=1 day = 5-min…

Crypto price

$0.001 · GET /api/crypto-price

Live crypto prices for one or many coins in any vs_currency (usd, eur, btc, eth, etc). Returns last price, 24h change %,…

Crypto trending

$0.001 · GET /api/crypto-trending

Trending coins on CoinGecko in the last 24 hours, ranked by user search activity on the site (currently ~15 results). In…

Crypto market pulse

$0.004 · POST /api/crypto-market-pulse

One-call market snapshot across every perpetual listed on Hyperliquid: breadth (advancers, decliners, unchanged, mean/me…

DeFi TVL by chain

$0.002 · POST /api/defi-chains

Blockchains ranked by DeFi TVL from DefiLlama's free chain list: name, TVL in USD, share of total DeFi TVL, native token…