360 Secure SkillHub
360 安全技能中心

my-crypto-signal-skill

采集币安多周期行情与新闻源情绪,按时间框架加权技术评分输出 BUY/SELL/HOLD 信号与置信度,支持定时调度、信号验证与命中率统计。需 NewsAPI 密钥,可选 CryptoPanic 与币安密钥,通过 Python 3 脚本命令行调用。

k2-l
k2-l
热度 58.95
最近更新 2026-05-11 17:30:24
分类:数据依赖:代码执行 / 第三方 API / 读写文件应用场景:市场分析 / 财务 / 报告撰写 / 推荐 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add my-crypto-signal-skill
Metadata
name
crypto-signal
description
Crypto trading signal, price prediction, market analysis for any Binance pair (BTC, ETH, SOL, USDT...). Trigger on: crypto, signal, buy, sell, "should I buy", trade, CPI, Fed, macro news.

Crypto Signal Skill

Rules

  • NEVER print raw JSON or file contents; summarize key fields only.
  • NEVER invent probability forecasts or advice beyond what the script outputs.
  • After signal completes: write llm_judgment into the signal JSON (1-2 sentences max), then run verify. Do NOT do anything else.
  • When reading any .json file, extract only: direction, confidence, score, key factor votes, news_summary. Discard the rest.

Setup

Credentials: ~/.openclaw/credentials/crypto-signal.json (auto-created, chmod 600).
Required: News_apiKey / NEWSAPI_KEY · Optional: CP_apiKey/CRYPTOPANIC_KEY, Bian_apiKey/BINANCE_API_KEY, proxy/HTTPS_PROXY (mainland China: http://127.0.0.1:7890)

Usage

SCRIPT=~/.openclaw/workspace/skills/my-crypto-signal-skill/scripts/crypto_signal.py

  • run <SYMBOL> [--skip-news] — full pipeline (3m/15m/30m/1h → news → signal)
  • fetch <SYMBOL> [--interval 3m|15m|30m|1h] — market data only
  • news <SYMBOL> — news only · signal <SYMBOL> [--skip-news] — signal only
  • verify signals/<file>.json — verify 30min later · report — hit rate summary
  • schedule <SYMBOL> [--dry-run] — adaptive news loop

Scoring

Per-timeframe weighted tech score (1h×4, 30m×3, 15m×2, 3m×1) + news sentiment + extreme-keyword veto (±3).
≥+3=BUY/HIGH · +2=BUY/MED · -1~+1=HOLD · -2=SELL/MED · ≤-3=SELL/HIGH

Scheduler

NewsAPI 100 req/day: normal 30min; NFP/CPI 12:30UTC→5min/60min; Fed 18:00UTC→5min/90min; opens→10min/30min. Hard stop 95 req, resets UTC midnight.