简介
无需API密钥的跨链DeFi持仓监控工具,支持Aave v3、SparkLend、Kamino等协议的实时收益追踪、健康因子预警与7天/30天实际收益率计算。
原始描述
Monitor DeFi lending and savings positions across Aave v3, SparkLend, Spark Savings, and Kamino with balances, APYs, health factors, and yield tracking.
通过你的 Agent 添加
安装目录:defi-yield-monitor/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心功能
DeFi Yield Monitor 是一款面向去中心化金融用户的开源持仓监控工具,支持以太坊(Aave v3、SparkLend、Spark Savings)和 Solana(Kamino)多链协议的实时数据聚合。用户仅需配置钱包地址即可追踪存借余额、实时APY、健康因子(health factor)及清算风险,无需任何中心化API密钥。
显著优点
- 零门槛接入:纯依赖公共链上数据源,无KYC、无API申请流程,隐私友好
- 多协议覆盖:原生支持Aave v3(ETH/BSC)、SparkLend(ETH/Base)、Spark Savings(ETH稳定币 vault)、Kamino(Solana借贷),覆盖主流DeFi蓝筹协议
- 真实收益计算:通过本地快照机制计算7天/30天实际实现收益(realized yield),而非仅展示前端APY估算
- 风险预警:可配置健康因子阈值(默认1.25)与最大日回撤(默认5%),自动触发风险提醒
- 自动化友好:支持cron定时任务与JSON/Telegram/Discord多渠道输出,适合量化交易者与DeFi农场主
潜在局限
- 数据源依赖:依赖各协议官方公开API或链上索引服务,若协议端点故障或限流,数据更新可能延迟
- 无交易执行:纯监控工具,不支持一键加仓、还款或清算保护操作,需配合钱包手动操作
- 快照存储本地:历史收益计算依赖本地文件系统存储,跨设备使用需自行同步数据
- Solana支持有限:Kamino之外的其他Solana协议(如Solend、MarginFi)暂未原生支持
适合人群
- 多链DeFi借贷用户,需统一管理Aave、Spark、Kamino等复杂持仓
- 追求透明度的收益农民(yield farmer),希望验证协议前端APY与实际到账收益的差异
- 量化策略开发者,需将持仓数据接入自有风控系统(支持JSON输出)
- 对隐私敏感、拒绝中心化交易所API托管的自主托管(self-custody)用户
常规风险
- 智能合约风险:监控的是链上协议,用户资金暴露于Aave、Spark、Kamino等协议的智能合约漏洞风险中
- 预言机/清算风险:健康因子计算依赖协议内部价格预言机,极端行情下可能出现预言机延迟或清算级联
- 配置误操作:错误填写钱包地址或阈值参数可能导致风险预警失效,需仔细核对config.json
- 代理配置风险:若使用VPN代理访问国际节点,需确保http_proxy/https_proxy环境变量正确,否则可能获取不到数据
- 数据源依赖:依赖各协议官方公开API或链上索引服务,若协议端点故障或限流,数据更新可能延迟
- 无交易执行:纯监控工具,不支持一键加仓、还款或清算保护操作,需配合钱包手动操作
- 快照存储本地:历史收益计算依赖本地文件系统存储,跨设备使用需自行同步数据
- Solana支持有限:Kamino之外的其他Solana协议(如Solend、MarginFi)暂未原生支持
适合人群
- 多链DeFi借贷用户,需统一管理Aave、Spark、Kamino等复杂持仓
- 追求透明度的收益农民(yield farmer),希望验证协议前端APY与实际到账收益的差异
- 量化策略开发者,需将持仓数据接入自有风控系统(支持JSON输出)
- 对隐私敏感、拒绝中心化交易所API托管的自主托管(self-custody)用户
常规风险
- 智能合约风险:监控的是链上协议,用户资金暴露于Aave、Spark、Kamino等协议的智能合约漏洞风险中
- 预言机/清算风险:健康因子计算依赖协议内部价格预言机,极端行情下可能出现预言机延迟或清算级联
- 配置误操作:错误填写钱包地址或阈值参数可能导致风险预警失效,需仔细核对config.json
- 代理配置风险:若使用VPN代理访问国际节点,需确保http_proxy/https_proxy环境变量正确,否则可能获取不到数据
- 智能合约风险:监控的是链上协议,用户资金暴露于Aave、Spark、Kamino等协议的智能合约漏洞风险中
- 预言机/清算风险:健康因子计算依赖协议内部价格预言机,极端行情下可能出现预言机延迟或清算级联
- 配置误操作:错误填写钱包地址或阈值参数可能导致风险预警失效,需仔细核对config.json
- 代理配置风险:若使用VPN代理访问国际节点,需确保http_proxy/https_proxy环境变量正确,否则可能获取不到数据
技能正文
name: defi-yield-monitor
description: Monitor DeFi lending & savings positions across Aave v3, SparkLend, Spark Savings, and Kamino. Track balances, APY, health factors, and compute 7d/30d realized yield. No API keys required. Use when user asks about DeFi positions, lending yields, stablecoin earnings, portfolio health, or wants automated DeFi reporting. Triggers: "check DeFi", "lending yield", "DeFi收益", "持仓", "APY", "health factor", "stablecoin yield", "Aave", "Spark savings", "Kamino", "DeFi report".
DeFi Yield Monitor
Self-contained skill for cross-chain DeFi position & yield monitoring. All data from public endpoints — no API keys needed.
First-Time Setup
Run the setup script to clone the project, create venv, and init config:
bash <skill_dir>/scripts/setup.sh
Then edit the config with wallet addresses:
$EDITOR ~/.openclaw/workspace/projects/defi-yield-monitor/config/config.json
Config Template
{
"wallets": {
"evm": ["0xYourEthWallet"],
"solana": ["YourSolanaWallet"]
},
"protocols": [
{ "chain": "eth", "name": "aave" },
{ "chain": "bsc", "name": "aave" },
{ "chain": "eth", "name": "spark" },
{ "chain": "eth", "name": "spark_savings" },
{ "chain": "solana", "name": "kamino" }
],
"thresholds": {
"min_health_factor": 1.25,
"max_daily_drawdown_pct": 5
}
}
{
"wallets": {
"evm": ["0xYourEthWallet"],
"solana": ["YourSolanaWallet"]
},
"protocols": [
{ "chain": "eth", "name": "aave" },
{ "chain": "bsc", "name": "aave" },
{ "chain": "eth", "name": "spark" },
{ "chain": "eth", "name": "spark_savings" },
{ "chain": "solana", "name": "kamino" }
],
"thresholds": {
"min_health_factor": 1.25,
"max_daily_drawdown_pct": 5
}
}
Remove protocols you don't use. Only include chains where you have positions.
Commands
Use the run script (auto-detects proxy):
# Daily report — positions + risk alerts
bash <skill_dir>/scripts/run.sh --text
# Yield summary — 7d/30d PnL + per-protocol APY
bash <skill_dir>/scripts/run.sh --yield-summary
# JSON output — for programmatic use
bash <skill_dir>/scripts/run.sh --json
Or run directly:
cd ~/.openclaw/workspace/projects/defi-yield-monitor
.venv/bin/python main.py --config config/config.json --yield-summary
Automated Daily Reports
Create an OpenClaw cron job to collect snapshots and report yields:
- Schedule: twice daily (e.g.
13 9,21 * * *) - Command:
bash <skill_dir>/scripts/run.sh --yield-summary - Delivery: announce to user's Telegram/Discord
After 7 days of snapshots, --yield-summary shows actual realized returns (not just APY estimates).
Supported Protocols
Protocol
Chains
What It Tracks
Aave v3
ETH, BSC
Supply/borrow, APY, health factor
SparkLend
ETH, Base
Supply/borrow, health factor
Spark Savings
ETH
spUSDC/spUSDT/sUSDS vault yields
Kamino
Solana
Lending obligations, APY
Output Fields
- Per position: chain, protocol, wallet, supplied_usd, borrowed_usd, net_value_usd, apy_supply, apy_borrow, health_factor
- Yield summary: current APY per protocol, 7d/30d PnL (absolute + %), annualized APY from actual returns
- Risk alerts: health factor below threshold, daily drawdown exceeding limit
Proxy
| Protocol | Chains | What It Tracks |
|---|---|---|
| Aave v3 | ETH, BSC | Supply/borrow, APY, health factor |
| SparkLend | ETH, Base | Supply/borrow, health factor |
| Spark Savings | ETH | spUSDC/spUSDT/sUSDS vault yields |
| Kamino | Solana | Lending obligations, APY |
- Per position: chain, protocol, wallet, supplied_usd, borrowed_usd, net_value_usd, apy_supply, apy_borrow, health_factor
- Yield summary: current APY per protocol, 7d/30d PnL (absolute + %), annualized APY from actual returns
- Risk alerts: health factor below threshold, daily drawdown exceeding limit
Proxy
The run script auto-detects QuickQ/Clash/V2Ray proxies. To set manually:
export https_proxy=http://127.0.0.1:10020
export http_proxy=http://127.0.0.1:10020
Source
https://github.com/reed1898/defi-yield-monitor
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。