Monte Carlo simulation of six products, including path-dependent Asian, barrier and lookback options, over 252 trading days, with Delta, Gamma and Vega. The whole engine is ~150 lines of plain Kotlin. Kernelin compiles it to a WebGPU shader; the same code is unit-tested on the JVM.
| Product | Price | ± 95% | Exact formula | Check | Delta | Gamma | Vega (1 pt) |
|---|---|---|---|---|---|---|---|
| Run a report to fill this table. | |||||||
Barrier, Asian and lookback payoffs depend on the whole price path. Monte Carlo is the industry method, and it needs millions of paths for a stable price and stable greeks.
Every greek is another full simulation. A book of hundreds of trades, repriced on every market move, is exactly the workload banks buy GPU farms for.
Usually this means CUDA or C++ kernels next to the Kotlin service. Here the pricer is one Kotlin function: tested on the JVM, run on any GPU through WebGPU.
loading…