IDEAS home Printed from https://ideas.repec.org/a/eee/ejores/v296y2022i3p993-1006.html
   My bibliography  Save this article

Deep reinforcement learning for the optimal placement of cryptocurrency limit orders

Author

Listed:
  • Schnaubelt, Matthias

Abstract

This paper presents the first large-scale application of deep reinforcement learning to optimize execution at cryptocurrency exchanges by learning optimal limit order placement strategies. Execution optimization is highly relevant for both professional asset managers and private investors as execution quality affects portfolio performance at economically significant levels and is the target of regulatory supervision. To optimize execution with deep reinforcement learning, we design a problem-specific training environment that introduces a purpose-built reward function, hand-crafted market state features and a virtual limit order exchange. We empirically compare state-of-the-art deep reinforcement learning algorithms to several benchmarks with market data from major cryptocurrency exchanges, which represent an ideal test bed for our study as liquidity costs are relatively high. In total, we leverage 18 months of high-frequency data for several currency pairs with 300 million trades and more than 3.5 million order book states. We find proximal policy optimization to reliably learn superior order placement strategies. By interacting with our simulated limit order exchange, it learns cryptocurrency execution strategies that are empirically known from established markets. Order placement becomes more aggressive in anticipation of lower execution probabilities, which is indicated by trade and order imbalances.

Suggested Citation

  • Schnaubelt, Matthias, 2022. "Deep reinforcement learning for the optimal placement of cryptocurrency limit orders," European Journal of Operational Research, Elsevier, vol. 296(3), pages 993-1006.
  • Handle: RePEc:eee:ejores:v:296:y:2022:i:3:p:993-1006
    DOI: 10.1016/j.ejor.2021.04.050
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0377221721003854
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ejor.2021.04.050?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Erhan Bayraktar & Michael Ludkovski, 2014. "Liquidation In Limit Order Books With Controlled Intensity," Mathematical Finance, Wiley Blackwell, vol. 24(4), pages 627-650, October.
    2. Griffiths, Mark D. & Smith, Brian F. & Turnbull, D. Alasdair S. & White, Robert W., 2000. "The costs and determinants of order aggressiveness," Journal of Financial Economics, Elsevier, vol. 56(1), pages 65-88, April.
    3. Foucault, Thierry, 1998. "Order Flow Composition and Trading Costs in Dynamic Limit Order Markets," CEPR Discussion Papers 1817, C.E.P.R. Discussion Papers.
    4. �lvaro Cartea & Sebastian Jaimungal, 2015. "Optimal execution with limit and market orders," Quantitative Finance, Taylor & Francis Journals, vol. 15(8), pages 1279-1291, August.
    5. Matthias Schnaubelt & Jonas Rende & Christopher Krauss, 2019. "Testing Stylized Facts of Bitcoin Limit Order Books," JRFM, MDPI, vol. 12(1), pages 1-30, February.
    6. Atsalakis, George S. & Atsalaki, Ioanna G. & Pasiouras, Fotios & Zopounidis, Constantin, 2019. "Bitcoin price forecasting with neuro-fuzzy techniques," European Journal of Operational Research, Elsevier, vol. 276(2), pages 770-780.
    7. 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.
    8. 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.
    9. Makarov, Igor & Schoar, Antoinette, 2020. "Trading and arbitrage in cryptocurrency markets," Journal of Financial Economics, Elsevier, vol. 135(2), pages 293-319.
    10. 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.
    11. Ha, Youngmin & Zhang, Hai, 2020. "Algorithmic trading for online portfolio selection under limited market liquidity," European Journal of Operational Research, Elsevier, vol. 286(3), pages 1033-1051.
    12. Wenhang Bao & Xiao-yang Liu, 2019. "Multi-Agent Deep Reinforcement Learning for Liquidation Strategy Analysis," Papers 1906.11046, arXiv.org.
    13. Thomas Günter Fischer & Christopher Krauss & Alexander Deinert, 2019. "Statistical Arbitrage in Cryptocurrency Markets," JRFM, MDPI, vol. 12(1), pages 1-15, February.
    14. Peter Gomber & Uwe Schweickert & Erik Theissen, 2015. "Liquidity Dynamics in an Electronic Open Limit Order Book: an Event Study Approach," European Financial Management, European Financial Management Association, vol. 21(1), pages 52-78, January.
    15. Rama Cont & Arseniy Kukanov, 2017. "Optimal order placement in limit order markets," Quantitative Finance, Taylor & Francis Journals, vol. 17(1), pages 21-39, January.
    16. Hans Degryse & Frank De Jong & Maarten Van Ravenswaaij & Gunther Wuyts, 2005. "Aggressive Orders and the Resiliency of a Limit Order Market," Review of Finance, European Finance Association, vol. 9(2), pages 201-242.
    17. Goettler, Ronald L. & Parlour, Christine A. & Rajan, Uday, 2009. "Informed traders and limit order markets," Journal of Financial Economics, Elsevier, vol. 93(1), pages 67-87, July.
    18. Arthur le Calvez & Dave Cliff, 2018. "Deep Learning can Replicate Adaptive Traders in a Limit-Order-Book Financial Market," Papers 1811.02880, arXiv.org.
    19. Robert Battalio & Shane A. Corwin & Robert Jennings, 2016. "Can Brokers Have It All? On the Relation between Make-Take Fees and Limit Order Execution Quality," Journal of Finance, American Finance Association, vol. 71(5), pages 2193-2238, October.
    20. Volodymyr Mnih & Koray Kavukcuoglu & David Silver & Andrei A. Rusu & Joel Veness & Marc G. Bellemare & Alex Graves & Martin Riedmiller & Andreas K. Fidjeland & Georg Ostrovski & Stig Petersen & Charle, 2015. "Human-level control through deep reinforcement learning," Nature, Nature, vol. 518(7540), pages 529-533, February.
    21. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    22. Obizhaeva, Anna A. & Wang, Jiang, 2013. "Optimal trading strategy and supply/demand dynamics," Journal of Financial Markets, Elsevier, vol. 16(1), pages 1-32.
    23. 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.
    24. Justin A. Sirignano, 2019. "Deep learning for limit order books," Quantitative Finance, Taylor & Francis Journals, vol. 19(4), pages 549-570, April.
    25. Charles Cao & Oliver Hansch & Xiaoxin Wang, 2009. "The information content of an open limit‐order book," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 29(1), pages 16-41, January.
    26. Makarov, Igor & Schoar, Antoinette, 2020. "Trading and arbitrage in cryptocurrency markets," LSE Research Online Documents on Economics 100409, London School of Economics and Political Science, LSE Library.
    27. Zhang, Guoqiang & Eddy Patuwo, B. & Y. Hu, Michael, 1998. "Forecasting with artificial neural networks:: The state of the art," International Journal of Forecasting, Elsevier, vol. 14(1), pages 35-62, March.
    28. Amber Anand & Paul Irvine & Andy Puckett & Kumar Venkataraman, 2012. "Performance of Institutional Trading Desks: An Analysis of Persistence in Trading Costs," The Review of Financial Studies, Society for Financial Studies, vol. 25(2), pages 557-598.
    29. Ranaldo, Angelo, 2004. "Order aggressiveness in limit order book markets," Journal of Financial Markets, Elsevier, vol. 7(1), pages 53-74, January.
    30. Foucault, Thierry, 1999. "Order flow composition and trading costs in a dynamic limit order market1," Journal of Financial Markets, Elsevier, vol. 2(2), pages 99-134, May.
    31. Dieter Hendricks & Diane Wilcox, 2014. "A reinforcement learning extension to the Almgren-Chriss model for optimal trade execution," Papers 1403.2229, arXiv.org.
    32. Parameswaran Gopikrishnan & Vasiliki Plerou & Xavier Gabaix & H. Eugene Stanley, 2000. "Statistical Properties of Share Volume Traded in Financial Markets," Papers cond-mat/0008113, arXiv.org.
    33. Bertsimas, Dimitris & Lo, Andrew W., 1998. "Optimal control of execution costs," Journal of Financial Markets, Elsevier, vol. 1(1), pages 1-50, April.
    34. Abhinava Tripathi & Vipul & Alok Dixit, 2020. "Limit order books: a systematic review of literature," Qualitative Research in Financial Markets, Emerald Group Publishing Limited, vol. 12(4), pages 505-541, June.
    35. Fischer, Thomas G., 2018. "Reinforcement learning in financial markets - a survey," FAU Discussion Papers in Economics 12/2018, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    36. Kissell, Robert & Glantz, Morton & Malamut, Roberto, 2004. "A practical framework for estimating transaction costs and developing optimal trading strategies to achieve best execution," Finance Research Letters, Elsevier, vol. 1(1), pages 35-46, March.
    37. Potters, Marc & Bouchaud, Jean-Philippe, 2003. "More statistical properties of order books and price impact," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 324(1), pages 133-140.
    38. Schnaubelt, Matthias & Fischer, Thomas G. & Krauss, Christopher, 2020. "Separating the signal from the noise – Financial machine learning for Twitter," Journal of Economic Dynamics and Control, Elsevier, vol. 114(C).
    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. Dupret, Jean-Loup & Hainaut, Donatien, 2023. "Optimal liquidation under indirect price impact with propagator," LIDAM Discussion Papers ISBA 2023012, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    2. Kriebel, Johannes & Stitz, Lennart, 2022. "Credit default prediction from user-generated text in peer-to-peer lending using deep learning," European Journal of Operational Research, Elsevier, vol. 302(1), pages 309-323.
    3. Cong Zheng & Jiafa He & Can Yang, 2023. "Optimal Execution Using Reinforcement Learning," Papers 2306.17178, arXiv.org.
    4. Ren, Yi-Shuai & Ma, Chao-Qun & Kong, Xiao-Lin & Baltas, Konstantinos & Zureigat, Qasim, 2022. "Past, present, and future of the application of machine learning in cryptocurrency research," Research in International Business and Finance, Elsevier, vol. 63(C).
    5. Peer Nagy & Jan-Peter Calliess & Stefan Zohren, 2023. "Asynchronous Deep Double Duelling Q-Learning for Trading-Signal Execution in Limit Order Book Markets," Papers 2301.08688, arXiv.org, revised Sep 2023.
    6. Jin Fang & Jiacheng Weng & Yi Xiang & Xinwen Zhang, 2022. "Imitate then Transcend: Multi-Agent Optimal Execution with Dual-Window Denoise PPO," Papers 2206.10736, arXiv.org.
    7. Alfonso-Sánchez, Sherly & Solano, Jesús & Correa-Bahnsen, Alejandro & Sendova, Kristina P. & Bravo, Cristián, 2024. "Optimizing credit limit adjustments under adversarial goals using reinforcement learning," European Journal of Operational Research, Elsevier, vol. 315(2), pages 802-817.
    8. Ye, Wuyi & Yang, Jinting & Chen, Pengzhan, 2024. "Short-term stock price trend prediction with imaging high frequency limit order book data," International Journal of Forecasting, Elsevier, vol. 40(3), pages 1189-1205.
    9. Xianfeng Jiao & Zizhong Li & Chang Xu & Yang Liu & Weiqing Liu & Jiang Bian, 2023. "Microstructure-Empowered Stock Factor Extraction and Utilization," Papers 2308.08135, arXiv.org.
    10. Zhong, Yannan & Xu, Weijun & Li, Hongyi & Zhong, Weiwei, 2024. "Distributed mean reversion online portfolio strategy with stock network," European Journal of Operational Research, Elsevier, vol. 314(3), pages 1143-1158.
    11. Jingyang Wu & Xinyi Zhang & Fangyixuan Huang & Haochen Zhou & Rohtiash Chandra, 2024. "Review of deep learning models for crypto price prediction: implementation and evaluation," Papers 2405.11431, arXiv.org, revised Jun 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. Schnaubelt, Matthias, 2020. "Deep reinforcement learning for the optimal placement of cryptocurrency limit orders," FAU Discussion Papers in Economics 05/2020, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    2. 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.
    3. Ningyuan Chen & Steven Kou & Chun Wang, 2018. "A Partitioning Algorithm for Markov Decision Processes with Applications to Market Microstructure," Management Science, INFORMS, vol. 64(2), pages 784-803, February.
    4. 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.
    5. Danny Lo, 2015. "Essays in Market Microstructure and Investor Trading," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 4-2015, January-A.
    6. Danny Lo, 2015. "Essays in Market Microstructure and Investor Trading," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 22, July-Dece.
    7. Matthias Schnaubelt & Jonas Rende & Christopher Krauss, 2019. "Testing Stylized Facts of Bitcoin Limit Order Books," JRFM, MDPI, vol. 12(1), pages 1-30, February.
    8. Yamamoto, Ryuichi, 2019. "Dynamic Predictor Selection And Order Splitting In A Limit Order Market," Macroeconomic Dynamics, Cambridge University Press, vol. 23(5), pages 1757-1792, July.
    9. Obizhaeva, Anna A. & Wang, Jiang, 2013. "Optimal trading strategy and supply/demand dynamics," Journal of Financial Markets, Elsevier, vol. 16(1), pages 1-32.
    10. Stenfors, Alexis & Susai, Masayuki, 2019. "Liquidity withdrawal in the FX spot market: A cross-country study using high-frequency data," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 59(C), pages 36-57.
    11. Alexis Stenfors & Masayuki Susai, 2017. "Algorithmic Trading Behaviour and High-Frequency Liquidity Withdrawal in the FX Spot Market," Working Papers in Economics & Finance 2017-04, University of Portsmouth, Portsmouth Business School, Economics and Finance Subject Group.
    12. Daniel Havran & Kata Varadi, 2015. "Price Impact and the Recovery of the Limit Order Book: Why Should We Care About Informed Liquidity Providers?," CERS-IE WORKING PAPERS 1540, Institute of Economics, Centre for Economic and Regional Studies.
    13. Mircea BAHNA & Cosmin-Octavian CEPOI & Bogdan Andrei DUMITRESCU & Virgil DAMIAN, 2018. "Estimating the Price Impact of Market Orders on the Bucharest Stock Exchange," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 120-133, December.
    14. S. C. P. Yam & W. Zhou, 2017. "Optimal Liquidation of Child Limit Orders," Mathematics of Operations Research, INFORMS, vol. 42(2), pages 517-545, May.
    15. Wu, Liang & Yan, Xin & Fu, Zhiming & Zhang, Rui, 2019. "Do investors choose trade-size according to liquidity, empirical evidence from the S&P 500 index future market," Finance Research Letters, Elsevier, vol. 28(C), pages 275-280.
    16. 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.
    17. James S. Ang & Kenneth J. Hunsader & Shaojun Zhang, 2019. "Order dynamics during the flash crash," Journal of Asset Management, Palgrave Macmillan, vol. 20(5), pages 365-383, September.
    18. Menkhoff, Lukas & Osler, Carol L. & Schmeling, Maik, 2010. "Limit-order submission strategies under asymmetric information," Journal of Banking & Finance, Elsevier, vol. 34(11), pages 2665-2677, November.
    19. Ben Hambly & Renyuan Xu & Huining Yang, 2021. "Recent Advances in Reinforcement Learning in Finance," Papers 2112.04553, arXiv.org, revised Feb 2023.
    20. Degryse, Hans & Karagiannis, Nikolaos, 2019. "Priority Rules," CEPR Discussion Papers 14127, C.E.P.R. Discussion Papers.

    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:eee:ejores:v:296:y:2022:i:3:p:993-1006. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/eor .

    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.