defillama/defillama-skills

yield-strategies

Guide for querying DeFi yield and APY data using getyieldpools.

소스 보기

사용 방법

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

시작 전 확인

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

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

DeFi Yield Strategies

APY Convention

APY values are already percentages: apy = 2.32 means 2.32%.

Do NOT multiply by 100. This is the most common mistake when working with yield data.

Tool: defillama:get_yield_pools

Filtering Guide

WantParameterExample
Pools with specific tokentoken"coingecko:ethereum"
Pools on specific chainchain"ethereum"
Pools from specific protocolprotocol"aave"
Pools from protocol categorycategory"Lending", "DEXes"
Only stablecoin poolsstablecoin_onlytrue
Minimum APY thresholdmin_apy5 (= 5%)
Minimum TVLmin_tvl1000000 (= $1M)
Include borrow-side datainclude_borrowtrue

Key Distinction

  • "ETH pools" = token filter: token: "coingecko:ethereum"
  • "Pools on Ethereum" = chain filter: chain: "ethereum"

Token Family Matching

The token param expects canonical token keys (e.g., coingecko:ethereum) and uses dim.pool_set() for family resolution. coingecko:ethereum finds pools containing ETH, wETH, stETH, cbETH, and all other variants in the ETH family -- not just native ETH.

Sort Options

sort_by accepts strings like: "apy desc", "tvl desc", "apy_base desc", "apy_reward desc"

Returned Columns

Each result includes: symbol, protocol (sub-protocol slug), parent_protocol, category, chain, apy, apy_base, apy_reward, apy_base_borrow, apy_reward_borrow, tvl, total_supply, total_borrow

Historical Data & Volatility

  • Use period param (7d, 30d, 90d, 180d, 365d) for daily APY/TVL time-series history
  • Use include_volatility: true to add APY volatility stats (apy_avg_30d, apy_median_30d, apy_std_30d, cv_30d) — current queries only
  • Use start_date / end_date for custom date ranges (overrides period)

Borrowing Costs

For lending protocols, borrowing rate data is available:

  • apy_base_borrow: Base borrowing cost (what you pay)
  • apy_reward_borrow: Reward offset on borrowing (incentives you earn)
  • Net borrow cost = apy_base_borrow - apy_reward_borrow

Use include_borrow: true to ensure borrow columns are populated.

Capacity Assessment

When allocating capital, check pool TVL. Allocating more than 10% of a pool's TVL may cause significant rate impact or slippage. Larger pools absorb capital more easily.

Examples

Example 1: User: "Best stablecoin lending yields" Tool call: defillama:get_yield_pools(stablecoin_only: true, category: "Lending", sort_by: "apy desc")

Example 2: User: "Top ETH yield pools with over $1M TVL" Tool call: defillama:get_yield_pools(token: "coingecko:ethereum", min_tvl: 1000000, sort_by: "apy desc")

Example 3: User: "Cheapest borrowing rates for stablecoins on Arbitrum" Tool call: defillama:get_yield_pools(stablecoin_only: true, chain: "arbitrum", category: "Lending", include_borrow: true, sort_by: "apy_base_borrow asc")

Example 4: User: "Where can I earn yield on USDC?" Tool call: defillama:get_yield_pools(token: "coingecko:usd-coin", sort_by: "apy desc", min_tvl: 100000)

Example 5: User: "Aave yields on Ethereum" Tool call: defillama:get_yield_pools(protocol: "aave", chain: "ethereum", sort_by: "apy desc")

관련 작업

같은 저장소의 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
커뮤니티

market-analysis

Patterns for DeFi market analysis, screening, and comparison using DefiLlama MCP tools. Covers valuation ratios (P/S, P/F), growth screening with pctchange columns, multi-metric protocol comparison, category comparison, and cross-entity analysis. Use when users ask to compare protocols, screen for undervalued projects, analyze growth trends, or do sector analysis.

설치 수
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일