加密货币价格技能:实时市场数据集成 - Openclaw Skills
作者:互联网
2026-03-30
什么是 加密货币价格?
加密货币价格技能为开发人员和 AI 代理提供了一个与全球加密货币市场交互的强大接口。作为 Openclaw Skills 生态系统的一部分,它利用 CoinGecko API 提供超过 10,000 种代币的最新数据,支持多种法定货币和详细的市场分析。
该技能旨在简化自动化工作流程中的财务数据检索,无需手动进行浏览器搜索即可实现无缝的价格坚控、市值追踪和货币转换。通过将其集成到您的环境中,您可以程序化地访问现代交易和分析任务必不可少的财务指标。
下载入口:https://github.com/openclaw/skills/tree/main/skills/ouyangabel/coingecko-price
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install coingecko-price
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 coingecko-price。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
加密货币价格 应用场景
- 坚控比特币和以太坊等主要资产的实时价格波动
- 根据市值自动生成顶级加密货币报告
- 将加密资产价值转换为各种法定货币,如美元、r民币或欧元
- 通过搜索功能识别特定的代币 ID,以便进行更深层次的 API 集成
- 将市场情绪和 24 小时价格变化数据集成到财务仪表盘中
- 用户或代理发起指定操作的命令,例如 'get'、'top' 或 'search'。
- 脚本解析输入参数,包括代币 ID、限制和目标法定货币。
- 向 CoinGecko API 端点发送请求以获取相关的市场数据。
- 处理原始 API 响应以提取价格、市值和百分比变化指标。
- 数据被格式化为整洁、人类可读的 CLI 输出,或作为结构化字符串返回以供代理进一步处理。
加密货币价格 配置指南
要开始使用 Openclaw Skills 集合中的这项技能,请确保您已安装 Python 并且脚本在本地环境中可用。
# 进入脚本目录
cd scripts/
# 通过搜索代币测试安装
python3 crypto-price.py search bitcoin
# 获取以太坊的美元当前价格
python3 crypto-price.py get ethereum
加密货币价格 数据架构与分类体系
该技能根据所使用的命令将数据组织成几个不同的结构,以确保清晰和精确:
| 属性 | 描述 | 示例 |
|---|---|---|
| 代币 ID | 用于 API 调用的唯一标识符 | bitcoin, ethereum, solana |
| 货币 | 支持转换的法定货币符号 | usd, cny, eur, jpy |
| 价格数据 | 目标货币中资产的数值 | 460123.45 |
| 市场变化 | 过去 24 小时内的百分比变化 | +5.23% |
| 排名 | 市值排名位置 | 1, 2, 10 |
name: crypto-price
description: "Query cryptocurrency prices and market data via CoinGecko API. Use when: (1) checking current crypto prices, (2) viewing market cap rankings, (3) monitoring 24h price changes, (4) searching for specific cryptocurrencies, or (5) any crypto price-related queries. Supports BTC, ETH, and 10,000+ coins."
Crypto Price Skill
Query real-time cryptocurrency prices and market data using the free CoinGecko API.
When to Use
- Check current price of Bitcoin, Ethereum, or any crypto
- View top cryptocurrencies by market cap
- Monitor 24-hour price changes
- Search for specific coins by name or symbol
- Convert prices to different currencies (USD, chy, EUR, etc.)
Quick Start
Get Bitcoin Price in USD
python3 scripts/crypto-price.py get bitcoin
Get Ethereum Price in chy
python3 scripts/crypto-price.py get ethereum cny
View Top 10 Cryptocurrencies
python3 scripts/crypto-price.py top 10
Search for a Coin
python3 scripts/crypto-price.py search solana
Commands
search
Search for cryptocurrencies by name or symbol.
Example:
python3 scripts/crypto-price.py search bitcoin
# Output: BTC - Bitcoin, ID: bitcoin
get [currency]
Get price for a specific cryptocurrency.
coin_id: The CoinGecko ID (e.g., bitcoin, ethereum, solana)currency: Optional, defaults to 'usd'. Supported: usd, cny, eur, jpy, gbp, krw, etc.
Example:
python3 scripts/crypto-price.py get bitcoin cny
# Output: ?? BITCOIN
# 价格: ¥460,123.45
# 24h 涨跌: ?? +5.23%
top [limit] [currency]
View top cryptocurrencies by market cap.
limit: Number of coins to show (1-100), default 10currency: Optional, defaults to 'usd'
Example:
python3 scripts/crypto-price.py top 5 cny
# Shows top 5 coins with prices in chy
Finding Coin IDs
Use the search command to find the correct coin_id:
python3 scripts/crypto-price.py search "binance"
# Output: BNB - BNB, ID: binancecoin
Popular coin IDs:
- bitcoin, ethereum, solana, cardano, polkadot
- ripple (XRP), binancecoin (BNB), dogecoin, chainlink
Notes
- Uses free CoinGecko API with rate limits
- If you see "API 请求过于频繁", wait a minute and retry
- Prices are for reference only, not financial advice
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
信号管道:自动化营销情报工具 - Openclaw Skills
技能收益追踪器:监控 Openclaw 技能并实现变现
AI 合规准备就绪度:评估与治理工具 - Openclaw Skills
FOSMVVM ServerRequest 测试生成器:自动化 API 测试 - Openclaw Skills
酒店搜索器:AI 赋能的住宿与位置情报 - Openclaw Skills
Dub 链接 API:程序化链接管理 - Openclaw Skills
IntercomSwap:P2P BTC 与 USDT 跨链兑换 - Openclaw Skills
spotplay:macOS 原生 Spotify 播放控制 - Openclaw Skills
DeepSeek OCR:AI驱动的图像文本识别 - Openclaw Skills
Web Navigator:自动化网页研究与浏览 - Openclaw Skills
AI精选
