Getting Started
3 min read

How Stratium Works

How Stratium works — target wallet monitoring, trade detection, and sub-second copy execution via Jupiter API and Jito bundles.

Architecture Overview

Stratium is built as a set of specialized microservices that work together to deliver sub-second copy trading on Solana. Here's how each piece fits into the pipeline.

Stratium microservices architecture

The Copy Trading Pipeline

Every copy trade goes through three phases:

Trade execution pipeline

Phase 1: Detection

Stratium maintains persistent WebSocket connections to Solana RPC nodes, monitoring the on-chain activity of curated target wallets in real-time.

When a target wallet submits a transaction that involves a token swap (buy or sell), Stratium's transaction parser identifies:

  • The token being traded
  • The direction (buy or sell)
  • The amount in SOL terms
  • The DEX used (Jupiter, Raydium, Orca, etc.)

This detection happens in under 200 milliseconds from the time the transaction hits the network.

Phase 2: Analysis & Sizing

Before executing, the copy trading engine runs a series of checks:

  • Balance check — Does the user have enough SOL to execute this trade?
  • Scaling calculation — The trade amount is scaled based on the user's assigned scaling factor (e.g., 0.1x means a 10 SOL trade becomes a 1 SOL trade for you)
  • Position cap — Does this trade exceed the user's maximum position size?
  • Minimum reserve — Will the user still have enough SOL for transaction fees after this trade?
  • Duplicate detection — Has this exact trade already been copied?

If all checks pass, the trade moves to execution.

Phase 3: Execution

Stratium uses a two-pronged approach for optimal execution:

  1. Jupiter API — Routes the swap through the best available liquidity pools across 20+ DEXes on Solana. Jupiter finds the optimal path to minimize slippage and maximize the tokens received.

  2. Jito Bundles — Submits the transaction via Jito's block engine with a priority tip. This ensures the transaction lands in the next block with high reliability, even during congestion.

The result: trades execute in under 1 second from detection to on-chain confirmation.

Key Components

WebSocket Manager

Maintains shared WebSocket connections to Solana nodes. Multiple users watching the same target wallet share a single connection, making the system efficient even with thousands of users.

Copy Trading Engine

The brain of the system. Receives trade signals, applies per-user scaling and risk rules, and submits transactions. Processes trades in parallel for all affected users when a target wallet trades.

Wallet Manager

Handles wallet creation, encryption (AES-256), and transaction signing. Private keys are encrypted at rest and only decrypted momentarily during transaction signing.

Assignment Service

Manages which target wallets are assigned to which users. Handles strategy grouping, assignments, and dynamic rebalancing.

Performance Tracker

Tracks every trade's outcome — entry price, exit price, realized P&L, unrealized P&L. Provides the data for portfolio analytics and strategy performance metrics.

Trade Execution Flow

Here's the complete flow when a target wallet makes a trade:

  1. WebSocket receives the target wallet's transaction
  2. Transaction parser identifies it as a swap and extracts details
  3. Message queue distributes the signal to the copy trading engine
  4. Engine queries all users assigned to this target wallet
  5. For each user, the engine:
    • Calculates the scaled trade amount
    • Checks balance and risk limits
    • Builds the swap transaction via Jupiter
    • Signs with the user's encrypted key
    • Submits via Jito bundle
  6. Confirmation is received and the trade is logged
  7. User is notified via Telegram with trade details

Supported DEXes

Stratium routes through Jupiter, which aggregates liquidity from 20+ Solana DEXes including:

  • Jupiter (aggregator)
  • Raydium (AMM + CLMM)
  • Orca (Whirlpools)
  • Meteora
  • Phoenix
  • Lifinity
  • And many more

This means Stratium can trade any token that has liquidity on any major Solana DEX.

Reliability & Monitoring

  • Automatic reconnection — WebSocket connections auto-reconnect on failure
  • Retry logic — Failed transactions are retried with adjusted parameters
  • Health monitoring — All services are continuously monitored with alerts
  • Trade logging — Every trade attempt (successful or failed) is logged for transparency

Learn More

Ready to start trading?

Get started with Stratium in under 30 seconds via Telegram.

Start Trading