NEUROMARKET
Trading strategies that evolve inside a simulated market
A C++20 market simulator in WebAssembly where trading strategies compete, mutate and evolve, live in 3D.
- Role
- Solo project
- Category
- Quantitative Finance / AI / High Performance Computing
- Status
- Live
- Stack
- C++20
- WebAssembly
- TypeScript
- Next.js
- React Three Fiber
- Three.js
- Python
- CMake
- Web Workers
- Vercel

(01) What it is
The project
An interactive artificial financial ecosystem powered by a C++20 simulation engine, WebAssembly, and neuroevolution. Autonomous trading agents compete, mutate, and evolve across synthetic market environments while users explore their behavior through real time 3D visualization and quantitative analytics.
Every glowing organism on screen is a real trading strategy living inside a C++20 market simulator: momentum and mean reversion traders, market makers, random baselines and small neural networks. They all trade through the same price time priority order book, pay fees, hit risk limits and get scored on return, Sharpe ratio, drawdown and turnover. After each generation the fittest survive, the rest are replaced by mutated and crossed over offspring, and you can watch it happen live in 3D. The engine is compiled to WebAssembly and runs in a Web Worker, so the whole simulation runs in your browser.
I cared most about not fooling myself. Training scenarios change every generation, the champion is picked only on separate validation scenarios, and a third set of test scenarios is used for the out of sample report against six baselines. Every run is deterministic: each generation records a hash of the whole population, and the app can replay a saved experiment and check every hash. The numbers are synthetic and the README says so, including the runs where evolution did not beat its own first generation.
(02) Details
How it works
- 01Order book handles about 17 million mixed operations per second natively, with a median of 42 ns per operation
- 02A full generation of 100 organisms over 3 scenarios of 400 ticks takes 191 ms natively and 363 ms in WebAssembly
- 03Neural organisms are 12 to 32 to 16 to 5 networks evolved without gradients, and the inspector draws the real weights and activations
- 04Replaying a saved experiment reproduces every generation hash exactly, in Node and in Chrome
- 0553 GoogleTest cases including property tests for cash and inventory conservation, also run under AddressSanitizer and UBSan
- 066 Playwright tests drive the real engine end to end, and all of them pass against the live site
(03) Screenshots


