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

Simulation and estimation of an agent-based market-model with a matching engine

Author

Listed:
  • Ivan Jericevich
  • Patrick Chang
  • Tim Gebbie

Abstract

An agent-based model with interacting low frequency liquidity takers inter-mediated by high-frequency liquidity providers acting collectively as market makers can be used to provide realistic simulated price impact curves. This is possible when agent-based model interactions occur asynchronously via order matching using a matching engine in event time to replace sequential calendar time market clearing. Here the matching engine infrastructure has been modified to provide a continuous feed of order confirmations and updates as message streams in order to conform more closely to live trading environments. The resulting trade and quote message data from the simulations are then aggregated, calibrated and visualised. Various stylised facts are presented along with event visualisations and price impact curves. We argue that additional realism in modelling can be achieved with a small set of agent parameters and simple interaction rules once interactions are reactive, asynchronous and in event time. We argue that the reactive nature of market agents may be a fundamental property of financial markets and when accounted for can allow for parsimonious modelling without recourse to additional sources of noise.

Suggested Citation

  • Ivan Jericevich & Patrick Chang & Tim Gebbie, 2021. "Simulation and estimation of an agent-based market-model with a matching engine," Papers 2108.07806, arXiv.org, revised Aug 2021.
  • Handle: RePEc:arx:papers:2108.07806
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. John Geweke & Susan Porter‐Hudak, 1983. "The Estimation And Application Of Long Memory Time Series Models," Journal of Time Series Analysis, Wiley Blackwell, vol. 4(4), pages 221-238, July.
    2. Sanmay Das, 2005. "A learning market-maker in the Glosten-Milgrom model," Quantitative Finance, Taylor & Francis Journals, vol. 5(2), pages 169-180.
    3. Gilli, M. & Winker, P., 2003. "A global optimization heuristic for estimating agent based models," Computational Statistics & Data Analysis, Elsevier, vol. 42(3), pages 299-312, March.
    4. Platt, Donovan & Gebbie, Tim, 2018. "Can agent-based models probe market microstructure?," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 503(C), pages 1092-1106.
    5. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2021. "Simulation and estimation of a point-process market-model with a matching engine," Papers 2105.02211, arXiv.org, revised Aug 2021.
    6. Roberto Dieci & Xue-Zhong He, 2018. "Heterogeneous Agent Models in Finance," Research Paper Series 389, Quantitative Finance Research Centre, University of Technology, Sydney.
    7. A. Chakraborti & I. Muni-Toke & M. Patriarca & F. Abergel, 2011. "Econophysics Review : II. Agent-based models," Post-Print hal-03332946, HAL.
    8. Volker Böhm & Carl Chiarella, 2005. "Mean Variance Preferences, Expectations Formation, And The Dynamics Of Random Asset Prices," Mathematical Finance, Wiley Blackwell, vol. 15(1), pages 61-97, January.
    9. Sandrine Jacob Leal & Mauro Napoletano & Andrea Roventini & Giorgio Fagiolo, 2016. "Rock around the clock: An agent-based model of low- and high-frequency trading," Journal of Evolutionary Economics, Springer, vol. 26(1), pages 49-76, March.
    10. LeBaron, Blake, 2000. "Agent-based computational finance: Suggested readings and early research," Journal of Economic Dynamics and Control, Elsevier, vol. 24(5-7), pages 679-702, June.
    11. Schmitt, Noemi & Westerhoff, Frank, 2017. "On the bimodality of the distribution of the S&P 500's distortion: Empirical evidence and theoretical explanations," Journal of Economic Dynamics and Control, Elsevier, vol. 80(C), pages 34-53.
    12. 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.
    13. Pagan, Adrian, 1996. "The econometrics of financial markets," Journal of Empirical Finance, Elsevier, vol. 3(1), pages 15-102, May.
    14. 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.
    15. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2020. "Comparing the market microstructure between two South African exchanges," Papers 2011.04367, arXiv.org.
    16. Fabrizio Lillo & J. Doyne Farmer & Rosario N. Mantegna, 2003. "Master curve for price-impact function," Nature, Nature, vol. 421(6919), pages 129-130, January.
    17. Kullmann, L & Töyli, J & Kertesz, J & Kanto, A & Kaski, K, 1999. "Characteristic times in stock market indices," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 269(1), pages 98-110.
    18. 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.
    19. Daniel Kahneman & Amos Tversky, 2013. "Prospect Theory: An Analysis of Decision Under Risk," World Scientific Book Chapters, in: Leonard C MacLean & William T Ziemba (ed.), HANDBOOK OF THE FUNDAMENTALS OF FINANCIAL DECISION MAKING Part I, chapter 6, pages 99-127, World Scientific Publishing Co. Pte. Ltd..
    20. 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.
    21. J. Doyne Farmer & Paolo Patelli & Ilija I. Zovko, 2003. "The Predictive Power of Zero Intelligence in Financial Markets," Papers cond-mat/0309233, arXiv.org, revised Feb 2004.
    22. Patrick Chang & Etienne Pienaar & Tim Gebbie, 2020. "The Epps effect under alternative sampling schemes," Papers 2011.11281, arXiv.org, revised Aug 2021.
    23. Olivier Brandouy & Philippe Mathieu & Iryna Veryzhenko, 2013. "On the Design of Agent-based Artificial Stock Markets," Post-Print hal-00826419, HAL.
    24. Peter Winker & Manfred Gilli & Vahidin Jeleskovic, 2007. "An objective function for simulation based inference on exchange rate data," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 2(2), pages 125-145, December.
    25. 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.
    26. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    27. Silvia Crafa, 2021. "From agent-based modeling to actor-based reactive systems in the analysis of financial networks," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 16(3), pages 649-673, July.
    28. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frédéric Abergel, 2011. "Econophysics review: I. Empirical facts," Post-Print hal-00621058, HAL.
    29. Marco Avellaneda & Sasha Stoikov, 2008. "High-frequency trading in a limit order book," Quantitative Finance, Taylor & Francis Journals, vol. 8(3), pages 217-224.
    30. Glosten, Lawrence R. & Milgrom, Paul R., 1985. "Bid, ask and transaction prices in a specialist market with heterogeneously informed traders," Journal of Financial Economics, Elsevier, vol. 14(1), pages 71-100, March.
    31. Fuchang Gao & Lixing Han, 2012. "Implementing the Nelder-Mead simplex algorithm with adaptive parameters," Computational Optimization and Applications, Springer, vol. 51(1), pages 259-277, January.
    32. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frédéric Abergel, 2011. "Econophysics review: II. Agent-based models," Post-Print hal-00621059, HAL.
    33. LeBaron, Blake, 2006. "Agent-based Computational Finance," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 24, pages 1187-1233, Elsevier.
    34. Benoit Mandelbrot, 2015. "The Variation of Certain Speculative Prices," World Scientific Book Chapters, in: Anastasios G Malliaris & William T Ziemba (ed.), THE WORLD SCIENTIFIC HANDBOOK OF FUTURES MARKETS, chapter 3, pages 39-78, World Scientific Publishing Co. Pte. Ltd..
    35. Platt, Donovan, 2020. "A comparison of economic agent-based model calibration methods," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    36. Chang, Patrick & Pienaar, Etienne & Gebbie, Tim, 2021. "The Epps effect under alternative sampling schemes," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 583(C).
    37. Michael Harvey & Dieter Hendricks & Tim Gebbie & Diane Wilcox, 2016. "Deviations in expected price impact for small transaction volumes under fee restructuring," Papers 1602.04950, arXiv.org, revised Nov 2016.
    38. Hommes, Cars H., 2006. "Heterogeneous Agent Models in Economics and Finance," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 23, pages 1109-1186, Elsevier.
    39. Lee, Charles M C & Ready, Mark J, 1991. "Inferring Trade Direction from Intraday Data," Journal of Finance, American Finance Association, vol. 46(2), pages 733-746, June.
    40. Ivan Jericevich & Dharmesh Sing & Tim Gebbie, 2021. "CoinTossX: An open-source low-latency high-throughput matching engine," Papers 2102.10925, arXiv.org.
    41. Mandeş, Alexandru, 2015. "Microstructure-based order placement in a continuous double auction agent based model," Algorithmic Finance, IOS Press, vol. 4(3-4), pages 105-125.
    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. Matthew Dicks & Andrew Paskaramoorthy & Tim Gebbie, 2023. "Many learning agents interacting with an agent-based market model," Papers 2303.07393, arXiv.org, revised Nov 2023.
    2. Aaron Wheeler & Jeffrey D. Varner, 2023. "Scalable Agent-Based Modeling for Complex Financial Market Simulations," Papers 2312.14903, arXiv.org, revised Jan 2024.
    3. Derick Diana & Tim Gebbie, 2023. "Anomalous diffusion and price impact in the fluid-limit of an order book," Papers 2310.06079, arXiv.org, revised Jan 2024.

    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. Ivan Jericevich & Murray McKechnie & Tim Gebbie, 2021. "Calibrating an adaptive Farmer-Joshi agent-based model for financial markets," Papers 2104.09863, arXiv.org.
    2. Alessio Emanuele Biondo, 2018. "Order book microstructure and policies for financial stability," Studies in Economics and Finance, Emerald Group Publishing Limited, vol. 35(1), pages 196-218, March.
    3. Biondo, Alessio Emanuele, 2017. "Learning to forecast, risk aversion, and microstructural aspects of financial stability," Economics Discussion Papers 2017-104, Kiel Institute for the World Economy (IfW Kiel).
    4. Radu T. Pruna & Maria Polukarov & Nicholas R. Jennings, 2016. "A new structural stochastic volatility model of asset pricing and its stylized facts," Papers 1604.08824, arXiv.org.
    5. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2021. "Simulation and estimation of a point-process market-model with a matching engine," Papers 2105.02211, arXiv.org, revised Aug 2021.
    6. Leal, Sandrine Jacob & Napoletano, Mauro, 2019. "Market stability vs. market resilience: Regulatory policies experiments in an agent-based model with low- and high-frequency trading," Journal of Economic Behavior & Organization, Elsevier, vol. 157(C), pages 15-41.
    7. repec:hal:spmain:info:hdl:2441/6ummnc8nko827b2luohnctekk7 is not listed on IDEAS
    8. Sandrine Jacob Leal & Mauro Napoletano, 2017. "Market Stability vs. Market Resilience: Regulatory Policies Experiments in an Agent-Based Model with Low- and High-Frequency Trading," Post-Print hal-01768876, HAL.
    9. repec:hal:spmain:info:hdl:2441/3utlh0ehcn860pus6p2p683ade is not listed on IDEAS
    10. Sandrine Jacob Leal & Mauro Napoletano & Andrea Roventini & Giorgio Fagiolo, 2016. "Rock around the clock: An agent-based model of low- and high-frequency trading," Journal of Evolutionary Economics, Springer, vol. 26(1), pages 49-76, March.
    11. Staccioli, Jacopo & Napoletano, Mauro, 2021. "An agent-based model of intra-day financial markets dynamics," Journal of Economic Behavior & Organization, Elsevier, vol. 182(C), pages 331-348.
    12. Torsten Trimborn & Philipp Otte & Simon Cramer & Maximilian Beikirch & Emma Pabich & Martin Frank, 2020. "SABCEMM: A Simulator for Agent-Based Computational Economic Market Models," Computational Economics, Springer;Society for Computational Economics, vol. 55(2), pages 707-744, February.
    13. Gu, Gao-Feng & Xiong, Xiong & Zhang, Yong-Jie & Chen, Wei & Zhang, Wei & Zhou, Wei-Xing, 2016. "Stylized facts of price gaps in limit order books," Chaos, Solitons & Fractals, Elsevier, vol. 88(C), pages 48-58.
    14. Julius Bonart & Martin D. Gould, 2017. "Latency and liquidity provision in a limit order book," Quantitative Finance, Taylor & Francis Journals, vol. 17(10), pages 1601-1616, October.
    15. repec:hal:spmain:info:hdl:2441/5mqflt6amg8gab4rlqn6sbko4b is not listed on IDEAS
    16. Immonen, Eero, 2017. "Simple agent-based dynamical system models for efficient financial markets: Theory and examples," Journal of Mathematical Economics, Elsevier, vol. 69(C), pages 38-53.
    17. repec:hal:spmain:info:hdl:2441/f6h8764enu2lskk9p4oq9ig8k is not listed on IDEAS
    18. Pankaj Kumar, 2021. "Deep Hawkes Process for High-Frequency Market Making," Papers 2109.15110, arXiv.org.
    19. Gao-Feng Gu & Xiong Xiong & Hai-Chuan Xu & Wei Zhang & Yongjie Zhang & Wei Chen & Wei-Xing Zhou, 2021. "An empirical behavioral order-driven model with price limit rules," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-24, December.
    20. Ban Zheng & François Roueff & Frédéric Abergel, 2014. "Ergodicity and scaling limit of a constrained multivariate Hawkes process," Post-Print hal-00777941, HAL.
    21. 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.
    22. Hong Guo & Jianwu Lin & Fanlin Huang, 2023. "Market Making with Deep Reinforcement Learning from Limit Order Books," Papers 2305.15821, arXiv.org.
    23. 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.
    24. repec:hal:wpaper:hal-00777941 is not listed on IDEAS
    25. Cafferata, Alessia & Tramontana, Fabio, 2022. "Disposition Effect and its outcome on endogenous price fluctuations," MPRA Paper 113904, University Library of Munich, Germany.

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