Global DeFi market

$0.005 per call · USDC via x402 · GET /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 4 more.

The DeFi companion of crypto-global (whole-market caps and BTC/ETH dominance) and of defi-tvl (locked value, a different measure). Cached in-process for 5 minutes.

Category: Crypto & onchain data · Tags: 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.

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
  }
}
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

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 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/global-defi");

Related tools

Crypto categories by market cap

$0.005 · GET /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.008 · GET /api/crypto-global

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

Coin snapshot on a date

$0.005 · GET /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 ch…

Crypto news headlines

$0.002 · POST /api/crypto-news

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

DeFi chain TVL history

$0.002 · POST /api/defi-chain-tvl-history

Daily TVL history for one chain (Ethereum, Base, Solana, Arbitrum...) or for all of DeFi (chain "all") from DefiLlama's …

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…