longbridge-defi-yield
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-defi-yield
longbridge-defi-yield
DeFi yield analysis framework — covers lending rates (AAVE / Compound), liquidity provision (LP) returns, staking yields, yield farming strategies, and risk-adjusted return comparison across DeFi protocols.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Data scope notice: Longbridge provides real-time spot prices for major cryptocurrencies (suffix, e.g..HAS,BTCUSD.HAS). DeFi protocol metrics (APY, TVL, utilisation rates) are not available via the Longbridge CLI — they must be sourced via WebSearch (DefiLlama, CoinGecko, protocol dashboards).ETHUSD.HAS
DeFi收益分析框架——涵盖DeFi协议间的借贷利率(AAVE / Compound)、流动性提供(LP)收益、质押收益、收益农耕策略,以及风险调整后收益对比。
回复语言:匹配用户输入语言——简体中文 / 繁体中文 / 英文。
数据范围说明:Longbridge提供主流加密货币的实时现货价格(后缀为,例如.HAS、BTCUSD.HAS)。DeFi协议指标(APY、TVL、利用率)无法通过Longbridge CLI获取——必须通过WebSearch(DefiLlama、CoinGecko、协议仪表盘)获取。ETHUSD.HAS
When to use
使用场景
Trigger when the user asks about:
- DeFi lending / borrowing rates — "AAVE 上 ETH 借贷利率", "Compound USDC supply APY"
- Liquidity mining / LP returns — "Uniswap LP 收益", "流动性挖矿策略"
- Staking yields — "ETH 质押收益率", "SOL staking APY"
- Yield farming strategies — "如何优化 DeFi 收益", "yield farming best strategy"
- Risk-adjusted DeFi comparison — "哪个协议收益最高且风险最低"
For crypto spot price only, prefer . For general crypto market data, prefer .
longbridge-quotelongbridge-core当用户询问以下内容时触发:
- DeFi借贷利率——"AAVE 上 ETH 借贷利率"、"Compound USDC 存款APY"
- 流动性挖矿/LP收益——"Uniswap LP 收益"、"流动性挖矿策略"
- 质押收益——"ETH 质押收益率"、"SOL staking APY"
- 收益农耕策略——"如何优化 DeFi 收益"、"yield farming best strategy"
- 风险调整后的DeFi对比——"哪个协议收益最高且风险最低"
若仅需加密货币现货价格,优先使用。若需通用加密货币市场数据,优先使用。
longbridge-quotelongbridge-coreWorkflow
工作流程
- Identify asset and protocol from the prompt (e.g. ETH + AAVE, USDC + Compound).
- Fetch spot price from Longbridge for the underlying crypto asset (as price reference):
bash
longbridge quote ETHUSD.HAS --format json - Fetch DeFi protocol data via WebSearch from canonical sources:
- DefiLlama () for TVL, protocol APY, pool yields.
defillama.com - CoinGecko () for staking yields and token data.
coingecko.com - Protocol-native dashboards (app.aave.com, app.compound.finance) for live rates.
- DefiLlama (
- Compute risk-adjusted yield:
- Nominal APY vs. inflation-adjusted real yield.
- IL (impermanent loss) risk for LP positions.
- Smart contract risk / audit status (note qualitatively).
- Present comparison table across protocols/strategies, ranked by risk-adjusted return.
- 从提示中识别资产和协议(例如ETH + AAVE、USDC + Compound)。
- 从Longbridge获取底层加密资产的现货价格(作为价格参考):
bash
longbridge quote ETHUSD.HAS --format json - 通过WebSearch从权威来源获取DeFi协议数据:
- DefiLlama()获取TVL、协议APY、资金池收益。
defillama.com - CoinGecko()获取质押收益和代币数据。
coingecko.com - 协议原生仪表盘(app.aave.com、app.compound.finance)获取实时利率。
- DefiLlama(
- 计算风险调整后收益:
- 名义APY与通胀调整后的实际收益对比。
- LP头寸的无常损失(IL)风险。
- 智能合约风险/审计状态(定性说明)。
- 展示跨协议/策略的对比表格,按风险调整后收益排序。
CLI
CLI
bash
undefinedbash
undefinedSpot price for underlying crypto (price reference only)
底层加密资产的现货价格(仅作价格参考)
longbridge quote BTCUSD.HAS --format json
longbridge quote ETHUSD.HAS --format json
longbridge quote SOLUSD.HAS --format json
> Run `longbridge quote --help` to see supported `.HAS` crypto symbols.
DeFi protocol data is **not available** via the Longbridge CLI. Use WebSearch to retrieve live APY/TVL from DefiLlama, CoinGecko, or protocol dashboards.longbridge quote BTCUSD.HAS --format json
longbridge quote ETHUSD.HAS --format json
longbridge quote SOLUSD.HAS --format json
> 运行`longbridge quote --help`查看支持的`.HAS`加密货币符号。
DeFi协议数据**无法**通过Longbridge CLI获取。请使用WebSearch从DefiLlama、CoinGecko或协议仪表盘获取实时APY/TVL数据。Output
输出格式
Present a DeFi yield comparison table:
| Field | 简体 | 繁體 | English |
|---|---|---|---|
| Protocol | 协议 | 協議 | Protocol |
| Asset | 资产 | 資產 | Asset |
| Strategy type | 策略类型 | 策略類型 | Strategy type |
| Nominal APY | 名义年化收益 | 名義年化收益 | Nominal APY |
| Estimated risk | 风险等级 | 風險等級 | Risk level |
| TVL | 总锁仓量 | 總鎖倉量 | TVL |
| Notes | 备注 | 備註 | Notes |
Always include a risk disclaimer: "DeFi 投资存在智能合约风险、无常损失和流动性风险,不构成投资建议。" / "DeFi investing carries smart contract, impermanent loss, and liquidity risks. This is not investment advice."
展示DeFi收益对比表格:
| 字段 | 简体 | 繁體 | English |
|---|---|---|---|
| Protocol | 协议 | 協議 | Protocol |
| Asset | 资产 | 資產 | Asset |
| Strategy type | 策略类型 | 策略類型 | Strategy type |
| Nominal APY | 名义年化收益 | 名義年化收益 | Nominal APY |
| Estimated risk | 风险等级 | 風險等級 | Risk level |
| TVL | 总锁仓量 | 總鎖倉量 | TVL |
| Notes | 备注 | 備註 | Notes |
需始终包含风险提示:"DeFi 投资存在智能合约风险、无常损失和流动性风险,不构成投资建议。" / "DeFi investing carries smart contract, impermanent loss, and liquidity risks. This is not investment advice."
Error handling
错误处理
| Situation | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 请先安装 longbridge-terminal(仅用于现货价格) | 請先安裝 longbridge-terminal(僅用於現貨價格) | Install longbridge-terminal (for spot prices only) |
| 提示该加密货币暂不支持,尝试标准格式 | 提示該加密貨幣暫不支援 | Crypto symbol not supported; check |
| DeFi APY data unavailable | 提示需通过 WebSearch 获取协议数据 | 提示需透過 WebSearch 取得協議數據 | DeFi APY requires WebSearch (DefiLlama/CoinGecko) |
| Other stderr | 原样展示,不重试 | 原樣展示,不重試 | Surface verbatim, do not retry |
| 场景 | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 请先安装 longbridge-terminal(仅用于现货价格) | 請先安裝 longbridge-terminal(僅用於現貨價格) | Install longbridge-terminal (for spot prices only) |
| 提示该加密货币暂不支持,请尝试标准格式 | 提示該加密貨幣暫不支援 | Crypto symbol not supported; check |
| DeFi APY数据无法获取 | 提示需通过 WebSearch 获取协议数据 | 提示需透過 WebSearch 取得協議數據 | DeFi APY requires WebSearch (DefiLlama/CoinGecko) |
| 其他stderr | 原样展示,不重试 | 原樣展示,不重試 | Surface verbatim, do not retry |
MCP fallback
MCP fallback
For spot crypto prices: with symbols. DeFi protocol data has no Longbridge MCP equivalent — WebSearch is required.
mcp__longbridge__quote.HAS对于加密货币现货价格:使用带符号的。DeFi协议数据没有对应的Longbridge MCP替代方案——必须使用WebSearch。
.HASmcp__longbridge__quoteRelated skills
相关技能
| User asks | Route to |
|---|---|
| Crypto spot price only | |
| Crypto market overview / news | |
| Options on crypto | |
| General market calendar | |
| 用户询问内容 | 跳转至 |
|---|---|
| 仅需加密货币现货价格 | |
| 加密货币市场概览/新闻 | |
| 加密货币期权 | |
| 通用市场日历 | |
File layout
文件结构
longbridge-defi-yield/
└── SKILL.mdPrompt-only — no . DeFi protocol data sourced via WebSearch. Spot crypto prices via .
scripts/longbridge quote <SYMBOL>.HAS --format jsonlongbridge-defi-yield/
└── SKILL.md仅需提示——无目录。DeFi协议数据通过WebSearch获取。加密货币现货价格通过获取。
scripts/longbridge quote <SYMBOL>.HAS --format json