360 Secure SkillHub
360 安全技能中心

Crypto One Way Market

通过脚本从币安公共REST接口获取加密货币OHLCV K线,计算方向收益、趋势效率、ADX、ATR归一化幅度、最大回撤与均线斜率等指标,将行情分类为单边上涨、单边下跌、弱趋势或震荡,并给出置信度与失效条件说明,定位为市场结构分析。

分类:数据
xiaoxin06666
xiaoxin06666
热度 17.67
最近更新 2026-06-09 14:28:28

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add xiaoxin06666/crypto-one-way-market
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
crypto-one-way-market
description
Fetch cryptocurrency OHLCV candle data and judge whether the market is in a one-way bullish or bearish trend. Use when the user asks to pull crypto market data, analyze BTC/ETH/altcoin candles, detect 单边行情, classify trend versus chop/range, or produce an evidence-based crypto trend summary from public exchange data.
version
1.0.0
metadata
{"openclaw":{"requires":{"bins":["python3"]},"emoji":"📈"}}

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.