AI Trading Bot for Perpetual DEX · Public Snapshot
Multi-exchange AI trading desk with observable telemetry. Zero-trust custody, deterministic guardrails, and institutional market feeds across Hyperliquid, Binance, and more.
Signal Fusion Engine
7-signal weighted consensus with LEADING momentum: Boss (25%), Orderbook (22%), MRD (15%), Momentum (15%), Whale (12%), Polymarket (8%), Options (3%). Dynamic weight boosts for strong momentum.
Unified Direction Gates V2
9-factor weighted scoring (RSI, CVD, orderbook, whale, LCP, MRD, technicals). Zero hardcoded rules - all direction filtering is programmatic with configurable weights.
Execution & Risk
17 active gates, 5x leverage cap, dynamic SL/TP, trailing stops at 0.8% activation. Nuclear profit-taking tiers lock in gains systematically.
Multi-Exchange Roadmap
Mainnet production trading with full feature set
Testnet paper trading available now
Q1 2026 - Mainnet integration
Q1 2026 - Mainnet integration
Institutional Analytics Suite (Jan 25, 2026)
- •Value at Risk (VaR) — Historical simulation VaR at 95%/99% confidence levels using 47+ days of trade history. Conditional VaR (CVaR/Expected Shortfall) for tail risk measurement.
- •Drawdown Analysis — Real-time max drawdown tracking with underwater period detection. Peak-to-trough measurement with recovery tracking. Daily/weekly/monthly metrics.
- •Execution Quality — Trade-level slippage analysis, maker/taker ratio, fill rate tracking. Average execution cost per trade with fee breakdown.
- •Liquidity Depth Profile — Multi-level orderbook analysis at $10K, $50K, $100K, $500K depths. Bid/ask imbalance scoring with time-weighted averages.
- •Order Flow Analytics — CVD velocity tracking, aggressive buyer/seller ratio, large trade detection. Institutional flow signals with configurable thresholds.
- •REST API Endpoints — GET /api/v1/intelligence/risk-metrics, /liquidity, /order-flow. Real-time data served from telemetry with Redis caching.
Enterprise Resilience Suite (Jan 25, 2026)
- •Exchange Circuit Breaker — CLOSED/OPEN/HALF_OPEN states for exchange API protection. Per-endpoint tracking (5 failures threshold). Auto-reset after 60s cooldown. Thread-safe async support.
- •Data Freshness Guard — Prevents trading on stale data. Thresholds: orderbook (5s), price (3s), positions (5s). Critical types block trading if stale.
- •State Backup Manager — Redis → SQLite backup for crash recovery. Positions, orders, reasoning backed up with gzip compression. Auto-restore on startup.
- •Risk Alerts System — VaR/drawdown threshold monitoring. Alert types: VAR_BREACH, DRAWDOWN_CRITICAL, CONSECUTIVE_LOSSES. Cooldowns prevent alert fatigue.
- •Exponential Backoff Retry — Handles transient API failures. Formula: min(base × 2^attempt + jitter, max_delay). @retry_with_backoff decorator for all API calls.
- •Market Data Validator — Sanity checks: price jumps >5%, zero spreads, stale timestamps, extreme imbalance >95%. Prevents trading on corrupt data.
Parlant Guidelines Engine (Jan 4-5, 2026)
- •55 YAML Guidelines — Modular rule-based system replacing hardcoded trading rules. Categories: risk (14), signals (13), regimes (13), strategy (15).
- •Explainability Traces — Every decision shows exactly which rules triggered. Know why a trade was blocked or conviction adjusted.
- •Context-Aware Matching — Guidelines evaluated against live market context: HLSI, MRD regime, LCP risk, signals, position state.
- •Preset Overrides — Each guideline can have different thresholds per risk preset (safe/balanced/growth).
Unified Direction Gates V2 (Jan 3-4, 2026)
- •9-Factor Weighted Scoring — RSI, CVD, orderbook, fear_greed, funding, whale flow, LCP, MRD, technicals. Each factor scored 0.0-1.0, weights sum to 1.0.
- •Whale Flow Integration — Real on-chain institutional flow: -$100M outflow = bearish (good for SHORT), +$100M inflow = bullish (good for LONG).
- •LCP & MRD Scoring — Liquidation cascade risk and micro-regime detection converted to continuous scores. DISTRIBUTION = SHORT-friendly, ACCUMULATION = LONG-friendly.
- •Zero Hardcoded Rules — Removed all scattered direction vetoes from AI prompts. 100% programmatic with configurable weights via dashboard.
EV Optimization Suite - 10 Bug Fixes (Jan 9, 2026)
- •Atomic Flip Execution — Single 2x order to flip positions instead of CLOSE→WAIT→OPEN. Saves fees, faster execution, no missed entries.
- •Signal-Adverse Exit Fix — Corrected threshold logic: LONG now exits when fusion_score <= -0.15 (was incorrectly triggering at +0.10).
- •Unified SHORT Gate Guard — Legacy orderbook_veto_short no longer runs when unified_short_gate is enabled. Eliminates double-blocking.
- •ATR-Based Trailing Stop — Dynamic trailing distance based on Average True Range: 2x ATR with min 0.3% / max 2.0% bounds.
- •Gate Conviction Applied — gate_result.total_conviction_adjustment now actually modifies conviction (was only logged, never used).
- •Neutral Dilution Prevention — Signal Fusion now excludes neutral signals from denominator, preventing score dilution when some signals are flat.
- •Cross-Tenant Isolation — FlipStrategy state now keyed by tenant_id:symbol instead of just symbol. Multi-tenant safe.
- •MRD Confidence Scaling — During regime transitions, confidence scales with pending_count/min_persistence ratio. More accurate during changes.
Flip Strategy & Adaptive Risk Controls (Jan 9, 2026)
- •Continuous Flip Strategy — Keeps exactly ONE position open at all times. When orderbook imbalance reverses, closes current and immediately opens opposite direction.
- •Flush Detection — Prevents LONG→SHORT flips during extreme capitulation (imbalance <20%). V-bounce detection avoids shorting bottoms.
- •Anti-Whipsaw Protection — Min 3 cycles / 180 seconds between flips. Edge must exceed 2x flip costs (fees + slippage + spread).
- •Widened Loss Close Threshold — RISK_004 now allows small loss closes (>-1% ROE) for strategic exits while protecting against panic closes.
- •Faster Post-Restart Response — Cooldown reduced from 6 min to 2 min. More responsive to market opportunities after service restarts.
- •SHORT Parameter Wiring — Fixed wiring gaps: stop_loss_mult (0.8x), take_profit_mult (0.6x), leverage_mult (0.8x) now properly applied.
Economic Calendar Intelligence (Jan 9, 2026)
- •Macro Event Awareness — Daily tracking of NFP, CPI, FOMC, Jobless Claims, Fed speeches. Events fetched at 06:00 CET via Finnhub API.
- •Gemini 3.0 Pro Morning Analysis — At 09:00 CET, Pro analyzes ALL events ONCE. Creates scenarios: "If Jobless >220K = bullish BTC (weak labor = Fed cuts)".
- •Pre-Event Caution — 30 min before: size -50%, conviction +10. 5 min before: trading paused. No entries during high-impact releases.
- •Scenario-Based Reaction — Post-event, Flash compares actual vs Pro scenarios for instant directional bias. No slow research - scenarios pre-computed.
- •Cost-Efficient Dual-Model — Pro (expensive) runs once/day for deep analysis. Flash (cheap) runs every cycle with scenarios loaded. Institutional macro awareness at minimal cost.
Momentum Detection - Early Entry System (Jan 8, 2026)
- •LEADING Indicator Engine — First momentum detection that predicts moves BEFORE they happen. Solves "late entry problem" - now entering at 20-30% of move instead of 70-80%.
- •4-Factor Scoring — ROC (Rate of Change), Volume Spike Detection, CVD Acceleration, and Orderbook Sweep Detection. Each scored 0.0-1.0 with adaptive thresholds.
- •5-Level Strength Classification — NONE, WEAK, MODERATE, STRONG, EXPLOSIVE. Higher strength = higher confidence + dynamic weight boost in Signal Fusion.
- •Dynamic Weight Boost — STRONG momentum adds +0.10 weight, EXPLOSIVE adds +0.20. Automatically reduces lagging indicators (Boss, Whale, Polymarket) when momentum is strong.
- •Time Decay System — 5-minute validity window with exponential decay curve. Ensures stale momentum signals lose influence progressively.
- •MICRO Timeframe Focus — Detects 0-5 minute moves while other signals focus on MESO (5-30 min) and MACRO (30+ min). Catches breakouts early.
Signal Fusion Engine V2 (Jan 6, 2026)
- •7-Signal Weighted Consensus — Now includes Momentum (15%): Boss (25%), Orderbook (22%), MRD (15%), Momentum (15%), Whale (12%), Polymarket (8%), Options (3%). Direction score -1.0 to +1.0.
- •Polymarket Integration — Prediction market macro overlay from Gamma API. Tracks BTC price targets ($100k, $150k), FOMC rates, ETF catalysts. 8% weight in signal fusion.
- •Conflict Detection — Automatic warnings when signals disagree (e.g., Whale BULLISH vs MRD Distribution). Alpha sees "HIGH CONFLICT" before deciding.
- •Conviction Adjustments — +20 points when all 7 align, +15 for 6/7, -10 penalty for 2+ conflicts. Size multiplier: 1.1x consensus, 0.7x conflict.
- •Dynamic Weights — Momentum boosts when STRONG/EXPLOSIVE. MRD +10% in DISTRIBUTION/ACCUMULATION regimes. Options +5% in HIGH volatility.
Adaptive Intelligence (Dec 31, 2025)
- •Dynamic Boss Intervals — ATR-based update frequency: 30 min (calm) → 90 sec (crash). Thinks faster when markets move.
- •Extreme Orderbook Override — When imbalance <15% or >85%, bypasses macro bias to catch moves instantly. No more "waiting for Boss."
- •Crash Regime Detection — Detects 1.5%+ drops in 30 min. Alpha can SHORT during crash even if Boss says LONG.
- •17 Active Gates — Comprehensive validation chain: edge, spread, funding, trend, volatility, cooldowns, regime, and more.
Infrastructure Hardening (Dec 2025)
- •OOM Protection Suite — Memory priority scoring across all services prevents kernel kills during high load.
- •Circuit Breaker — Max 10 restarts/hour with auto-disable prevents crash loops from cascading.
- •24/7 Crash Monitor — Telegram alerting for Brain, Backend, Frontend, and Watchdog health.
- •99.97% Uptime — Achieved through systemd hardening, graceful restarts, and redundant health checks.
What we share publicly
- Equity curve, VaR, and sanitized fill history (no keys, no sensitive params).
- Single-agent + guardrail architecture, zero-custody, and real-time observability.
- Live telemetry samples: orderbook, CVD/ΔOI, VWAP/POC, funding/basis visible to LPs.
- Positioned for Hyperliquid users and DEX finance: perps execution with institutional-style risk controls.
What stays under NDA
- Exact sizing parameters, OB/CVD/liq thresholds, prompt, Kelly/VaR rules.
- Full telemetry (prompts, decision logs, audit ledger) and risk configurations.
- Incident runbooks, custody adapters (Fireblocks/Qredo), and multi-venue hedging plans.
Qualified investors access the full view via Admin Brain and Sniper after NDA and onboarding.