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

MarketGPT: Developing a Pre-trained transformer (GPT) for Modeling Financial Time Series

Author

Listed:
  • Aaron Wheeler
  • Jeffrey D. Varner

Abstract

This work presents a generative pre-trained transformer (GPT) designed for modeling financial time series. The GPT functions as an order generation engine within a discrete event simulator, enabling realistic replication of limit order book dynamics. Our model leverages recent advancements in large language models to produce long sequences of order messages in a steaming manner. Our results demonstrate that the model successfully reproduces key features of order flow data, even when the initial order flow prompt is no longer present within the model's context window. Moreover, evaluations reveal that the model captures several statistical properties, or 'stylized facts', characteristic of real financial markets and broader macro-scale data distributions. Collectively, this work marks a significant step toward creating high-fidelity, interactive market simulations.

Suggested Citation

  • Aaron Wheeler & Jeffrey D. Varner, 2024. "MarketGPT: Developing a Pre-trained transformer (GPT) for Modeling Financial Time Series," Papers 2411.16585, arXiv.org.
  • Handle: RePEc:arx:papers:2411.16585
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. 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.
    2. Challet, Damien & Stinchcombe, Robin, 2001. "Analyzing and modeling 1+1d markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 300(1), pages 285-299.
    3. 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.
    4. Rama Cont & Marc Potters & Jean-Philippe Bouchaud, 1997. "Scaling in stock market data: stable laws and beyond," Science & Finance (CFM) working paper archive 9705087, Science & Finance, Capital Fund Management.
    5. 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.
    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. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    8. Florian Eckerli & Joerg Osterrieder, 2021. "Generative Adversarial Networks in finance: an overview," Papers 2106.06364, arXiv.org, revised Jul 2021.
    9. Black, Fischer & Scholes, Myron S, 1973. "The Pricing of Options and Corporate Liabilities," Journal of Political Economy, University of Chicago Press, vol. 81(3), pages 637-654, May-June.
    10. Hautsch, Nikolaus & Huang, Ruihong, 2011. "Limit order flow, market impact and optimal order sizes: Evidence from NASDAQ TotalView-ITCH data," SFB 649 Discussion Papers 2011-056, Humboldt University Berlin, Collaborative Research Center 649: Economic Risk.
    11. James H. Stock & Mark W. Watson, 2001. "Vector Autoregressions," Journal of Economic Perspectives, American Economic Association, vol. 15(4), pages 101-115, Fall.
    12. 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..
    13. Konark Jain & Nick Firoozye & Jonathan Kochems & Philip Treleaven, 2024. "Limit Order Book Simulations: A Review," Papers 2402.17359, arXiv.org, revised Mar 2024.
    14. Robert Engle, 2001. "GARCH 101: The Use of ARCH/GARCH Models in Applied Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 15(4), pages 157-168, Fall.
    15. Cox, John C. & Ross, Stephen A. & Rubinstein, Mark, 1979. "Option pricing: A simplified approach," Journal of Financial Economics, Elsevier, vol. 7(3), pages 229-263, September.
    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. Aaron Wheeler & Jeffrey D. Varner, 2023. "Scalable Agent-Based Modeling for Complex Financial Market Simulations," Papers 2312.14903, arXiv.org, revised Jan 2024.
    2. Jovanovic, Franck & Schinckus, Christophe, 2017. "Econophysics and Financial Economics: An Emerging Dialogue," OUP Catalogue, Oxford University Press, number 9780190205034.
    3. 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.
    4. Andrea Di Iura & Giulia Terenzi, 2022. "A Bayesian analysis of gain-loss asymmetry," SN Business & Economics, Springer, vol. 2(5), pages 1-23, May.
    5. Andrea Giuseppe Di Iura & Giulia Terenzi, 2021. "A Bayesian analysis of gain-loss asymmetry," Papers 2104.06044, arXiv.org.
    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. Biondo, Alessio Emanuele & Mazzarino, Laura & Pluchino, Alessandro, 2024. "Trading strategies and Financial Performances: A simulation approach," International Review of Financial Analysis, Elsevier, vol. 95(PB).
    8. De Domenico, Federica & Livan, Giacomo & Montagna, Guido & Nicrosini, Oreste, 2023. "Modeling and simulation of financial returns under non-Gaussian distributions," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 622(C).
    9. 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).
    10. 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.
    11. Anirban Chakraborti & Ioane Muni Toke & Marco Patriarca & Frédéric Abergel, 2011. "Econophysics review: I. Empirical facts," Post-Print hal-00621058, HAL.
    12. Andrea Di Iura, 2022. "Comparison of empirical and shrinkage correlation algorithm for clustering methods in the futures market," SN Business & Economics, Springer, vol. 2(8), pages 1-17, August.
    13. Seemann, Lars & Hua, Jia-Chen & McCauley, Joseph L. & Gunaratne, Gemunu H., 2012. "Ensemble vs. time averages in financial time series analysis," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 391(23), pages 6024-6032.
    14. 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.
    15. Hua, Jia-Chen & Chen, Lijian & Falcon, Liberty & McCauley, Joseph L. & Gunaratne, Gemunu H., 2015. "Variable diffusion in stock market fluctuations," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 419(C), pages 221-233.
    16. repec:spo:wpmain:info:hdl:2441/f6h8764enu2lskk9p4oq9ig8k is not listed on IDEAS
    17. Giulia Di Nunno & Kk{e}stutis Kubilius & Yuliya Mishura & Anton Yurchenko-Tytarenko, 2023. "From constant to rough: A survey of continuous volatility modeling," Papers 2309.01033, arXiv.org, revised Sep 2023.
    18. Ben Hambly & Renyuan Xu & Huining Yang, 2021. "Recent Advances in Reinforcement Learning in Finance," Papers 2112.04553, arXiv.org, revised Feb 2023.
    19. 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.
    20. Christopher M Wray & Steven R Bishop, 2016. "A Financial Market Model Incorporating Herd Behaviour," PLOS ONE, Public Library of Science, vol. 11(3), pages 1-28, March.
    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:2411.16585. 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.