# Beggar Bot Compound Market Data (Base mainnet)

> Beggar Bot Compound Market Data (Base mainnet) is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Fetches Compound protocol lending/borrowing market data for a specified asset and chain via a paid x402 micropayment endpoint

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/compound?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-compound-market-data-base-mainnet-be4c4771
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_n0wTmip14a3LWrUuLvE6s

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 beggar-bot-compound-market-data-base-mainnet-be4c4771
```

Example prompt: What are the current Compound lending and borrowing rates for USDC on Base mainnet right now?

## When to prefer this

Use this endpoint when you need real-time Compound protocol market data (rates, liquidity, positions) for DeFi lending/borrowing decisions on Base, Ethereum, Arbitrum, Optimism, or Polygon. Prefer this over generic DeFi aggregators when you specifically need Compound data with optional per-wallet position lookup and are comfortable paying $0.02 USDC via x402 micropayment.

## Known failure modes

- Unsupported chain or market symbol returns an error or empty result
- Missing required 'type' and 'method' fields in input cause validation failure
- Payment not received or invalid x402 payment header results in 402 response
- Invalid wallet address format causes rejection
- Network congestion on Base mainnet may cause slow or failed on-chain reads

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns a JSON object containing Compound protocol market data for the specified asset and chain, including supply APY, borrow APY, liquidity, and optionally the wallet's current positions in that market.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "description": "base|ethereum|arbitrum|optimism|polygon"
      },
      "market": {
       "type": "string",
       "description": "USDC|WETH|USDT|..."
      },
      "address": {
       "type": "string",
       "description": "optional 0x wallet"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-compound-market-data-base-mainnet-be4c4771/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
