# CoinGecko — Global DeFi Market Data

Get CoinGecko global DeFi market data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, configure supported query parameters and filters, and retrieve structured data including reported DeFi market capitalization, reported Ethereum market capitalization, and defi to eth ratio for defi overview panels, and aggregate comparisons.

Documentation: https://openany.si/coingecko/coingecko-global-defi-market-data/e6742d70-8f31-472e-b61c-8e9f29a4d878/
API ID: e6742d70-8f31-472e-b61c-8e9f29a4d878
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/global/decentralized_finance_defi
Page update time: 2026-12-03T02:49:14.348Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:13.784Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## CoinGecko Global DeFi Market API

Call this GET endpoint without business input parameters. The data object reports DeFi capitalization and volume alongside comparison and dominance measures. Several values are decimal strings; parse them without discarding precision or confusing ratios with monetary amounts.

## What You Can Build

- **DeFi overview panels**: Show reported capitalization and volume with their source labels.
- **Aggregate comparisons**: Display dominance measures separately from monetary totals.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `data.defi_market_cap` | Reported DeFi market capitalization |
| `data.eth_market_cap` | Reported Ethereum market capitalization |
| `data.trading_volume_24h` | Reported 24-hour DeFi trading volume |
| `data.defi_dominance` | Reported DeFi market dominance measure |
| `data.defi_to_eth_ratio` | Reported DeFi-to-Ethereum capitalization ratio |
| `data.top_coin_name` | Name of the reported leading DeFi coin |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CoinGecko — Global DeFi Market Data request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "defi_dominance": {
          "type": "string"
        },
        "defi_market_cap": {
          "type": "string"
        },
        "defi_to_eth_ratio": {
          "type": "string"
        },
        "eth_market_cap": {
          "type": "string"
        },
        "top_coin_defi_dominance": {
          "type": "number"
        },
        "top_coin_name": {
          "type": "string"
        },
        "trading_volume_24h": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official response / contract request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/coingecko/api/v3/global/decentralized_finance_defi' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "data": {
    "defi_dominance": "3.5568819863542411077651904276222133821656380942701140395041020219966392",
    "defi_market_cap": "93264745839.10368680452390205264",
    "defi_to_eth_ratio": "37.1685990356589832537094209337357070624927603988429231656080063710045566",
    "eth_market_cap": "250923489878.18163813287624277972",
    "top_coin_defi_dominance": 19.77898778734103,
    "top_coin_name": "Lido Staked Ether",
    "trading_volume_24h": "3779246981.777563895687957584391"
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is defi_market_cap total value locked?
No. Market capitalization and total value locked are different measures. This documented response does not expose a TVL field.

### Why are some values strings?
The reference represents several decimal measures as strings. Use a suitable decimal parser and preserve their precision.

### Can I filter these totals to a protocol or chain?
No protocol or chain filter is exposed by this selected implementation. The response is a global aggregate.

### Are dominance fields monetary amounts?
No. Keep dominance and ratio measures separate from capitalization and volume fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- CoinGecko: https://openany.si/coingecko/coingecko-global-defi-market-data/e6742d70-8f31-472e-b61c-8e9f29a4d878/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
