r/buildinpublic • u/Arrrpiit • 45m ago
I built a multi-user algo trading platform as a solo dev: Python workers, an Android control app and 350+ tests. Here's the architecture and everything that broke
Built over 6 months and 16 versions. Today's paper session made ₹19k (screenshot), but the engineering is the interesting part.
Architecture
One isolated worker process per account on an Ubuntu VPS, managed by systemd
A paper engine that reads the live market feed over a Unix socket, with no broker credentials and capped CPU and memory
A native Android app with encrypted pairing, live alerts and an emergency stop
328 Python tests plus 25 Android tests run before every release, using fake brokers and real worker processes
What broke in production
Limit entries missed fills on fast opens, so I switched to stop-limit orders with a sweep buffer.
Stop-market orders were rejected by the broker API without market protection, so I moved to stop-limit orders and added a regression test.
A strategy behaved differently live than in its backtest, so it's now paper-only until proven.
Lessons: test the boring failure paths, keep paper and live completely separate, and never trust a backtest without slippage.
Happy to go deeper on any part. What would you have built differently?