gwrxuk/CPUHFT ? reverse-engineered prompt
Reverse engineered prompt
Build me a Rust app that acts like a small high frequency trading infrastructure demo.
I want it to show the whole flow in one place, from low latency TCP setup, to market data ticks and signal distribution, to a fast order placement path with slippage limits, to risk checks like max position, order size, daily loss, and circuit breaker style alerts. It should also be able to pick the lowest latency AWS region from a few choices, route orders across exchanges and track whether the routing improves on a baseline, and include a simple high concurrency storage layer for fast reads and writes.
Please make it run from the command line, include tests, and add benchmarks if that fits. If anything in the current docs is unclear, look up the current Rust docs online and fill in sensible defaults. I’d like it to feel like a realistic prototype that could be expanded into a production system later, not just a toy example.
Are you gonna build this?
make sure you review the code using coderabbit