Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Complete autonomous trading engine for Binance with WebSocket real-time, OCO orders, Kelly Criterion position sizing, trailing stops, circuit breakers, daily...
Complete autonomous trading engine for Binance with WebSocket real-time, OCO orders, Kelly Criterion position sizing, trailing stops, circuit breakers, daily...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Professional autonomous trading bot with COMPLETE feature set: β WebSocket real-time - Sub-100ms price updates (websocket-client required, REST 1s fallback auto) β OCO orders - Binance-managed TP/SL (instant protection) β Kelly Criterion - Optimal position sizing (adaptive) β Trailing stops - Lock profits automatically β Circuit breakers - 4-level protection system β Daily reports - Performance analytics (9am UTC) β Parallel scanning - 10 symbols in 500ms (10x faster) β Multi-strategy - Scalping, momentum, statistical arbitrage β Performance tracking - Win rate, Sharpe ratio, Kelly optimization β Adaptive strategy mixing - Self-learning, adjusts daily β Memory persistence - Remembers best config across restarts β LOT_SIZE validation - Binance quantity compliance (no rejected orders) β OCO monitoring - Detects TP/SL closes, updates Kelly in real-time This is the COMPLETE version with ALL advanced features for maximum safety and profitability.
crypto-sniper-oracle (optional β enriches signals 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 scanning Security: MUST be audited before installation (external code execution) What it does: Fetches Binance market data Calculates order book metrics Returns JSON signals NO credential requirements NO network calls except Binance Installation instructions in CONFIGURATION.md
Why pre-install? The script is 1722 lines. Pre-installing it on the server means the AI agent never needs to recreate it from scratch β it launches in seconds and loads its learned memory immediately. Overwriting an existing install would erase learned_config.json and performance_metrics.json β the bot's brain. Always run this check first: # Check if already installed ls /workspace/skills/crypto-executor/executor.py # β Already installed β just launch: source /etc/crypto-executor/credentials.env python3 /workspace/skills/crypto-executor/executor.py # β Not installed β full install (run once): mkdir -p /workspace/skills/crypto-executor /workspace/reports/daily /workspace/config_history cd /workspace/skills git clone https://github.com/georges91560/crypto-executor.git crypto-executor-repo # SECURITY: pin a specific commit instead of HEAD β verify tag on GitHub first # git checkout <commit-hash-or-tag> cp crypto-executor-repo/executor.py /workspace/skills/crypto-executor/executor.py # filename is lowercase pip install websocket-client --break-system-packages # On VPS/standard server: prefer β python3 -m venv venv && source venv/bin/activate && pip install websocket-client # Verify before launch python3 -c " import os; from pathlib import Path checks = { 'executor.py': Path('/workspace/skills/crypto-executor/executor.py').exists(), 'oracle': Path('/workspace/skills/crypto-sniper-oracle/crypto_oracle.py').exists(), 'API_KEY': bool(os.getenv('BINANCE_API_KEY')), 'API_SECRET': bool(os.getenv('BINANCE_API_SECRET')), } [print(('β ' if v else 'β') + ' ' + k) for k,v in checks.items()] print('READY β run executor.py' if all(checks.values()) else 'FIX ABOVE FIRST') " Full step-by-step guide with explanations: CONFIGURATION.md
# Binance manages TP/SL automatically Entry: Market BUY executed β OCO order created instantly: ββ Take Profit: Binance sells at TP ββ Stop Loss: Binance sells at SL # When TP hits β SL cancels # When SL hits β TP cancels # Zero lag, managed by Binance # v2.3 addition: OCO monitoring # Bot detects when Binance closes position # β Updates portfolio, Kelly, performance metrics instantly Protection window: v1.0: Up to 5 minutes unprotected v2.3: <1 second protection β
# Adaptive position sizing based on performance kelly = (win_rate Γ avg_win - (1 - win_rate) Γ avg_loss) / avg_win # 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 Γ signal_confidence # Adapts automatically as performance changes! # Default: 60% (prudent start, no history) Benefits: Increases size when winning Reduces size when losing Optimal growth rate (mathematically proven)
# Automatically lock profits as price moves up Entry: $45,000 Price reaches $45,450 (+1%) β Trailing stop: $45,000 (breakeven) Price reaches $45,900 (+2%) β Trailing stop: $45,450 (lock +1%) Price reaches $46,350 (+3%) β Trailing stop: $45,900 (lock +2%) # Lets winners run, protects gains! Impact: v1.0: Fixed TP at +0.3%, missed big moves v2.3: Captures +1% to +5% on strong trends β
# Level 1: Daily Loss Limit Daily loss > 2% β Pause trading for 2 hours β Auto-resume # Level 2: Weekly Loss Limit Weekly loss > 5% β Reduce position sizes by 50% β Conservative mode active # Level 3: Drawdown Pause Drawdown > 7% β Pause trading for 48 hours β Manual review required # Level 4: Kill Switch Drawdown > 10% β STOP ALL TRADING β Manual restart only Maximum possible loss: 10% (kill switch prevents catastrophe)
# Generated at 9am UTC every day # Sent via Telegram Report includes: ββ Total equity ββ Daily P&L ($, %) ββ Number of trades ββ Win rate ββ Sharpe ratio ββ Drawdown % ββ Strategy mix active ββ Status (on track / below target) Example report: π DAILY PERFORMANCE REPORT 2026-02-28 09:00 UTC π° PORTFOLIO Total: $10,543.20 Cash: $3,200.00 USDT Positions: 3 open Day P&L: +$243.20 (+2.36%) Drawdown: 1.2% π TRADING Trades Today: 12 Win Rate: 91.7% π― STATUS β On Track
# 10 symbols scanned simultaneously ThreadPoolExecutor(max_workers=10) v1.0: Sequential β 5 symbols Γ 500ms = 5000ms v2.3: Parallel β 10 symbols Γ 500ms = 500ms (10x faster) # Symbols scanned: PRIMARY: BTCUSDT, ETHUSDT, BNBUSDT, SOLUSDT, ADAUSDT SECONDARY: DOGEUSDT, MATICUSDT, AVAXUSDT, DOTUSDT, LINKUSDT
Scalping (70% allocation) Entry: OBI > 0.10, spread < 8 bps Target: +0.3% Stop: -0.5% Hold: 30s - 5min Win rate: 85-92% Momentum (25% allocation) Entry: OBI > 0.12, price surge > 0.8% Target: +1.5% Stop: -0.8% Hold: 5-60min Win rate: 75-85% Statistical Arbitrage (5% allocation) Entry: BTC/ETH ratio divergence > 2Ο Target: Mean reversion (+1%) Stop: -1% Hold: Hours to days Win rate: 70-80%
Metricv1.0v2.3 ProductionImprovementMarket scan5-10s0.5s10-20x fasterTP/SL detection5 min<1s300x fasterTrade entry2-3s0.5s4-6x fasterPosition sizingFixedKelly adaptiveOptimal growthProfit captureFixed TPTrailing stops+50-200%Risk protectionBasic4-level breakers10% max lossVisibilityLogs onlyDaily reports + SharpeFull analyticsOrder rejectionFrequentNone (LOT_SIZE)100% fill rateSymbols scanned5102x opportunity
Capital: $5,000-$10,000 Strategy mix: Scalping 80%, Momentum 20% Position size: Kelly 50% (adaptive) Daily: 50-100 trades | Win rate 88-92% | ROI +0.5% to +1.2% Monthly: ROI 10-20% | Max drawdown 3-5% | Sharpe 2.5-3.5
Capital: $10,000-$25,000 Strategy mix: Scalping 70%, Momentum 25%, Stat Arb 5% Position size: Kelly 50% Daily: 100-200 trades | Win rate 85-90% | ROI +0.8% to +1.8% Monthly: ROI 15-30% | Max drawdown 5-7% | Sharpe 2.0-3.0
Capital: $50,000+ Strategy mix: All strategies active Position size: Kelly 60% Daily: 150-250 trades | Win rate 82-88% | ROI +1.0% to +2.5% Monthly: ROI 20-40% | Max drawdown 7-10% | Sharpe 1.8-2.5 Note: Higher returns = higher drawdowns. Circuit breakers protect at 10% max.
Kelly Criterion sizing (adapts to performance) Max 12% of capital per trade LOT_SIZE validation (no Binance rejections) Stop loss mandatory on every trade Trailing stops lock profits
Loss limit: 2% of capital β Pause 2 hours
Loss limit: 5% of capital β Reduce sizes 50%
Drawdown pause: 7% (48h) Kill switch: 10% Max open positions: 10
OCO orders (instant protection) Emergency SL if OCO fails WebSocket monitoring (sub-100ms) Parallel execution (no delays)
π TRADE EXECUTED BUY 0.22 BTCUSDT Entry: $45,000.00 TP: $45,135.00 SL: $44,775.00 Strategy: scalping Position Size: 8.2% of capital
π¨ CIRCUIT BREAKER - LEVEL 3 Reason: Drawdown 7.2% > 7.0% Trading paused for 48 hours. Review required.
π ADAPTIVE ADJUSTMENT Strategy mix updated: β’ scalping: 65% β’ momentum: 30% β’ stat_arb: 5%
π DAILY PERFORMANCE REPORT [Full report at 9am UTC]
MAX_POSITION_SIZE_PCT=12 # Max 12% per trade DAILY_LOSS_LIMIT_PCT=2 # Pause at -2% daily WEEKLY_LOSS_LIMIT_PCT=5 # Reduce at -5% weekly DRAWDOWN_PAUSE_PCT=7 # Pause at 7% drawdown DRAWDOWN_KILL_PCT=10 # Kill switch at 10%
strategy_mix = { "scalping": 0.70, # 70% "momentum": 0.25, # 25% "stat_arb": 0.05 # 5% }
WebSocket Streams (24/7 real-time) ββ Price updates <100ms ββ PRICE_CACHE updated (price + bid + ask) ββ Position monitoring β Every 5 seconds β Parallel Scan (500ms) ββ 10 symbols simultaneously ββ Oracle data fetched ββ Market conditions analyzed β Signal Generation (<10ms) ββ Scalping (OBI > 0.10) ββ Momentum (price_change > 0.8%) ββ Stat arb (BTC/ETH Z-score > 2Ο) β Risk Check (<5ms) ββ Kelly position sizing ββ LOT_SIZE validation ββ Circuit breaker check ββ Limit validation β Execution (500ms) ββ Market entry order ββ OCO TP/SL order (emergency SL if OCO fails) ββ Position tracking β Monitoring (continuous) ββ Trailing stop updates ββ OCO close detection β Kelly update ββ Performance tracking + Sharpe β 9am UTC β Daily Report ββ Generate metrics ββ Send Telegram ββ Archive report
/workspace/ βββ portfolio_state.json # Current portfolio βββ open_positions.json # Active positions βββ trades_history.jsonl # All trades log βββ performance_metrics.json # Win rate, Kelly, Sharpe βββ learned_config.json # Best known strategy mix βββ strategy_adjustments.jsonl # Adaptive history βββ reports/ βββ daily/ βββ report_2026-02-27.txt βββ report_2026-02-28.txt βββ ...
Minimum: $1,000 (limited opportunities) Recommended: $5,000-$10,000 (balanced) Professional: $25,000+ (full strategies)
Trading enabled β Withdrawals DISABLED β (security) IP whitelist recommended
Real money trading Past performance β future results Can lose capital Start small, scale gradually Monitor daily reports
v1.0 had: Basic features, fixed sizing, manual monitoring v2.3 PRODUCTION has: Everything you need for safe, profitable, professional trading β Kelly Criterion β Optimal position sizing β Trailing stops β Capture big moves β Circuit breakers β Protect from catastrophe β Daily reports β Full visibility + Sharpe ratio β Performance tracking β Continuous optimization β WebSocket + OCO β Fastest execution β Parallel scanning β 10 symbols, maximum efficiency β Adaptive mixing β Self-learning strategy allocation β Memory persistence β No cold-start degradation β LOT_SIZE validation β Zero order rejections β OCO monitoring β Real-time Kelly updates This is production-ready, professional-grade trading automation. Version: 2.3.0 - PRODUCTION READY License: MIT Author: Georges Andronescu (Wesley Armando) COMPLETE FEATURES. MAXIMUM SAFETY. OPTIMAL PROFITS. β‘π° END OF SKILL
Trading, swaps, payments, treasury, liquidity, and crypto-financial operations.
Largest current source with strong distribution and engagement signals.