About Strategies Architecture Docs Blog GitHub
Italiano English
SYS_ARCH // VER_2.0

The Engine Room.

CryptoQuantix is not just a script; it is a battle-tested, modular, and containerized quantitative ecosystem. Dive into the tech stack that powers our macro-cyclical trend following execution.

System Architecture

Fig 1. High-Level Node Topology

Core Technologies

Polars & Pandas

For walk-forward backtesting, traditional Pandas was too slow. We migrated the massive tick-level data ingestion pipelines to Polars (written in Rust) for hyper-fast DataFrame manipulation, cutting backtest matrix processing times by 85%.

Docker Swarm

The Risk Engine, Data Feed, and Strategy modules run in isolated Docker containers. If the WebSocket feed crashes, it is rebooted independently without ever affecting the Risk Engine's persistent state, ensuring 99.99% operational uptime.

Asyncio Pipeline

Built entirely on Python 3.12 asyncio. Execution orders are fired concurrently across multiple exchanges (Binance, Deribit, Bybit) without blocking the main event loop, minimizing latency during volatile breakout events.

RISK_DAEMON // V1.0

The Kill Switch Daemon.

Our institutional-grade Risk Protocol is entirely decoupled from the strategy logic. It acts as an omnipresent daemon that monitors the global portfolio equity.

If the rolling 24-hour drawdown exceeds 3.0%, the daemon assumes a flash crash or algorithmic anomaly is occurring. It bypasses the strategy engine, forcefully liquidates all active positions, cancels pending limit orders, and shuts down the core execution loop.

  • Protects against Exchange Outages
  • Mitigates Flash Crashes
risk_daemon.py
async def monitor_global_drawdown(portfolio):
    # Continuously calculate 24h rolling equity
    while True:
        equity = await portfolio.get_live_equity()
        peak = portfolio.get_rolling_peak(window=24)
        drawdown = (peak - equity) / peak

        if drawdown >= 0.03: # 3% Threshold breached
            logger.critical("KILL SWITCH ACTIVATED: 3% DD")
            
            await portfolio.cancel_all_orders()
            await portfolio.flatten_all_positions(type='MARKET')
            
            # Dispatch emergency webhook
            await telegram_alert.send_critical_panic()
            
            raise SystemExit("Halted by Risk Daemon.")
            
        await asyncio.sleep(1) # 1-second resolution

Fork The Architecture.

The entire backend infrastructure, from the Polars backtesting matrix to the async WebSocket consumers, is open-source. Build upon it, verify our claims, or deploy it to your own cloud instances.