Skip to content

Global DeFi market

$0.005 per callUSDC via x402GET /api/global-defi

Global DeFi snapshot: DeFi market cap (USD), ETH market cap, DeFi-to-ETH ratio, 24h DeFi trading volume, DeFi dominance % of the whole crypto market, and the top DeFi coin with its share of DeFi. Send GET /api/global-defi with no input and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, defiMarketCapUsd, ethMarketCapUsd and 5 more.

The DeFi companion of crypto-global (whole-market caps and BTC/ETH dominance); this is token market value, not locked value. Cached in-process for 5 minutes. Data provided by CoinGecko (https://www.coingecko.com/en/api).

Category: Crypto & onchain dataTags: crypto defi global dominance market-cap macro

Try in playground →

Parameters

Global DeFi market takes no parameters.

Example request

curl -i "https://agent402.tools/api/global-defi"

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

Watch a call get paid

RequestGET /api/global-defi
402$0.005 USDC
SignPAYMENT-SIGNATURE
Settleon 14 chains
Answer200 OK
ReceiptAgent402-ReceiptEd25519

Example response

{
  "source": "coingecko",
  "fetchedAt": "2026-08-22T13:20:00.000Z",
  "cached": false,
  "defiMarketCapUsd": 112237506811.1,
  "ethMarketCapUsd": 292876442962.28,
  "defiToEthRatioPct": 38.3317,
  "defiVolume24hUsd": 10184726070.56,
  "defiDominancePct": 4.1566,
  "topCoin": {
    "name": "Lido Staked Ether",
    "defiDominancePct": 20.7086
  },
  "credit": "Data provided by CoinGecko (https://www.coingecko.com/en/api)."
}
FieldTypeAlways presentIn the example
sourcestringyescoingecko
fetchedAtstringyes2026-08-22T13:20:00.000Z
cachedbooleanyesfalse
defiMarketCapUsdnumberyes112237506811.1
ethMarketCapUsdnumberyes292876442962.28
defiToEthRatioPctnumberyes38.3317
defiVolume24hUsdnumberyes10184726070.56
defiDominancePctnumberyes4.1566
topCoinobjectyes2 fields: name, defiDominancePct
creditstringyesData provided by CoinGecko (https://www.coingecko.com/en/api).

From an MCP client

catalog.call {
  "slug": "global-defi",
  "params": {}
}

The hosted connector at https://agent402.tools/mcp needs a payment for global-defi; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.0.

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?.({ maxAmountPerPayment: "$0.005" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/global-defi");

Part of these workflows

Global DeFi market is one step in this skill pack, each sold as a single call:

Related tools

Crypto categories by market cap

$0.005GET /api/coin-categories

Coin categories (Layer 1, Meme, AI, DeFi, Stablecoins, RWA, ...) ranked by market cap, with 24h market cap change %, 24h.

Crypto global market

$0.003GET /api/crypto-global

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

Chain board by native asset

$0.005GET /api/chain-board

Blockchains ranked by their native asset, computed from three market documents: each native asset's share of the whole.

Coin snapshot on a date

$0.005GET /api/coin-history

Price, market cap and 24h volume of a coin on ONE past date (00:00 UTC snapshot), in every currency at once plus your.

Crypto news headlines

$0.001POST /api/crypto-news

Latest crypto headlines aggregated from the public RSS/Atom feeds of 8 major outlets (coindesk, cointelegraph, decrypt.

DeFi token screener

$0.005GET /api/defi-screener

Screen the DeFi category's 250 largest tokens with computed columns: share of the category's market cap, turnover (24h.