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

Modelling crypto markets by multi-agent reinforcement learning

Author

Listed:
  • Johann Lussange
  • Stefano Vrizzi
  • Stefano Palminteri
  • Boris Gutkin

Abstract

Building on a previous foundation work (Lussange et al. 2020), this study introduces a multi-agent reinforcement learning (MARL) model simulating crypto markets, which is calibrated to the Binance's daily closing prices of $153$ cryptocurrencies that were continuously traded between 2018 and 2022. Unlike previous agent-based models (ABM) or multi-agent systems (MAS) which relied on zero-intelligence agents or single autonomous agent methodologies, our approach relies on endowing agents with reinforcement learning (RL) techniques in order to model crypto markets. This integration is designed to emulate, with a bottom-up approach to complexity inference, both individual and collective agents, ensuring robustness in the recent volatile conditions of such markets and during the COVID-19 era. A key feature of our model also lies in the fact that its autonomous agents perform asset price valuation based on two sources of information: the market prices themselves, and the approximation of the crypto assets fundamental values beyond what those market prices are. Our MAS calibration against real market data allows for an accurate emulation of crypto markets microstructure and probing key market behaviors, in both the bearish and bullish regimes of that particular time period.

Suggested Citation

  • Johann Lussange & Stefano Vrizzi & Stefano Palminteri & Boris Gutkin, 2024. "Modelling crypto markets by multi-agent reinforcement learning," Papers 2402.10803, arXiv.org.
  • Handle: RePEc:arx:papers:2402.10803
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Tomas Ramanauskas & Aleksandras Vytautas Rutkauskas, 2009. "Building an Artificial Stock Market Populated by Reinforcement-Learning Agents," Bank of Lithuania Working Paper Series 6, Bank of Lithuania.
    2. Parameswaran Gopikrishnan & Vasiliki Plerou & Luis A. Nunes Amaral & Martin Meyer & H. Eugene Stanley, 1999. "Scaling of the distribution of fluctuations of financial market indices," Papers cond-mat/9905305, arXiv.org.
    3. Iwao Maeda & David deGraw & Michiharu Kitano & Hiroyasu Matsushima & Hiroki Sakaji & Kiyoshi Izumi & Atsuo Kato, 2020. "Deep Reinforcement Learning in Agent Based Financial Market Simulation," JRFM, MDPI, vol. 13(4), pages 1-17, April.
    4. Lobato, Ignacio N & Savin, N E, 1998. "Real and Spurious Long-Memory Properties of Stock-Market Data," Journal of Business & Economic Statistics, American Statistical Association, vol. 16(3), pages 261-268, July.
    5. Luisanna Cocco & Giulio Concas & Michele Marchesi, 2017. "Using an artificial financial market for studying a cryptocurrency market," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 12(2), pages 345-365, July.
    6. 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.
    7. Gualdi, Stanislao & Tarzia, Marco & Zamponi, Francesco & Bouchaud, Jean-Philippe, 2015. "Tipping points in macroeconomic agent-based models," Journal of Economic Dynamics and Control, Elsevier, vol. 50(C), pages 29-61.
    8. Marisa Faggini & Bruna Bruno & Anna Parziale, 2022. "Toward Reverse Engineering to Economic Analysis: An Overview of Tools and Methodology," Journal of the Knowledge Economy, Springer;Portland International Center for Management of Engineering and Technology (PICMET), vol. 13(2), pages 1414-1432, June.
    9. Gode, Dhananjay K & Sunder, Shyam, 1993. "Allocative Efficiency of Markets with Zero-Intelligence Traders: Market as a Partial Substitute for Individual Rationality," Journal of Political Economy, University of Chicago Press, vol. 101(1), pages 119-137, February.
    10. Pramod Kumar Naik & Rangan Gupta & Puja Padhi, 2018. "The Relationship Between Stock Market Volatility And Trading Volume: Evidence From South Africa," Journal of Developing Areas, Tennessee State University, College of Business, vol. 52(1), pages 99-114, January-M.
    11. Marcin Wk{a}torek & Stanis{l}aw Dro.zd.z & Jaros{l}aw Kwapie'n & Ludovico Minati & Pawe{l} O'swik{e}cimka & Marek Stanuszek, 2020. "Multiscale characteristics of the emerging global cryptocurrency market," Papers 2010.15403, arXiv.org, revised Mar 2021.
    12. Stefano Palminteri & Mehdi Khamassi & Mateus Joffily & Giorgio Coricelli, 2015. "Contextual modulation of value signals in reward and punishment learning," Nature Communications, Nature, vol. 6(1), pages 1-14, November.
    13. Thomas Lux & Michele Marchesi, 2000. "Volatility Clustering In Financial Markets: A Microsimulation Of Interacting Agents," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 3(04), pages 675-702.
    14. Levy, Moshe & Solomon, Sorin, 1997. "New evidence for the power-law distribution of wealth," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 242(1), pages 90-94.
    15. Sophie Bavard & Maël Lebreton & Mehdi Khamassi & Giorgio Coricelli & Stefano Palminteri, 2018. "Reference-point centering and range-adaptation enhance human reinforcement learning at the cost of irrational preferences," Nature Communications, Nature, vol. 9(1), pages 1-12, December.
    16. Anna Dodonova & Yuri Khoroshilov, 2018. "Private information in futures markets: An experimental study," Managerial and Decision Economics, John Wiley & Sons, Ltd., vol. 39(1), pages 65-70, January.
    17. Johann Lussange & Stefano Vrizzi & Sacha Bourgeois-Gironde & Stefano Palminteri & Boris Gutkin, 2022. "Stock Price Formation: Precepts from a Multi-Agent Reinforcement Learning Model," Post-Print hal-03827363, HAL.
    18. Moshe Levy & Sorin Solomon, 1996. "Power Laws Are Logarithmic Boltzmann Laws," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 7(04), pages 595-601.
    19. P. Bak & S. F. Nrrelykke & M. Shubik, 2001. "Money and Goldstone modes," Quantitative Finance, Taylor & Francis Journals, vol. 1(1), pages 186-190.
    20. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    21. Eduard Silantyev, 2019. "Order flow analysis of cryptocurrency markets," Digital Finance, Springer, vol. 1(1), pages 191-218, November.
    22. Lyons, Richard K. & Viswanath-Natraj, Ganesh, 2023. "What keeps stablecoins stable?," Journal of International Money and Finance, Elsevier, vol. 131(C).
    23. Michael Benzaquen & Jean-Philippe Bouchaud, 2018. "A fractional reaction–diffusion description of supply and demand," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 91(2), pages 1-7, February.
    24. Cont, Rama & Bouchaud, Jean-Philipe, 2000. "Herd Behavior And Aggregate Fluctuations In Financial Markets," Macroeconomic Dynamics, Cambridge University Press, vol. 4(2), pages 170-196, June.
    25. Lin William Cong & Ye Li & Neng Wang, 2021. "Tokenomics: Dynamic Adoption and Valuation [The demand of liquid assets with uncertain lumpy expenditures]," The Review of Financial Studies, Society for Financial Studies, vol. 34(3), pages 1105-1155.
    26. 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.
    27. Gurdgiev, Constantin & O’Loughlin, Daniel, 2020. "Herding and anchoring in cryptocurrency markets: Investor reaction to fear and uncertainty," Journal of Behavioral and Experimental Finance, Elsevier, vol. 25(C).
    28. Stefano Palminteri & Germain Lefebvre & Emma J Kilford & Sarah-Jayne Blakemore, 2017. "Confirmation bias in human reinforcement learning: Evidence from counterfactual feedback processing," PLOS Computational Biology, Public Library of Science, vol. 13(8), pages 1-22, August.
    29. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    30. J. Wiesinger & D. Sornette & J. Satinover, 2013. "Reverse Engineering Financial Markets with Majority and Minority Games Using Genetic Algorithms," Computational Economics, Springer;Society for Computational Economics, vol. 41(4), pages 475-492, April.
    31. Antonakakis, Nikolaos & Chatziantoniou, Ioannis & Gabauer, David, 2019. "Cryptocurrency market contagion: Market uncertainty, market complexity, and dynamic portfolios," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 61(C), pages 37-51.
    32. Mawuli Segnon & Stelios Bekiros, 2020. "Forecasting volatility in bitcoin market," Annals of Finance, Springer, vol. 16(3), pages 435-462, September.
    33. Alessio Emanuele Biondo, 2019. "Order book modeling and financial stability," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 14(3), pages 469-489, September.
    34. Aleksandras Vytautas Rutkauskas & Tomas Ramanauskas, 2009. "Building an artificial stock market populated by reinforcement‐learning agents," Journal of Business Economics and Management, Taylor & Francis Journals, vol. 10(4), pages 329-341, September.
    35. 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..
    36. Jan A. Lipski & Ryszard Kutner, 2013. "Agent-Based Stock Market Model with Endogenous Agents' Impact," Papers 1310.0762, arXiv.org, revised Dec 2013.
    37. Thomas Lux & Michele Marchesi, 1999. "Scaling and criticality in a stochastic multi-agent model of a financial market," Nature, Nature, vol. 397(6719), pages 498-500, February.
    38. David Silver & Aja Huang & Chris J. Maddison & Arthur Guez & Laurent Sifre & George van den Driessche & Julian Schrittwieser & Ioannis Antonoglou & Veda Panneershelvam & Marc Lanctot & Sander Dieleman, 2016. "Mastering the game of Go with deep neural networks and tree search," Nature, Nature, vol. 529(7587), pages 484-489, January.
    39. Germain Lefebvre & Maël Lebreton & Florent Meyniel & Sacha Bourgeois-Gironde & Stefano Palminteri, 2017. "Behavioural and neural characterization of optimistic reinforcement learning," Nature Human Behaviour, Nature, vol. 1(4), pages 1-9, April.
    40. Sylvain Barde, 2015. "A Practical, Universal, Information Criterion over Nth Order Markov Processes," Studies in Economics 1504, School of Economics, University of Kent.
    41. 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.
    42. Westerhoff Frank H., 2008. "The Use of Agent-Based Financial Market Models to Test the Effectiveness of Regulatory Policies," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 228(2-3), pages 195-227, April.
    43. Moshe Levy & Sorin Solomon & Givat Ram, 1996. "Dynamical Explanation For The Emergence Of Power Law In A Stock Market Model," International Journal of Modern Physics C (IJMPC), World Scientific Publishing Co. Pte. Ltd., vol. 7(01), pages 65-72.
    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. Johann Lussange & Ivan Lazarevich & Sacha Bourgeois-Gironde & Stefano Palminteri & Boris Gutkin, 2021. "Modelling Stock Markets by Multi-agent Reinforcement Learning," Computational Economics, Springer;Society for Computational Economics, vol. 57(1), pages 113-147, January.
    2. Johann Lussange & Stefano Vrizzi & Sacha Bourgeois-Gironde & Stefano Palminteri & Boris Gutkin, 2023. "Stock Price Formation: Precepts from a Multi-Agent Reinforcement Learning Model," Computational Economics, Springer;Society for Computational Economics, vol. 61(4), pages 1523-1544, April.
    3. Johann Lussange & Boris Gutkin, 2023. "Order book regulatory impact on stock market quality: a multi-agent reinforcement learning perspective," Papers 2302.04184, arXiv.org.
    4. E. Samanidou & E. Zschischang & D. Stauffer & T. Lux, 2001. "Microscopic Models of Financial Markets," Papers cond-mat/0110354, arXiv.org.
    5. Alessio Emanuele Biondo, 2019. "Order book modeling and financial stability," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 14(3), pages 469-489, September.
    6. 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.
    7. Luis Goncalves de Faria, 2022. "An Agent-Based Model With Realistic Financial Time Series: A Method for Agent-Based Models Validation," Papers 2206.09772, arXiv.org.
    8. Jovanovic, Franck & Schinckus, Christophe, 2017. "Econophysics and Financial Economics: An Emerging Dialogue," OUP Catalogue, Oxford University Press, number 9780190205034.
    9. 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.
    10. E. Samanidou & E. Zschischang & D. Stauffer & T. Lux, 2007. "Agent-based Models of Financial Markets," Papers physics/0701140, arXiv.org.
    11. Troy Tassier, 2013. "Handbook of Research on Complexity, by J. Barkley Rosser, Jr. and Edward Elgar," Eastern Economic Journal, Palgrave Macmillan;Eastern Economic Association, vol. 39(1), pages 132-133.
    12. Thomas Lux, 2009. "Applications of Statistical Physics in Finance and Economics," Chapters, in: J. Barkley Rosser Jr. (ed.), Handbook of Research on Complexity, chapter 9, Edward Elgar Publishing.
    13. Detlef Seese & Christof Weinhardt & Frank Schlottmann (ed.), 2008. "Handbook on Information Technology in Finance," International Handbooks on Information Systems, Springer, number 978-3-540-49487-4, November.
    14. Antonio Doria, Francisco, 2011. "J.B. Rosser Jr. , Handbook of Research on Complexity, Edward Elgar, Cheltenham, UK--Northampton, MA, USA (2009) 436 + viii pp., index, ISBN 978 1 84542 089 5 (cased)," Journal of Economic Behavior & Organization, Elsevier, vol. 78(1-2), pages 196-204, April.
    15. 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.
    16. Blaurock, Ivonne & Schmitt, Noemi & Westerhoff, Frank, 2018. "Market entry waves and volatility outbursts in stock markets," Journal of Economic Behavior & Organization, Elsevier, vol. 153(C), pages 19-37.
    17. repec:spo:wpmain:info:hdl:2441/f6h8764enu2lskk9p4oq9ig8k is not listed on IDEAS
    18. Lux, Thomas & Alfarano, Simone, 2016. "Financial power laws: Empirical evidence, models, and mechanisms," Chaos, Solitons & Fractals, Elsevier, vol. 88(C), pages 3-18.
    19. Simon Cramer & Torsten Trimborn, 2019. "Stylized Facts and Agent-Based Modeling," Papers 1912.02684, arXiv.org.
    20. Inoua, Sabiou M. & Smith, Vernon L., 2023. "A classical model of speculative asset price dynamics," Journal of Behavioral and Experimental Finance, Elsevier, vol. 37(C).
    21. Didier SORNETTE, 2014. "Physics and Financial Economics (1776-2014): Puzzles, Ising and Agent-Based Models," Swiss Finance Institute Research Paper Series 14-25, Swiss Finance Institute.

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