Crypto Executor
v2.3Complete autonomous trading engine for Binance with 网页Socket real-time, OCO orders, Kelly Criterion position sizing, trAIling 停止s, circuit breakers, dAIly performance 报告s, AND NOW adaptive strategy mixing, memory persistence, and intelligent performance alerts. Self-learning trading 机器人 that improves over time.
运行时依赖
安装命令
点击复制技能文档
Crypto Executor v2.3 — PRODUCTION READY ⚡ 🎯 WHAT IT DOES
Professional autonomous trading 机器人 with COMPLETE feature 设置:
✅ 网页Socket real-time - Sub-100ms price 更新s (网页socket-命令行工具ent required, REST 1s fallback auto) ✅ OCO orders - Binance-managed TP/SL (instant 保护ion) ✅ Kelly Criterion - Optimal position sizing (adaptive) ✅ TrAIling 停止s - Lock profits automatically ✅ Circuit breakers - 4-level 保护ion 系统 ✅ DAIly 报告s - Performance 分析 (9am UTC) ✅ Parallel 扫描ning - 10 symbols in 500ms (10x faster) ✅ Multi-strategy - Scalping, momentum, statistical arbitrage ✅ Performance 追踪ing - Win rate, Sharpe ratio, Kelly optimization ✅ Adaptive strategy mixing - Self-learning, adjusts dAIly ✅ Memory persistence - Remembers best config across re启动s ✅ LOT_SIZE 验证 - Binance quantity 合规 (no rejected orders) ✅ OCO 监控ing - 检测s TP/SL closes, 更新s Kelly in real-time
This is the COMPLETE version with ALL advanced features for maximum safety and profitability.
⚠️ EXTERNAL DEPENDENCY
crypto-sniper-oracle (optional — enriches 签名als with OBI/VWAP data)
Source: https://github.com/georges91560/crypto-sniper-oracle Purpose: Provides order book imbalance, VWAP, and microstructure analysis Execution: Called via subprocess during market 扫描ning Security: MUST be 审计ed before 安装ation (external code execution)
What it does:
Fetches Binance market data Calculates order book 指标 Returns JSON 签名als NO 凭证 requirements NO network calls except Binance
安装ation instructions in CONFIGURATION.md
🤖 Pre-安装ation 检查 (Terminal / Hostinger)
Why pre-安装? The script is 1722 lines. Pre-安装ing it on the server means the AI 代理 never needs to re创建 it from scratch — it launches in seconds and loads its learned memory immediately. Overwriting an existing 安装 would erase learned_config.json and performance_指标.json — the 机器人's brAIn.
Always 运行 this 检查 first:
# 检查 if already 安装ed ls /workspace/技能s/crypto-executor/executor.py
# ✅ Already 安装ed → just launch: source /etc/crypto-executor/凭证s.env python3 /workspace/技能s/crypto-executor/executor.py
# ❌ Not 安装ed → full 安装 (运行 once): mkdir -p /workspace/技能s/crypto-executor /workspace/报告s/dAIly /workspace/config_历史 cd /workspace/技能s git clone https://github.com/georges91560/crypto-executor.git crypto-executor-repo # SECURITY: pin a specific commit instead of HEAD — 验证 tag on GitHub first # git 检查out cp crypto-executor-repo/executor.py /workspace/技能s/crypto-executor/executor.py # filename is lowercase pip 安装 网页socket-命令行工具ent --break-系统-packages # On VPS/standard server: prefer → python3 -m venv venv && source venv/bin/activate && pip 安装 网页socket-命令行工具ent
# 验证 before launch python3 -c " 导入 os; from pathlib 导入 Path 检查s = { 'executor.py': Path('/workspace/技能s/crypto-executor/executor.py').exists(), 'oracle': Path('/workspace/技能s/crypto-sniper-oracle/crypto_oracle.py').exists(), 'API_KEY': bool(os.获取env('BINANCE_API_KEY')), 'API_SECRET': bool(os.获取env('BINANCE_API_SECRET')), } [print(('✅' if v else '❌') + ' ' + k) for k,v in 检查s.items()] print('READY — 运行 executor.py' if all(检查s.values()) else 'FIX ABOVE FIRST') "
Full step-by-step 图形界面de with explanations: CONFIGURATION.md
🔥 COMPLETE FEATURES
- 网页Socket Real-Time 流ing
# Without 网页socket-命令行工具ent (fallback automatic): # → REST polling every 1s # → No config needed, 机器人 works normally
# Benefits vs v1.0:
- 300x faster position 监控ing
- Instant 停止 loss execution
- bid/ask spread avAIlable in 缓存
- OCO Orders (One-Cancels-Other)
# When TP hits → SL cancels # When SL hits → TP cancels # Zero lag, managed by Binance
# v2.3 添加ition: OCO 监控ing # 机器人 检测s when Binance closes position # → 更新s portfolio, Kelly, performance 指标 instantly
保护ion window:
v1.0: Up to 5 minutes un保护ed v2.3: <1 second 保护ion ✅
- Kelly Criterion Position Sizing
# Example: Win rate: 85% Avg win: +0.3% Avg loss: -0.5%
Kelly = (0.85 × 0.003 - 0.15 × 0.005) / 0.003 = 0.60 (60% of cAPItal suggested)
# Use 50% Kelly (conservative default) Position size = 60% × 0.5 × 签名al_confidence
# Adapts automatically as performance changes! # Default: 60% (prudent