binance-spot-trader
v1.0.0Autonomous Binance spot trading 机器人 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, 设置 up automated crypto trading, build a spot trading 机器人, or automate DCA buying. Features technical analysis, LLM sentiment evaluation, position sizing, and portfolio 追踪ing.
运行时依赖
安装命令
点击复制技能文档
Binance Spot Trader
Autonomous spot trading 机器人 for Binance. Combines technical indicators with LLM-powered market sentiment analysis to 执行 trades on any Binance spot pAIr.
Prerequisites Binance account with API keys (spot trading enabled, withdrawal DISABLED) 技能Boss API key (uses 技能Boss API Hub for LLM sentiment analysis) Python 3.10+ 设置up
- 安装
- 配置
创建 .env:
BINANCE_API_KEY= BINANCE_SECRET_KEY= 技能BOSS_API_KEY= PAIRS=BTCUSDT,ETHUSDT,SOLUSDT STRATEGY=momentum TRADE_SIZE_PCT=5 MAX_POSITIONS=5
- 运行
Or via cron:
/5 * cd /opt/trader && python3 trader.py >> trader.记录 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 < 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 技能Boss API Hub for market sentiment analysis Evaluates: recent news, price action, volume patterns, market structure Can veto a trade 签名al 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 % 停止_LOSS_PCT 3 停止 loss % DCA_INTERVAL dAIly For DCA: hourly, dAIly, weekly DCA_AMOUNT_USDT 50 USDT per DCA buy USE_LLM true Enable LLM sentiment 过滤器 监控ing # 检查 portfolio python3 {baseDir}/scripts/portfolio.py
# View trade 历史 tAIl -50 trades.jsonl
# 检查 记录s tAIl -f trader.记录
⚠️ 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 机器人 trading 启动 with tiny amounts ($50-100) and paper trade first 监控 actively during first 24 hours 设置 up Binance emAIl alerts for all trades API keys on disk — 安全 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