闲社服务运行正常AI智能体自动化平台
d

DeFi收益监控

技能标识:defi-yield-monitor

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".

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

DeFi收益监控

DeFi 收益监控器

用于跨链 DeFi 仓位与收益监控的独立技能。所有数据均来自公共端点——无需 API 密钥。

首次设置

运行设置脚本以克隆项目、创建虚拟环境并初始化配置:

bash
bash /scripts/setup.sh

然后使用钱包地址编辑配置:

bash
$EDITOR ~/.openclaw/workspace/projects/defi-yield-monitor/config/config.json

配置模板

json
{
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: {
minhealthfactor: 1.25,
maxdailydrawdown_pct: 5
}
}

移除你不使用的协议。仅包含你持有仓位的链。

命令

使用运行脚本(自动检测代理):

bash

每日报告——仓位 + 风险警报


bash /scripts/run.sh --text

收益摘要——7天/30天盈亏 + 各协议年化收益率

bash /scripts/run.sh --yield-summary

JSON 输出——用于程序化使用

bash /scripts/run.sh --json

或直接运行:

bash
cd ~/.openclaw/workspace/projects/defi-yield-monitor
.venv/bin/python main.py --config config/config.json --yield-summary

自动化每日报告

创建 OpenClaw 定时任务以收集快照并报告收益:

  • - 计划:每日两次(例如 13 9,21 *)
  • 命令:bash /scripts/run.sh --yield-summary
  • 投递:通知到用户的 Telegram/Discord

经过 7 天的快照后,--yield-summary 将显示实际已实现收益(而不仅仅是年化收益率估算值)。

支持的协议

协议链追踪内容
Aave v3ETH, BSC供应/借贷、年化收益率、健康因子
SparkLend
ETH, Base | 供应/借贷、健康因子 | | Spark Savings | ETH | spUSDC/spUSDT/sUSDS 金库收益 | | Kamino | Solana | 借贷债务、年化收益率 |

输出字段

  • - 每个仓位:链、协议、钱包、供应美元价值、借贷美元价值、净值美元价值、供应年化收益率、借贷年化收益率、健康因子
  • 收益摘要:每个协议的当前年化收益率、7天/30天盈亏(绝对值 + 百分比)、基于实际收益的年化收益率
  • 风险警报:健康因子低于阈值、每日回撤超过限制

代理

运行脚本自动检测 QuickQ/Clash/V2Ray 代理。手动设置:

bash
export https_proxy=http://127.0.0.1:10020
export http_proxy=http://127.0.0.1:10020

来源

https://github.com/reed1898/defi-yield-monitor

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 defi-yield-monitor-1776188962 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 defi-yield-monitor-1776188962 技能

通过命令行安装

skillhub install defi-yield-monitor-1776188962

下载

⬇ 下载 defi-yield-monitor v1.1.0(免费)

文件大小: 3.47 KB | 发布时间: 2026-4-15 11:16

v1.1.0 最新 2026-4-15 11:16
Standalone skill: includes setup.sh and run.sh scripts, auto proxy detection, no source code dependency. Just install and configure wallets.
返回顶部