# DeFi Protocol TVL & Market Cap Lookup

> DeFi Protocol TVL & Market Cap Lookup is a paid API for AI agents from x402-stock-indicators.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns real-time TVL, market cap, and chain breakdown for a DeFi protocol by slug, paid per-call with USDC via x402.

## Facts

- Endpoint: GET https://x402-stock-indicators.vercel.app/defi-protocol/%7Bslug%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-protocol-tvl-market-cap-lookup-f352f50b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9QNA4rbNiDsPruFPGci0d

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 defi-protocol-tvl-market-cap-lookup-f352f50b
```

Example prompt: What's the current TVL and market cap for Uniswap, and how has its TVL changed over the last 7 days? Break it down by chain too.

## When to prefer this

Choose this endpoint when you need real-time DeFi protocol TVL and market cap data without setting up an API key or subscription — ideal for AI agents that can pay $0.01 USDC per call via the x402 protocol on Base or Solana. Prefer this over traditional data APIs when you want frictionless, pay-as-you-go access to on-chain DeFi metrics including multi-chain TVL breakdowns.

## Known failure modes

- Unknown or misspelled slug returns 404 or empty result
- Protocol not indexed by the data provider returns no data
- x402 payment failure if wallet has insufficient USDC on Base or Solana
- Stale data if the underlying data provider hasn't refreshed recently
- Rate limiting or provider outage causing 5xx errors

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

A JSON object containing the protocol's canonical name, slug, token symbol, current TVL in USD, market cap in USD, 1-day and 7-day TVL percentage changes, and a ranked list of top chains by TVL with individual chain TVL values. Data is timestamped with an as_of field.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Uniswap",
  "slug": "uniswap",
  "as_of": "2026-08-01T20:53:59+00:00",
  "symbol": "UNI",
  "tvl_usd": 3033677596,
  "market_cap_usd": 2537468332.689303,
  "tvl_change_pct": {
   "1d": -0.982,
   "7d": -3.8588
  },
  "top_chains_by_tvl": [
   {
    "chain": "Ethereum",
    "tvl_usd": 2147635713
   },
   {
    "chain": "Base",
    "tvl_usd": 362190494
   },
   {
    "chain": "Arbitrum",
    "tvl_usd": 171492784
   },
   {
    "chain": "BSC",
    "tvl_usd": 97416638
   },
   {
    "chain": "Polygon",
    "tvl_usd": 72485443
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-protocol-tvl-market-cap-lookup-f352f50b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-stock-indicators.vercel.app](https://www.zero.xyz/host/x402-stock-indicators.vercel.app/llms.txt)
