返回顶部
b

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,526
下载量
9
收藏
概述
安装方式
版本历史

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 bash {baseDir}/scripts/setup.sh ``` ### 2. Configure Create `.env`: ``` BINANCE_API_KEY=<your-api-key> BINANCE_SECRET_KEY=<your-secret-key> LLM_API_KEY=<anthropic-api-key> PAIRS=BTCUSDT,ETHUSDT,SOLUSDT STRATEGY=momentum TRADE_SIZE_PCT=5 MAX_POSITIONS=5 ``` ### 3. Run ```bash 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 < 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 ```bash # 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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 binance-spot-trader-1776419957 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 binance-spot-trader-1776419957 技能

通过命令行安装

skillhub install binance-spot-trader-1776419957

下载 Zip 包

⬇ 下载 binance-spot-trader v1.0.0

文件大小: 7.53 KB | 发布时间: 2026-4-17 19:30

v1.0.0 最新 2026-4-17 19:30
Initial release: autonomous Binance spot trading with momentum, mean reversion, and DCA strategies plus LLM sentiment analysis

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部