# Agent402 Global DeFi Market Stats

> Agent402 Global DeFi Market Stats is a paid API for AI agents from agent402.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns real-time global DeFi market metrics including DeFi market cap, 24h volume, DeFi dominance percentage, and ETH market cap sourced from CoinGecko.

## Facts

- Endpoint: GET https://agent402.tools/api/global-defi
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-global-defi-market-stats-b61c47ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nt9LQTja9Gmqh8aYEYqXS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-global-defi-market-stats-b61c47ee
```

Example prompt: What are the latest global DeFi market stats — total market cap, 24-hour volume, DeFi dominance percentage, and how DeFi compares to ETH right now?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call snapshot of global DeFi market metrics without setting up API keys or a CoinGecko subscription. Ideal for agents that need periodic DeFi health checks, dominance tracking, or ETH/DeFi ratio analysis on demand. Prefer this over direct CoinGecko calls when operating in a wallet-based, keyless x402 payment environment.

## Known failure modes

- CoinGecko upstream unavailable — returns stale or error response
- Rate limiting on the underlying data source causing delayed results
- Empty or null fields if CoinGecko data is temporarily incomplete

## How this service works

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.

## Output

A JSON object containing: whether data was cached, the data source (CoinGecko), ETH market cap in USD, global DeFi market cap in USD, DeFi 24h trading volume in USD, DeFi dominance as a percentage of total crypto market cap, DeFi-to-ETH market cap ratio percentage, the top DeFi coin name and its dominance share within DeFi, and the timestamp when data was fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-global-defi-market-stats-b61c47ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
