IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2605.06405.html

Funding-Aware Optimal Market Making for Perpetual DEXs

Author

Listed:
  • Nam Anh Le

Abstract

This paper studies optimal liquidity provision for perpetual contracts when the funding rate is a stochastic state variable. The core extension to classical market making is the coupling between inventory and funding payments: inventory creates both mark-to-market exposure and a state-dependent funding cash flow. A reduced inventory-funding control problem is formulated, solved with a monotone finite-difference Hamilton-Jacobi-Bellman scheme, and bid and ask quote offsets are recovered from discrete inventory value differences. Funding is calibrated on Hyperliquid ETH, BTC, and SOL perpetual data. Gaussian OU funding is retained as a tractable diffusion baseline, while OU-plus-jump diagnostics document the heavy-tailed funding innovations that should enter a future extension. In 100-seed holdout simulations under two official-fill proxy calibrations, the funding-aware HJB improves mean ETH/BTC performance while lowering inventory RMS relative to classical Avellaneda-Stoikov. SOL gains are positive versus unscaled AS but are not a Pareto improvement once a risk-scaled AS diagnostic is included.

Suggested Citation

  • Nam Anh Le, 2026. "Funding-Aware Optimal Market Making for Perpetual DEXs," Papers 2605.06405, arXiv.org.
  • Handle: RePEc:arx:papers:2605.06405
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Marco Avellaneda & Sasha Stoikov, 2008. "High-frequency trading in a limit order book," Quantitative Finance, Taylor & Francis Journals, vol. 8(3), pages 217-224.
    2. Hasbrouck, Joel, 2007. "Empirical Market Microstructure: The Institutions, Economics, and Econometrics of Securities Trading," OUP Catalogue, Oxford University Press, number 9780195301649.
    3. Fabian Schär, 2021. "Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets," Review, Federal Reserve Bank of St. Louis, vol. 103(2), pages 153-174, April.
    4. Glosten, Lawrence R. & Milgrom, Paul R., 1985. "Bid, ask and transaction prices in a specialist market with heterogeneously informed traders," Journal of Financial Economics, Elsevier, vol. 14(1), pages 71-100, March.
    5. Kyle, Albert S, 1985. "Continuous Auctions and Insider Trading," Econometrica, Econometric Society, vol. 53(6), pages 1315-1335, November.
    6. Bertsimas, Dimitris & Lo, Andrew W., 1998. "Optimal control of execution costs," Journal of Financial Markets, Elsevier, vol. 1(1), pages 1-50, April.
    7. Vijay Mohan, 2022. "Automated market makers and decentralized exchanges: a DeFi primer," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-48, December.
    8. Rama Cont & Sasha Stoikov & Rishi Talreja, 2010. "A Stochastic Model for Order Book Dynamics," Operations Research, INFORMS, vol. 58(3), pages 549-563, June.
    9. Robin Hanson, 2007. "Logarithmic Market Scoring Rules for Modular Combinatorial Information Aggregation," Journal of Prediction Markets, University of Buckingham Press, vol. 1(1), pages 3-15, February.
    10. Ho, Thomas & Stoll, Hans R., 1981. "Optimal dealer pricing under transactions and return uncertainty," Journal of Financial Economics, Elsevier, vol. 9(1), pages 47-73, March.
    11. Carol Alexander & Jaehyuk Choi & Heungju Park & Sungbin Sohn, 2020. "BitMEX bitcoin derivatives: Price discovery, informational efficiency, and hedging effectiveness," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(1), pages 23-43, January.
    12. Jaehyun Kim & Hyungbin Park, 2025. "Designing funding rates for perpetual futures in cryptocurrency markets," Papers 2506.08573, arXiv.org.
    13. 'Alvaro Cartea & Fayc{c}al Drissi & Marcello Monga, 2023. "Decentralised Finance and Automated Market Making: Execution and Speculation," Papers 2307.03499, arXiv.org, revised Jun 2025.
    14. Guillermo Angeris & Tarun Chitra & Alex Evans & Stephen Boyd, 2022. "Optimal Routing for Constant Function Market Makers," Papers 2204.05238, arXiv.org.
    15. Sam M. Werner & Daniel Perez & Lewis Gudgeon & Ariah Klages-Mundt & Dominik Harz & William J. Knottenbelt, 2021. "SoK: Decentralized Finance (DeFi)," Papers 2101.08778, arXiv.org, revised Sep 2022.
    16. Fabien Guilbaud & Huyên Pham, 2013. "Optimal high-frequency trading with limit and market orders," Quantitative Finance, Taylor & Francis Journals, vol. 13(1), pages 79-94, January.
    17. Cartea, Álvaro & Drissi, Fayçal & Monga, Marcello, 2025. "Decentralised finance and automated market making: Execution and speculation," Journal of Economic Dynamics and Control, Elsevier, vol. 177(C).
    18. Harold Demsetz, 1968. "The Cost of Transacting," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 82(1), pages 33-53.
    19. Ryan Donnelly & Junhan Lin & Matthew Lorig, 2026. "Optimal Liquidation of Perpetual Contracts," Papers 2601.10812, arXiv.org.
    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. Olivier Guéant, 2016. "The Financial Mathematics of Market Liquidity: From Optimal Execution to Market Making," Post-Print hal-01393136, HAL.
    2. Joseph Jerome & Leandro Sanchez-Betancourt & Rahul Savani & Martin Herdegen, 2022. "Model-based gym environments for limit order book trading," Papers 2209.07823, arXiv.org.
    3. Marcello Monga, 2024. "Automated Market Making and Decentralized Finance," Papers 2407.16885, arXiv.org.
    4. Baron Law & Frederi Viens, 2019. "Market Making under a Weakly Consistent Limit Order Book Model," Papers 1903.07222, arXiv.org, revised Jan 2020.
    5. Agostino Capponi & 'Alvaro Cartea & Fayc{c}al Drissi, 2026. "The Viability of Blockchain Markets under Discrete Clearing and Paid Priority," Papers 2605.17425, arXiv.org.
    6. Christoph Kuhn & Johannes Muhle-Karbe, 2013. "Optimal Liquidity Provision," Papers 1309.5235, arXiv.org, revised Feb 2015.
    7. Hong Guo & Jianwu Lin & Fanlin Huang, 2023. "Market Making with Deep Reinforcement Learning from Limit Order Books," Papers 2305.15821, arXiv.org.
    8. King, Michael R. & Osler, Carol L. & Rime, Dagfinn, 2013. "The market microstructure approach to foreign exchange: Looking back and looking forward," Journal of International Money and Finance, Elsevier, vol. 38(C), pages 95-119.
    9. 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.
    10. Bastien Baldacci & Jerome Benveniste & Gordon Ritter, 2020. "Optimal trading without optimal control," Papers 2012.12945, arXiv.org.
    11. Philippe Bergault & Louis Bertucci & David Bouba & Olivier Gu'eant, 2022. "Automated Market Makers: Mean-Variance Analysis of LPs Payoffs and Design of Pricing Functions," Papers 2212.00336, arXiv.org, revised Nov 2023.
    12. Vayanos, Dimitri & Wang, Jiang, 2013. "Market Liquidity—Theory and Empirical Evidence ," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, volume 2, chapter 0, pages 1289-1361, Elsevier.
    13. Luca Erzegovesi, 2002. "VaR and Liquidity Risk.Impact on Market Behaviour and Measurement Issues," Alea Tech Reports 014, Department of Computer and Management Sciences, University of Trento, Italy, revised 14 Jun 2008.
    14. Kühn, Christoph & Muhle-Karbe, Johannes, 2015. "Optimal liquidity provision," Stochastic Processes and their Applications, Elsevier, vol. 125(7), pages 2493-2515.
    15. Kashyap, Ravi, 2020. "David vs Goliath (You against the Markets), A dynamic programming approach to separate the impact and timing of trading costs," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 545(C).
    16. David Evangelista & Yuri Saporito & Yuri Thamsten, 2022. "Price formation in financial markets: a game-theoretic perspective," Papers 2202.11416, arXiv.org.
    17. Qinghua Li, 2014. "Facilitation and Internalization Optimal Strategy in a Multilateral Trading Context," Papers 1404.7320, arXiv.org, revised Jan 2015.
    18. Etienne Chevalier & M’hamed Gaïgi & Vathana Ly Vath & Mohamed Mnif, 2017. "Optimal Market Dealing Under Constraints," Journal of Optimization Theory and Applications, Springer, vol. 173(1), pages 313-335, April.
    19. Bruno Gašperov & Stjepan Begušić & Petra Posedel Šimović & Zvonko Kostanjčar, 2021. "Reinforcement Learning Approaches to Optimal Market Making," Mathematics, MDPI, vol. 9(21), pages 1-22, October.
    20. Roman Gayduk & Sergey Nadtochiy, 2015. "Liquidity Effects of Trading Frequency," Papers 1508.07914, arXiv.org, revised May 2017.

    More about this item

    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:2605.06405. 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: https://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.