2.4.5.3 Copy Trading Execution
1. Lead trader initiates a trade.
2. Transaction block in PostgreSQL ensures the trade is recorded for the lead, and each follower’s corresponding trade is created atomically.
3. If market data is needed, the backend fetches it from the cache or external API.
4. Results (trade confirmations, updated balances) are stored in Trades table and broadcast to clients.
Last updated