# SperaxOS CoinGecko Global DeFi Data

> SperaxOS CoinGecko Global DeFi Data is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches global cryptocurrency and DeFi market data (total market cap, volume, dominance, active cryptocurrencies, etc.) via CoinGecko, payable per-request with USDC on Base using x402.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/coingecko/getGlobalData?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-coingecko-global-defi-data-796cf829
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_voWUm9OAnGcVvNL-FPVnh

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 speraxos-coingecko-global-defi-data-796cf829 -d '<json body>'
```

Example prompt: What does the global crypto market look like right now — total market cap, 24-hour volume, Bitcoin dominance, and how many active coins are there?

## When to prefer this

Choose this endpoint when you need a single authoritative snapshot of the entire cryptocurrency market without needing API keys — ideal for AI agents that can pay per-request via x402 on Base. Prefer this over CoinGecko's direct API when operating in a wallet-native or DeFi-native context and avoiding key management. It is the right choice for macro market context queries rather than per-coin lookups.

## Known failure modes

- Payment failure if insufficient USDC balance on Base or x402 payment not properly formed
- CoinGecko API rate limiting or downtime resulting in a 502/503 response
- Stale or delayed data if CoinGecko upstream is lagging
- Empty or malformed body rejected if required input wrapper fields (type, method, bodyType) are missing
- Network timeout if chat.sperax.io infrastructure is under load

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns a global market data object from CoinGecko including: total number of active cryptocurrencies and markets, total market capitalization in USD and other currencies, 24-hour trading volume, Bitcoin and Ethereum market dominance percentages, DeFi total market cap, total market cap change over 24 hours, and related statistics covering the entire cryptocurrency ecosystem.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-coingecko-global-defi-data-796cf829/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
