defillama-api

Free DeFi analytics across all chains — TVL, token prices, DEX volumes, fees/revenue, stablecoins, and bridges

By agiprolabs · 348 installs

npx skills add agiprolabs/claude-trading-skills --skill defillama-api

Source repository · Upstream listing

DeFiLlama API — DeFi Macro Analytics DeFiLlama is the largest DeFi TVL aggregator. Its API is free with no authentication for most endpoints — covering TVL, token prices, DEX volumes, fees/revenue, stablecoins, and bridges across all chains. Quick Start Base URLs Service Base URL Auth TVL / Protocols https://api.llama.fi Free Coin Prices https://coins.llama.fi Free Stablecoins https://stablecoins.llama.fi Free Yields https://yields.llama.fi Pro ($300/mo) Bridges https://bridges.llama.fi Free (list) / Pro (detail) Pro API https://pro api.llama.fi/{KEY}/api/... Pro key in URL path Rate limits : ~500 requests per 5 minutes (free). Pro: 1,000 req/min, 1M calls/mo. TVL & Protocol Data Token Prices Coin identifiers use {chain}:{address} format: solana:So11111111111111111111111111111111111111112 (SOL) ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7 (USDT) coingecko:bitcoin (non chain lookups) Batch Historical Prices DEX Volumes Fees & Revenue Stablecoins Bridges Common Patterns Protocol TVL Comparison Multi Token Price Lookup Solana DeFi Overview Historical Price Analysis Free vs Pro Endpoints Category Free Pro ($300/mo) TVL / Protocols Yes Yes Coin Prices Yes Yes DEX Volumes (overview) Yes Yes Fees/Revenue (overview) Yes Yes Stablecoins Yes Yes Bridges (list) Yes Yes Yields / Pools No Yes Bridge detail No Yes Derivatives No Yes Emissions/Unlocks No Yes Treasuries No Yes Hacks database No Yes When to Use DeFiLlama vs Alternatives Need Use Protocol TVL comparison DeFiLlama Multi chain token prices DeFiLlama (free batch) Historical prices at specific timestamps DeFiLlama DeFi macro analysis DeFiLlama Solana token OHLCV Birdeye or SolanaTracker Real time token data DexScreener or Birdeye Wallet PnL SolanaTracker On chain transaction data Helius Files References references/endpoints.md — Complete endpoint listing with parameters and response schemas references/coin identifiers.md — Chain prefixes, address formats, and batch lookup patterns references/error handling.md — Rate limits, error codes, retry strategies, large response handling Scripts scripts/defi snapshot.py — Solana DeFi overview: TVL, volumes, fees, top protocols scripts/price lookup.py — Multi token price lookup with historical comparison