360 Secure SkillHub
360 安全技能中心

CoinGecko Price

这是一款基于CoinGecko API的加密货币行情工具,支持1万+币种查询。核心功能包括查询单币实时价格(可转换为USD、CNY等多法定货币)、查看市值排名前N的币种、通过名称/符号搜索加密货币。典型场景:查BTC/ETH实时价、追踪24h涨跌、找特定币种信息。通过命令行输入指定指令获取结构化输出,免费API有调用频率限制。

ouyangabel
ouyangabel
热度 91.08
最近更新 2026-05-17 12:39:06
分类:数据依赖:代码执行 / 第三方 API应用场景:财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add coingecko-price
Metadata
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, CNY, EUR, etc.)

Quick Start

Get Bitcoin Price in USD

python3 scripts/crypto-price.py get bitcoin

Get Ethereum Price in CNY

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

Search for cryptocurrencies by name or symbol.

Example:

python3 scripts/crypto-price.py search bitcoin
# Output: BTC - Bitcoin, ID: bitcoin

get <coin_id> [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 10
  • currency: Optional, defaults to 'usd'

Example:

python3 scripts/crypto-price.py top 5 cny
# Shows top 5 coins with prices in CNY

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