2.3.5.2 Trade Signals

• Lead Trader: When this user executes a trade (detected via on-chain event or API callback), the system sends a tradeSignal event to all followers.

• Listener: React or iOS clients respond by updating the UI, prompting the user to copy the trade or auto-execute if they have that setting enabled.

// On detecting a new on-chain trade
io.to(followerList).emit('tradeSignal', {
  trader: leadTraderId,
  coin: 'DOGE',
  action: 'BUY',
  amount: 1000,
  timestamp: Date.now()
});

Last updated