返回 Skill 列表
extension
分类: 数据与分析无需 API Key

Crypto One Way Market

获取加密货币OHLCV数据,判断市场为单向牛市或熊市趋势。用于用户请求获取加密货币市场数据时。

person作者: xiaoxin06666hubclawhub

Crypto One-Way Market

Overview

Use this skill to fetch public crypto candle data, compute directional trend metrics, and decide whether price action is a one-way market (单边上涨 / 单边下跌) or a range/choppy market.

Default to the bundled script for repeatable calculations:

python3 scripts/fetch_and_classify.py --symbol BTCUSDT --interval 15m --limit 200

Workflow

  1. Clarify the symbol, timeframe, and lookback if missing. Default to BTCUSDT, 15m, and 200 candles for intraday checks.
  2. Run scripts/fetch_and_classify.py to fetch candles and compute the classification.
  3. Read references/methodology.md when explaining thresholds, edge cases, or if the result is borderline.
  4. Summarize direction, confidence, key evidence, and invalidation conditions. Avoid financial advice wording; present the result as market-structure analysis, not a trade instruction.

Data Fetching

The script uses Binance public REST klines by default and needs no API key:

python3 scripts/fetch_and_classify.py \
  --symbol ETHUSDT \
  --interval 1h \
  --limit 240

Useful options:

--market spot
--market futures
--base-url https://api.binance.us
--json
--output candles.csv

If Binance is blocked or unstable, ask the user for an accessible exchange/API endpoint or use --base-url when they have a working Binance-compatible mirror.

Interpretation Rules

Treat a one-way market as a move with persistent direction, high trend efficiency, limited counter-trend retracement, and enough volatility-adjusted distance from the start.

Report one of:

  • bullish_one_way: likely 单边上涨.
  • bearish_one_way: likely 单边下跌.
  • weak_trend: directional but not clean enough to call one-way.
  • range_or_chop: no strong one-way evidence.

In the final answer, include:

  • Symbol, exchange source, interval, candle count, and time span.
  • Classification and confidence.
  • Directional return, trend efficiency, ADX, ATR-normalized move, max pullback, moving-average slope agreement.
  • A concise explanation in Chinese when the user asks in Chinese.

Risk Notes

Crypto data can have exchange outages, API regional restrictions, and sudden regime shifts. Never claim certainty. For live trading contexts, mention that low-liquidity symbols, news events, and funding/contract basis can invalidate candle-only signals.