chainpeek: protocol fees and revenue over 24 hours, 7 days, 30 days, 1 year and all time (cached DefiLlama data)
get_protocol_feesFetch a protocol's fees and revenue in USD across 24h, 7d, 30d, 1y, and all time from cached DefiLlama data, including changes and the revenue-to-fees ratio.
Instructions
chainpeek: Get protocol fees and revenue. For TVL use get_protocol_tvl. Returns a protocol's fees and revenue in USD over 24 hours, 7 days, 30 days, 1 year and all time, the change, the revenue-to-fees ratio and DefiLlama's definitions, from Tanod's cache of DefiLlama data. Cached DefiLlama data (refreshed every few hours), never live; as_of shows its age; revenue is DefiLlama's definition (see methodology); an unknown protocol is a 422 with suggestions and a missing or over-2-day-old cache a 503 (neither charged). Informational only. Typically under 1 s (a local cache read). Price: USD 0.002. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/defi-data-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes | Protocol (or chain) name or slug, e.g. aave, uniswap, lido, ethereum (a parent such as aave sums its versions). An unknown name is a 422 with suggestions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| as_of | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| stale | No | ||
| source | No | ||
| protocol | No | ||
| other_matches | No | ||
| cache_age_hours | No |