An order matching engine written in C++ and compiled to WebAssembly, running in this page. It keeps a book of buy and sell orders for a few example products and trades them when the prices meet. Nothing here talks to a server. Source on GitHub.
Loading the engine
Each button fills in the order form and sends a real order to the engine.
Results show up here, in the trades list and in your account.
Orders waiting to trade, top 10 prices a side. Asks are sell orders, bids are buy orders. Click a row to trade against it.
You are account 0. A buy at or above the lowest ask, or a sell at or below the highest bid, trades.
Newest first. Side is the incoming order that traded with a resting one. Rows marked you are yours.