← 返回
效率工具 中文

Crypto Defi

Calculate DeFi yields including APY, impermanent loss, and staking rewards. Use when estimating returns, comparing protocols, tracking farming.
计算DeFi收益,包括APY、无常损失和质押奖励。适用于估算回报、比较协议及追踪挖矿。
xueyetianya
效率工具 clawhub v2.4.9 4 版本 99893 Key: 无需
★ 0
Stars
📥 934
下载
💾 8
安装
4
版本
#chinese#latest#productivity

概述

Crypto DeFi

A comprehensive crypto toolkit for tracking DeFi positions, managing portfolios, monitoring prices, watching whale activity, and analyzing market data. Crypto DeFi provides 16+ commands for recording and reviewing crypto-related observations with timestamped logs and multi-format data export.

Commands

CommandDescription
----------------------
crypto-defi track Record a tracking entry (token, protocol, position) — run without args to view recent entries
crypto-defi portfolio Log a portfolio update or snapshot — run without args to view recent portfolio entries
crypto-defi alert Record a price or event alert — run without args to view recent alerts
crypto-defi price Log a price observation — run without args to view recent price entries
crypto-defi compare Record a protocol or token comparison — run without args to view recent comparisons
crypto-defi history Log a historical note — run without args to view recent history entries
crypto-defi gas Record gas fee data — run without args to view recent gas entries
crypto-defi whale-watch Log whale activity observations — run without args to view recent whale-watch entries
crypto-defi report Record a report entry — run without args to view recent reports
crypto-defi watchlist Add to or view the watchlist — run without args to view recent watchlist entries
crypto-defi analyze Log an analysis note — run without args to view recent analysis entries
crypto-defi export Record an export event — run without args to view recent export entries
crypto-defi statsDisplay summary statistics across all log categories
crypto-defi search Search across all log files for a keyword
crypto-defi recentShow the 20 most recent activity entries from the history log
crypto-defi statusHealth check — shows version, data directory, entry count, disk usage
crypto-defi helpDisplay available commands and usage information
crypto-defi versionPrint current version (v2.0.0)

Each data command (track, portfolio, alert, etc.) works in two modes:

  • With arguments: Records the input with a timestamp into its dedicated log file
  • Without arguments: Displays the 20 most recent entries from that category

Data Storage

All data is stored locally in plain-text log files:

  • Location: ~/.local/share/crypto-defi/
  • Format: Each entry is saved as YYYY-MM-DD HH:MM| in per-category .log files
  • History: All operations are additionally logged to history.log with timestamps
  • Stats: The stats command aggregates entry counts and disk usage across all categories
  • No cloud sync — everything stays on your machine, no API keys needed

Requirements

  • Bash 4.0+ (uses set -euo pipefail)
  • Standard Unix utilities: date, wc, du, head, tail, grep, basename, cat
  • No external dependencies, no API keys, no network access required
  • Works on Linux and macOS

When to Use

  1. DeFi position tracking — Record yield farming positions, staking entries, and liquidity pool allocations with timestamps for historical review
  2. Portfolio management — Log portfolio snapshots, token balances, and allocation changes to maintain a running record of your holdings
  3. Whale activity monitoring — Use whale-watch to record large transaction observations and spot market-moving activity patterns
  4. Gas fee tracking — Log gas fee observations over time to identify optimal transaction windows and track network congestion trends
  5. Multi-protocol comparison — Use compare and analyze to record side-by-side protocol evaluations and store your analysis notes

Examples

# Track a new DeFi position
crypto-defi track "Uniswap V3 ETH/USDC 0.3% pool — 5 ETH deposited"

# Log current portfolio state
crypto-defi portfolio "BTC: 0.5, ETH: 10, SOL: 200 — total ~$45k"

# Record a price alert trigger
crypto-defi alert "ETH crossed $4000 resistance level"

# Log gas fee observation
crypto-defi gas "Ethereum mainnet base fee 25 gwei — good time for swaps"

# Record whale activity
crypto-defi whale-watch "0xdead... moved 10,000 ETH to Binance deposit address"

# View summary statistics across all categories
crypto-defi stats

# Search for all entries mentioning a specific protocol
crypto-defi search "Uniswap"

# Quick health check
crypto-defi status

Configuration

Set DATA_DIR by modifying the script or symlinking ~/.local/share/crypto-defi/ to your preferred location.


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 4 个版本

  • v2.4.9 当前
    2026-03-29 07:17 安全 安全
  • v1.0.0
    2026-03-26 22:25
  • v2.4.7
    2026-03-18 16:29
  • v1.0.2
    2026-03-14 01:48

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Excel Formula

xueyetianya
根据描述生成Excel公式并诊断电子表格错误。适用于编写VLOOKUP公式、调试错误或转换公式。支持...
★ 2 📥 6,162
productivity

Nano Pdf

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

Word / DOCX

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