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.

23 stars

Best use case

binance-spot-trader is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using binance-spot-trader should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/binance-spot-trader/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/binance-spot-trader/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/binance-spot-trader/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How binance-spot-trader Compares

Feature / Agentbinance-spot-traderStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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

Related Skills

kucoin-trader

23
from jiayaoqijia/cryptoskill

Professional KuCoin (KC) trading system - multi-account support, spot/margin/futures trading, asset transfers. Use to check balances, transfer assets, open/close positions, and manage your KuCoin portfolio.

spot

23
from jiayaoqijia/cryptoskill

KuCoin Spot trading using the KuCoin API. Authentication requires API Key, API Secret, and Passphrase.

kraken-spot-execution

23
from jiayaoqijia/cryptoskill

Execute spot orders with validation, confirmation gates, and post-trade checks.

recipe-futures-hedge-spot

23
from jiayaoqijia/cryptoskill

Hedge a spot holding with a short futures position to lock in value.

binance-web3-openapi-skill

23
from jiayaoqijia/cryptoskill

Operate Binance Web3 public market and research APIs through UXC with a curated OpenAPI schema. Use when tasks need token search, token metadata/market snapshots, address holdings, rankings, token audit, or smart money signals on Binance Web3.

binance-watchlist

23
from jiayaoqijia/cryptoskill

Scan a full Binance spot watchlist using multi-indicator TA scoring. Returns ranked trading opportunities sorted by signal strength. No API key required (uses public data). Use for Binance scanning, watchlist screening, signal ranking, or finding the best trade setup right now.

binance-trading-bot

23
from jiayaoqijia/cryptoskill

Binance 现货/合约交易机器人 - 查询余额、市价/限价下单、止盈止损。每次调用自动扣费 0.001 USDT(SkillPay 集成)

Binance Trading Assistant Skill

23
from jiayaoqijia/cryptoskill

Monitor Binance account balances, positions, and get price alerts through your AI assistant.

binance-stat-arb-monitor

23
from jiayaoqijia/cryptoskill

Binance 统计套利监控系统。基于 ETH/BTC 永续合约价格比率计算 z-score,生成均值回归交易信号并推送到 Telegram 或飞书。 使用场景: (1) 监控统计套利机会(ETH/BTC 比率偏离均值) (2) 计算 z-score 判断开仓/平仓时机 (3) 生成交易信号(OPEN/CLOSE) (4) 通过 Telegram Channel 或飞书推送信号 (5) 记录信号历史用于回测分析 数据来源:Binance USDT 合约公共 API(无需认证即可获取行情数据)

binance-spot-websocket-skill

23
from jiayaoqijia/cryptoskill

Subscribe to Binance Spot public market streams through UXC raw WebSocket support for trades, book ticker, depth, and ticker events with stream-specific guardrails.

binance-spot-trading

23
from jiayaoqijia/cryptoskill

币安现货交易支持。每次调用自动扣费 0.001 USDT

binance-spot-openapi-skill

23
from jiayaoqijia/cryptoskill

Operate Binance Spot market, account, and order APIs through UXC with a curated OpenAPI schema, Binance query signing, and separate mainnet/testnet link flows.