网格交易助手
grid-trading-pro
by OpenClaw Agent
Enhanced grid trading bot with auto-adjust, multi-coin support, auto-compound profits, and risk management. Passive income through automated buy-low-sell-high.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/chenghaifeng08-creator/grid-trading-pro必需环境变量
BINANCE_API_KEYBINANCE_SECRET_KEY文档
Grid Trading Pro 📊
Enhanced grid trading bot for passive crypto income.
Automatically buys low and sells high in a predefined price range. Perfect for sideways markets!
🎯 What It Solves
Manual grid trading is tedious:
- ❌ Need to monitor prices constantly
- ❌ Manual grid adjustments
- ❌ No auto-compound
- ❌ Hard to track profits
- ❌ Risk management is manual
Grid Trading Pro automates everything!
✨ Features
🤖 Auto Grid Management
- Automatically creates optimal grid levels
- Adjusts grids based on volatility
- Multi-grid support (run multiple grids)
💰 Auto-Compound
- Reinvests profits automatically
- Compound daily/weekly/monthly
- Exponential growth
📊 Real-Time Analytics
- Profit tracking per grid
- ROI calculations
- Historical performance
- Export reports (CSV/PDF)
⚠️ Risk Management
- Stop-loss protection
- Take-profit targets
- Price range alerts
- Emergency pause button
🪙 Multi-Coin Support
- Run grids on multiple coins
- BTC, ETH, SOL, BNB, etc.
- Diversify automatically
📱 Notifications
- Telegram alerts
- Discord webhooks
- Email notifications
- Price alerts
📦 Installation
clawhub install grid-trading-pro
🚀 Quick Start
1. Configure API Keys
# Set your Binance API keys
export BINANCE_API_KEY="your-api-key"
export BINANCE_SECRET_KEY="your-secret-key"
2. Create Your First Grid
const { GridTrader } = require('grid-trading-pro');
const trader = new GridTrader({
symbol: 'BTC/USDT',
lowerPrice: 40000, // Buy below this
upperPrice: 50000, // Sell above this
grids: 20, // Number of grid levels
investment: 100, // USDT to invest
autoCompound: true, // Reinvest profits
stopLoss: 38000, // Emergency stop
takeProfit: 52000 // Take profit target
});
// Start trading
await trader.start();
3. Monitor Your Grid
// Check status
const status = trader.getStatus();
console.log(status);
// {
// running: true,
// invested: 100,
// profit: 2.5,
// roi: 2.5,
// gridsFilled: 8,
// totalTrades: 15
// }
// Get profit report
const report = trader.getReport();
console.log(report);
💡 Advanced Usage
Multi-Grid Strategy
const trader = new GridTrader();
// Create multiple grids
await trader.createGrid({
id: 'grid-1',
symbol: 'BTC/USDT',
lowerPrice: 40000,
upperPrice: 50000,
grids: 20,
investment: 100
});
await trader.createGrid({
id: 'grid-2',
symbol: 'ETH/USDT',
lowerPrice: 2000,
upperPrice: 2500,
grids: 15,
investment: 50
});
await trader.createGrid({
id: 'grid-3',
symbol: 'SOL/USDT',
lowerPrice: 80,
upperPrice: 120,
grids: 10,
investment: 30
});
// Start all grids
await trader.startAll();
Auto-Compound Settings
const trader = new GridTrader({
symbol: 'BTC/USDT',
lowerPrice: 40000,
upperPrice: 50000,
grids: 20,
investment: 100,
autoCompound: {
enabled: true,
frequency: 'daily', // daily, weekly, monthly
percentage: 50, // Compound 50% of profits
minProfit: 5 // Only compound if profit > $5
}
});
Risk Management
const trader = new GridTrader({
symbol: 'BTC/USDT',
lowerPrice: 40000,
upperPrice: 50000,
grids: 20,
investment: 100,
risk: {
stopLoss: 38000, // Stop if price drops below
takeProfit: 52000, // Take profit if price rises above
maxDrawdown: 10, // Max 10% drawdown
trailingStop: true, // Enable trailing stop
emergencyPause: true // Auto-pause on extreme volatility
}
});
Notifications
const trader = new GridTrader({
symbol: 'BTC/USDT',
notifications: {
telegram: {
enabled: true,
botToken: 'your-bot-token',
chatId: 'your-chat-id'
},
discord: {
enabled: true,
webhookUrl: 'https://discord.com/api/webhooks/...'
},
email: {
enabled: true,
smtp: {
host: 'smtp.gmail.com',
port: 587,
user: 'your@email.com',
pass: 'your-password'
},
to: 'your@email.com'
}
}
});
📊 Grid Strategies
Strategy 1: Conservative
{
symbol: 'BTC/USDT',
lowerPrice: 38000,
upperPrice: 52000,
grids: 30, // More grids = smaller profits per grid
investment: 100,
risk: 'low'
}
Strategy 2: Aggressive
{
symbol: 'ETH/USDT',
lowerPrice: 1800,
upperPrice: 2800,
grids: 10, // Fewer grids = larger profits per grid
investment: 100,
risk: 'high'
}
Strategy 3: Balanced (Recommended)
{
symbol: 'BTC/USDT',
lowerPrice: 40000,
upperPrice: 50000,
grids: 20,
investment: 100,
risk: 'medium'
}
📈 Expected Returns
| Market Condition | Monthly ROI | Risk |
|---|---|---|
| Sideways (Best) | 10-20% | Low |
| Slow Uptrend | 5-15% | Low-Medium |
| Slow Downtrend | 0-5% | Medium |
| Strong Trend | -10-5% | High |
Historical Performance (backtested on 2025 data):
- BTC/USDT: Average 12% monthly
- ETH/USDT: Average 15% monthly
- Top 10 coins: Average 10% monthly
⚠️ Risk Warnings
When Grid Trading Works Best
✅ Sideways/oscillating markets
✅ High volatility
✅ Liquid coins (BTC, ETH, major alts)
When to Avoid
❌ Strong bull runs (price exits range)
❌ Strong bear crashes (heavy losses)
❌ Low liquidity coins
❌ During major news events
Risk Management Tips
- Start small: Test with $50-100 first
- Set stop-loss: Always protect your capital
- Diversify: Run multiple grids on different coins
- Monitor: Check daily, adjust weekly
- Take profits: Don't be greedy, withdraw regularly
🔧 Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
symbol | string | required | Trading pair (e.g., 'BTC/USDT') |
lowerPrice | number | required | Lower bound of grid |
upperPrice | number | required | Upper bound of grid |
grids | number | 20 | Number of grid levels |
investment | number | required | USDT to invest |
autoCompound | boolean/object | false | Auto-reinvest profits |
stopLoss | number | null | Stop-loss price |
takeProfit | number | null | Take-profit price |
notifications | object | null | Alert settings |
📱 API Methods
start()
Start the grid trading bot.
await trader.start();
stop()
Stop the grid trading bot.
await trader.stop();
getStatus()
Get current grid status.
const status = trader.getStatus();
getReport()
Get detailed profit report.
const report = trader.getReport();
adjustGrid(params)
Adjust grid parameters.
await trader.adjustGrid({
lowerPrice: 41000,
upperPrice: 51000
});
withdrawProfits(amount)
Withdraw profits.
await trader.withdrawProfits(50); // Withdraw $50
💰 Pricing
| Tier | Price | Features |
|---|---|---|
| Basic | $49 | Single grid, basic analytics |
| Pro | $99 | Multi-grid, AI optimization, auto-compound |
| Enterprise | $199 | Unlimited grids, priority support, custom features |
📝 Changelog
v1.0.0 (2026-03-18)
- Initial release
- Auto grid management
- Multi-coin support
- Auto-compound profits
- Risk management
- Real-time analytics
- Notifications (Telegram, Discord, Email)
📄 License
MIT License - See LICENSE file for details.
🙏 Support
- GitHub: https://github.com/openclaw/skills/grid-trading-pro
- Discord: OpenClaw Community
- Email: support@openclaw.ai
Built with ❤️ by OpenClaw Agent - Your AI Trading Assistant
Remember: Trading involves risk. Only invest what you can afford to lose! 🫡
相关 Skills
技能工坊
by anthropics
覆盖 Skill 从创建到迭代优化全流程:起草能力、补测试提示、跑评测与基准方差分析,并持续改写内容和描述,提升效果与触发准确率。
✎ 技能工坊把技能从创建、迭代到评测串成闭环,方差分析加描述优化,特别适合把触发准确率打磨得更稳。
表格处理
by anthropics
围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。
✎ 做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。
Word文档
by anthropics
覆盖Word/.docx文档的创建、读取、编辑与重排,适合生成报告、备忘录、信函和模板,也能处理目录、页眉页脚、页码、图片替换、查找替换、修订批注及内容提取整理。
✎ 搞定 .docx 的创建、改写与精排版,目录、批量替换、批注修订和图片更新都能自动化,做正式文档尤其省心。
相关 MCP 服务
文件系统
编辑精选by Anthropic
Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。
✎ 这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。
by wonderwhy-er
Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。
✎ 这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。
EdgarTools
编辑精选by dgunning
EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。
✎ 这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。