DeFi Yield Monitor

👤 reed1898 📦 v1.1.0 ⭐ 4.1 ⬇️ 1.2K 下载
📊 数据分析 免费

📖 技能介绍


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

Remove protocols you don't use. Only include chains where you have positions.

7w4.net小葱技能站收录全网优质技能,值得收藏。

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

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

🤖 AI 评测

这是一款质量不错的 DeFi 监控工具,文档详细、配置简单,支持多个主流借贷协议并能计算真实收益。自动化程度高,代理设置无需手动操作。但部分环境可能因缺少系统工具而无法正常运行代理检测,且缺少常见问题解答。总体而言功能实用、体验友好,能满足 DeFi 持仓监控需求。

📊 多维度评分

适应性4.2
规范性3.9
有效性4.4
可靠性3.7
可信度4.5

📁 包含文件 (4 个)

📄 SKILL.md 3.1 KB
📄 _meta.json 137 B
📄 scripts/run.sh 750 B
📄 scripts/setup.sh 1.2 KB