defillama/defillama-skills

market-analysis

Patterns for DeFi market analysis, screening, and comparison using DefiLlama MCP tools.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/defillama/defillama-skills --skill market-analysis

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

DeFi Market Analysis

Valuation Ratios

Pre-computed in defillama:get_protocol_metrics and defillama:get_category_metrics:

  • ps_ratio = mcap / annualised revenue. Lower = potentially undervalued relative to revenue.
  • pf_ratio = mcap / annualised fees. Lower = more fee-efficient valuation.

Growth Screening

Use *_pct_change columns for momentum analysis. Values are decimals (0.35 = +35%, -0.13 = -13%).

Available windows: *_7d_pct_change, *_30d_pct_change, *_90d_pct_change

Metrics with pctchange: `tvlbase, fees1d`, `revenue1d, price, volumedexs1d`

Sort by any pct_change column to find fastest movers.

Protocol Comparison

Use array params for side-by-side comparison in a single call:

defillama:get_protocol_metrics(
  protocol: ["aave", "compound-v3", "morpho"],
  metrics: ["tvl_base", "fees_1d", "revenue_1d", "ps_ratio"]
)

This returns one row per protocol, which is more efficient than calling once per protocol.

Category Comparison

Use defillama:get_category_metrics to compare DeFi sectors:

defillama:get_category_metrics(
  category: "Lending",
  metrics: ["tvl_base", "fees_1d", "protocol_count"]
)

Call once per category in parallel for side-by-side comparison.

Token Sector Screening

Use defillama:get_token_prices for token-level analysis:

defillama:get_token_prices(token: "coingecko:ethereum", period: "30d")

Historical Trends

Use period for trend analysis:

  • Short-term: 7d or 30d
  • Medium-term: 90d or 180d
  • Long-term: 365d
  • Custom range: start_date / end_date (YYYY-MM-DD) overrides period

Historical queries return daily data points with a date column.

Cross-Entity Analysis

Compare across entity types using parallel tool calls:

  • "ETH price vs Ethereum TVL" -> defillama:get_token_prices + defillama:get_chain_metrics
  • "Aave TVL vs AAVE token price" -> defillama:get_protocol_metrics + defillama:get_token_prices
  • "Lending vs DEX category" -> two defillama:get_category_metrics calls in parallel

Examples

Example 1: User: "Most undervalued DeFi protocols by P/S ratio" Tool call: defillama:get_protocol_metrics(sort_by: "ps_ratio asc", limit: 20, metrics: ["tvl_base", "revenue_1d", "ps_ratio", "mcap"])

Example 2: User: "Which protocols grew TVL most in last 30 days?" Tool call: defillama:get_protocol_metrics(sort_by: "tvl_base_30d_pct_change desc", limit: 10, metrics: ["tvl_base", "tvl_base_30d_pct_change"])

Example 3: User: "Compare Aave and Compound fees" Tool call: defillama:get_protocol_metrics(protocol: ["aave", "compound-v3"], metrics: ["tvl_base", "fees_1d", "revenue_1d"])

Example 4: User: "Compare Lending vs DEX fees and TVL" Tool call: defillama:get_category_metrics(category: ["Lending", "DEX"], metrics: ["tvl_base", "fees_1d", "revenue_1d"])

Example 5: User: "Aave TVL trend over 90 days" Tool call: defillama:get_protocol_metrics(protocol: "aave", metrics: ["tvl_base"], period: "90d")

Example 6: User: "Aave fees in Q1 2025" Tool call: defillama:get_protocol_metrics(protocol: "aave", metrics: ["fees_1d"], start_date: "2025-01-01", end_date: "2025-03-31")

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
defillama
커뮤니티

flows-and-events

Guide for querying DeFi flow data and events using DefiLlama MCP tools. Covers bridge flows, ETF inflows/outflows, stablecoin supply, institutional/DAT holdings with mNAV ratios, hacks and exploits, fundraising rounds, CEX volumes, open interest, and protocol treasuries. Use when users ask about bridge volume, ETF flows, stablecoin supply, MicroStrategy holdings, DeFi hacks, funding rounds, exchange volume, or treasury data.

설치 수
1
GitHub Stars
34
업데이트
3월 26일
defillama
커뮤니티

institutional-crypto

Institutional and TradFi crypto exposure analysis covering public company holdings (MicroStrategy, Tesla, etc.), Bitcoin and Ethereum ETF flows, and institutional accumulation patterns. Use when the user asks about institutional adoption, ETF flows, corporate treasuries, what institutions are buying, or MicroStrategy holdings.

설치 수
1
GitHub Stars
34
업데이트
3월 26일
defillama
커뮤니티

protocol-deep-dive

Comprehensive single-protocol analysis combining TVL, fees, revenue, yields, events, income, and user activity. Produces a full protocol report. Use when the user asks for a complete overview, deep dive, "tell me everything about" a protocol, or a protocol research report.

설치 수
1
GitHub Stars
34
업데이트
3월 26일
defillama
커뮤니티

yield-strategies

Guide for querying DeFi yield and APY data using getyieldpools. Covers pool filtering by token, chain, protocol, category, stablecoin-only mode, and capacity assessment. Explains APY conventions, lending vs borrowing rates, and sort options. Use when users ask about yields, APY, lending rates, borrowing costs, best pools, or DeFi yield strategies.

설치 수
1
GitHub Stars
34
업데이트
3월 26일