Binance Spot Trader
by @srikanthbellary
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.
clawhub install binance-spot-traderπ About This Skill
name: binance-spot-trader description: 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. metadata: {"openclaw": {"requires": {"env": ["BINANCE_API_KEY", "BINANCE_SECRET_KEY", "LLM_API_KEY"]}, "primaryEnv": "BINANCE_API_KEY", "homepage": "https://github.com/srikanthbellary"}}
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
Setup
1. Install
bash {baseDir}/scripts/setup.sh
2. Configure
Create .env:
BINANCE_API_KEY=
BINANCE_SECRET_KEY=
LLM_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)
Mean Reversion
DCA (Dollar Cost Average)
LLM-Enhanced (all strategies)
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.pyView trade history
tail -50 trades.jsonlCheck logs
tail -f trader.log
β οΈ Security Considerations
References
references/binance-api.md for REST API docsreferences/indicators.md for technical analysis detailsβοΈ Configuration
1. Install
bash {baseDir}/scripts/setup.sh
2. Configure
Create .env:
BINANCE_API_KEY=
BINANCE_SECRET_KEY=
LLM_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