Copy-Trading & Signal Replication System

VampedAlpha’s copy-trading module enables users to mirror the behavior of a “leader” wallet or algorithmic strategy. The system operates as a low-latency replication pipeline: detecting leader trades on-chain, normalizing them, and executing corresponding follower transactions.

At its core is a trade listener subscribing to Solana’s confirmed transaction stream. By filtering transactions involving specific leader addresses and known DEX programs, the module reconstructs the leader’s intent (token pair, size, direction, slippage). This information is then broadcast on the internal event bus as a LeaderSignal event.

A mapping engine transforms these leader signals into follower trades. Parameters such as trade size scaling (e.g., 0.5x of leader volume), maximum exposure per asset, and allowed token lists are applied. This mapping logic runs through a risk-aware transformation layer, ensuring that no follower exceeds their configured position or exposure limits.

Concurrency and latency handling are vital in this subsystem. Solana’s high TPS means a follower must execute within seconds of a leader to maintain parity. VampedAlpha uses an event-driven concurrency model with persistent queues (e.g., Redis Streams or internal memory queues) to guarantee delivery order and fault recovery. If a signal fails mid-pipeline, it’s retried with exponential delay until successful or expired.

For transparency and debugging, every mirrored trade is tagged with a reference to the leader transaction signature. These tags appear in logs, dashboards, and audit exports. Users can verify exact replication and latency metrics, fostering trust and accountability—critical features that differentiate reliable bots from unsafe imitators.

Last updated