yield-strategies

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

DeFi Yield Strategies

DeFi收益策略

APY Convention

APY规范

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.
APY值本身已是百分比格式
apy = 2.32
即代表2.32%。
请勿乘以100,这是处理收益数据时最常见的错误。

Tool:
defillama:get_yield_pools

工具:
defillama:get_yield_pools

Filtering Guide

筛选指南

WantParameterExample
Pools with specific token
token
"coingecko:ethereum"
Pools on specific chain
chain
"ethereum"
Pools from specific protocol
protocol
"aave"
Pools from protocol category
category
"Lending"
,
"DEXes"
Only stablecoin pools
stablecoin_only
true
Minimum APY threshold
min_apy
5
(= 5%)
Minimum TVL
min_tvl
1000000
(= $1M)
Include borrow-side data
include_borrow
true
需求参数示例
含指定代币的资金池
token
"coingecko:ethereum"
指定公链上的资金池
chain
"ethereum"
来自指定协议的资金池
protocol
"aave"
属于指定协议类别的资金池
category
"Lending"
,
"DEXes"
仅展示稳定币资金池
stablecoin_only
true
最低APY门槛
min_apy
5
(= 5%)
最低TVL门槛
min_tvl
1000000
(= $1M)
包含借款端数据
include_borrow
true

Key Distinction

关键区别

  • "ETH pools" = token filter:
    token: "coingecko:ethereum"
  • "Pools on Ethereum" = chain filter:
    chain: "ethereum"
  • "ETH资金池" = token 筛选:
    token: "coingecko:ethereum"
  • "以太坊链上的资金池" = chain 筛选:
    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.
token
参数需要传入标准代币键(例如
coingecko:ethereum
),并通过
dim.pool_set()
实现家族解析。
coingecko:ethereum
会匹配包含ETH、wETH、stETH、cbETH以及所有ETH家族变体的资金池,而非仅匹配原生ETH。

Sort Options

排序选项

sort_by
accepts strings like:
"apy desc"
,
"tvl desc"
,
"apy_base desc"
,
"apy_reward desc"
sort_by
接受如下字符串:
"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
每条结果包含:
symbol
protocol
(子协议标识)、
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
    )
  • 使用
    period
    参数(
    7d
    30d
    90d
    180d
    365d
    )获取按天统计的APY/TVL时间序列历史数据
  • 使用
    include_volatility: true
    添加APY波动率统计指标(
    apy_avg_30d
    apy_median_30d
    apy_std_30d
    cv_30d
    )——仅适用于当前查询
  • 使用
    start_date
    /
    end_date
    自定义日期范围(会覆盖
    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.
对于借贷协议,可获取借款利率数据:
  • apy_base_borrow
    :基础借款成本(你需要支付的费用)
  • apy_reward_borrow
    :借款奖励抵扣(你获得的激励)
  • 净借款成本 =
    apy_base_borrow - apy_reward_borrow
使用
include_borrow: true
确保借款相关字段被返回。

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.
配置资金时,请查看资金池TVL。投入超过资金池TVL 10%的资金可能会造成明显的利率影响或滑点。规模更大的资金池对大额资金的容纳性更好。

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")
示例1: 用户:"最优稳定币借贷收益" 工具调用:
defillama:get_yield_pools(stablecoin_only: true, category: "Lending", sort_by: "apy desc")
示例2: 用户:"TVL超过100万美元的顶级ETH收益池" 工具调用:
defillama:get_yield_pools(token: "coingecko:ethereum", min_tvl: 1000000, sort_by: "apy desc")
示例3: 用户:"Arbitrum链上最低的稳定币借款利率" 工具调用:
defillama:get_yield_pools(stablecoin_only: true, chain: "arbitrum", category: "Lending", include_borrow: true, sort_by: "apy_base_borrow asc")
示例4: 用户:"我在哪里可以赚取USDC收益?" 工具调用:
defillama:get_yield_pools(token: "coingecko:usd-coin", sort_by: "apy desc", min_tvl: 100000)
示例5: 用户:"以太坊链上Aave的收益情况" 工具调用:
defillama:get_yield_pools(protocol: "aave", chain: "ethereum", sort_by: "apy desc")