crypto

by burceasn

Cryptocurrency and precious metals market data analysis, supporting K-line, funding rate, open interest, long/short ratio, liquidation data, option data, fear and greed index for digital assets including Bitcoin, Ethereum, BNB, ZEC, SOL, and Gold. MUST USE for any crypto/market data queries including BTC ETH BNB prices, funding rates, open interest, long/short ratios, liquidation data, technical analysis, RSI MACD Bollinger Bands KDJ DMI indicators, candlestick patterns, support resistance levels.

3.7k行业场景未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/burceasn/crypto-watch-skill

文档

Crypto Data Skill

Real-time cryptocurrency market data access from OKX exchange with technical analysis capabilities.


Skill Scope & Boundaries

This Skill PROVIDES (Raw Data Only)

  • K-line / Candlestick data
  • Funding rate history
  • Open interest snapshots
  • Long/Short ratio data (account ratio)
  • Top trader position ratio (position ratio of top 5% traders)
  • Option call/put OI and volume ratio
  • Fear and Greed Index
  • Liquidation records

This Skill does NOT HANDLE

  • Signal interpretation → Refer to indicators.md in references folder.
  • Trade decisions → Handled by Agent policy (AGENTS.md)
  • Risk management → Handled by Agent policy (AGENTS.md)

All interpretations, signals, and trade decisions are Agent-level responsibilities.


Trigger Conditions

MUST load this Skill when:

  • Querying any crypto price (BTC, ETH, BNB, ZEC, SOL, XAU)
  • Technical analysis requests
  • Funding rate / Open interest / Long-short ratio queries
  • Market sentiment analysis

Usage

Shell Script Interface

Use crypto.sh to fetch data:

bash
# Get K-line data
./crypto.sh candles BTC-USDT --bar 1H --limit 100

# Get funding rate
./crypto.sh funding-rate BTC-USDT-SWAP --limit 50

# Get technical indicators
./crypto.sh indicators ETH-USDT --bar 4H --last-n 5

# Get Fear and Greed Index
./crypto.sh fear-greed --days 30

Direct Python CLI

bash
python scripts/cli.py candles BTC-USDT --bar 1H --limit 100
python scripts/cli.py indicators ETH-USDT --bar 4H --last-n 10

Available Commands

1. candles - K-Line Data

bash
./crypto.sh candles <inst_id> [--bar BAR] [--limit LIMIT]
ParameterDefaultDescription
inst_id(required)Trading pair, e.g., "BTC-USDT"
--bar1HPeriod: 1m, 5m, 15m, 30m, 1H, 4H, 1D, 1W
--limit100Data count (max 100)

Returns: JSON array with datetime, open, high, low, close, vol

2. funding-rate - Funding Rate

bash
./crypto.sh funding-rate <inst_id> [--limit LIMIT]
ParameterDefaultDescription
inst_id(required)Perpetual contract, e.g., "BTC-USDT-SWAP"
--limit100Data count (max 100)

Returns: JSON array with datetime, fundingRate, realizedRate, type

3. open-interest - Open Interest

bash
./crypto.sh open-interest <inst_id> [--period PERIOD] [--limit LIMIT]
ParameterDefaultDescription
inst_id(required)Perpetual contract, e.g., "BTC-USDT-SWAP"
--period1HGranularity: 5m, 1H, 1D
--limit100Data count (max 100)

Returns: JSON array with datetime, oiCcy, oiUsd, type

4. long-short-ratio - Long/Short Ratio

bash
./crypto.sh long-short-ratio <ccy> [--period PERIOD] [--limit LIMIT]
ParameterDefaultDescription
ccy(required)Currency, e.g., "BTC", "ETH"
--period1HGranularity: 5m, 1H, 1D
--limit100Data count (max 100)

5. liquidation - Liquidation Data

bash
./crypto.sh liquidation <inst_id> [--state STATE] [--limit LIMIT]
ParameterDefaultDescription
inst_id(required)Perpetual contract, e.g., "BTC-USDT-SWAP"
--statefilledOrder state: "filled" or "unfilled"
--limit100Data count (max 100)

Returns: datetime, side (sell=long liquidated, buy=short liquidated), bkPx, sz

6. top-trader-ratio - Top Trader Position Ratio

Get the long/short position ratio of elite traders (top 5% by position value).

bash
./crypto.sh top-trader-ratio <inst_id> [--period PERIOD] [--limit LIMIT]
ParameterDefaultDescription
inst_id(required)Perpetual contract, e.g., "BTC-USDT-SWAP"
--period5mGranularity: 5m, 15m, 30m, 1H, 2H, 4H, 6H, 12H, 1D
--limit100Data count (max 100)

Returns: JSON array with datetime, longShortPosRatio

Interpretation:

  • > 1: Top traders hold more long positions
  • < 1: Top traders hold more short positions
  • = 1: Equal long/short positions

7. option-ratio - Option Call/Put Ratio

bash
./crypto.sh option-ratio <ccy> [--period PERIOD]
ParameterDefaultDescription
ccy(required)Currency, e.g., "BTC", "ETH"
--period8HGranularity: 8H or 1D

Returns: JSON array with datetime, oiRatio, volRatio

Interpretation:

  • oiRatio > 1: More call options held (bullish sentiment)
  • oiRatio < 1: More put options held (bearish sentiment)

8. fear-greed - Fear and Greed Index

bash
./crypto.sh fear-greed [--days DAYS]
ParameterDefaultDescription
--days7Days of history

Returns: JSON array with date, value, value_classification

Interpretation:

  • 0-24: Extreme Fear - Potential buying opportunity
  • 25-49: Fear
  • 50-74: Greed
  • 75-100: Extreme Greed - Potential selling signal

9. indicators - Complete Technical Indicators

Get all technical indicators for a trading pair.

bash
./crypto.sh indicators <inst_id> [--bar BAR] [--limit LIMIT] [--last-n N]
ParameterDefaultDescription
inst_id(required)Trading pair, e.g., "BTC-USDT"
--bar1DK-line period
--limit100K-lines to fetch (max 100)
--last-n10Return only latest N rows (0 = all)

Returns: JSON array with columns:

  • Price: open, high, low, close, volume
  • Moving Averages: ma5, ma10
  • RSI: rsi14
  • MACD: macd_dif, macd_dea, macd_hist

10. summary - Technical Analysis Summary

Get a quick summary of current price and key indicators.

bash
./crypto.sh summary <inst_id> [--bar BAR] [--limit LIMIT]
ParameterDefaultDescription
inst_id(required)Trading pair
--bar1DK-line period
--limit100K-lines for calculation

Returns: JSON object with asset, indicators, data_summary

11. support-resistance - Support and Resistance Levels

bash
./crypto.sh support-resistance <inst_id> [--bar BAR] [--limit LIMIT] [--window N]
ParameterDefaultDescription
inst_id(required)Trading pair
--bar1DK-line period
--limit100K-lines
--window5Window for finding extrema

Returns: JSON object with:

  • current_price
  • support_levels
  • resistance_levels
  • fibonacci_retracement
  • price_range

Supported Trading Pairs

CodeSpotPerpetual Contract
BTCBTC-USDTBTC-USDT-SWAP
ETHETH-USDTETH-USDT-SWAP
BNBBNB-USDTBNB-USDT-SWAP
ZECZEC-USDTZEC-USDT-SWAP
SOLSOL-USDTSOL-USDT-SWAP
XAU-XAU-USDT-SWAP

Usage Examples

bash
# Get BTC 1-hour K-lines
./crypto.sh candles BTC-USDT --bar 1H --limit 100

# Get ETH funding rate
./crypto.sh funding-rate ETH-USDT-SWAP --limit 50

# Get BTC liquidation data
./crypto.sh liquidation BTC-USDT-SWAP --state filled --limit 100

# Get top trader position ratio
./crypto.sh top-trader-ratio BTC-USDT-SWAP --period 1H --limit 24

# Get option call/put ratio
./crypto.sh option-ratio BTC --period 8H

# Get fear and greed index
./crypto.sh fear-greed --days 30

# Get technical indicators
./crypto.sh indicators BTC-USDT --bar 4H --last-n 5

# Get support and resistance levels
./crypto.sh support-resistance ETH-USDT --bar 1D

Parameter Extraction Rules

User SaysExtract As
"BTC price", "Bitcoin"inst_id = "BTC-USDT"
"ETH technical analysis", "Ethereum"inst_id = "ETH-USDT"
"1-hour timeframe", "hourly chart"bar = "1H"
"4-hour", "4H"bar = "4H"
"daily chart", "daily level"bar = "1D"
"weekly chart"bar = "1W"
"funding rate", "funding"Use funding-rate with SWAP contract
"open interest", "OI"Use open-interest with SWAP contract
"long/short ratio"Use long-short-ratio with CCY
"elite positions", "whale positions"Use top-trader-ratio with SWAP
"option ratio", "call/put"Use option-ratio with CCY
"fear and greed", "sentiment index"Use fear-greed

Project Structure

code
crypto-skill/
├── crypto.sh                   # Shell entry point
├── SKILL.md                    # This file
├── requirements.txt            # Python dependencies
│
├── scripts/
│   ├── cli.py                  # CLI implementation
│   ├── crypto_data.py          # OKX API wrapper
│   └── technical_analysis.py   # TA indicator engine
│
└── references/
    └── indicators.md           # Technical indicator guide

Integration Flow

code
┌─────────────────────────────────────────────────────────────┐
│                     SKILL.md (You Are Here)                 │
├─────────────────────────────────────────────────────────────┤
│  1. crypto.sh / cli.py    →  Fetch raw market data          │
│  2. technical_analysis.py  →  Calculate indicators          │
│  3. references/indicators.md →  Signal interpretation       │
│  4. AGENTS.md              →  Trade decision policy         │
└─────────────────────────────────────────────────────────────┘

Workflow:

  1. Fetch Data: Use ./crypto.sh <command> or python scripts/cli.py
  2. Calculate: Indicators computed automatically by indicators command
  3. Interpret: Reference indicators.md for signal meaning
  4. Decide: Follow AGENTS.md for trade execution rules

相关 Skills

面试体系设计

by alirezarezvani

Universal
热门

按岗位、级别和团队设计面试流程,生成能力矩阵、题库与评分标准,分析面试官偏差并校准招聘门槛,适合搭建或优化企业招聘体系。

团队招人没章法时,用它快速搭建岗位化面试流程、题库与评分标准,还能兼顾校准面试偏差,招聘更稳更准。

行业场景
未扫描9.0k

抽认卡

by BytesAgain

热门

Spaced repetition study tool with deck management. Use when you need flashcard.

行业场景
未扫描3.7k

教程文档

by anderskev

热门

Tutorial patterns for documentation - learning-oriented guides that teach through guided doing

行业场景
未扫描3.7k

相关 MCP 服务

by boosted-chat

热门

Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.

行业场景
137

Search company disclosures and financial statements from the Korean market. Retrieve stock profiles, market classifications, and historical trading data across major exchanges. Accelerate equity research with accurate, date-specific insights for Korean securities.

做韩国股研时,用它能一站查公司披露、财报和历史行情,按日期精确追溯关键信息,比手动翻交易所高效太多。

行业场景
103

检索韩国市场公司的披露文件与财务报表,并获取股票概况等关键信息。

想研究韩股公司时,它能一站式拉取披露、财报和股票概况,省去跨站查资料的麻烦,对跨境投研尤其省时。

行业场景
103

评论