IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2510.08085.html

A Deterministic Limit Order Book Simulator with Hawkes-Driven Order Flow

Author

Listed:
  • Sohaib El Karmi

Abstract

We present a reproducible research framework for market microstructure combining a deterministic C++ limit order book (LOB) simulator with stochastic order flow generated by multivariate marked Hawkes processes. The paper derives full stability and ergodicity proofs for both linear and nonlinear Hawkes models, implements time-rescaling and goodness-of-fit diagnostics, and calibrates exponential and power-law kernels on Binance BTCUSDT and LOBSTER AAPL datasets. Empirical results highlight the nearly-unstable subcritical regime as essential for reproducing realistic clustering in order flow. All code, datasets, and configuration files are publicly available at https://github.com/sohaibelkarmi/High-Frequency-Trading-Simulator

Suggested Citation

  • Sohaib El Karmi, 2025. "A Deterministic Limit Order Book Simulator with Hawkes-Driven Order Flow," Papers 2510.08085, arXiv.org.
  • Handle: RePEc:arx:papers:2510.08085
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2510.08085
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Bowsher, Clive G., 2007. "Modelling security market events in continuous time: Intensity based, multivariate point process models," Journal of Econometrics, Elsevier, vol. 141(2), pages 876-912, December.
    2. Weibing Huang & Charles-Albert Lehalle & Mathieu Rosenbaum, 2015. "Simulating and Analyzing Order Book Data: The Queue-Reactive Model," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 110(509), pages 107-122, March.
    3. P. A. W Lewis & G. S. Shedler, 1979. "Simulation of nonhomogeneous poisson processes by thinning," Naval Research Logistics Quarterly, John Wiley & Sons, vol. 26(3), pages 403-413, September.
    4. Rama Cont & Adrien de Larrard, 2013. "Price Dynamics in a Markovian Limit Order Market," Post-Print hal-00552252, HAL.
    5. Thibault Jaisson & Mathieu Rosenbaum, 2013. "Limit theorems for nearly unstable Hawkes processes," Papers 1310.2033, arXiv.org, revised Mar 2015.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Paul Jusselin & Mathieu Rosenbaum, 2020. "No‐arbitrage implies power‐law market impact and rough volatility," Mathematical Finance, Wiley Blackwell, vol. 30(4), pages 1309-1336, October.
    2. Da Fonseca, José & Malevergne, Yannick, 2021. "A simple microstructure model based on the Cox-BESQ process with application to optimal execution policy," Journal of Economic Dynamics and Control, Elsevier, vol. 128(C).
    3. Aur'elien Alfonsi & Pierre Blanc, 2014. "Dynamic optimal execution in a mixed-market-impact Hawkes price model," Papers 1404.0648, arXiv.org, revised Jun 2015.
    4. Emmanuel Bacry & Thibault Jaisson & Jean-Francois Muzy, 2014. "Estimation of slowly decreasing Hawkes kernels: Application to high frequency order book modelling," Papers 1412.7096, arXiv.org.
    5. Aurélien Alfonsi & Pierre Blanc, 2016. "Dynamic optimal execution in a mixed-market-impact Hawkes price model," Finance and Stochastics, Springer, vol. 20(1), pages 183-218, January.
    6. Maxime Morariu-Patrichi & Mikko S. Pakkanen, 2017. "Hybrid marked point processes: characterisation, existence and uniqueness," Papers 1707.06970, arXiv.org, revised Oct 2018.
    7. Aurélien Alfonsi & Pierre Blanc, 2016. "Dynamic optimal execution in a mixed-market-impact Hawkes price model," Finance and Stochastics, Springer, vol. 20(1), pages 183-218, January.
    8. Qi Guo & Bruno Remillard & Anatoliy Swishchuk, 2020. "Multivariate General Compound Point Processes in Limit Order Books," Risks, MDPI, vol. 8(3), pages 1-20, September.
    9. Thibault Jaisson, 2014. "Market impact as anticipation of the order flow imbalance," Papers 1402.1288, arXiv.org.
    10. Jonathan A. Chávez Casillas, 2024. "A Time-Dependent Markovian Model of a Limit Order Book," Computational Economics, Springer;Society for Computational Economics, vol. 63(2), pages 679-709, February.
    11. Lee, Kyungsub & Seo, Byoung Ki, 2017. "Marked Hawkes process modeling of price dynamics and volatility estimation," Journal of Empirical Finance, Elsevier, vol. 40(C), pages 174-200.
    12. Philippe Bergault & Enzo Cogn'eville, 2024. "Simulating and analyzing a sparse order book: an application to intraday electricity markets," Papers 2410.06839, arXiv.org.
    13. Cavaliere, Giuseppe & Lu, Ye & Rahbek, Anders & Stærk-Østergaard, Jacob, 2023. "Bootstrap inference for Hawkes and general point processes," Journal of Econometrics, Elsevier, vol. 235(1), pages 133-165.
    14. Thibault Jaisson & Mathieu Rosenbaum, 2015. "Rough fractional diffusions as scaling limits of nearly unstable heavy tailed Hawkes processes," Papers 1504.03100, arXiv.org.
    15. Julio A. Crego, 2017. "Short Selling Ban and Intraday Dynamics," Working Papers wp2018_1715, CEMFI.
    16. Ulrich Horst & Wei Xu, 2024. "Functional Limit Theorems for Hawkes Processes," Papers 2401.11495, arXiv.org, revised Dec 2024.
    17. Xiaofei Lu & Frédéric Abergel, 2017. "Limit order book modelling with high dimensional Hawkes processes," Working Papers hal-01512430, HAL.
    18. Omar Euch & Masaaki Fukasawa & Mathieu Rosenbaum, 2018. "The microstructural foundations of leverage effect and rough volatility," Finance and Stochastics, Springer, vol. 22(2), pages 241-280, April.
    19. Miko{l}aj Bi'nkowski & Charles-Albert Lehalle, 2018. "Endogeneous Dynamics of Intraday Liquidity," Papers 1811.03766, arXiv.org.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2510.08085. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.