← 返回 Skills 市场
kirkraman

binance-spot-trader

作者 KirkRaman · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
77
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install godfery-binance-spot-trader
功能描述
Autonomous Binance spot trading bot with LLM-powered market analysis. Supports momentum trading, mean reversion, and DCA strategies on any Binance spot pair....
使用说明 (SKILL.md)

Binance Spot Trader

Autonomous spot trading bot for Binance. Combines technical indicators with LLM-powered market sentiment analysis to execute trades on any Binance spot pair.

Prerequisites

  • Binance account with API keys (spot trading enabled, withdrawal DISABLED)
  • SkillBoss API key (uses SkillBoss API Hub for LLM sentiment analysis)
  • Python 3.10+

Setup

1. Install

bash {baseDir}/scripts/setup.sh

2. Configure

Create .env:

BINANCE_API_KEY=\x3Cyour-api-key>
BINANCE_SECRET_KEY=\x3Cyour-secret-key>
SKILLBOSS_API_KEY=\x3Cyour-skillboss-api-key>
PAIRS=BTCUSDT,ETHUSDT,SOLUSDT
STRATEGY=momentum
TRADE_SIZE_PCT=5
MAX_POSITIONS=5

3. Run

python3 {baseDir}/scripts/trader.py

Or via cron:

*/5 * * * * cd /opt/trader && python3 trader.py >> trader.log 2>&1

Strategies

Momentum (default)

  • Buys when price crosses above 20-EMA with volume spike
  • Sells when price crosses below 20-EMA or hits TP/SL
  • Best for trending markets (BTC, ETH, SOL)

Mean Reversion

  • Buys when RSI \x3C 30 (oversold) and price near Bollinger Band lower
  • Sells when RSI > 70 (overbought) or price near upper band
  • Best for range-bound markets

DCA (Dollar Cost Average)

  • Buys fixed amount at regular intervals regardless of price
  • Configurable interval (hourly, daily, weekly)
  • Lowest risk strategy for long-term accumulation

LLM-Enhanced (all strategies)

  • Before each trade, calls SkillBoss API Hub for market sentiment analysis
  • Evaluates: recent news, price action, volume patterns, market structure
  • Can veto a trade signal if sentiment is strongly against

Trading Parameters

Parameter Default Description
PAIRS BTCUSDT Comma-separated trading pairs
STRATEGY momentum momentum, mean_reversion, or dca
TRADE_SIZE_PCT 5 % of portfolio per trade
MAX_POSITIONS 5 Max concurrent open positions
TAKE_PROFIT_PCT 5 Take profit %
STOP_LOSS_PCT 3 Stop loss %
DCA_INTERVAL daily For DCA: hourly, daily, weekly
DCA_AMOUNT_USDT 50 USDT per DCA buy
USE_LLM true Enable LLM sentiment filter

Monitoring

# Check portfolio
python3 {baseDir}/scripts/portfolio.py

# View trade history
tail -50 trades.jsonl

# Check logs
tail -f trader.log

⚠️ Security Considerations

  • NEVER enable withdrawal on API keys — trading only
  • IP-restrict your API keys on Binance
  • Use a sub-account with limited funds for bot trading
  • Start with tiny amounts ($50-100) and paper trade first
  • Monitor actively during first 24 hours
  • Set up Binance email alerts for all trades
  • API keys on disk — secure your server (SSH keys only, firewall, chmod 600)

References

  • See references/binance-api.md for REST API docs
  • See references/indicators.md for technical analysis details
安全使用建议
This package is internally consistent with a trading bot, but it performs real-market actions — only install if you trust the source and understand the risk. Before running: (1) create Binance API keys with trading enabled but withdrawals disabled and add IP restrictions; (2) use a sub-account or small funds and paper-trade first; (3) verify the LLM endpoint (heybossai.com) is the intended SkillBoss provider before supplying that API key; (4) secure the .env file (chmod 600) and run on a hardened host; (5) review and test the code offline to confirm behavior (market orders, quantity rounding, minimums) and add safeguards (dry-run mode, order confirmation) if you want reduced risk.
功能分析
Type: OpenClaw Skill Name: godfery-binance-spot-trader Version: 1.0.0 The skill bundle implements a functional Binance spot trading bot with technical indicators and LLM-based sentiment analysis. The code in `trader.py` and `portfolio.py` correctly handles Binance API authentication using HMAC SHA256 and interacts with official endpoints. The `SKILL.md` provides clear instructions and responsible security advice, such as disabling withdrawals on API keys. No evidence of malicious behavior, data exfiltration, or prompt injection was found; the external call to `api.heybossai.com` is documented for its intended purpose of market sentiment analysis.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description match the actual code and requirements: scripts implement Binance REST calls and trading logic and the skill requires BINANCE_API_KEY/BINANCE_SECRET_KEY and an LLM API key (SKILLBOSS_API_KEY). No unrelated env vars, binaries, or config paths are requested.
Instruction Scope
SKILL.md stays on-task (setup, .env, running trader.py, monitoring). The runtime code contacts Binance and an LLM endpoint (api.heybossai.com). It instructs storing API keys in a .env file (documented and warned about). Minor note: SKILL.md mentions 'SkillBoss API Hub' while the code posts to api.heybossai.com — verify that domain/service is the intended LLM provider before supplying that key.
Install Mechanism
No install spec in registry; included setup.sh runs pip install for frozen package versions (httpx, python-dotenv). This is a common, low-risk install path — no downloads from unknown hosts or archive extraction.
Credentials
Requested env vars (BINANCE_API_KEY, BINANCE_SECRET_KEY, SKILLBOSS_API_KEY) are proportional to purpose: Binance keys to sign and place orders, and an LLM API key for sentiment checks. The primary credential is correctly set to BINANCE_API_KEY. The skill legitimately needs the secret key to sign requests and the code uses it for HMAC signatures.
Persistence & Privilege
Skill is user-invocable, not always-on. It does not request elevated or persistent platform privileges and does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install godfery-binance-spot-trader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /godfery-binance-spot-trader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of binance-spot-trader: an autonomous Binance spot trading bot with LLM-powered market analysis. - Supports momentum, mean reversion, and DCA (Dollar Cost Averaging) strategies across any Binance spot pair - Integrates technical analysis and LLM sentiment evaluation for enhanced trade filtering - Allows position sizing, portfolio tracking, and configuration via environment variables - Offers security best practices and setup instructions for safe deployment - Requires Binance API keys and SkillBoss API key for operation
元数据
Slug godfery-binance-spot-trader
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

binance-spot-trader 是什么?

Autonomous Binance spot trading bot with LLM-powered market analysis. Supports momentum trading, mean reversion, and DCA strategies on any Binance spot pair.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 77 次。

如何安装 binance-spot-trader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install godfery-binance-spot-trader」即可一键安装,无需额外配置。

binance-spot-trader 是免费的吗?

是的,binance-spot-trader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

binance-spot-trader 支持哪些平台?

binance-spot-trader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 binance-spot-trader?

由 KirkRaman(@kirkraman)开发并维护,当前版本 v1.0.0。

💬 留言讨论