getProtocolFeesAndRevenue

1 credit per call

Get fee and revenue metrics for a specific DeFi protocol. Returns daily fees, revenue, or holders revenue with 24h/7d/30d aggregates and percentage changes. Use this to compare protocol economics or assess revenue generation.

Try it

Open in playground
kirha tools run defillama_getProtocolFeesAndRevenue \
  --input '{
    "protocol": "aave"
  }'

Uses the key saved by kirha auth login.

  • protocolstring, required

    protocol slug (e.g., 'aave', 'uniswap', 'lido', 'compound-v3'). Must be an exact slug, not a name: get it from searchProtocols

  • dataTypestring, default "dailyFees"

    dailyFees = total fees collected, dailyRevenue = protocol revenue, dailyHoldersRevenue = revenue to token holders

    One of dailyFees, dailyRevenue, dailyHoldersRevenue

Works in any harness

Get your API key, then install with one command

  • Claude Code
  • OpenCode
  • π
  • Windsurf
  • Gemini CLI
  • Codex
  • Cursor
  • GitHub Copilot