nano_match · C++ compiled to WebAssembly

Trade against a real order book

Orders on this page go through OrderBook::limit and OrderBook::cancel from src/order_book.cpp, asserts and all. The book never allocates after it is built: a full book rejects, it does not grow.

Depth

Click a price to fill it into the order ticket. Hover a level to see its queue.

Order ticket

Your resting orders

idsidepriceleft

none

Market

-best bid
-best ask
0resting
0trades

Trade tape

takerpriceqtymaker

Benchmark, inside WebAssembly

The two phases from src/main.cpp: random limit orders into a cold book, then the identical load into a book already holding its full population. Requests are generated outside the timed loop. Native numbers are in the README; WebAssembly has no -march=native, and the prefetch hint compiles to nothing, so both lookahead settings should measure about the same here.

lookaheadphase 1, cold bookphase 2, at the limitcost of a full book