← 返回
未分类

Multichain Portfolio Tracker

Track multi-chain crypto portfolio with real-time prices, P&L, and alerts. Supports EVM (Ethereum, Base, Arbitrum, Polygon, Optimism), Solana, and manual ent...
多链加密货币投资组合追踪,实时价格、盈亏及提醒,支持 EVM(以太坊、Base、Arbitrum、Polygon、Optimism)、Solana 以及手动输入。
jimmyclanker
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 329
下载
💾 0
安装
1
版本
#latest

概述

Crypto Portfolio Tracker

Track your crypto portfolio across multiple chains with real-time prices, P&L calculation, and optional alerts. Zero API keys needed for basic functionality.

Quick Start

# Check a single wallet
bash scripts/check-wallet.sh 0xYourAddress ethereum

# Full portfolio scan (all configured wallets)
bash scripts/portfolio.sh

# Price check
bash scripts/price.sh BTC ETH SOL

Configuration

Create portfolio.json in your workspace:

{
  "wallets": [
    { "address": "0x...", "chain": "ethereum", "label": "Main" },
    { "address": "0x...", "chain": "base", "label": "Trading" },
    { "address": "0x...", "chain": "arbitrum", "label": "DeFi" },
    { "address": "C122gx...", "chain": "solana", "label": "SOL Wallet" }
  ],
  "manual": [
    { "token": "BTC", "amount": 0.5, "cost_basis": 30000 }
  ],
  "alerts": [
    { "token": "BTC", "above": 70000, "message": "BTC broke $70K!" },
    { "token": "ETH", "below": 2000, "message": "ETH dropped below $2K" }
  ]
}

Features

Portfolio Overview

bash scripts/portfolio.sh

Output:

📊 Portfolio — 31 Mar 2026

Wallet: Main (ethereum)
  0.5 ETH = $1,250.00
  1000 USDC = $1,000.00

Wallet: Trading (base)
  500 USDC = $500.00

Total: $2,750.00
24h Change: +$45.20 (+1.67%)

Price Tracking

bash scripts/price.sh BTC ETH SOL MATIC

Uses CoinGecko free API (no key, 30 calls/min).

Native Balance Check

# EVM chains (free public RPC)
bash scripts/check-wallet.sh 0xAddress ethereum|base|arbitrum|polygon|optimism

# Solana
bash scripts/check-wallet.sh SolAddress solana

P&L Calculation

bash scripts/pnl.sh

Compares current value vs cost basis (from portfolio.json manual entries or historical snapshots).

Price Alerts

bash scripts/alerts.sh

Checks configured alerts and outputs triggered ones. Run via cron for continuous monitoring.

Supported Chains

ChainRPCToken Standard
---------------------------
Ethereumetherscan free / public RPCERC-20
Basebasescan / public RPCERC-20
Arbitrumarbiscan / public RPCERC-20
Polygonpolygonscan / public RPCERC-20
Optimismoptimistic.etherscan / public RPCERC-20
Solanasolana mainnet-beta RPCSPL

Cron Integration

Add to OpenClaw cron for automated tracking:

Portfolio snapshot: bash ~/path/to/scripts/portfolio.sh --json >> ~/portfolio-history.jsonl
Price alerts: bash ~/path/to/scripts/alerts.sh

Data Sources

  • Prices: CoinGecko free API (no key, rate limited to 30/min)
  • EVM balances: Public RPCs or Etherscan free tier
  • Solana balances: solana CLI or public RPC
  • Token lists: CoinGecko token list

Limitations

  • CoinGecko free tier: 30 calls/min, no historical data beyond 1 year
  • Public RPCs may rate limit under heavy use
  • ERC-20 token detection requires known token list (top 500 by market cap)
  • For full token scanning, consider adding Moralis or Alchemy API keys

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 21:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

x402 Quickstart

jimmyclanker
在几分钟内部署 x402 按调用付费 API端点,将任意 OpenClaw 技能或服务转为接受 Base 上 USDC 的付费端点,包含支付验证。
★ 0 📥 375

Task Router

jimmyclanker
自动将任务路由至合适的工具、代理或工作流;分析任务意图和复杂度后路由至编码、研究、交易、系统等。
★ 0 📥 383
ai-intelligence

Roundtable Adaptive

jimmyclanker
自适应多模型AI圆桌。运行多达4个AI模型(可配置),进行2轮辩论,含交叉批判与正式共识评分。需消耗……
★ 0 📥 1,222