IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2303.00080.html
   My bibliography  Save this paper

Neural Stochastic Agent-Based Limit Order Book Simulation: A Hybrid Methodology

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 is essential in understanding market dynamics. Therefore, realistic LOB simulations offer a valuable methodology for explaining 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, while SMs tend not to enable dynamic agent-interaction. To overcome these limitations, we propose a novel hybrid LOB simulation paradigm 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; and (2) embedding the background trader in a multi-agent simulation with other 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, 2023. "Neural Stochastic Agent-Based Limit Order Book Simulation: A Hybrid Methodology," Papers 2303.00080, arXiv.org.
  • Handle: RePEc:arx:papers:2303.00080
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Zijian Shi & Yu Chen & John Cartlidge, 2021. "The LOB Recreation Model: Predicting the Limit Order Book from TAQ History Using an Ordinary Differential Equation Recurrent Neural Network," Papers 2103.01670, arXiv.org.
    2. Andrea Coletta & Aymeric Moulin & Svitlana Vyetrenko & Tucker Balch, 2022. "Learning to simulate realistic limit order book markets from data as a World Agent," Papers 2210.09897, arXiv.org.
    3. 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.
    4. 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.
    5. Zijian Shi & John Cartlidge, 2021. "The Limit Order Book Recreation Model (LOBRM): An Extended Analysis," Papers 2107.00534, arXiv.org.
    6. Sánchez Serrano Antonio, 2020. "High-Frequency Trading and Systemic Risk: A Structured Review of Findings and Policies," Review of Economics, De Gruyter, vol. 71(3), pages 169-195, December.
    7. 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.
    8. Rama Cont & Adrien de Larrard, 2013. "Price Dynamics in a Markovian Limit Order Market," Post-Print hal-00552252, HAL.
    9. 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.
    10. Fama, Eugene F, 1991. "Efficient Capital Markets: II," Journal of Finance, American Finance Association, vol. 46(5), pages 1575-1617, December.
    11. 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.
    12. Ekkehart Boehmer & Dan Li & Gideon Saar, 2018. "The Competitive Landscape of High-Frequency Trading Firms," The Review of Financial Studies, Society for Financial Studies, vol. 31(6), pages 2227-2276.
    13. 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.
    14. 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.
    15. Lillo Fabrizio & Farmer J. Doyne, 2004. "The Long Memory of the Efficient Market," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 8(3), pages 1-35, September.
    16. 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.
    17. 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.
    18. Marc Potters & Jean-Philippe Bouchaud, 2001. "More stylized facts of financial markets: leverage effect and downside correlations," Science & Finance (CFM) working paper archive 29960, Science & Finance, Capital Fund Management.
    19. 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.
    20. Michael Karpe & Jin Fang & Zhongyao Ma & Chen Wang, 2020. "Multi-Agent Reinforcement Learning in a Realistic Limit Order Book Market Simulation," Papers 2006.05574, arXiv.org, revised Sep 2020.
    21. 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.
    22. 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.
    23. Mr. Sunil Sharma & Sushil Bikhchandani, 2000. "Herd Behavior in Financial Markets: A Review," IMF Working Papers 2000/048, International Monetary Fund.
    24. Rama Cont & Sasha Stoikov & Rishi Talreja, 2010. "A Stochastic Model for Order Book Dynamics," Operations Research, INFORMS, vol. 58(3), pages 549-563, June.
    25. 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.
    26. Bruno Biais & Thierry Foucault, 2014. "HFT and Market Quality," Bankers, Markets & Investors, ESKA Publishing, issue 128, pages 5-19, January-F.
    27. Bouchaud, Jean-Philippe & Potters, Marc, 2001. "More stylized facts of financial markets: leverage effect and downside correlations," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 299(1), pages 60-70.
    28. Pankaj Kumar, 2021. "Deep Hawkes Process for High-Frequency Market Making," Papers 2109.15110, arXiv.org.
    29. 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.
    30. 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.
    31. Zhou, Rhea Tingyu & Lai, Rose Neng, 2009. "Herding and information based trading," Journal of Empirical Finance, Elsevier, vol. 16(3), pages 388-393, June.
    32. Fabrizio Lillo & J. Doyne Farmer & Rosario N. Mantegna, 2003. "Master curve for price-impact function," Nature, Nature, vol. 421(6919), pages 129-130, January.
    33. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    34. 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.
    35. Stanley, H. Eugene & Plerou, Vasiliki & Gabaix, Xavier, 2008. "A statistical physics view of financial fluctuations: Evidence for scaling and universality," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 387(15), pages 3967-3981.
    36. David Byrd, 2019. "Explaining Agent-Based Financial Market Simulation," Papers 1909.11650, arXiv.org.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Andrea Coletta & Joseph Jerome & Rahul Savani & Svitlana Vyetrenko, 2023. "Conditional Generators for Limit Order Book Environments: Explainability, Challenges, and Robustness," Papers 2306.12806, arXiv.org.
    2. Matteo Prata & Giuseppe Masi & Leonardo Berti & Viviana Arrigoni & Andrea Coletta & Irene Cannistraci & Svitlana Vyetrenko & Paola Velardi & Novella Bartolini, 2023. "LOB-Based Deep Learning Models for Stock Price Trend Prediction: A Benchmark Study," Papers 2308.01915, arXiv.org, revised Sep 2023.
    3. Namid R. Stillman & Rory Baggott & Justin Lyon & Jianfei Zhang & Dingqiu Zhu & Tao Chen & Perukrishnen Vytelingum, 2023. "Deep Calibration of Market Simulations using Neural Density Estimators and Embedding Networks," Papers 2311.11913, arXiv.org, revised Nov 2023.
    4. Haochong Xia & Shuo Sun & Xinrun Wang & Bo An, 2023. "Market-GAN: Adding Control to Financial Market Data Generation with Semantic Context," Papers 2309.07708, arXiv.org, revised Feb 2024.
    5. Song Wei & Andrea Coletta & Svitlana Vyetrenko & Tucker Balch, 2023. "INTAGS: Interactive Agent-Guided Simulation," Papers 2309.01784, arXiv.org, revised Nov 2023.

    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. 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.
    2. 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.
    3. 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.
    4. Jean-Philippe Bouchaud & Julien Kockelkoren & Marc Potters, 2006. "Random walks, liquidity molasses and critical response in financial markets," Quantitative Finance, Taylor & Francis Journals, vol. 6(2), pages 115-123.
    5. Juan C. Henao-Londono & Sebastian M. Krause & Thomas Guhr, 2021. "Price response functions and spread impact in correlated financial markets," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 94(4), pages 1-20, April.
    6. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frederic Abergel, 2011. "Econophysics review: I. Empirical facts," Quantitative Finance, Taylor & Francis Journals, vol. 11(7), pages 991-1012.
    7. Wei-Xing Zhou, 2012. "Universal price impact functions of individual trades in an order-driven market," Quantitative Finance, Taylor & Francis Journals, vol. 12(8), pages 1253-1263, June.
    8. Jian Zhou & Gao-Feng Gu & Zhi-Qiang Jiang & Xiong Xiong & Wei Chen & Wei Zhang & Wei-Xing Zhou, 2017. "Computational Experiments Successfully Predict the Emergence of Autocorrelations in Ultra-High-Frequency Stock Returns," Computational Economics, Springer;Society for Computational Economics, vol. 50(4), pages 579-594, December.
    9. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Papers 1803.06917, arXiv.org.
    10. Justin Sirignano & Rama Cont, 2018. "Universal features of price formation in financial markets: perspectives from Deep Learning," Working Papers hal-01754054, HAL.
    11. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frederic Abergel, 2011. "Econophysics review: II. Agent-based models," Quantitative Finance, Taylor & Francis Journals, vol. 11(7), pages 1013-1041.
    12. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frédéric Abergel, 2011. "Econophysics review: I. Empirical facts," Post-Print hal-00621058, HAL.
    13. 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.
    14. Alberto Ciacci & Takumi Sueshige & Hideki Takayasu & Kim Christensen & Misako Takayasu, 2020. "The microscopic relationships between triangular arbitrage and cross-currency correlations in a simple agent based model of foreign exchange markets," PLOS ONE, Public Library of Science, vol. 15(6), pages 1-19, June.
    15. Svitlana Vyetrenko & David Byrd & Nick Petosa & Mahmoud Mahfouz & Danial Dervovic & Manuela Veloso & Tucker Hybinette Balch, 2019. "Get Real: Realism Metrics for Robust Limit Order Book Market Simulations," Papers 1912.04941, arXiv.org.
    16. 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.
    17. 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.
    18. Christopher J. Cho & Timothy J. Norman & Manuel Nunes, 2023. "PRIME: A Price-Reverting Impact Model of a cryptocurrency Exchange," Papers 2305.07559, arXiv.org.
    19. 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.
    20. Korolev, V.Yu. & Chertok, A.V. & Korchagin, A.Yu. & Zeifman, A.I., 2015. "Modeling high-frequency order flow imbalance by functional limit theorems for two-sided risk processes," Applied Mathematics and Computation, Elsevier, vol. 253(C), pages 224-241.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:2303.00080. 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.