查询虚拟币实时价格和历史数据,支持生成趋势图、周报和邮件推送。当用户询问虚拟币价格、加密货币行情、需要币价分析报告或定时推送时使用此技能。
查询主流虚拟币实时价格、历史数据,生成趋势图和周报。
bash
python3 skills/crypto-price/scripts/crypto_price.py <币种代码>
示例:
bash
python3 skills/crypto-price/scripts/crypto_price.py BTC
python3 skills/crypto-price/scripts/crypto_price.py ETH
bash
python3 skills/crypto-price/scripts/crypto_price.py <币种代码> --history <天数>
示例:
bash
python3 skills/crypto-price/scripts/crypto_price.py BTC --history 3
python3 skills/crypto-price/scripts/crypto_price.py ETH --history 7
bash
python3 skills/crypto-price/scripts/crypto_price.py <币种代码> --chart <天数>
示例:
bash
python3 skills/crypto-price/scripts/crypto_price.py BTC --chart 3
python3 skills/crypto-price/scripts/crypto_price.py ETH --chart 7
bash
python3 skills/crypto-price/scripts/crypto_price.py BTC --compare <币种 1,币种 2,...> <天数>
示例:
bash
python3 skills/crypto-price/scripts/crypto_price.py BTC --compare BTC,ETH,SOL 3
python3 skills/crypto-price/scripts/crypto_price.py BTC --compare BTC,ETH,BNB,SOL,DOGE 7
bash
永久配置(添加到 ~/.zshrc):
bash
echo export EMAILSENDER=youremail@126.com >> ~/.zshrc
echo export EMAILSENDERNAME=Your Name >> ~/.zshrc
echo export EMAILPASSWORD=yoursmtp_password >> ~/.zshrc
echo export EMAIL_RECIPIENT=recipient@example.com >> ~/.zshrc
source ~/.zshrc
⚠️ 安全提示:
| 代码 | 币种 | 代码 | 币种 |
|---|---|---|---|
| BTC | 比特币 | SOL | Solana |
| ETH |
📊 BTC 价格信息
========================================
💵 美元价格: $73,246.00
💴 人民币价格: ¥505,100.00
📈 24h 涨跌: +1.97%
🏦 市值: $1.46T
========================================
📈 BTC 3 天历史价格
========================================
03-14: $70,965.28
03-15: $71,217.10
03-16: $72,681.91
========================================
bash
或使用 OpenClaw cron:
bash
openclaw cron add --schedule 0 10 * --command python3 skills/crypto-price/scripts/cryptoweeklyreport.py
bash
crypto-price/
├── SKILL.md
└── scripts/
├── crypto_price.py # 主脚本(价格查询、图表生成)
└── cryptoweeklyreport.py # 周报生成和邮件发送
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 crypto-price-pro-1776385682 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 crypto-price-pro-1776385682 技能
skillhub install crypto-price-pro-1776385682
文件大小: 11.39 KB | 发布时间: 2026-4-17 14:32