shubhamsinghbundela/centralized-exchange ? reverse-engineered prompt

Reverse engineered prompt

Build me a small centralized crypto exchange app that feels production ready, but still simple enough to run locally.

I want users to be able to sign up and log in with JWT, deposit funds, check their balance, place limit and market orders, cancel open orders, and see their order history and trade history. The matching should happen in memory so trades happen fast, and the order book should update in real time over WebSockets so the UI can watch market depth change as orders come in.

Please make the backend, matching engine, and websocket updates work as separate parts that talk through Redis, and save enough state so the app can recover after a restart. Use PostgreSQL for persistence, and set it up so it can run with Docker. If anything needs current library or framework details, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab