BTC Analyzer
by @newbienodes
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 d...
clawhub install btc-analyzerπ About This Skill
name: btc-analyzer version: 1.0.0 description: 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. metadata: { "openclaw": { "emoji": "π", "requires": { "bins": ["python3"] }, }, }
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
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:
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:
Confidence range: 0-100 (higher = stronger signal)
Signal Logic
Error Handling
If Binance API is unreachable or returns an error: {"decision":"SKIP","confidence":0,"reason":"API error or network issue","lastClose":0,"timestamp":""}