← All skills
Tencent SkillHub Β· Finance & Trading

Crypto Executor

Complete autonomous trading engine for Binance with WebSocket real-time, OCO orders, Kelly Criterion position sizing, trailing stops, circuit breakers, daily...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Complete autonomous trading engine for Binance with WebSocket real-time, OCO orders, Kelly Criterion position sizing, trailing stops, circuit breakers, daily...

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
CONFIGURATION.md, README.md, SKILL.md, SYSTEMD_SETUP.md, executor.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
2.3.4

Documentation

ClawHub primary doc Primary doc: SKILL.md 33 sections Open source page

🎯 WHAT IT DOES

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.

⚠️ EXTERNAL DEPENDENCY

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

πŸ€– Pre-Installation Check (Terminal / Hostinger)

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

1. WebSocket Real-Time Streaming

  • # With websocket-client installed (recommended):
  • pip install websocket-client --break-system-packages
  • # On VPS/standard server: prefer β†’ python3 -m venv venv && source venv/bin/activate && pip install websocket-client
  • # β†’ Sub-100ms updates via wss://stream.binance.com:9443/ws/
  • # β†’ Auto-reconnect on disconnect
  • # β†’ Ping keepalive every 20s
  • # Without websocket-client (fallback automatic):
  • # β†’ REST polling every 1s
  • # β†’ No config needed, bot works normally
  • # Benefits vs v1.0:
  • 300x faster position monitoring
  • Instant stop loss execution
  • bid/ask spread available in cache

2. OCO Orders (One-Cancels-Other)

# 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 βœ…

3. Kelly Criterion Position Sizing

# 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)

4. Trailing Stops (Lock Profits)

# 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 βœ…

5. Circuit Breakers (4-Level Protection)

# 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)

6. Daily Performance Reports

# 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

7. Parallel Market Scanning

# 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

8. Multi-Strategy Trading

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%

9. Performance Analytics

  • # Tracked metrics:
  • Total trades
  • Winning trades / Losing trades
  • Average win / Average loss
  • Win rate (updated on every close)
  • Kelly fraction (recalculated)
  • Sharpe ratio (annualized)
  • Max drawdown
  • ROI (daily, weekly, monthly)
  • # Used for:
  • Kelly position sizing (real-time)
  • Strategy allocation adjustment
  • Risk limit calibration
  • Adaptive mixing decisions

πŸ“Š PERFORMANCE IMPROVEMENTS

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

Conservative Profile

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

Balanced Profile

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

Aggressive Profile

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.

Position Level

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

Daily Level

Loss limit: 2% of capital β†’ Pause 2 hours

Weekly Level

Loss limit: 5% of capital β†’ Reduce sizes 50%

Portfolio Level

Drawdown pause: 7% (48h) Kill switch: 10% Max open positions: 10

Execution Level

OCO orders (instant protection) Emergency SL if OCO fails WebSocket monitoring (sub-100ms) Parallel execution (no delays)

Trade Alerts

πŸ”” 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 Alerts

🚨 CIRCUIT BREAKER - LEVEL 3 Reason: Drawdown 7.2% > 7.0% Trading paused for 48 hours. Review required.

Adaptive Adjustment Alert

πŸ”„ ADAPTIVE ADJUSTMENT Strategy mix updated: β€’ scalping: 65% β€’ momentum: 30% β€’ stat_arb: 5%

Daily Reports

πŸ“Š DAILY PERFORMANCE REPORT [Full report at 9am UTC]

Risk Limits (Environment Variables)

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 (In Code)

strategy_mix = { "scalping": 0.70, # 70% "momentum": 0.25, # 25% "stat_arb": 0.05 # 5% }

πŸš€ EXECUTION WORKFLOW

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

πŸ“‚ FILES GENERATED

/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 └── ...

Capital Requirements

Minimum: $1,000 (limited opportunities) Recommended: $5,000-$10,000 (balanced) Professional: $25,000+ (full strategies)

Binance API

Trading enabled βœ… Withdrawals DISABLED βœ… (security) IP whitelist recommended

Risk Disclaimer

Real money trading Past performance β‰  future results Can lose capital Start small, scale gradually Monitor daily reports

🎯 WHY THIS VERSION IS COMPLETE

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

Category context

Trading, swaps, payments, treasury, liquidity, and crypto-financial operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Docs1 Scripts
  • SKILL.md Primary doc
  • CONFIGURATION.md Docs
  • README.md Docs
  • SYSTEMD_SETUP.md Docs
  • executor.py Scripts