# Compound Market Stats

> Compound Market Stats is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches live Compound V3 market statistics including supply/borrow APY, utilization, and collateral asset details for USDC or WETH markets on Ethereum.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/compound-market-stats?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compound-market-stats-a0d19438
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8lzX3r4m2snED81uJ4-ly

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 compound-market-stats-a0d19438
```

Example prompt: What are the current supply and borrow APYs on the Compound V3 USDC market on Ethereum, and how utilized is the pool right now?

## When to prefer this

Choose this endpoint when you need real-time Compound V3 lending market data (APY, utilization, collateral) directly from the Ethereum blockchain without requiring an API key or signup. Ideal for DeFi agents comparing lending rates, monitoring protocol health, or evaluating collateral parameters. Prefer this over general DeFi aggregators when you specifically need Compound V3 on-chain data with pay-per-call pricing and no subscription overhead.

## Known failure modes

- Invalid market parameter (not 'usdc' or 'weth') returns an error
- Public RPC node unavailability may cause timeouts or stale data
- On-chain data read errors if the Ethereum network is congested
- Payment failure due to insufficient USDC balance results in no charge and no data returned

## How this service works

Compound v3 (Comet) market stats on Ethereum read on-chain: utilization, supply and borrow APY, total supply and borrow of the base asset, and every collateral asset with its borrow and liquidation collateral factors, liquidation factor and supply cap. Markets: usdc (cUSDCv3) or weth (cWETHv3).

## Output

Returns a JSON object containing the Compound V3 comet contract address, market label, base token address, supply APY percentage, borrow APY percentage, pool utilization percentage, total supply and borrow amounts in base token units, a list of accepted collateral assets with their supply caps and liquidation/collateral factors, and the timestamp of the data check.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "market": {
       "type": "string",
       "description": "usdc (default) or weth"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "comet": "0xc3d688B66703497DAA19211EEdff47f25384cdc3",
  "label": "cUSDCv3 (Ethereum)",
  "market": "usdc",
  "source": "https://ethereum-rpc.publicnode.com",
  "baseToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "checkedAt": "2026-10-23T09:35:55.292Z",
  "baseDecimals": 6,
  "borrowApyPct": 5.9883,
  "supplyApyPct": 5.0051,
  "utilizationPct": 90.5523,
  "totalBorrowBase": 351051962.600091,
  "totalSupplyBase": 387678609.467939,
  "collateralAssets": [
   {
    "asset": "0xc00e94cb662c3520282e6f5717214004a7f26888",
    "supplyCapRaw": "100000000000000000000000",
    "liquidationFactorPct": 75,
    "borrowCollateralFactorPct": 50,
    "liquidateCollateralFactorPct": 70
   },
   {
    "asset": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
    "supplyCapRaw": "1000000000000",
    "liquidationFactorPct": 90,
    "borrowCollateralFactorPct": 80,
    "liquidateCollateralFactorPct": 85
   }
  ],
  "collateralAssetCount": 13
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compound-market-stats-a0d19438/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
