Search arXivSearch

arXiv · 2410.09983

Backtesting Framework for Concentrated Liquidity Market Makers on Uniswap V3 Decentralized Exchange

Abstract

Decentralized finance (DeFi) has revolutionized the financial landscape, with protocols like Uniswap offering innovative automated market-making mechanisms. This article explores the development of a backtesting framework specifically tailored for concentrated liquidity market makers (CLMM). The focus is on leveraging the liquidity distribution approximated using a parametric model, to estimate the rewards within liquidity pools. The article details the design, implementation, and insights derived from this novel approach to backtesting within the context of Uniswap V3. The developed backtester was successfully utilized to assess reward levels across several pools using historical data from 2023 (pools Uniswap v3 for pairs of altcoins, stablecoins and USDC/ETH with different fee levels). Moreover, the error in modeling the level of rewards for the period under review for each pool was less than 1\%. This demonstrated the effectiveness of the backtester in quantifying liquidity pool rewards and its potential in estimating LP's revenues as part of the pool rewards, as focus of our next research. The backtester serves as a tool to simulate trading strategies and liquidity provision scenarios, providing a quantitative assessment of potential returns for liquidity providers (LP). By incorporating statistical tools to mirror CLMM pool liquidity dynamics, this framework can be further leveraged for strategy enhancement and risk evaluation for LPs operating within decentralized exchanges.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Andrey Urusov, Rostislav Berezovskiy, Yury Yanovich. 2024-10-13. Backtesting Framework for Concentrated Liquidity Market Makers on Uniswap V3 Decentralized Exchange. https://arxiv.org/abs/2410.09983

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Fixed-Income Pricing and the Replication of Liabilities

This paper develops a model-free framework for static fixed-income pricing and the replication of liability cash flows. The absence of static arbitrage across a universe of fixed-income instruments is equivalent to the existence of a strictly positive discount curve reproducing all observed prices. Linear programming duality then identifies the least-cost super-replication price with the largest value that any admissible discount curve assigns to the liability, so that the resulting bounds are attained and cannot be improved. Complementary slackness confines over-replication to dates that the optimal discount vector prices at zero, and a least-cost portfolio matches the liability exactly at no fewer dates than the rank of the cash-flow matrix. We also obtain generic uniqueness of that portfolio, an interpolation between quadratic hedging and super-replication, and a static treatment of swap--repo strategies. On US Treasury cross-sections the observed prices violate the law of one price, so that a discount curve must be estimated rather than bootstrapped; the least-cost portfolio then matches an annuity liability at almost every cash-flow date.

q-fin.MF

Gatheral's Conjecture Revisited

We consider the Heston model with perfect negative spot--variance correlation and its one-dimensional local-volatility projection. Let $I_T^{\mathrm H}$ and $I_T^{\mathrm{LV}}$ denote their respective integrated variances over $[0,T]$. We establish the inequality \[ \mathbb{E}\bigl[(I_T^{\mathrm H}-K)^+\bigr] < \mathbb{E}\bigl[(I_T^{\mathrm{LV}}-K)^+\bigr] \] for every maturity $T>0$ and every strike $K>0$. Consequently, Heston integrated variance is strictly smaller in convex order than the integrated variance of the calibrated local-volatility model. This strict ordering gives a Heston-model counterexample to the convex-order inequality conjectured by J. Gatheral.

q-fin.MF

Concave Shape of the Yield Curve and No Arbitrage

In fixed income sector, the yield curve is probably the most observed indicator by the market for trading and fifinancing purposes. A yield curve plots interest rates across different contract maturities from short end to as long as 30 years. For each currency, the corresponding curve shows the relation between the level of the interest rates (or cost of borrowing) and the time to maturity. For example, the U.S. dollar interest rates paid on U.S. Treasury securities for various maturities are plotted as the US treasury curve. For the same currency, if the swap market is used, we could also plot the swap rates across the tenors which would be called the swap curve.Even the yield curve can be at, upward or downward (inverted), however, yield curve is generally concave. There is a lack of explanation of the concavity of the yield curve shape from economics theory. We offer in this article an explanation of the concavity shape of the yield curve from trading perspectives.

q-fin.MF