Search papers, labs, and topics across Lattice.
FlowLOB is a novel conditional flow-matching generator for limit order book (LOB) trajectories, designed to efficiently simulate realistic market dynamics while maintaining controllability and generalization to unseen instruments. By training on multiple symbols from the Hong Kong Exchange at varying sampling frequencies, FlowLOB demonstrates superior sampling efficiency and fidelity compared to traditional diffusion models and agent-based approaches, achieving high realism with significantly fewer ODE-solver steps. The model not only excels in distributional metrics but also allows for effective counterfactual scenario manipulation, showcasing its practical applicability in financial simulations.
FlowLOB achieves high-fidelity limit order book simulations with remarkable efficiency, outperforming traditional methods in both realism and controllability.
Limit order book (LOB) simulators are most useful to practitioners when they combine realistic market dynamics, computationally efficient sampling, controllable scenario generation, and the ability to generalize beyond the instruments seen during training---properties that existing agent-based and deep generative simulators provide only partially. We present \textbf{FlowLOB}, a conditional \textbf{flow}-matching generator of \textbf{LOB} trajectories, trained on multiple Hong Kong Exchange (HKEX) symbols at three sampling frequencies ($0.1$s, $1$s, $10$s) in tick-relative representation that transfers to unseen instruments. Because flow and diffusion models admit a common formulation, we train both with identical data, architecture, and budget, and sample both through the same fixed-step ODE solvers, yielding a controlled comparison of sampling efficiency and fidelity. Flow matching attains its best quality with only $10$ ODE-solver steps, whereas diffusion needs many more function evaluations to approach the same fidelity. At this efficient operating point, FlowLOB improves realism over baselines, two learned and two agent-based models, in most distributional metrics at the two finer sampling frequencies. We evaluate counterfactual controllability with a distributional test that asks whether changing a scenario condition moves the generated statistic toward the corresponding real tail regime; FlowLOB satisfies this criterion in most tested settings. Both realism and control effects transfer zero-shot on a held-out symbol. We additionally conduct ablation studies on the network architecture and the learning rate.