← 返回
效率工具

DeFi Yield Monitor

Monitor DeFi lending and savings positions across Aave v3, SparkLend, Spark Savings, and Kamino with balances, APYs, health factors, and yield tracking.
监控 Aave v3、SparkLend、Spark Savings 和 Kamino 上的 DeFi 借贷与储蓄仓位,包括余额、年化收益率、健康因子及收益追踪。
reed1898
效率工具 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 834
下载
💾 10
安装
1
版本
#latest

概述

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
  }
}

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 /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

ProtocolChainsWhat It Tracks
---------------------------------
Aave v3ETH, BSCSupply/borrow, APY, health factor
SparkLendETH, BaseSupply/borrow, health factor
Spark SavingsETHspUSDC/spUSDT/sUSDS vault yields
KaminoSolanaLending 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

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

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-30 18:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,846
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,663
developer-tools

Claw Roam

reed1898
通过 Git 在多台机器(本地 Mac 和远程 VPS)间同步 OpenClaw 工作区。实现个性、记忆和技能的无缝迁移。适用于:(1) 关机前推送更改,(2) 在新机器上拉取最新工作区,(3) 检查同步状态,(4) 迁移 OpenClaw
★ 1 📥 2,323