Stock Exchange
A simulated stock exchange and trading terminal: price-time priority matching engine with limit, market, stop and stop-limit orders (GTC, Day, IOC, FOK), market-making bots, depth charts, technical indicators and demo accounts with P&L tracking.
A trading screen has to show the truth in real time. This simulated exchange matches buyers and sellers by price and then by time, supports limit, market, stop and stop-limit orders, and shows depth charts, indicators and profit and loss as trades happen.
Trading bots keep the market alive so there is always something to trade. It is a good base for a trading simulator for education, a demo for a financial product, or any application with live order books and charts.
What it shows
- Matching engine
- WebSockets
- Options
How it is built
- A working web application you can open and use, built with Next.js, React and TypeScript.
- A NestJS API with 19 endpoints, so the data is real and not a mock-up.
- A PostgreSQL database with 8 tables of its own, filled with realistic sample data.
- One shared TypeScript contract between the screens and the API, so the two cannot drift apart.
- 8 automated test files that run on every change.
What we could build for you
A trading simulator or exchange demo with live order books and charts.