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

Fast Agent-Based Simulation Framework with Applications to Reinforcement Learning and the Study of Trading Latency Effects

Author

Listed:
  • Peter Belcak
  • Jan-Peter Calliess
  • Stefan Zohren

Abstract

We introduce a new software toolbox for agent-based simulation. Facilitating rapid prototyping by offering a user-friendly Python API, its core rests on an efficient C++ implementation to support simulation of large-scale multi-agent systems. Our software environment benefits from a versatile message-driven architecture. Originally developed to support research on financial markets, it offers the flexibility to simulate a wide-range of different (easily customisable) market rules and to study the effect of auxiliary factors, such as delays, on the market dynamics. As a simple illustration, we employ our toolbox to investigate the role of the order processing delay in normal trading and for the scenario of a significant price change. Owing to its general architecture, our toolbox can also be employed as a generic multi-agent system simulator. We provide an example of such a non-financial application by simulating a mechanism for the coordination of no-regret learning agents in a multi-agent network routing scenario previously proposed in the literature.

Suggested Citation

  • Peter Belcak & Jan-Peter Calliess & Stefan Zohren, 2020. "Fast Agent-Based Simulation Framework with Applications to Reinforcement Learning and the Study of Trading Latency Effects," Papers 2008.07871, arXiv.org, revised Sep 2022.
  • Handle: RePEc:arx:papers:2008.07871
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Field, Jonathan & Large, Jeremy, 2008. "Pro-rata matching and one-tick futures markets," CFS Working Paper Series 2008/40, Center for Financial Studies (CFS).
    2. Rama Cont, 2007. "Volatility Clustering in Financial Markets: Empirical Facts and Agent-Based Models," Springer Books, in: Gilles Teyssière & Alan P. Kirman (ed.), Long Memory in Economics, pages 289-309, Springer.
    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. Samuel N. Cohen & Derek Snow & Lukasz Szpruch, 2021. "Black-box model risk in finance," Papers 2102.04757, arXiv.org.
    2. Zijian Shi & John Cartlidge, 2021. "The Limit Order Book Recreation Model (LOBRM): An Extended Analysis," Papers 2107.00534, arXiv.org.
    3. Zhenglong Li & Vincent Tam & Kwan L. Yeung, 2024. "Developing A Multi-Agent and Self-Adaptive Framework with Deep Reinforcement Learning for Dynamic Portfolio Risk Management," Papers 2402.00515, arXiv.org, revised Feb 2024.
    4. Sascha Frey & Kang Li & Peer Nagy & Silvia Sapora & Chris Lu & Stefan Zohren & Jakob Foerster & Anisoara Calinescu, 2023. "JAX-LOB: A GPU-Accelerated limit order book simulator to unlock large scale reinforcement learning for trading," Papers 2308.13289, arXiv.org.
    5. Zihao Zhang & Bryan Lim & Stefan Zohren, 2021. "Deep Learning for Market by Order Data," Papers 2102.08811, arXiv.org, revised Jul 2021.

    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. Fabien Guilbaud & Huyên Pham, 2012. "Optimal High Frequency Trading in a Pro-Rata Microstructure with Predictive Information," Working Papers hal-00697125, HAL.
    2. Shuang Xiao & Guo Li & Yunjing Jia, 2017. "Estimating the Constant Elasticity of Variance Model with Data-Driven Markov Chain Monte Carlo Methods," Asia-Pacific Journal of Operational Research (APJOR), World Scientific Publishing Co. Pte. Ltd., vol. 34(01), pages 1-23, February.
    3. Erdinc Akyildirim & Shaen Corbet & Guzhan Gulay & Duc Khuong Nguyen & Ahmet Sensoy, 2019. "Order Flow Persistence in Equity Spot and Futures Markets: Evidence from a Dynamic Emerging Market," Working Papers 2019-011, Department of Research, Ipag Business School.
    4. 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.
    5. Ruggero Grilli & Gabriele Tedeschi & Mauro Gallegati, 2015. "Markets connectivity and financial contagion," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 10(2), pages 287-304, October.
    6. Zila, Eric & Kukacka, Jiri, 2023. "Moment set selection for the SMM using simple machine learning," Journal of Economic Behavior & Organization, Elsevier, vol. 212(C), pages 366-391.
    7. Chang-Yi Li & Son-Nan Chen & Shih-Kuei Lin, 2016. "Pricing derivatives with modeling CO emission allowance using a regime-switching jump diffusion model: with regime-switching risk premium," The European Journal of Finance, Taylor & Francis Journals, vol. 22(10), pages 887-908, August.
    8. Sabiou Inoua, 2016. "The Random Walk behind Volatility Clustering," Papers 1612.09344, arXiv.org.
    9. Changtai Li & Weihong Huang & Wei-Siang Wang & Wai-Mun Chia, 2023. "Price Change and Trading Volume: Behavioral Heterogeneity in Stock Market," Computational Economics, Springer;Society for Computational Economics, vol. 61(2), pages 677-713, February.
    10. Petr Makovsky, 2017. "The Value of the Firm in Dependence on Technological Shocks – the Czech Republic Case," ACTA VSFS, University of Finance and Administration, vol. 11(1), pages 45-60.
    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. R. J. Almeida & U. Kaymak, 2009. "Probabilistic fuzzy systems in value‐at‐risk estimation," Intelligent Systems in Accounting, Finance and Management, John Wiley & Sons, Ltd., vol. 16(1‐2), pages 49-70, January.
    13. 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.
    14. Fabien Guilbaud & Huy^en Pham, 2012. "Optimal High Frequency Trading in a Pro-Rata Microstructure with Predictive Information," Papers 1205.3051, arXiv.org.
    15. Wu, Qi & Yan, Xing, 2019. "Capturing deep tail risk via sequential learning of quantile dynamics," Journal of Economic Dynamics and Control, Elsevier, vol. 109(C).
    16. Oldham, Matthew, 2020. "Quantifying the concerns of Dimon and Buffett with data and computation," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    17. Laurie Davies & Walter Kraemer, 2016. "Stylized Facts and Simulating Long Range Financial Data," CESifo Working Paper Series 5796, CESifo.
    18. Grilli, Ruggero & Tedeschi, Gabriele & Gallegati, Mauro, 2014. "Bank interlinkages and macroeconomic stability," International Review of Economics & Finance, Elsevier, vol. 34(C), pages 72-88.
    19. Emanuele Ciola & Gabriele Tedeschi, 2021. "From interaction to business fluctuations: How credit network explain cycles," Working Papers 2021/01, Economics Department, Universitat Jaume I, Castellón (Spain).
    20. Stübinger, Johannes & Endres, Sylvia, 2017. "Pairs trading with a mean-reverting jump-diffusion model on high-frequency data," FAU Discussion Papers in Economics 10/2017, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.

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