Modular Event-Driven Design
7 independent layers communicating through a thread-safe EventBus. Async Python architecture built for speed and reliability.
Core Engine
Central orchestrator managing price collection, spread calculation, opportunity detection, AI consultation, order execution and risk management on an async event loop.
AI Advisor (GPT-4o)
Analyzes arbitrage opportunities using OpenAI GPT-4o Structured Outputs with Pydantic schemas. Returns EXECUTE/SKIP/WAIT decisions with post-trade learning feedback loop.
Price Feed
WebSocket-first, REST-fallback real-time price streams from all 8 exchanges. Order book depth, bid/ask spread and latency measurement with DirectHTTP failover.
Smart Executor
Intelligent order type selection (IOC/PostOnly/Market), concurrent buy+sell via asyncio.gather(), graduated rollback, partial fill recovery.
Signal Generator
Multi-criteria composite scoring: spread 30%, liquidity 15%, slippage 10%, freshness 10%, order flow 15%, execution quality 20%. Adaptive thresholds.
Risk Management
Circuit breaker, 2% daily loss limit, emergency stop, cooldown mechanism, spoofing detection, fake liquidity filtering. Auto crash recovery.
Fund Management
Central wallet management, AI-weighted distribution, auto-rebalance every 5min, cost-optimized routing (TRC20 vs BTC), predictive fund need forecasting.
Real-Time GUI
Professional dark-themed desktop interface with CustomTkinter. 4-column layout, live prices, spread heatmap, depth chart, P&L graph, AI log. 20Hz polling.
Database Layer
SQLAlchemy ORM + SQLite for trade records, P&L tracking, volatility history. Clean repository pattern data access layer with auto migration.
Supported Exchanges
Custom configuration per exchange: fee rates, withdrawal costs, rate limits, networks. 56 unique arbitrage pairs (8x7).
Execution Pipeline
From opportunity detection to trade execution — the full lifecycle of an arbitrage trade.
Price Feed (WebSocket + REST)
Real-time bid/ask/depth from 8 exchanges. 1000ms interval, WebSocket-first with REST fallback.
Spread Calculator
Net spread across all 56 exchange pairs. Dynamic per-exchange network fees included.
Signal Generator
Composite scoring: spread 30% + liquidity 15% + slippage 10% + freshness 10% + flow 15% + quality 20%
AI Advisor (GPT-4o)
Structured Output EXECUTE/SKIP/WAIT decision. Market sentiment, volatility, trade history analysis.
Risk Check (Failsafe)
Daily loss limit, open trade limit, cooldown check, circuit breaker, spoofing filter.
Smart Executor
Concurrent buy+sell via asyncio.gather(). Smart order type, adaptive timeout, partial fill recovery.
Post-Trade Learning & Rebalance
Result recording, execution quality tracking, automatic fund rebalancing, AI feedback loop.
Full Feature Set
Comprehensive capabilities developed across 7 implementation phases.
AI-Powered Decisions
GPT-4o Structured Output for intelligent trade decisions with post-trade learning
Paper Trading
Volume-aware slippage, per-exchange fees, order book depth simulation
Spread Heatmap
8x8 real-time spread matrix with color-coded opportunity visualization
Spoofing Detection
Tracks large orders, detects vanishing liquidity when price approaches
Auto-Rebalance
5-minute interval checks, TRC20/BTC cost optimization, predictive transfers
Adaptive Timeout
Per-exchange p95 latency x 2, clamped to [3s-15s], automatic adjustment
Order Flow Analysis
Bid/ask imbalance, CVD, VWAP drift, aggregate direction prediction
Adaptive Thresholds
Dynamic min spread based on volatility, automatic market condition adaptation
Central Wallet
USDT/BTC central wallet, AI-weighted distribution, auto profit collection
Crash Recovery
Orphan trade detection, automatic recovery, state restoration
Telegram Notifications
Trade, emergency, P&L and connection status push notifications
Detailed Reporting
Trade history, P&L analysis, exchange performance, AI cost tracking
Technology Stack
Production-grade infrastructure. Async Python, professional GUI, AI integration and robust database.
Python 3.11+ & asyncio
High-performance async event loop, concurrent tasks, type hints
OpenAI GPT-4o
Structured Outputs, Pydantic schemas, intelligent trade decisions
ccxt + WebSocket
Unified API for 8 exchanges, real-time feeds with REST fallback
CustomTkinter
Modern dark-themed desktop GUI, 1600x950, 15 panels, 20Hz refresh
SQLAlchemy + SQLite
ORM with repository pattern, trade records, P&L tracking
Fernet Encryption
API key encryption, .env secrets, secure credential management
Project Structure
7 modules, 70 Python files, 13,700+ lines of code.
Get Sourcex Octo
No Python installation required. Download the pre-built binary for your platform and the setup wizard will guide you.
Windows
v1.0.0 — Portable .exe- Windows 10 or later (64-bit)
- 4 GB RAM minimum
- 300 MB free disk space
- No Python needed
~144 MB (zip archive)
macOS
v1.0.0 — DMG Installer- macOS 12 Monterey or later
- Apple Silicon (M1+) or Intel
- 4 GB RAM minimum
- 300 MB free disk space
~160 MB (DMG image)
Source Code
v1.0.0 — Python 3.11+- Python 3.11 or later
- pip package manager
- Windows / macOS / Linux
- 27 dependencies (auto-installed)
~2 MB (zip archive)
Ready to Deploy Sourcex Octo?
Get in touch with our team to learn more about institutional access and whitelabel integration.