# Alf DeFi Protocol Deep-Dive

> Alf DeFi Protocol Deep-Dive is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Returns in-depth data for a single DeFi protocol including TVL by chain, TVL trend, fees and revenue across time windows, market cap, audits, and links.

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/defi_protocol?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alf-defi-protocol-deep-dive-c673022e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m7PpJHjAexQihUEIjKSFe

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 alf-defi-protocol-deep-dive-c673022e -d '<json body>'
```

Example prompt: Give me a full DeFi protocol breakdown for Aave — TVL by chain, fee and revenue numbers for the last 24h, 7d, and 30d, market cap, audit history, and any relevant links.

## When to prefer this

Use this endpoint when you need comprehensive, multi-dimensional data on a single DeFi protocol in one call — combining TVL, fees, revenue, audits, and market cap rather than stitching together multiple sources. Ideal for due-diligence workflows, DeFi research agents, or portfolio analysis tools that need protocol-level fundamentals quickly. Prefer this over generic web search when structured, machine-readable protocol data is required.

## Known failure modes

- Unknown or misspelled protocol name returns an error or empty result
- Protocol slug not recognized — use canonical DeFiLlama-style slug
- Temporarily unavailable data for a specific chain or time window
- Payment failure via x402 results in 402 response with no data returned
- Rate limiting if the same protocol is queried too rapidly

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

A structured JSON object containing: total and per-chain TVL with trend data, fees and revenue for 24h, 7d, and 30d windows, protocol market cap, a list of security audits, and external links to the protocol's resources. Response time is approximately 120ms.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "protocol"
 ],
 "properties": {
  "protocol": {
   "type": "string",
   "description": "name or slug"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "One DeFi protocol in depth: TVL by chain, TVL trend, fees and revenue (24 h/7 d/30 d), market cap, audits, links."
 },
 "tool": "defi_protocol",
 "billing": {
  "usd": 0.002,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alf-defi-protocol-deep-dive-c673022e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
