binance-enhanced
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
02 资源文件 80
- 参考文档_meta.json284 B
- 参考文档.github/workflows/publish.yml6.2 KB
- 参考文档.github/workflows/sync-to-openclaw.yml1.8 KB
- 参考文档BEST_PRACTICES.md2.2 KB
- 参考文档docker-compose.yml3.5 KB
- 参考文档DOCUMENTATION.md5.5 KB
- 参考文档FAQ.md2.5 KB
- 参考文档FINAL_REPORT.md14.5 KB
- 参考文档GITHUB_INTEGRATION.md9.9 KB
- 参考文档GITHUB_TOKEN_GUIDE.md5.5 KB
- 脚本install.sh7.7 KB
- 参考文档monitoring/config.example.yaml577 B
- 脚本monitoring/dashboard/app.py2.1 KB
- 参考文档monitoring/dashboard/sample_alerts.json2 B
- 参考文档monitoring/dashboard/sample_portfolio.json2 B
- 参考文档monitoring/email_template.html1.1 KB
- 脚本monitoring/email.py1.5 KB
- 脚本monitoring/engine/alerts.py2.4 KB
- 参考文档monitoring/README.md1.7 KB
- 脚本monitoring/reports/daily.py1.3 KB
- 脚本monitoring/reports/weekly.py1.2 KB
- 参考文档monitoring/sample_data/portfolio_sample.json289 B
- 脚本monitoring/telegram.py979 B
- 脚本monitoring/utils/__init__.py27 B
- 脚本monitoring/utils/data_loader.py259 B
- 脚本monitoring/webhook.py740 B
- 参考文档openclaw-config.json5.2 KB
- 参考文档package.json2.9 KB
- 脚本performance/async_api.py4.6 KB
- 脚本performance/benchmark.py1.9 KB
- 脚本performance/cache.py2.7 KB
- 脚本performance/jq_cache.py1.3 KB
- 参考文档performance/README.md1.2 KB
- 参考文档PROGRESS_REPORT.md3.0 KB
- 参考文档PUBLISH_GUIDE.md9.2 KB
- 参考文档README_RU.md13.2 KB
- 参考文档README.md8.1 KB
- 参考文档RELEASE_NOTES.md10.5 KB
- 参考文档requirements.txt1.1 KB
- 参考文档SECURITY_CHECKLIST.md849 B
- 参考文档security/checklist.md1.9 KB
- 脚本security/keys_crypto.py2.9 KB
- 脚本security/limits.sh3.7 KB
- 脚本security/logger.sh2.1 KB
- 参考文档security/README.md1.2 KB
- 脚本security/security_checks.sh2.5 KB
- 参考文档SETUP_GITHUB_ACTIONS.md6.3 KB
- 脚本setup-github-integration.sh5.4 KB
- 脚本setup-github-secure.sh5.3 KB
- 参考文档SKILL_RU.md13.5 KB
- 脚本strategies/arbitrage.py1.1 KB
- 脚本strategies/backtest/example_backtest.py682 B
- 脚本strategies/backtest/framework.py1.8 KB
- 脚本strategies/dca.py1.3 KB
- 参考文档strategies/docs/STRATEGIES.md1.4 KB
- 脚本strategies/grid.py1.9 KB
- 脚本strategies/indicators/__init__.py58 B
- 脚本strategies/indicators/ta.py943 B
- 参考文档strategies/README.md987 B
- 参考文档strategies/reports/report_template.md88 B
- 脚本telegram-bot/__init__.py—
- 脚本telegram-bot/bot.py6.7 KB
- 参考文档telegram-bot/README.md1.7 KB
- 脚本telegram-bot/storage.py1.8 KB
- 脚本telegram-bot/utils.py2.6 KB
- 参考文档test/mocks/account.json371 B
- 参考文档test/mocks/ping.json2 B
- 参考文档test/mocks/ticker_price_BTCUSDT.json39 B
- 参考文档test/mocks/time.json29 B
- 脚本test/test_integration.sh1.6 KB
- 脚本test/testnet.sh1.5 KB
- 参考文档TROUBLESHOOTING.md3.8 KB
- 脚本ux/autocomplete.py981 B
- 参考文档ux/examples.md1.1 KB
- 脚本ux/interactive.py3.7 KB
- 脚本ux/parser.py4.0 KB
- 参考文档ux/README.md2.0 KB
- 脚本ux/telegram_bot_prototype.py2.1 KB
- 脚本ux/templates.py1.5 KB
- 脚本webhook-handler.py4.9 KB
03 SKILL.md 正文
Binance Enhanced Skill
Enhanced Binance trading skill for OpenClaw
Version 2.0 — created by parallel agents in 20 minutes
? Features
? Core Improvements
- Complete test infrastructure — mock files, integration tests, connection verification
- Security — rate limiting system, API key encryption, detailed logging
- UX/UI — natural language command parser, interactive dialog, Telegram bot
- Monitoring — Telegram/email/webhook notifications, web dashboard
- Performance — caching, async requests, optimization
- Trading strategies — DCA, grid trading, arbitrage, backtesting
- Documentation — configuration templates, FAQ, guides, best practices
? Package Structure
binance-enhanced/
├── SKILL.md # This file (Russian)
├── SKILL_EN.md # English version
├── README.md # Russian documentation
├── README_EN.md # English documentation
├── FAQ.md # Frequently asked questions
├── TROUBLESHOOTING.md # Troubleshooting guide
├── BEST_PRACTICES.md # Security best practices
├── PROGRESS_REPORT.md # Creation report
│
├── templates/ # Configuration templates
│ ├── .env.example # Environment variables
│ └── config.yaml.example # Risk profiles
│
├── security/ # Security system
│ ├── limits/ # Operation limits
│ ├── encryption/ # Key encryption (AES-GCM)
│ ├── logging/ # Structured logging (NDJSON)
│ └── checklist.md # Security checklist
│
├── ux/ # User experience
│ ├── parser.py # Natural language parser (RU/EN)
│ ├── interactive_dialog.py # Missing parameter dialog
│ └── autocomplete/ # Symbol/command suggestions
│
├── telegram-bot/ # Telegram integration
│ ├── bot.py # Main bot with inline keyboard
│ ├── handlers/ # Command handlers
│ └── webhook/ # Webhook support
│
├── monitoring/ # Monitoring system
│ ├── notifications/ # Telegram/email/webhook
│ ├── dashboard/ # Web interface
│ └── reports/ # Automatic reports
│
├── performance/ # Performance optimization
│ ├── cache/ # Price caching (Redis/Memory)
│ ├── async_requests.py # Non-blocking API calls
│ └── json_optimization.py # Fast JSON parsing
│
├── strategies/ # Trading algorithms
│ ├── dca/ # Dollar-cost averaging
│ ├── grid/ # Grid trading
│ ├── arbitrage/ # Cross-exchange arbitrage
│ └── backtesting/ # Historical analysis
│
├── test/ # Test infrastructure
│ ├── unit/ # Unit tests
│ ├── integration/ # Integration tests
│ ├── security/ # Security tests
│ └── performance/ # Performance tests
│
└── docs/ # Documentation
├── api/ # API documentation
├── tutorials/ # Step-by-step guides
└── diagrams/ # Architecture diagrams
? Quick Start
1. Installation
# Clone repository
git clone https://github.com/s7cret/binance-enhanced.git
cd binance-enhanced
# Run installation
chmod +x install.sh
./install.sh
2. Configuration
# Copy environment template
cp templates/.env.example .env
# Edit with your credentials
nano .env
# Required variables:
BINANCE_API_KEY=your_api_key_here
BINANCE_API_SECRET=your_api_secret_here
3. Start Services
# Using Docker (recommended)
docker-compose up -d
# Or manually
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
? Security System
Rate Limiting
- Daily limits: Maximum operations per day
- Hourly limits: Burst protection
- User limits: Per-user restrictions
- Strategy limits: Per-strategy controls
Key Encryption
- Algorithm: AES-GCM with PBKDF2
- Storage: Encrypted files with salt+nonce
- Rotation: Automatic key rotation support
- Backup: Secure backup procedures
Audit Logging
- Format: NDJSON for structured logs
- Rotation: Automatic log rotation
- Compression: Gzip compression
- Monitoring: Security event alerts
? Natural Language Interface
Supported Commands (English):
buy 0.1 BTC at market
sell 2 ETH at 1800 limit
show BTC balance
get BTCUSDT price
portfolio summary
Supported Commands (Russian):
купи 0.1 биткоин по рынку
продай 2 эфира по 1800 лимит
покажи баланс биткоин
цена BTCUSDT
сводка портфеля
Features:
- Bilingual parsing: English and Russian support
- Interactive dialog: Asks for missing parameters
- Auto-completion: Symbol and command suggestions
- Context awareness: Remembers previous commands
? Monitoring & Alerts
Notification Channels:
- Telegram: Real-time trade confirmations
- Email: Daily reports and summaries
- Webhook: Custom integrations (Slack, Discord)
- Dashboard: Web interface for monitoring
Dashboard Features:
- Real-time price charts
- Portfolio overview
- Trade history
- Performance metrics
- Risk analysis
⚡ Performance Optimization
Caching System:
- Redis/Memory cache: Price data caching
- TTL configuration: Different TTLs per data type
- Cache invalidation: Smart invalidation strategies
- Statistics: Cache hit/miss metrics
Async Operations:
- Non-blocking requests: Parallel API calls
- Background tasks: Data synchronization
- Connection pooling: Reusable connections
- Timeout handling: Configurable timeouts
JSON Optimization:
- orjson: Fast JSON parsing
- Selective parsing: Parse only needed fields
- Compression: Gzip compression for large responses
- Schema validation: JSON schema validation
? Trading Strategies
Dollar-Cost Averaging (DCA):
- Automated purchases: Scheduled buying
- Risk management: Stop-loss and take-profit
- Portfolio rebalancing: Automatic rebalancing
- Performance tracking: ROI calculation
Grid Trading:
- Automated grids: Buy/sell at grid levels
- Dynamic adjustment: Adaptive grid sizing
- Profit tracking: Real-time P&L
- Risk controls: Maximum drawdown limits
Arbitrage:
- Cross-exchange: Multiple exchange support
- Real-time monitoring: Price difference detection
- Automated execution: Fast order placement
- Risk management: Slippage protection
Backtesting:
- Historical data: OHLCV data import
- Strategy testing: Multiple strategy testing
- Performance metrics: Sharpe ratio, max drawdown
- Visualization: Charts and graphs
? Configuration
Environment Variables:
# Required
BINANCE_API_KEY=your_api_key
BINANCE_API_SECRET=your_api_secret
# Optional
TELEGRAM_BOT_TOKEN=your_bot_token
REDIS_URL=redis://localhost:6379
LOG_LEVEL=INFO
TRADE_MODE=paper # paper, live, dry-run
Configuration Files:
- .env: Environment variables
- config.yaml: Main configuration
- security/config.yaml: Security settings
- strategies/config.yaml: Strategy parameters
? Testing
Test Suite:
# Run all tests
pytest tests/
# Run specific test categories
pytest tests/unit/
pytest tests/integration/
pytest tests/security/
pytest tests/performance/
# Run with coverage
pytest --cov=. tests/
Test Types:
- Unit tests: Core functionality
- Integration tests: API interactions
- Security tests: Encryption and validation
- Performance tests: Load and stress testing
- End-to-end tests: Complete workflow testing
? Documentation
Quick Links:
- README_EN.md - English documentation
- README.md - Russian documentation
- FAQ.md - Frequently asked questions
- BEST_PRACTICES.md - Best practices guide
- TROUBLESHOOTING.md - Troubleshooting guide
API Documentation:
- OpenAPI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc - Postman:
docs/postman_collection.json
? Deployment
Docker Deployment:
# Build and run
docker-compose up -d
# View logs
docker-compose logs -f
# Stop services
docker-compose down
# Update services
docker-compose pull
docker-compose up -d
Manual Deployment:
# Install dependencies
pip install -r requirements.txt
# Set environment
export BINANCE_API_KEY=your_key
export BINANCE_API_SECRET=your_secret
# Start service
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
Kubernetes Deployment:
# Apply manifests
kubectl apply -f k8s/namespace.yaml
kubectl apply -f k8s/configmap.yaml
kubectl apply -f k8s/deployment.yaml
kubectl apply -f k8s/service.yaml
kubectl apply -f k8s/ingress.yaml
? Support
Community Support:
- GitHub Issues: Report bugs
- Discord: Join OpenClaw community
- Telegram: @s7cret for direct support
Resources:
? License
MIT License - see LICENSE file for details.
? Acknowledgments
- OpenClaw Team for the amazing platform
- Binance for their comprehensive API
- Community contributors for feedback and testing
⭐ Star this repository if you find it useful!
? Share your feedback and feature requests in Issues!
? Happy trading with Binance Enhanced!
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.