Crypto global market
GET /api/crypto-globalGlobal crypto market snapshot: total market cap, total 24h volume, BTC dominance, ETH dominance, active coin count, active exchange count, and 24h market-cap change %. Send GET /api/crypto-global with no required fields (1 optional) and pay $0.008 per call over x402 or MPP (there is no free tier). It returns a JSON object with currency, totalMarketCap, totalVolume24h, marketCapChange24hPct, btcDominancePct and 4 more.
Returned in a chosen vs_currency (default usd). Backed by CoinGecko /global.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
currency | string | no | vs_currency for cap/volume (default: usd) |
Example request
curl -i "https://agent402.tools/api/crypto-global?currency=usd"
Without payment this returns HTTP 402 Payment Required with the exact price for crypto-global; any x402 v2 or MPP client pays it and retries.
Example response
{
"currency": "usd",
"totalMarketCap": 2410000000000,
"totalVolume24h": 92000000000,
"marketCapChange24hPct": 1.23,
"btcDominancePct": 54.8,
"ethDominancePct": 17.6,
"activeCryptocurrencies": 12450,
"markets": 952,
"updatedAt": "2026-06-20T00:30:00Z"
}
| Field | Type | Always present | In the example |
|---|---|---|---|
currency | string | yes | usd |
totalMarketCap | number | yes | 2410000000000 |
totalVolume24h | number | yes | 92000000000 |
marketCapChange24hPct | number | yes | 1.23 |
btcDominancePct | number | yes | 54.8 |
ethDominancePct | number | yes | 17.6 |
activeCryptocurrencies | number | yes | 12450 |
markets | number | yes | 952 |
updatedAt | string | yes | 2026-06-20T00:30:00Z |
From an MCP client
catalog.call {
"slug": "crypto-global",
"params": {
"currency": "usd"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for crypto-global; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/crypto-global is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
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-global?currency=usd");
Part of these workflows
Crypto global market is one step in these 5 skill packs, each sold as a single call:
- Crypto market brief - Quick crypto market snapshot: price for a specific coin, trending coins, and global market stats (total cap, BTC dominance, volume) - one call.
- Macro dashboard refresh - The full macro + crypto dashboard in one call: 5 FRED series, 5 Treasury reads, yield-curve spread, crypto market/trending/global, and live gas - the 14-tool basket recurring buyers refresh every cycle, bundled below its a la carte price.
- Crypto research - Pull live price, market structure, OHLC history, trending status, global market context, and recent news for a single coin in one pass.
- Crypto dossier - Everything about a cryptocurrency in one call: live price, 90-day history, trending status, global market context, news search, and top article extraction.
- DeFi dashboard - DeFi market overview: total TVL, ETH price, Base gas, and global crypto stats in one call.
Related tools
Global DeFi market
GET /api/global-defiGlobal DeFi snapshot: DeFi market cap (USD), ETH market cap, DeFi-to-ETH ratio, 24h DeFi trading volume, DeFi dominance …
Crypto market overview
GET /api/crypto-marketTop N coins by market capitalization with full market snapshot per coin: rank, price, 24h change, 7d change, 24h volume,…
US CPI year-over-year inflation
GET /api/cpi-yoyLatest US Consumer Price Index year-over-year inflation rate (headline CPI-U) plus the trailing 12 months of YoY reading…
Crypto price history
GET /api/crypto-historyHistorical price, market cap, and volume time series for a coin. Granularity is automatic per CoinGecko: <=1 day = 5-min…
Crypto price
GET /api/crypto-priceLive crypto prices for one or many coins in any vs_currency (usd, eur, btc, eth, etc). Returns last price, 24h change %,…
Crypto trending
GET /api/crypto-trendingTrending coins on CoinGecko in the last 24 hours, ranked by user search activity on the site (currently ~15 results). In…