返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
b

btc-analyzer

Fetch live BTCUSDT 15m candles from Binance public API and analyze market direction UP/DOWN/SKIP using EMA20 and RSI14. Use when asked to analyze BTC price direction, get trading signal, or check market trend.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
825
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

btc-analyzer

# BTC Analyzer Fetch real-time BTCUSDT candlestick data from Binance public REST API and compute a directional trading signal based on EMA20 slope and RSI14 momentum. ## When to Use - User asks: "analisa BTC sekarang" - User asks: "BTC akan naik atau turun?" - User asks: "berikan sinyal trading BTC 15 menit" - User asks: "cek market BTC sekarang" ## How It Works This skill runs a local Python script that: 1. Fetches 200 candles of BTCUSDT 15m OHLCV data from Binance public API (no API key needed). 2. Computes EMA20 from closing prices. 3. Computes RSI14 from closing prices. 4. Determines direction based on: price vs EMA20, RSI level, and recent candle slope. 5. Returns a strict JSON object with decision, confidence score, and reasoning. ## Workflow Step 1 — Run the analyzer script via bash tool: python3 ~/.npm-global/lib/node_modules/openclaw/skills/btc-analyzer/analyze.py Step 2 — Parse the JSON output. Step 3 — Present the result to the user clearly, including: - Decision (UP / DOWN / SKIP) - Confidence percentage - Reason (EMA, RSI, slope context) - Last close price - Timestamp ## Output Format The script returns strict JSON: { "decision": "UP", "confidence": 72, "reason": "price above EMA20, RSI 58, bullish slope last 3 candles", "lastClose": 94500.00, "ema20": 94200.00, "rsi14": 58.3, "timestamp": "2026-02-23T00:00:00Z" } Decision values: - UP: bullish signal, consider long - DOWN: bearish signal, consider short - SKIP: no clear signal, stay out Confidence range: 0-100 (higher = stronger signal) ## Signal Logic - RSI < 30: decision = UP (oversold) - RSI > 70: decision = DOWN (overbought) - Price > EMA20 AND slope up: decision = UP - Price < EMA20 AND slope down: decision = DOWN - Otherwise: decision = SKIP ## Error Handling If Binance API is unreachable or returns an error: {"decision":"SKIP","confidence":0,"reason":"API error or network issue","lastClose":0,"timestamp":""} ## Guardrails - Always run the script via bash tool — never fabricate or guess output values. - Do not hardcode prices or decisions. - If script fails, show the actual error message to the user. - This skill uses Binance public API only — no API key or authentication required. - Data is real-time; do not cache or reuse previous results.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 btc-analyzer-1776322931 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 btc-analyzer-1776322931 技能

通过命令行安装

skillhub install btc-analyzer-1776322931

下载

⬇ 下载 btc-analyzer v1.0.0(免费)

文件大小: 1.93 KB | 发布时间: 2026-4-16 16:40

v1.0.0 最新 2026-4-16 16:40
- Initial release of btc-analyzer skill.
- Fetches live BTCUSDT 15m candlestick data from Binance public API.
- Analyzes market direction using EMA20 slope and RSI14 momentum.
- Returns trading signals (UP, DOWN, SKIP) with confidence score and reasoning in strict JSON format.
- Handles API errors gracefully and always shows real-time results.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部