yishan

Crypto Market

数据分析v1.0.6
作者:yishan更新于 2026-05-11共 4 个版本 · 最新版本发布于 2026-03-18crypto@clawhub_alphafactor/crypto
数据洞察指标监控#Crypto#Cryptocurrency#Trading

据 AlphaMoat 统计,截至 2026-09,Crypto Market 累计下载 4,908 次、获 17 个星标,在全部 5,078 个 AI 技能中排名第 1,892 位,在「数据分析」分类(399 个)中排名第 150 位。

累计安装
193
累计下载
4,908
星标
17
全站排名
#1,892
全站前 38% · 「数据分析」前 38%
平台累计安装累计下载星标评论
ClawHub ↗1424,83917-
SkillHub ↗1934,90817—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

通过CCXT获取价格、K线与订单簿。发布说明提示默认交易所有差异,应明确指定交易所;审核固定依赖并遵守API限流。告警存于本地,公开行情流程不要填入真实API key,金融使用前需核验数据。

资料发布于 2026-10-27

可以用来做什么

  • 公开加密货币行情查询

什么时候用

  • 需要公开加密货币行情查询时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

不使用账号凭据,查询指定交易所的BTC/USDT行情。

月度数据趋势

累计下载4,908
2,5813,8315,0802026-03 · 累计下载 2,7532026-05 · 累计下载 3,8132026-06 · 累计下载 4,0972026-07 · 累计下载 4,4622026-08 · 累计下载 4,6532026-09 · 累计下载 4,90826-0326-09
星标17
1617172026-03 · 星标 162026-05 · 星标 172026-06 · 星标 172026-07 · 星标 172026-08 · 星标 172026-09 · 星标 1726-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,908—17
2026-084,653+4.3%17
2026-074,462+8.9%17
2026-064,097+7.4%17
2026-053,813—17
2026-032,753—16

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

6.4 KB · ClawHub v1.0.6
---
name: Crypto Market
slug: crypto
description: Cryptocurrency market data and price alert monitoring tool based on CCXT. Supports multiple exchanges, real-time price tracking, and configurable price/volatility alerts. Use when the user needs to monitor crypto prices or set up trading alerts. Default exchange is Binance.
---

# Cryptocurrency Market & Price Alerts

A cryptocurrency market data fetching and price monitoring tool based on the CCXT library. It supports multiple exchanges, real-time monitoring, and smart alerts.
展开全部(共 240 行)
## Features

- 🏢 **Multi-Exchange Support** - Defaults to Binance. Also supports OKX, Bybit, Gate.io, KuCoin, etc.
- 📊 **Real-time Market Data** - Get the latest prices, price changes, volumes, and more.
- 📈 **OHLCV Data (Candlesticks)** - Fetch historical price trends.
- 📖 **Order Book** - View market depth (bids and asks).
- 🔔 **Price Alerts** - Supports price thresholds and percentage change alerts.
- 👁️ **Live Monitoring** - Continuously monitor price movements.

## Prerequisites

### Install Dependencies

```bash
pip3 install ccxt --user
```

## Usage

### Check Real-Time Prices

```bash
# Default (Binance)
python3 scripts/crypto.py ticker BTC/USDT

# Use other exchanges
python3 scripts/crypto.py -e okx ticker ETH/USDT
python3 scripts/crypto.py -e bybit ticker BTC/USDT
```

**Supported Exchanges**:
- `binance` - Binance (Default)
- `okx` - OKX
- `bybit` - Bybit
- `gateio` - Gate.io
- `kucoin` - KuCoin
- `huobi` - Huobi
- `coinbase` - Coinbase
- `kraken` - Kraken
- `bitfinex` - Bitfinex

### Get OHLCV (Candlestick) Data

```bash
# Get 1-hour candles, last 24 periods
python3 scripts/crypto.py ohlcv BTC/USDT --timeframe 1h --limit 24

# Get daily candles, last 30 periods
python3 scripts/crypto.py ohlcv ETH/USDT --timeframe 1d --limit 30
```

**Timeframes**:
- `1m` - 1 minute
- `5m` - 5 minutes
- `15m` - 15 minutes
- `1h` - 1 hour
- `4h` - 4 hours
- `1d` - 1 day
- `1w` - 1 week
- `1M` - 1 month

### View Order Book

```bash
python3 scripts/crypto.py orderbook BTC/USDT --limit 10
```

### Live Price Monitoring

```bash
# Refresh every 10 seconds (default)
python3 scripts/crypto.py watch BTC/USDT

# Refresh every 5 seconds
python3 scripts/crypto.py watch ETH/USDT --interval 5
```

## Price Alerts

### Add Alerts

**Price Threshold Alerts:**
```bash
# Alert when BTC price breaks above 70000 USDT
python3 scripts/crypto.py alert-add BTC/USDT above 70000

# Alert when ETH price drops below 3000 USDT
python3 scripts/crypto.py alert-add ETH/USDT below 3000
```

**Percentage Change Alerts:**
```bash
# Alert when BTC rises more than 5%
python3 scripts/crypto.py alert-add BTC/USDT up_percent 5

# Alert when ETH drops more than 3%
python3 scripts/crypto.py alert-add ETH/USDT down_percent 3
```

### View Alert List

```bash
python3 scripts/crypto.py alert-list
```

Example Output:
```
🔔 Price Alerts (3):

ID                        Pair            Exchange     Condition                 Status
------------------------------------------------------------------------------------------
BTC/USDT_1706941200       BTC/USDT        binance      Price > 70000             ⏳Monitoring
ETH/USDT_1706941300       ETH/USDT        okx          Price < 3000              ⏳Monitoring
BTC/USDT_1706941400       BTC/USDT        binance      Rise > 5%                 ⏳Monitoring
```

### Check Alerts

```bash
# Manually check all alert conditions
python3 scripts/crypto.py alert-check
```

When a condition is triggered, it shows:
```
⚠️  Triggered 1 alert:

  🚀 BTC/USDT rose by 5.23%, current price: 71234.56
  Alert ID: BTC/USDT_1706941400
```

### Remove Alerts

```bash
python3 scripts/crypto.py alert-remove BTC/USDT_1706941200
```

## Command Reference

| Command | Function | Example |
|------|------|------|
| `ticker` | Real-time prices | `ticker BTC/USDT` |
| `ohlcv` | Candlestick data | `ohlcv BTC/USDT --timeframe 1h` |
| `orderbook` | Order book | `orderbook BTC/USDT` |
| `watch` | Live monitoring | `watch BTC/USDT --interval 5` |
| `alert-add` | Add an alert | `alert-add BTC/USDT above 70000` |
| `alert-remove` | Remove an alert | `alert-remove ID` |
| `alert-list` | List alerts | `alert-list` |
| `alert-check` | Check alerts | `alert-check` |

### Global Arguments

| Argument | Short | Description | Default |
|------|------|------|--------|
| `--exchange` | `-e` | Exchange name | `binance` |
| `--timeframe` | `-t` | Candlestick timeframe | `1h` |
| `--limit` | `-l` | Data limit (count) | `24` |
| `--interval` | `-i` | Refresh interval (sec) | `10` |

## Alert Conditions

| Condition | Description | Example |
|------|------|------|
| `above` | Price goes above threshold | `above 70000` |
| `below` | Price drops below threshold | `below 3000` |
| `up_percent` | Price rises by % | `up_percent 5` |
| `down_percent` | Price drops by % | `down_percent 3` |

## Use Cases

### Scenario 1: Tracking specific price targets
```bash
# Alert when BTC breaks previous high
python3 scripts/crypto.py alert-add BTC/USDT above 69000

# Regularly check
python3 scripts/crypto.py alert-check
```

### Scenario 2: Monitoring support/resistance levels
```bash
# ETH drops below key support
python3 scripts/crypto.py alert-add ETH/USDT below 2800

# BTC breaks resistance
python3 scripts/crypto.py alert-add BTC/USDT above 72000
```

### Scenario 3: Volatility monitoring
```bash
# Monitor massive volatility
python3 scripts/crypto.py alert-add BTC/USDT up_percent 8
python3 scripts/crypto.py alert-add BTC/USDT down_percent 8
```

### Scenario 4: Cross-exchange price comparison
```bash
# Check prices across different exchanges
python3 scripts/crypto.py -e binance ticker BTC/USDT
python3 scripts/crypto.py -e okx ticker BTC/USDT
python3 scripts/crypto.py -e bybit ticker BTC/USDT
```

## Troubleshooting

**Error: ccxt library not installed**
→ Run: `pip3 install ccxt --user`

**Error: Unsupported exchange**
→ Check exchange spelling. Refer to the supported exchanges list.

**Error: Trading pair does not exist**
→ Check trading pair format, e.g., `BTC/USDT`, `ETH/USDT`.

**Alert not triggering**
→ Confirm alert conditions are correct. Run `alert-check` to check manually.

**API Limits**
→ Some exchanges have strict rate limits. Use `--interval` to adjust the refresh frequency.

## Configuration File

Alert configurations are stored at: `~/.config/crypto/alerts.json`

You can manually edit this file to batch manage your alerts.

## References

- CCXT Documentation: https://docs.ccxt.com/
- Supported Exchanges List: [references/exchanges.md](references/exchanges.md)

「数据分析」分类下的热门技能

AdMapix数据分析

AdMapix 的取数层:把广告与应用相关的查询转成接口调用,只回原始 JSON。

↓ 36.6万★ 304fly0pants
Tavily Search数据分析

走 Tavily 检索公开网页,返回带链接与摘要的结构化结果。

↓ 12.2万★ 286Xiaoran Li
Data Analysis数据分析

把数据库、表格与导出的原始数据变成可决策结论的数据分析技能。

↓ 10.1万★ 244Iván
Stock Analysis数据分析

用 Yahoo Finance 数据做股票与加密货币分析、组合跟踪的技能。

↓ 7.5万★ 299udiedrichsen
Stock Watcher数据分析

管理本地自选股清单,并按代码汇总同花顺行情与近期表现的技能。

↓ 6.5万★ 122Robin797860
全国招标中标查询及分析【知了标讯】数据分析

全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分析(按月/季/年/省份/品牌等维度)、查询品牌型号历史中标单价/价格趋势、市场分析/行业分析/采购寻源/渠道拓展等采购与投标相关场景。即使用户没有提到「知了标讯」,只要涉及招投标、采购、中标、供应商、竞争对手等关键词,都应使用本SKILL。

↓ 5.6万★ 13user_98035bfb
Blogwatcher数据分析

用命令行监控博客与 RSS/Atom 源的更新。

↓ 5.4万★ 75Peter Steinberger
Model Usage数据分析

汇总 Codex 或 Claude 按模型计费的使用成本。

↓ 5.0万★ 114Peter Steinberger

yishan 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。