82trust / 100

Global Defi

by Global DeFi market in Onchain & crypto

x402 APIPassing, checked 56 min ago

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

GET https://agent402.tools/api/global-defi

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
196 ms typical, 196 ms slowest 5%
Last check
56 min 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/global-defi"
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%2Fglobal-defi
const res = await pay("https://agent402.tools/api/global-defi");
console.log(await res.json());

Example input

{}

Example output

{
  "cached": false,
  "defiDominancePct": 4.1566,
  "defiMarketCapUsd": 112237506811.1,
  "defiToEthRatioPct": 38.3317,
  "defiVolume24hUsd": 10184726070.56,
  "ethMarketCapUsd": 292876442962.28,
  "fetchedAt": "2026-08-22T13:20:00.000Z",
  "source": "coingecko",
  "topCoin": {
    "defiDominancePct": 20.7086,
    "name": "Lido Staked Ether"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
56 min agoPassed402198 ms$0.005
6 h agoPassed402196 ms$0.005