360 Secure SkillHub
360 安全技能中心

Crypto Market Cli

基于 CoinGecko 免费接口的加密货币市场命令行工具,可查询实时价格与历史走势、搜索币种、管理自选和持仓组合、设置价格提醒、对比币种并导出 JSON/CSV。依赖 bash、curl 和 python3,数据默认保存在本地数据目录,无需 API key。

bytesagain
bytesagain
热度 64.97
最近更新 2026-03-19 09:41:51
分类:生活依赖:代码执行 / 第三方 API / 读写文件应用场景:个人理财 / 市场分析 / 数据处理 / 研究

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add crypto-market-cli
Metadata
version
5.0.0
name
crypto-market-cli
description
Track crypto prices, portfolios, and market data via CoinGecko. Use when checking coin prices, managing a portfolio, setting alerts, or comparing cryptocurrencies.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills

crypto-market-cli

Cryptocurrency market toolkit — get live prices from CoinGecko API, manage watchlists and portfolios, view price history with sparkline charts, set price alerts, and compare coins.

Commands

price

Get live price, 24h change, and market cap for a coin from CoinGecko.

scripts/script.sh price bitcoin
scripts/script.sh price ethereum eur

search

Search for coins by name or symbol. Returns top 10 results with rank.

scripts/script.sh search "solana"

track

Add a coin to your local watchlist.

scripts/script.sh track bitcoin
scripts/script.sh track ethereum

watchlist

Display all watchlist coins with current prices and 24h changes (fetched live).

scripts/script.sh watchlist

portfolio

Manage your portfolio — record buys and view current holdings with live P/L.

scripts/script.sh portfolio add bitcoin 0.5 42000
scripts/script.sh portfolio add ethereum 2.0 3200
scripts/script.sh portfolio show

history

View price history for a coin over N days, with sparkline visualization.

scripts/script.sh history bitcoin 7
scripts/script.sh history ethereum 30

compare

Side-by-side price comparison of two coins.

scripts/script.sh compare bitcoin ethereum

gas

Ethereum gas price information and links.

scripts/script.sh gas

alert

Set and view price alerts (stored locally).

scripts/script.sh alert add bitcoin 50000 above
scripts/script.sh alert add ethereum 2000 below
scripts/script.sh alert list

stats

Show usage statistics — watchlist size, portfolio entries, alerts count.

scripts/script.sh stats

export

Export portfolio data as JSON or CSV.

scripts/script.sh export json
scripts/script.sh export csv

help

scripts/script.sh help

version

scripts/script.sh version

Examples

# Quick price check
scripts/script.sh price bitcoin
scripts/script.sh price solana

# Build a watchlist
scripts/script.sh track bitcoin
scripts/script.sh track ethereum
scripts/script.sh track solana
scripts/script.sh watchlist

# Track portfolio P/L
scripts/script.sh portfolio add bitcoin 0.1 45000
scripts/script.sh portfolio show

# Research
scripts/script.sh history bitcoin 30
scripts/script.sh compare bitcoin ethereum

Configuration

Variable Required Description
CRYPTO_CLI_DIR No Data directory (default: ~/.crypto-market-cli/)

Data Storage

All data saved in ~/.crypto-market-cli/:

  • watchlist.txt — Tracked coins
  • portfolio.jsonl — Buy records
  • alerts.jsonl — Price alerts
  • history.log — Query history

Requirements

  • bash 4.0+
  • curl (for CoinGecko API calls)
  • python3 (for JSON parsing)

CoinGecko free API — no key required, rate-limited to ~10 requests/minute.


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