Data & analysis

Defillama Data Aggregator

Try it

Professional DeFi data aggregator that provides unified access to TVL, protocols, chains, and yields data from DefiLlama. Supports multiple output formats (J...

What it does

**Professional DeFi data at your fingertips.** Query TVL, protocols, chains, and yields from DefiLlama with a single command.

The skill document

DefiLlama Data Aggregator

Professional DeFi data at your fingertips. Query TVL, protocols, chains, and yields from DefiLlama with a single command.

What This Skill Does

  • TVL Query - Get total DeFi TVL or individual chain TVL
  • Protocol Data - Query protocol details, rankings, and filter by category
  • Chain Statistics - Get TVL for specific chains (Ethereum, Solana, etc.)
  • Yield Pools - Find high-yield opportunities with filtering options
  • Health Monitoring - Check API availability status

Quick Start

# Get total DeFi TVL
node {skillDir}/src/index.js defillama tvl

# Get protocol TVL
node {skillDir}/src/index.js defillama protocol --name aave

# Get top protocols by TVL
node {skillDir}/src/index.js defillama protocols --limit 10 --sort tvl --format table

# Get chain TVL
node {skillDir}/src/index.js defillama chain --name ethereum

# Find high-yield pools
node {skillDir}/src/index.js defillama yields --min-apy 10 --chain ethereum --limit 20

# Check API health
node {skillDir}/src/index.js health

Commands

TVL Commands

CommandDescriptionExample
tvlGet total DeFi TVLnode {skillDir}/src/index.js defillama tvl
protocol --name Get protocol TVLnode {skillDir}/src/index.js defillama protocol --name uniswap
chain --name Get chain TVLnode {skillDir}/src/index.js defillama chain --name solana

Protocol Commands

CommandDescriptionExample
protocolsList all protocolsnode {skillDir}/src/index.js defillama protocols
protocols --category Filter by categorynode {skillDir}/src/index.js defillama protocols --category lending
protocols --min-tvl Filter by minimum TVLnode {skillDir}/src/index.js defillama protocols --min-tvl 100000000
protocols --limit Limit resultsnode {skillDir}/src/index.js defillama protocols --limit 20

Yield Commands

CommandDescriptionExample
yieldsList yield poolsnode {skillDir}/src/index.js defillama yields
yields --min-apy Filter by minimum APYnode {skillDir}/src/index.js defillama yields --min-apy 15
yields --chain Filter by chainnode {skillDir}/src/index.js defillama yields --chain arbitrum
yields --min-tvl Filter by minimum TVLnode {skillDir}/src/index.js defillama yields --min-tvl 1000000
yields --stablecoinStablecoin pools onlynode {skillDir}/src/index.js defillama yields --stablecoin

Utility Commands

CommandDescriptionExample
healthCheck API healthnode {skillDir}/src/index.js health
statusShow system statusnode {skillDir}/src/index.js status

Output Formats

All data commands support multiple output formats:

# Pretty format (default, human-readable)
node {skillDir}/src/index.js defillama tvl --format pretty

# JSON format (for scripts and parsing)
node {skillDir}/src/index.js defillama tvl --format json

# Table format (for quick overview)
node {skillDir}/src/index.js defillama protocols --limit 10 --format table

# CSV format (for spreadsheets)
node {skillDir}/src/index.js defillama protocols --limit 50 --format csv

Use Cases

For DeFi Investors

"Show me the top 10 lending protocols by TVL"
"Find yield pools on Ethereum with APY above 15%"
"What is the current TVL of Aave?"

For Data Analysts

"Export all protocols data to CSV"
"Get the TVL distribution across chains"
"Compare lending vs DEX TVL"

For Developers

"Check if DefiLlama API is healthy"
"Get protocol data in JSON format"
"Find pools with minimum 1M TVL"

Security Features

  • Input Sanitization - All inputs validated and sanitized
  • Error Filtering - API errors filtered to prevent information leakage
  • Range Validation - Numeric inputs validated against bounds
  • Pattern Validation - Protocol/chain names follow strict rules

Security Notes

  • No API Keys Required: This skill uses DefiLlama's public API which does not require authentication
  • External Requests: Data is fetched from:
    • https://api.llama.fi (DefiLlama API)
    • https://yields.llama.fi (DefiLlama Yields API)
  • No Local Server: This skill does not start any local HTTP server
  • No File Persistence: No data is persisted locally (caching is in-memory only)
  • Input Validation: All user inputs are sanitized to prevent injection attacks

Installation

Prerequisites

  • Node.js >= 16.0.0
  • npm

Setup

cd {skillDir}
npm install

API Reference

DefiLlama Endpoints Used

EndpointDescription
https://api.llama.fi/tvlTotal DeFi TVL
https://api.llama.fi/protocolsAll protocols
https://api.llama.fi/protocol/{name}Protocol details
https://api.llama.fi/chainsAll chains
https://yields.llama.fi/poolsYield pools

Error Handling

The skill provides user-friendly error messages:

Error TypeMessage
Invalid protocol name"Only alphanumeric characters and hyphens allowed"
Invalid chain name"Only alphanumeric characters, spaces, and hyphens allowed"
Network error"Check internet connection and try again"
Rate limit"Rate limit exceeded, please wait"
API unavailable"Service temporarily unavailable"

Examples

Get Top Protocols

node {skillDir}/src/index.js defillama protocols --limit 10 --sort tvl --format table

Find High-Yield Pools

node {skillDir}/src/index.js defillama yields --min-apy 20 --min-tvl 1000000 --limit 5

Check Health

node {skillDir}/src/index.js health

Troubleshooting

Protocol Not Found

  • Ensure the protocol name matches DefiLlama's naming (e.g., aave-v3 not aave v3)
  • Check if the protocol is listed on DefiLlama

Chain Not Found

  • Use lowercase chain names (e.g., ethereum not Ethereum)
  • For multi-word chains, use hyphens (e.g., polygon-pos)

No Results from Yields

  • Try lowering the --min-apy or --min-tvl thresholds
  • Ensure the chain name is valid

Network Errors

  • Check internet connectivity
  • DefiLlama API may be temporarily unavailable

Version: 1.0.3
Last Updated: 2026-03-31
Maintainer: AntalphaAI
License: MIT

Related skills

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from deanpeng-dotcom

Browse all skills

Trade Polymarket, follow top traders, and scan logical-implication hedge opportunities with enriched wallet analytics.

by deanpeng-dotcom17 installs

Track Ethereum whale, VC fund, and market maker wallet activity and receive real-time trading and liquidity signals.

by deanpeng-dotcom22 installs

Unified multi-chain transfer skill for BTC, EVM, and Solana. Use when a user wants to send ETH/ERC20, SOL/SPL, or BTC, including batch payouts, with preview...

by deanpeng-dotcom16 installs

Web3 Skill Navigator / Web3 技能导航站. Describe your need in plain language to get matched AntalphaAI skill recommendations with install commands. Triggers: web1...

by deanpeng-dotcom17 installs

Multi-Dimensional Technical Analysis Radar for cryptocurrencies. Supports spot trading pairs (Binance/Gate.io) and on-chain contract addresses (via DexScreen...

by deanpeng-dotcom12 installs

BTC mining farm management via natural language. Activate when user mentions mining farm, miners, hashrate, BTC mining, miner reboot, mining revenue, Nonce m...

by deanpeng-dotcom15 installs