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

Optimal Trading in Automatic Market Makers with Deep Learning

Author

Listed:
  • Sebastian Jaimungal
  • Yuri F. Saporito
  • Max O. Souza
  • Yuri Thamsten

Abstract

This article explores the optimisation of trading strategies in Constant Function Market Makers (CFMMs) and centralised exchanges. We develop a model that accounts for the interaction between these two markets, estimating the conditional dependence between variables using the concept of conditional elicitability. Furthermore, we pose an optimal execution problem where the agent hides their orders by controlling the rate at which they trade. We do so without approximating the market dynamics. The resulting dynamic programming equation is not analytically tractable, therefore, we employ the deep Galerkin method to solve it. Finally, we conduct numerical experiments and illustrate that the optimal strategy is not prone to price slippage and outperforms na\"ive strategies.

Suggested Citation

  • Sebastian Jaimungal & Yuri F. Saporito & Max O. Souza & Yuri Thamsten, 2023. "Optimal Trading in Automatic Market Makers with Deep Learning," Papers 2304.02180, arXiv.org.
  • Handle: RePEc:arx:papers:2304.02180
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Anthony Coache & Sebastian Jaimungal & 'Alvaro Cartea, 2022. "Conditionally Elicitable Dynamic Risk Measures for Deep Reinforcement Learning," Papers 2206.14666, arXiv.org, revised May 2023.
    2. Guillermo Angeris & Akshay Agrawal & Alex Evans & Tarun Chitra & Stephen Boyd, 2022. "Constant Function Market Makers: Multi-asset Trades via Convex Optimization," Springer Optimization and Its Applications, in: Duc A. Tran & My T. Thai & Bhaskar Krishnamachari (ed.), Handbook on Blockchain, pages 415-444, Springer.
    3. Guillermo Angeris & Tarun Chitra & Alex Evans & Stephen Boyd, 2022. "Optimal Routing for Constant Function Market Makers," Papers 2204.05238, arXiv.org.
    4. Ali Al-Aradi & Adolfo Correia & Danilo Naiff & Gabriel Jardim & Yuri Saporito, 2018. "Solving Nonlinear and High-Dimensional Partial Differential Equations via Deep Learning," Papers 1811.08782, arXiv.org.
    5. Justin Sirignano & Konstantinos Spiliopoulos, 2017. "DGM: A deep learning algorithm for solving partial differential equations," Papers 1708.07469, arXiv.org, revised Sep 2018.
    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. David Evangelista & Yuri Thamsten, 2023. "Approximately optimal trade execution strategies under fast mean-reversion," Papers 2307.07024, arXiv.org, revised Aug 2023.

    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. Sebastian Jaimungal, 2022. "Reinforcement learning and stochastic optimisation," Finance and Stochastics, Springer, vol. 26(1), pages 103-129, January.
    2. Al-Aradi, Ali & Correia, Adolfo & Jardim, Gabriel & de Freitas Naiff, Danilo & Saporito, Yuri, 2022. "Extensions of the deep Galerkin method," Applied Mathematics and Computation, Elsevier, vol. 430(C).
    3. Kathrin Glau & Linus Wunderlich, 2020. "The Deep Parametric PDE Method: Application to Option Pricing," Papers 2012.06211, arXiv.org.
    4. Laurens Van Mieghem & Antonis Papapantoleon & Jonas Papazoglou-Hennig, 2023. "Machine learning for option pricing: an empirical investigation of network architectures," Papers 2307.07657, arXiv.org.
    5. Daeyung Gim & Hyungbin Park, 2021. "A deep learning algorithm for optimal investment strategies," Papers 2101.12387, arXiv.org.
    6. Kevin Shuai Zhang & Traian Pirvu, 2021. "Pricing spread option with liquidity adjustments," Papers 2101.00223, arXiv.org.
    7. Carl Remlinger & Joseph Mikael & Romuald Elie, 2022. "Robust Operator Learning to Solve PDE," Working Papers hal-03599726, HAL.
    8. Glau, Kathrin & Wunderlich, Linus, 2022. "The deep parametric PDE method and applications to option pricing," Applied Mathematics and Computation, Elsevier, vol. 432(C).
    9. Kristina O. F. Williams & Benjamin F. Akers, 2023. "Numerical Simulation of the Korteweg–de Vries Equation with Machine Learning," Mathematics, MDPI, vol. 11(13), pages 1-14, June.
    10. William Lefebvre & Enzo Miller, 2021. "Linear-quadratic stochastic delayed control and deep learning resolution," Working Papers hal-03145949, HAL.
    11. Parand, K. & Aghaei, A.A. & Jani, M. & Ghodsi, A., 2021. "A new approach to the numerical solution of Fredholm integral equations using least squares-support vector regression," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 180(C), pages 114-128.
    12. William Lefebvre & Enzo Miller, 2021. "Linear-quadratic stochastic delayed control and deep learning resolution," Papers 2102.09851, arXiv.org, revised Feb 2021.
    13. A. Max Reppen & H. Mete Soner & Valentin Tissot-Daguette, 2022. "Deep Stochastic Optimization in Finance," Papers 2205.04604, arXiv.org.
    14. Jian Liang & Zhe Xu & Peter Li, 2019. "Deep Learning-Based Least Square Forward-Backward Stochastic Differential Equation Solver for High-Dimensional Derivative Pricing," Papers 1907.10578, arXiv.org, revised Oct 2020.
    15. Shuaiqiang Liu & Cornelis W. Oosterlee & Sander M. Bohte, 2019. "Pricing Options and Computing Implied Volatilities using Neural Networks," Risks, MDPI, vol. 7(1), pages 1-22, February.
    16. Bastien Baldacci & Joffrey Derchu & Iuliia Manziuk, 2020. "An approximate solution for options market-making in high dimension," Papers 2009.00907, arXiv.org.
    17. Alexandre Pannier & Cristopher Salvi, 2024. "A path-dependent PDE solver based on signature kernels," Papers 2403.11738, arXiv.org.
    18. Rong Du & Duy-Minh Dang, 2023. "Fourier Neural Network Approximation of Transition Densities in Finance," Papers 2309.03966, arXiv.org.
    19. Ali Al-Aradi & Adolfo Correia & Danilo de Frietas Naiff & Gabriel Jardim & Yuri Saporito, 2019. "Extensions of the Deep Galerkin Method," Papers 1912.01455, arXiv.org, revised Apr 2022.
    20. Maximilien Germain & Huyên Pham & Xavier Warin, 2021. "Neural networks-based algorithms for stochastic control and PDEs in finance ," Post-Print hal-03115503, HAL.

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