← 返回
数据分析 Key 中文

Clap Trader

A skill for OpenClaw to research crypto market trends (technical & sentiment) and trade ETH on Binance.
供OpenClaw研究加密货币市场趋势(技术与情绪)并在币安交易ETH的技能。
dymx101
数据分析 clawhub v1.0.0 1 版本 99825.3 Key: 需要
★ 0
Stars
📥 1,143
下载
💾 20
安装
1
版本
#latest

概述

Crypto Trader & Analyst Skill

This skill allows OpenClaw to analyze the crypto market using technical indicators and news sentiment, record its findings, and execute trades on Binance.

Dependencies

Ensure the following Python packages are installed:

pip install ccxt pandas pandas-ta requests TextBlob

Note: TextBlob is suggested for basic sentiment analysis if needed, though simple keyword matching might suffice.

Environment Variables

You must set the following environment variables for trading:

  • BINANCE_API_KEY: Your Binance API Key.
  • BINANCE_API_SECRET: Your Binance API Secret.

WARNING: Never share these keys or commit them to version control.

Workflow

1. Market Analysis

Technical Analysis

Run the market data script to get current indicators for a symbol (default ETH/USDT).

python skills/crypto_trader/scripts/market_data.py --symbol ETH/USDT

Output: JSON containing RSI, MACD, close price, etc.

Sentiment Analysis

Run the sentiment script to fetch latest news headers and forum buzz.

python skills/crypto_trader/scripts/sentiment_data.py

Output: Text/JSON summary of positive/negative news.

2. Decision Making & Logging

Analyze & Record

Based on the outputs from step 1, form a hypothesis. Is the market Bullish, Bearish, or Neutral?

Before trading, you MUST save your analysis.

python skills/crypto_trader/scripts/logger.py "Your detailed analysis here. E.g., RSI is 30 (oversold) and news is positive. Planning to BUY."

3. Execution

Trade

If the analysis supports a trade, execute it.

# Buy 0.01 ETH at Market Price
python skills/crypto_trader/scripts/trade.py --symbol ETH/USDT --side buy --amount 0.01 --type market

# Dry Run (Test without real money)
python skills/crypto_trader/scripts/trade.py --symbol ETH/USDT --side buy --amount 0.01 --dry-run

The trade script will automatically append the transaction to skills/crypto_trader/logs/trade_history.csv.

Files structure

  • scripts/market_data.py: Fetches OHLCV and calculates indicators.
  • scripts/sentiment_data.py: Fetches news/forum data.
  • scripts/logger.py: Appends analysis to logs/analysis_journal.md.
  • scripts/trade.py: Executes trades and logs to logs/trade_history.csv.
  • logs/: Directory storing your analysis history and trade logs.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 04:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,458
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,118
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,009