IDEAS home Printed from https://ideas.repec.org/a/wly/isacfm/v31y2024i2ne1553.html
   My bibliography  Save this article

Neural stochastic agent‐based limit order book simulation with neural point process and diffusion probabilistic model

Author

Listed:
  • Zijian Shi
  • John Cartlidge

Abstract

Modern financial exchanges use an electronic limit order book (LOB) to store bid and ask orders for a specific financial asset. As the most fine‐grained information depicting the demand and supply of an asset, LOB data are essential in understanding market dynamics. Therefore, realistic LOB simulations offer a valuable methodology for explaining the empirical properties of markets. Mainstream simulation models include agent‐based models (ABMs) and stochastic models (SMs). However, ABMs tend not to be grounded on real historical data, whereas SMs tend not to enable dynamic agent‐interaction. More recently, deep generative approaches have been successfully implemented to tackle these issues, whereas its black‐box essence hampers the explainability and transparency of the system. To overcome these limitations, we propose a novel hybrid neural stochastic agent‐based model (NS‐ABM) for LOB simulation that incorporates a neural stochastic trader in agent‐based simulation, characterised by (1) representing the aggregation of market events' logic by a neural stochastic background trader that is pre‐trained on historical LOB data through a neural point process model; (2) learning the complex distribution for order‐related attributes conditioned on various market indicators through a non‐parametric diffusion probabilistic model; and (3) embedding the background trader in a multi‐agent simulation platform to enable interaction with other strategic trading agents. We instantiate this hybrid NS‐ABM model using the ABIDES platform. We first run the background trader in isolation and show that the simulated LOB can recreate a comprehensive list of stylised facts that demonstrate realistic market behaviour. We then introduce a population of ‘trend’ and ‘value’ trading agents, which interact with the background trader. We show that the stylised facts remain and we demonstrate order flow impact and financial herding behaviours that are in accordance with empirical observations of real markets.

Suggested Citation

  • Zijian Shi & John Cartlidge, 2024. "Neural stochastic agent‐based limit order book simulation with neural point process and diffusion probabilistic model," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 31(2), June.
  • Handle: RePEc:wly:isacfm:v:31:y:2024:i:2:n:e1553
    DOI: 10.1002/isaf.1553
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/isaf.1553
    Download Restriction: no

    File URL: https://libkey.io/10.1002/isaf.1553?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Thierry Foucault & Ohad Kadan & Eugene Kandel, 2005. "Limit Order Book as a Market for Liquidity," The Review of Financial Studies, Society for Financial Studies, vol. 18(4), pages 1171-1217.
    2. Rama Cont & Arseniy Kukanov & Sasha Stoikov, 2014. "The Price Impact of Order Book Events," Journal of Financial Econometrics, Oxford University Press, vol. 12(1), pages 47-88.
    3. Wah, Elaine & Wellman, Michael P., 2016. "Latency arbitrage in fragmented markets: A strategic agent-based analysis," Algorithmic Finance, IOS Press, vol. 5(3-4), pages 69-93.
    4. Mr. Sunil Sharma & Sushil Bikhchandani, 2000. "Herd Behavior in Financial Markets: A Review," IMF Working Papers 2000/048, International Monetary Fund.
    5. Rama Cont & Sasha Stoikov & Rishi Talreja, 2010. "A Stochastic Model for Order Book Dynamics," Operations Research, INFORMS, vol. 58(3), pages 549-563, June.
    6. Biais, Bruno & Hillion, Pierre & Spatt, Chester, 1995. "An Empirical Analysis of the Limit Order Book and the Order Flow in the Paris Bourse," Journal of Finance, American Finance Association, vol. 50(5), pages 1655-1689, December.
    7. Nawn, Samarpan & Banerjee, Ashok, 2019. "Do the limit orders of proprietary and agency algorithmic traders discover or obscure security prices?," Journal of Empirical Finance, Elsevier, vol. 53(C), pages 109-125.
    8. Bruno Biais & Thierry Foucault, 2014. "HFT and Market Quality," Bankers, Markets & Investors, ESKA Publishing, issue 128, pages 5-19, January-F.
    9. Efstathios Panayi & Gareth Peters, 2015. "Stochastic simulation framework for the Limit Order Book using liquidity motivated agents," Papers 1501.02447, arXiv.org, revised Jan 2015.
    10. Efstathios Panayi & Gareth W. Peters, 2015. "Stochastic simulation framework for the limit order book using liquidity-motivated agents," International Journal of Financial Engineering (IJFE), World Scientific Publishing Co. Pte. Ltd., vol. 2(02), pages 1-52.
    11. Justin Sirignano & Rama Cont, 2019. "Universal features of price formation in financial markets: perspectives from deep learning," Quantitative Finance, Taylor & Francis Journals, vol. 19(9), pages 1449-1459, September.
    12. Jean-Philippe Bouchaud & Marc Mezard & Marc Potters, 2002. "Statistical properties of stock order books: empirical results and models," Science & Finance (CFM) working paper archive 0203511, Science & Finance, Capital Fund Management.
    13. Jun-Jie Chen & Bo Zheng & Lei Tan, 2013. "Agent-Based Model with Asymmetric Trading and Herding for Complex Financial Systems," PLOS ONE, Public Library of Science, vol. 8(11), pages 1-11, November.
    14. Xintong Wang & Christopher Hoang & Yevgeniy Vorobeychik & Michael P. Wellman, 2021. "Spoofing the Limit Order Book: A Strategic Agent-Based Analysis," Games, MDPI, vol. 12(2), pages 1-43, May.
    15. Rama Cont & Adrien de Larrard, 2013. "Price Dynamics in a Markovian Limit Order Market," Post-Print hal-00552252, HAL.
    16. Zhou, Rhea Tingyu & Lai, Rose Neng, 2009. "Herding and information based trading," Journal of Empirical Finance, Elsevier, vol. 16(3), pages 388-393, June.
    17. Schulmeister, Stephan, 2009. "Profitability of technical stock trading: Has it moved from daily to intraday data?," Review of Financial Economics, Elsevier, vol. 18(4), pages 190-201, October.
    18. Fama, Eugene F, 1991. "Efficient Capital Markets: II," Journal of Finance, American Finance Association, vol. 46(5), pages 1575-1617, December.
    19. Frank McGroarty & Ash Booth & Enrico Gerding & V. L. Raju Chinthalapati, 2019. "High frequency trading strategies, market fragility and price spikes: an agent based model perspective," Annals of Operations Research, Springer, vol. 282(1), pages 217-244, November.
    20. Álvaro Cartea & Ryan Donnelly & Sebastian Jaimungal, 2018. "Enhancing trading strategies with order book signals," Applied Mathematical Finance, Taylor & Francis Journals, vol. 25(1), pages 1-35, January.
    21. Naes, Randi & Skjeltorp, Johannes A., 2006. "Order book characteristics and the volume-volatility relation: Empirical evidence from a limit order market," Journal of Financial Markets, Elsevier, vol. 9(4), pages 408-432, November.
    22. Jean-Philippe Bouchaud & Marc Mezard & Marc Potters, 2002. "Statistical properties of stock order books: empirical results and models," Quantitative Finance, Taylor & Francis Journals, vol. 2(4), pages 251-256.
    23. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    24. Naomi E. Boyd & Bahattin Büyükşahin & Michael S. Haigh & Jeffrey H. Harris, 2016. "The Prevalence, Sources, and Effects of Herding," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 36(7), pages 671-694, July.
    25. Qiwei Chen & Xiuping Hua & Ying Jiang, 2018. "Contrarian strategy and herding behaviour in the Chinese stock market," The European Journal of Finance, Taylor & Francis Journals, vol. 24(16), pages 1552-1568, November.
    26. Robert Almgren, 2003. "Optimal execution with nonlinear impact functions and trading-enhanced risk," Applied Mathematical Finance, Taylor & Francis Journals, vol. 10(1), pages 1-18.
    27. A. Gareche & G. Disdier & J. Kockelkoren & J. -P. Bouchaud, 2013. "A Fokker-Planck description for the queue dynamics of large tick stocks," Papers 1304.6819, arXiv.org.
    28. Eun Jung Lee, 2015. "High Frequency Trading in the Korean Index Futures Market," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 35(1), pages 31-51, January.
    29. Gao-Feng Gu & Wei-Xing Zhou, 2008. "Emergence of long memory in stock volatility from a modified Mike-Farmer model," Papers 0807.4639, arXiv.org, revised May 2009.
    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. Zijian Shi & John Cartlidge, 2023. "Neural Stochastic Agent-Based Limit Order Book Simulation: A Hybrid Methodology," Papers 2303.00080, arXiv.org.
    2. Johannes Bleher & Michael Bleher & Thomas Dimpfl, 2020. "From orders to prices: A stochastic description of the limit order book to forecast intraday returns," Papers 2004.11953, arXiv.org, revised May 2021.
    3. Hai-Chuan Xu & Wei Chen & Xiong Xiong & Wei Zhang & Wei-Xing Zhou & H Eugene Stanley, 2016. "Limit-order book resiliency after effective market orders: Spread, depth and intensity," Papers 1602.00731, arXiv.org, revised Feb 2017.
    4. Martin D. Gould & Mason A. Porter & Stacy Williams & Mark McDonald & Daniel J. Fenn & Sam D. Howison, 2010. "Limit Order Books," Papers 1012.0349, arXiv.org, revised Apr 2013.
    5. Matthias Schnaubelt & Jonas Rende & Christopher Krauss, 2019. "Testing Stylized Facts of Bitcoin Limit Order Books," JRFM, MDPI, vol. 12(1), pages 1-30, February.
    6. repec:hum:wpaper:sfb649dp2014-053 is not listed on IDEAS
    7. Bibinger, Markus & Jirak, Moritz & Reiss, Markus, 2014. "Improved volatility estimation based on limit order books," SFB 649 Discussion Papers 2014-053, Humboldt University Berlin, Collaborative Research Center 649: Economic Risk.
    8. Martin D. Gould & Mason A. Porter & Stacy Williams & Mark McDonald & Daniel J. Fenn & Sam D. Howison, 2013. "Limit order books," Quantitative Finance, Taylor & Francis Journals, vol. 13(11), pages 1709-1742, November.
    9. Philippe Bergault & Enzo Cogn'eville, 2024. "Simulating and analyzing a sparse order book: an application to intraday electricity markets," Papers 2410.06839, arXiv.org.
    10. Johannes Bleher & Michael Bleher, 2024. "An Algebraic Framework for the Modeling of Limit Order Books," Papers 2406.04969, arXiv.org.
    11. Mohammad Zare & Omid Naghshineh Arjmand & Erfan Salavati & Adel Mohammadpour, 2021. "An Agent‐Based model for Limit Order Book: Estimation and simulation," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(1), pages 1112-1121, January.
    12. Kyungsub Lee & Byoung Ki Seo, 2021. "Analytic formula for option margin with liquidity costs under dynamic delta hedging," Papers 2103.15302, arXiv.org.
    13. Ioane Muni Toke, 2013. "The order book as a queueing system: average depth and influence of the size of limit orders," Papers 1311.5661, arXiv.org.
    14. Colin M. Van Oort & Ethan Ratliff-Crain & Brian F. Tivnan & Safwan Wshah, 2023. "Adaptive Agents and Data Quality in Agent-Based Financial Markets," Papers 2311.15974, arXiv.org.
    15. Mircea BAHNA & Cosmin-Octavian CEPOI & Bogdan Andrei DUMITRESCU & Virgil DAMIAN, 2018. "Estimating the Price Impact of Market Orders on the Bucharest Stock Exchange," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 120-133, December.
    16. Marvin S. Mueller, 2016. "A stochastic Stefan-type problem under first-order boundary conditions," Papers 1601.03968, arXiv.org, revised Oct 2018.
    17. M. Derksen & B. Kleijn & R. de Vilder, 2019. "Clearing price distributions in call auctions," Papers 1904.07583, arXiv.org, revised Nov 2019.
    18. Ioane Muni Toke, 2015. "The order book as a queueing system: average depth and influence of the size of limit orders," Post-Print hal-01006410, HAL.
    19. Lallouache, Mehdi & Abergel, Frédéric, 2014. "Tick size reduction and price clustering in a FX order book," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 416(C), pages 488-498.
    20. Ulrich Horst & Michael Paulsen, 2017. "A Law of Large Numbers for Limit Order Books," Mathematics of Operations Research, INFORMS, vol. 42(4), pages 1280-1312, November.

    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:wly:isacfm:v:31:y:2024:i:2:n:e1553. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www.interscience.wiley.com/jpages/1099-1174/ .

    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.