Task
The client wanted to copy the trades of successful traders automatically. Doing it by hand is physically impossible because of how often they trade. While you switch tabs and repeat a trade, the entry point is gone, and the potential profit with it.
Solution
I wrote a Python bot that tracks the source trades in real time and mirrors them to the client's account instantly. The bot scales the position size to the deposit and enforces risk limits, so trades scale safely to any account. Everything runs in Docker, so the bot is deployed to a server with one command and runs around the clock without manual work.
What was done
- Wrote a Python bot that mirrors the lead trader's trades in real time
- Made trades copy instantly without missing the entry point
- Added position sizing scaled to the client's account
- Added risk limits for scaling to any deposit
- Packaged the bot in Docker to run around the clock on a server
Result
Trades are copied with no delay for manual input and no missed entries. The bot runs in a container on a server without supervision. In the first month it made the client 6,000 dollars in profit with a well chosen lead trader.
Technologies
PythonWebSocketAPI