Binance Spot Trader
/install binance-spot-trader
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)
- Anthropic API key (uses Haiku ~$0.001/eval)
- 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>
LLM_API_KEY=\x3Canthropic-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, asks Claude Haiku for market sentiment
- 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.mdfor REST API docs - See
references/indicators.mdfor technical analysis details
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install binance-spot-trader - 安装完成后,直接呼叫该 Skill 的名称或使用
/binance-spot-trader触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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. Use when user wants to trade on Binance, set up automated crypto trading, build a spot trading bot, or automate DCA buying. Features technical analysis, LLM sentiment evaluation, position sizing, and portfolio tracking. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3769 次。
如何安装 Binance Spot Trader?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install binance-spot-trader」即可一键安装,无需额外配置。
Binance Spot Trader 是免费的吗?
是的,Binance Spot Trader 完全免费(开源免费),可自由下载、安装和使用。
Binance Spot Trader 支持哪些平台?
Binance Spot Trader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Binance Spot Trader?
由 srikanthbellary(@srikanthbellary)开发并维护,当前版本 v1.0.0。