This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

A Myersonian Framework for Optimal Liquidity Provision in Automated Market Makers

Jason Milionis
Department of Computer Science
Columbia University
jm@cs.columbia.edu
   Ciamac C. Moallemi
Graduate School of Business
Columbia University
ciamac@gsb.columbia.edu
   Tim Roughgarden
Department of Computer Science
Columbia University
a16z Crypto
tim.roughgarden@gmail.com
(Initial version: October 19, 2022
Current version: November 27, 2023 )
Abstract

In decentralized finance (“DeFi”), automated market makers (AMMs) enable traders to programmatically exchange one asset for another. Such trades are enabled by the assets deposited by liquidity providers (LPs). The goal of this paper is to characterize and interpret the optimal (i.e., profit-maximizing) strategy of a monopolist liquidity provider, as a function of that LP’s beliefs about asset prices and trader behavior. We introduce a general framework for reasoning about AMMs based on a Bayesian-like belief inference framework, where LPs maintain an asset price estimate, which is updated by incorporating traders’ price estimates. In this model, the market maker (i.e., LP) chooses a demand curve that specifies the quantity of a risky asset to be held at each dollar price. Traders arrive sequentially and submit a price bid that can be interpreted as their estimate of the risky asset price; the AMM responds to this submitted bid with an allocation of the risky asset to the trader, a payment that the trader must pay, and a revised internal estimate for the true asset price. We define an incentive-compatible (IC) AMM as one in which a trader’s optimal strategy is to submit its true estimate of the asset price, and characterize the IC AMMs as those with downward-sloping demand curves and payments defined by a formula familiar from Myerson’s optimal auction theory. We generalize Myerson’s virtual values, and characterize the profit-maximizing IC AMM. The optimal demand curve generally has a jump that can be interpreted as a “bid-ask spread,” which we show is caused by a combination of adverse selection risk (dominant when the degree of information asymmetry is large) and monopoly pricing (dominant when asymmetry is small). This work opens up new research directions into the study of automated exchange mechanisms from the lens of optimal auction theory and iterative belief inference, using tools of theoretical computer science in a novel way.

1 Introduction

1.1 Exchanges and Market Makers

The purpose of an exchange is to enable the trade of two or more assets. At a stock exchange, for example, shares of a stock might be exchanged for US dollars via a mechanism known as a “limit order book” (LOB), in which buyers and sellers post “limit orders” (offers to buy or sell a specified quantity at a specified price) that are then matched greedily.

Every trade has two sides: for one user to buy a risky asset at a given price, there must be a corresponding seller willing to sell at that same price. Such trades can occur organically due to a coincidence of wants from two traders, but in practice many trades are enabled by professional market makers who continually match buy and sell orders whenever the price is right. This paper is about the profit-maximization problem faced by such a market maker. In particular, the market maker is continually updating their beliefs around the asset price, according to a Bayesian-like belief inference framework, from a prior belief in conjunction with observations by traders who report price estimates.

Digital assets secured by blockchains, such as cryptocurrencies, are also traded via exchanges. In centralized exchanges such as Coinbase or Binance, users hand control of their assets over to the exchange and, therefore, accept the credit risk of not getting them back. Such exchanges are typically based on the CLOB design. Decentralized exchanges (DEXs), on the other hand, operate purely programmatically (i.e., “on-chain”), are typically non-custodial (meaning that traders at all times have direct control of their assets in the sense that assets are not entrusted to a third party), and often depart from the CLOB model. There are several reasons for this departure: on-chain computation and storage can be expensive, and CLOBs need a lot of both; the markets for many digital assets (especially long-tail ones) are thin and have no dedicated market makers, in which case CLOBs may fail to provide an acceptable level of liquidity; and a general openness in the blockchain world to experimental designs. The DEX design space is large, and many different designs have been deployed (on Ethereum and other general-purpose smart contract platforms) over the past years.

For example, Uniswap (especially in its earliest iterations, v1 and v2) is a canonical example of an automated market maker (AMM). In an AMM (unlike in a CLOB), the roles of traders and market makers are clearly separated. A market maker, which in this context is called a liquidity provider (LP), deposits into the AMM some amounts of the assets being traded (and is, by default, passive thereafter). At all times, the AMM defines a marginal price as a function of its current reserves of those assets. (In the case of Uniswap v1 and v2, the spot price of an AMM is simply the ratio of the quantities of its two assets.) The AMM is willing to take either side of a trade (buy or sell) at its current marginal price, and in this sense is always providing liquidity to traders. The latest iteration of Uniswap (v3) blurs the line between AMMs and CLOBs by allowing a much wider range of LP demand curves than in v2 (to some extent approximating what can be expressed by limit orders in a CLOB), thereby encouraging an LP to more actively manage its demand curve as market conditions evolve.

The goal of this paper is to characterize the solution to the following fundamental question: What is the optimal liquidity demand curve for a profit-maximizing market maker? This question is relevant for a market maker in a CLOB, an LP of an expressive AMM such as Uniswap v3, or even the designer of a new AMM (in which case the market making liquidity demand curve is defined programmatically rather than submitted by a third-party LP). This paper offers a new model for reasoning about this question and a quite general answer, which resembles in many respects, and in fact generalizes, Myerson’s theory of optimal auctions [33]. To get a feel for our model and results, we next discuss a highly restricted but nonetheless illuminating special case, and give a very brief overview of our general theory.

1.2 The Pure “Noise Trading” Case and an Overview of the General Case

The theory of market microstructure (see e.g., [35]) differentiates between “informed traders,” who have better information about the fundamental value of an asset than the market maker does, and “noise traders,” who trade for idiosyncratic reasons that do not reflect any private information about the fundamental value of the asset. Generally speaking, market makers lose money to informed traders due to adverse selection: by virtue of such a trader being willing to trade, it expects a profit, which, due to the zero-sum nature of common-value assets, comes at the expense of the market maker. Market makers can, however, generally profit from noise traders. In this section, we first consider (as an instructive warm-up) the special case in which all traders are noise traders (and hence adverse selection plays no role). Our general model, the results of which are briefly presented in the end of this section, and which is detailed in Section 3 accommodates arbitrary mixtures of informed and noise traders, and our general results must therefore reflect adverse selection effects in addition to the aspects identified in this section.

Fundamentally, a market maker must decide, as a function of the information available to it, how much of a risky asset they are willing to buy or sell at different prices. For this example, we will assume that the market maker knows the true value p0p_{0} of the risky asset that it is trading.

An obvious strategy for such a market maker is to accept exactly the orders on which it makes money: all (and only) the buy orders with offered price more than p0p_{0}, and all (and only) the sell orders with offered price less than p0p_{0}. However, as we will see, this is not in general the profit-maximizing strategy for a market maker.

It will be convenient to encode a market maker’s strategy via the choice of a demand curve gg, which maps prices to quantities (i.e., an amount of risky asset that will be held by the market maker). The interpretation is that the market maker would be interested in selling g(p0)g(p)g(p_{0})-g(p) units of the risky asset at the price pp. (Note that this may be a negative number of units, in which case the market maker will be buying the risky asset from the trader.) A choice of p0p_{0} and gg induces the allocation rule x(p)=g(p0)g(p)x(p)=g(p_{0})-g(p), the amount of the risky asset allocated to a trader who reports a price of pp.

Next, we assume that a trader reports a price p^𝒟{\hat{p}}\sim\mathcal{D} that is drawn according to a distribution 𝒟\mathcal{D} known to the market maker. We assume that the trader is willing to buy or sell at most a bounded amount of the risky asset (normalized to be 1 only for notational convenience, since there is no difference whatsoever for any arbitrary finite bound on the results), and that the demand curve gg and price p0p_{0} accordingly satisfy g(p0)g(p^)[1,1]g(p_{0})-g({\hat{p}})\in[-1,1] for all p^{\hat{p}}. When the noise trader reports their price p^{\hat{p}}, they receive an allocation x(p^)=g(p0)g(p^)x({\hat{p}})=g(p_{0})-g({\hat{p}}) of the risky asset and must remit a payment y(p^y({\hat{p}}) to the AMM for this provision. As we will see in Section  2, the natural notion of incentive-compatibility in this setting — that a utility-maximizing trader who values the risky asset at a price p^{\hat{p}} will in fact report p^{\hat{p}} to the AMM — uniquely pins down the payments (the y(p^)y({\hat{p}})’s) as a function of the allocation rule (the x(p^)x({\hat{p}})’s).111As the reader might guess, it is also essential that the allocation rule xx is monotone in p^{\hat{p}}, or equivalently that the demand curve gg is downward-sloping, with the market maker selling more and more of the risky asset as the going price gets higher and higher. See Section 2 for details.

With informed traders, a rational market maker will update its estimate p0p_{0} of the risky asset’s true price following a trade (generally increasing it after a trader buys the risky asset from the market maker and decreasing it after a sell). Our general model in Section 3 accommodates this through a generic update rule π(p0,p^)\pi(p_{0},{\hat{p}}) that specifies the market maker’s new estimate as a function of its old estimate p0p_{0} and the new information conveyed by a trader reporting the price p^{\hat{p}}. For example, π\pi might correspond to a Bayesian update with respect to some assumed information structure, and the update rule may come from and be revised according to a no-regret learning algorithm used by the market maker on successive rounds. In the simple special case of only noise traders being present, because the behavior of noise traders is (by assumption) independent of the true value of the risky asset, the market maker has no cause for updating its internal price (i.e., π(p0,p^)=p0\pi(p_{0},{\hat{p}})=p_{0} for all p0p_{0} and p^{\hat{p}}).

What is the optimal strategy (i.e., choice of demand curve gg) for the market maker? That is, which choice of gg maximizes

𝔼[Profit]=𝔼[y(p^)p0x(p^)],\mathop{\mathbb{E}\/}[\text{Profit}]=\mathop{\mathbb{E}\/}[y({\hat{p}})-{p_{0}}\cdot x({\hat{p}})], (1)

where the expectation is with respect to p^𝒟{\hat{p}}\sim\mathcal{D}, x(p^)=g(p0)g(p^)x({\hat{p}})=g({p_{0}})-g({\hat{p}}) is the allocation rule, and yy is the uniquely defined payment rule mentioned above?222Note that, obviously, the choice of the optimal mechanism does not need the knowledge of the reported price by the trader; only its probabilistic characteristics are known according to the distribution 𝒟\mathcal{D}. (In the general case, the “p0"p_{0}" term in (1) is replaced by π(p0,p^)\pi({p_{0}},{\hat{p}}), with the market maker evaluating its portfolio according to its new belief about the value of the risky asset, conditioned on observing the trader’s report of p^{\hat{p}}.)

The results in this paper imply that the answer to this question is always defined by a posted-price-like mechanism with two prices (depending on 𝒟\mathcal{D}), plp0p_{l}\leq p_{0} and php0p_{h}\geq p_{0}. These two prices split the price range into three intervals, and the optimal strategy is to always buy the maximum amount in the lowest price interval, always sell in the highest price interval, and refuse to trade in the middle price interval.

We will be interested in the length of this middle price interval, which we call the no-trade gap. Bigger no-trade gaps are generally worse from a welfare perspective, with welfare-increasing trades sacrificed in the name of higher profit to the market maker. The no-trade gap is reminiscent of the “bid-ask spread” in CLOBs, which occupies a central position in the study of traditional market-making in CLOBs.333In a CLOB, the “bid” and “ask” refer to the highest price of an outstanding buy order and the lowest price of an outstanding sell order, respectively. Because limit orders in a CLOB are always matched greedily, the bid-ask spread is always non-negative. Small spreads are generally viewed as a good thing, indicating a “highly liquid” market (with lower trading costs, at least for small quantities). Traditionally, theoretical justifications for non-trivial bid-ask spreads in CLOBs have relied on frictions (like transaction fees or inventory costs) or adverse selection (with a market maker needing to exploit noise traders to cover the losses to informed traders). In the current example, with neither frictions nor adverse selection, the no-trade gap arises for a different reason, namely the monopolist position of the market-maker. In our general model, with the possibility of informed traders, monopoly pricing and adverse selection both contribute to the no-trade gap. For example, no matter what the distribution 𝒟\mathcal{D} is, if all traders have perfect information (i.e., extreme adverse selection), then the no-trade gap encompasses the full price range.

The prices plp_{l} and php_{h} that split the price range into three intervals, and hence the no-trade gap, are distribution-dependent. For example, intuitively, one might expect a smaller gap for distributions 𝒟\mathcal{D} that are tightly concentrated around p0p_{0}. In general, our analysis shows that these two prices can be characterized as roots of two functions that resemble the virtual valuation functions used in optimal auction theory [33].

We next give two example cases for pure noise-trading: if 𝒟\mathcal{D} is the uniform distribution on [pmin,pmax][{p_{\text{min}}},{p_{\text{max}}}], then pl=(pmin+p0)/2p_{l}=({p_{\text{min}}}+{p_{0}})/2 and ph=(p0+pmax)/2p_{h}=({p_{0}}+{p_{\text{max}}})/2; the resulting optimal allocation rule is depicted in Figure 1a. If 𝒟\mathcal{D} is the exponential distribution with parameter λ\lambda (on [0,)[0,\infty)), then ph=p0+1λp_{h}=p_{0}+\tfrac{1}{\lambda}. The lower price plp_{l} does not have a closed-form expression in this case, but can be easily approximated numerically (given p0{p_{0}} and λ\lambda); Figure 2 enumerates some examples of how these lower prices vary, and an illustration of the optimal allocation rule is contained in Figure 1b.

(a)
p0p_{0}pmax+p02\frac{p_{\text{max}}+p_{0}}{2}pmaxp_{\text{max}}-101pminp_{\text{min}}pmin+p02\frac{p_{\text{min}}+p_{0}}{2}xa(p^)x_{a}(\hat{p})p^\hat{p}
(b)
p0p_{0}p0+1λp_{0}+\frac{1}{\lambda}-101plp_{l}xb(p^)x_{b}(\hat{p})p^\hat{p}
Figure 1: Optimal allocation rule x(p^)x(\hat{p}) in “pure noise trading” showing the no-trade gap around p0p_{0} when the distribution p^𝒟\hat{p}\sim\mathcal{D} is: (a) the uniform distribution on [pmin,pmax][p_{\text{min}},p_{\text{max}}], (b) the exponential distribution on [0,)[0,\infty) with parameter λ=2\lambda=2 for p0=1p_{0}=1 (the computation of plp_{l} can only be done via numerical methods; see Figure 2).
p0p_{0} \ λ\lambda 0.5 1 2
0.25 0.123 0.121 0.118
0.5 0.242 0.235 0.221
0.75 0.358 0.342 0.314
1 0.470 0.443 0.396
1.5 0.684 0.627 0.537
2 0.886 0.792 0.653
Figure 2: Table of lower prices plp_{l} in “pure noise trading” when the distribution p^𝒟\hat{p}\sim\mathcal{D} is the exponential distribution on [0,)[0,\infty) with parameter λ\lambda.

The rest of this paper develops a similarly precise understanding of optimal market-maker strategies in a more general setting. We will now briefly present here the general results in an informal way. For the details, the reader is referred to Section 3.

Informal Theorem 1.

There exist virtual valuation functions ϕu(s)\phi_{u}(s) and ϕl(s)\phi_{l}(s), such that the expected profit, shown in Eq. 1 in the general case where the “p0"p_{0}" term is replaced by π(p0,p^)\pi({p_{0}},{\hat{p}}), is equal to the expected virtual welfare of an auction with virtual values derived by ϕu(s)\phi_{u}(s) if sp0s\geq{p_{0}} and ϕl(s)\phi_{l}(s) if s<p0s<{p_{0}}.

Informal Theorem 2.

There exist two prices plp0p_{l}\leq{p_{0}} and php0p_{h}\geq{p_{0}}, such that the optimal allocation rule of a market maker that maximizes their expected profit is to buy the maximum amount if the trader reports a price p^pl{\hat{p}}\leq p_{l} and sell the maximum amount if the trader reports a price p^ph{\hat{p}}\geq p_{h}, and refuse to trade in the interval between these two prices, i.e., when p^(pl,ph){\hat{p}}\in(p_{l},p_{h}).

The formal statements of the above results are Theorem 3.1 and Theorem 3.2 respectively. Finally, in Section 4, we examine how our general theory above applies in the interesting special case of a linear update rule. Through this special case, we naturally show that the structure of the no-trade gap captures precisely the complex effect that is the interpolation between the effects of adverse selection (observed when all traders have perfect information) and monopoly pricing (observed when all traders are noise traders). For further details, we refer the interested reader to Section 4.

1.3 Related Work

Auctions.

This paper critically relates to revenue maximizing auction design, initiated under the pioneering work of [33]. Since then, various versions of virtual values have been used in a variety of settings among others for specifying optimal auctions and their approximations, including as to how they relate to no-regret learning in auctions (e.g., [7, 8, 24, 23, 10, 9, 2, 37, 36, 26]); in a similar spirit, we define and use functions that can be interpreted as virtual valuations. For a survey of results around revenue-optimal mechanisms, virtual values, optimal auctions, and their approximations, see the book by [25].

AMMs.

Constant function market makers (CFMMs) have arisen from the idea of holding some function constant across “trading states” (from states of the world, previously, on the utility-based framework of AMMs for prediction markets by [11]), and are characterized by such an invariant called a bonding function. This means that the AMM is willing to take the other side of any trade that corresponds to remaining on a constant level curve of the particular bonding function chosen. Tools from convex analysis —familiar to both the algorithmic game theory and machine learning theory communities— are crucially used to analyze CFMMs and prove “optimal behavior” properties for participating traders [32, 31, 3, 4, 5].

The description of the framework that we use for AMMs — inspired by a reparameterization of a CFMM curve (established by [3]) in terms of portfolio holdings of the pool with respect to the price — resembles that in [30], who used a similar AMM framework for a different purpose, namely unifying constant function market makers (CFMMs) and limit order books (LOBs) and complexity-approximation trade-offs between them. The latter work considers neither incentive-compatibility constraints nor the problem of optimal liquidity provision.

Asset price beliefs in AMMs.

[22] also examine beliefs of LPs (specifically on CFMMs) around future asset prices; however, in their model, these beliefs are static (i.e., similar to a single prior that remains unchanged throughout the trades’ occurrence) or modeled by a fixed price dynamic discounted to the present (i.e., still not dynamically revised in response to incoming trades). The focus of [22] is the design of CFMMs that maximize the fraction of trades that the CFMM can satisfy with small slippage under the stationary distribution of the Markov chain induced by their model. Our work focuses instead on LP profit-maximization with informed traders and noise traders, showing a formal relation between the optimal auction design literature, including computational considerations in approximations of those, and the market microstructure literature.

There is also work specific to Uniswap v3 from the LP perspective around how beliefs about future prices should guide the choice of an LP’s demand curve [17, 38, 34].

Market microstructure.

There is a large literature on the market microstructure of limit order books; see the textbook by [35] and references therein. Closest to the present work is the paper of [19]. Focusing on the role of asymmetric information, [19] considers the problem of a monopolist optimizing their liquidity demand curve, but in the presence of risk averse traders (in contrast to our setting, where the traders can be viewed as risk neutral). The risk averse setting is more technically challenging, and hence [19] is required to make very strong and highly specific technical assumptions (normally distributed values and observation noise) that are not necessary, obscure the general intuition in our setting, and do not add value. Instead, the intuition provided by our model is much stronger and more general. Moreover, our risk neutrality assumption unlocks a fruitful connection between optimal market-making and the Myersonian theory of optimal auction design. [20] considers the related problem of the liquidity demand curve in a competitive equilibrium. The latter paper is restricted to a limit order book, and does not consider more general forms of liquidity provision in exchange mechanisms, like the ones we do. [21] operate in a competitive regime with zero expected profits, which gives a completely different reason for bid-ask spreads to arise than the one given in our work. [27] develops a model where a single informed trader (“insider”) competes with noise traders and market makers, showing the incorporation of insider information into the equilibrium price. In this work, the focus is on the informed trader who is a monopolist (there is only one), whereas in our work informed traders are unrestricted and the market maker is a monopolist in their liquidity provision. [28] continues to examine the informational efficiency of equilibrium prices in a slightly more general setting, where there is competition among informed traders, showing that prices are less informative than in the competitive equilibrium. Both of these papers use strong assumptions, predominantly the normal distribution over both the values and the order sizes. While their models are related to ours in their considerations of types of participants present and observations in the optimal case, the present results were not known in either of these two works; neither of these models is as general as ours, neither relates whatsoever to mechanism design and incentive compatibility constraints, and both are based on very strong technical assumptions that our work does not need.

Sequential market-making.

Finally, the framework we describe is similar to sequential market-making procedures in its use of iterative belief updating. Such procedures have been studied in the past including in the context of online learning frameworks [1, 6, 15, 14]. Closer to our Bayesian setting, [15] consider the liquidity present across trade sizes in a multi-period monopolistic market making model (and subsequently shows the superiority of this compared to a competitive multi-dealer market). The above works, however, do not show a connection between optimal market-making and the Myersonian theory of optimal auction design, which is the key focus in our results.

2 Automated market makers

We begin by presenting a general framework of exchange for automated market makers (AMMs) that allows us to consider market making as conducting an auction, and is based on market participants (traders) trading with the AMM on the basis of future price beliefs.

More specifically, suppose there are two assets, a risky asset and a numéraire asset. An AMM according to this framework is defined by a demand curve g:(0,)+g:(0,\infty)\to{\mathbb{R}^{+}} such that the function g()g(\cdot) represents the current demand of the market maker for the risky asset as a function of price, i.e., the amount of risky asset that the market maker wishes to hold at each possible price, along with a payment rule y:(0,)y:(0,\infty)\to{\mathbb{R}} such that the function y()y(\cdot) specifies the quantity of numéraire that a trader needs to pay depending on the current AMM price p0p_{0} (which instantiates a specific state of this AMM’s demand curve, i.e., a current demand of the AMM for g(p0)g({p_{0}}) of risky asset) and what they declare to the AMM that their price estimate is (see the following paragraph on trading for the precise definition). The market maker is assumed to have no inventory costs or budget constraints.

The demand curve gg along with an appropriately defined payment rule can arise through bonding curves of traditional constant function market makers (CFMMs, i.e., functions ff such that the holdings of the joint pool (x,y)(x,y) satisfy f(x,y)=cf(x,y)=c for some cc) but this is not necessary: the exchange mechanisms defined by this framework strictly generalize CFMMs (see also [30]). Additionally, a non-continuous demand curve gg can also be used to express limit orders, with the discontinuities representing limit buy or limit sell orders at the corresponding price, of quantity of risky asset equal to the jump at that price [30].

Trading

A trader who wants to trade with the AMM has some (hidden) belief about the asset price. The trader will come to the mechanism and specify a price bid p^{\hat{p}}. Based on their bid, the trader will get a quantity g(p0)g(p^)g({p_{0}})-g({\hat{p}}) of risky asset. Finally, the AMM revises its current price (which was previously p0{p_{0}}) according to some update rule (we will see more about the update rule from Section 3 onwards; it will play no role in this section). We say that the trader was allocated a quantity x(p^)g(p0)g(p^)x({\hat{p}})\triangleq g({p_{0}})-g({\hat{p}}) of asset. This interpretation makes it natural to consider the transaction with the trader as an auction with one bidder; the trader has a price estimate (valuation) for the risky asset, will be allocated a portion of the risky asset (provided by the market maker) based on their submitted price bid, and will need to pay the market maker an amount y(p^)y({\hat{p}}) of numéraire for it. Notice that it may be the case that x(p^)<0x({\hat{p}})<0, which means that the trader will sell risky asset to the AMM, and the market maker will now need to come up with the corresponding payment to the trader for it.

Example: Uniswap v2

Let’s consider the simple case of a constant product market maker (CPMM), such as Uniswap v2, to show how it emerges from the framework above. Consider the demand curve of the AMM to be of the form g(p)=cp,g(p)=\frac{c}{\sqrt{p}}\,, for some c>0c>0, and the payment rule to be of the form y(p^)=c(p^p0),y({\hat{p}})=c\left(\sqrt{{\hat{p}}}-\sqrt{{p_{0}}}\right)\,, for the same c>0c>0. A trader who will trade with this exchange at a current price p0p_{0} with a price bid p^{\hat{p}} will obtain a quantity x(p^)=g(p0)g(p^)=c(1p01p^)x({\hat{p}})=g(p_{0})-g({\hat{p}})=c\left(\frac{1}{\sqrt{p_{0}}}-\frac{1}{\sqrt{{\hat{p}}}}\right) of risky asset. Since the curve g(p)g(p) above is just a reparameterization (in terms of prices) of the risky asset holdings of the CPMM curve444Note that here xx and yy — without the parentheses — are not the functions above, but rather the current total reserves of the AMM pool. xy=kxy=k where k=c2k=c^{2} [5], by comparing the expression of the quantity of risky asset that the trader gets, we conclude that they get the same quantity as in the CPMM.

2.1 Incentive-compatible AMMs

We will now consider that traders interacting with AMMs have utility functions that emerge naturally from their true belief about the asset price versus what they bid to obtain a quantity of risky asset from the AMM. In particular, a trader who has a true belief of pp for the asset’s price, and submits a bid p^{\hat{p}} to the AMM seeks to optimize (maximize) their utility defined by

u(p,p^)px(p^)y(p^),\displaystyle u(p,{\hat{p}})\triangleq p\cdot x({\hat{p}})-y({\hat{p}})\,, (2)

because they consider that the asset’s true value to them is pp per unit, they obtain a quantity x(p^)x({\hat{p}}) of it, and pay y(p^)y({\hat{p}}) for this trade.

Definition 1.

[Incentive-compatible AMM] An AMM defined according to a demand curve g(p)g(p) and a payment rule y(p^)y({\hat{p}}) is called incentive compatible (IC), if any trader whose utility follows Eq. 2 has as an optimal strategy for interacting with the AMM to submit their true belief about the asset price as their bid to the AMM.

Is an AMM defined by an arbitrary demand curve g(p)g(p) and an arbitrary payment rule y(p^)y({\hat{p}}) incentive compatible? The answer is no, and the characterization of IC AMMs follows standard results of dominant-strategy incentive-compatible (DSIC) single-parameter auctions.

Proposition 2.1 (Characterization of IC AMMs).

An AMM defined according to a demand curve g(p)g(p) can be paired with a payment rule y(p^)y({\hat{p}}) to obtain an IC AMM, if and only if g(p)g(p) is a non-increasing function.

Proof.

First, we observe the analogy drawn to allocations of asset for trades: x(p^)=g(p0)g(p^)x({\hat{p}})=g({p_{0}})-g({\hat{p}}). Since the utility function for the auction with a single bidder (the trader) is of the form of Eq. 2, the proposition follows from the characterization of dominant-strategy incentive-compatible (DSIC) single-parameter auctions’ allocation rules x(p^)x({\hat{p}}) as only those functions which are monotone, and specifically non-decreasing functions, because x(p^)x({\hat{p}}) is non-decreasing precisely if and only if g(p^)g({\hat{p}}) is non-increasing.

More specifically, we follow the standard analysis to showcase the exact correspondence of the settings but do not show the entire analysis, as this follows Myerson’s. In order for the optimal strategy of any trader with true belief pp to be to submit pp to the AMM, we need to have that for any p,p^p,{\hat{p}}:

u(p,p)u(p,p^)px(p)y(p)px(p^)y(p^)p[x(p)x(p^)]y(p)y(p^).u(p,p)\geq u(p,{\hat{p}})\Leftrightarrow p\cdot x(p)-y(p)\geq p\cdot x({\hat{p}})-y({\hat{p}})\Leftrightarrow p\cdot\left[x(p)-x({\hat{p}})\right]\geq y(p)-y({\hat{p}})\,.

Additionally, if the converse holds, and the true belief of the trader was p^{\hat{p}} while it is considering submitting pp to the AMM, then we also need to have that for any p,p^p,{\hat{p}}:

u(p^,p^)u(p^,p)p^x(p^)y(p^)p^x(p)y(p)p^[x(p)x(p^)]y(p)y(p^).u({\hat{p}},{\hat{p}})\geq u({\hat{p}},p)\Leftrightarrow{\hat{p}}\cdot x({\hat{p}})-y({\hat{p}})\geq{\hat{p}}\cdot x(p)-y(p)\Leftrightarrow{\hat{p}}\cdot\left[x(p)-x({\hat{p}})\right]\leq y(p)-y({\hat{p}})\,.

Combining these two inequalities, we get that for any p,p^p,{\hat{p}}:

p^[x(p)x(p^)]y(p)y(p^)p[x(p)x(p^)],{\hat{p}}\cdot\left[x(p)-x({\hat{p}})\right]\leq y(p)-y({\hat{p}})\leq p\cdot\left[x(p)-x({\hat{p}})\right]\,,

hence it is immediate (from the derived inequality (pp^)[x(p)x(p^)]0(p-{\hat{p}})\cdot\left[x(p)-x({\hat{p}})\right]\geq 0) that x(p^)x({\hat{p}}) needs to be non-decreasing. ∎

The next question to be answered is whether arbitrary payment rules y(p^)y({\hat{p}}) are allowed to be requested by an IC AMM. Not surprisingly, as is the case for payments defined by an allocation rule of a DSIC mechanism, the payments need to be precisely defined by the demand curve for an IC AMM. The below formula is familiar from Myerson’s single-parameter DSIC auction design.

Corollary 2.2 (Payments of traders on IC AMMs).

Suppose that any trader who is allocated a quantity 0 of risky asset pays 0 amount of numéraire to an IC AMM according to Definition 1 with a demand curve g(p)g(p). The IC AMM’s payment rule y(p^)y({\hat{p}}) for a trader submitting a price bid p^{\hat{p}} needs to be exactly:

y(p^)=p0p^s𝑑x(s)=p0p^p𝑑g(p).y({\hat{p}})=\int_{p_{0}}^{\hat{p}}s~{}dx(s)=-\int_{p_{0}}^{\hat{p}}p~{}dg(p)\,. (3)

The above integrals are Riemann–Stieltjes integrals. In cases where g(p)g(p) is differentiable, the differential takes the form dg(p)=g(p)dpdg(p)=g^{\prime}(p)~{}dp.

Proof.

From Myerson’s single-parameter auction design, we know that there is a unique payment rule (up to an additive constant) for DSIC single-parameter auctions; that is, y(p^)=p0p^s𝑑x(s),y({\hat{p}})=\int_{p_{0}}^{\hat{p}}s~{}dx(s)\,, where the arbitrary additive constant is no longer present, as we have integrated the required normalization that for an allocation of x(p0)=g(p0)g(p0)=0x({p_{0}})=g({p_{0}})-g({p_{0}})=0 asset, the payment needs to be y(p0)=0y({p_{0}})=0. This directly translates to the formula given in the corollary’s statement in terms of the demand curve g(p)g(p) of the AMM. ∎

Note that the integral that defines the payments is non-negative if p^p0{\hat{p}}\geq{p_{0}}, and non-positive if p^p0{\hat{p}}\leq{p_{0}}. This is compatible with the direction of the trade, as defined by the allocation rule and Proposition 2.1, which is that x(p^)0x({\hat{p}})\geq 0 for p^p0{\hat{p}}\geq{p_{0}}, and x(p^)0x({\hat{p}})\leq 0 for p^p0{\hat{p}}\leq{p_{0}}.

3 Optimal liquidity provision via revenue maximization

3.1 Bayesian model for optimal allocation rule

First, we describe our model for how the market maker should optimize their allocation rule for the asset. From now on, the market maker will be assumed to be risk-neutral, i.e., be indifferent to “risk,” and only care to be profit-maximizing.

The Bayesian belief framework operates as follows: the market maker has a prior belief distribution on the asset price, and the (single) price it decides to use is p0{p_{0}}; for example, and most commonly, p0{p_{0}} will be the mean of this prior distribution. A trader then comes to the AMM with an estimate p^{\hat{p}} (that is the true belief of the trader, if the AMM is IC according to Definition 1). Traders are on the market to buy or sell up to 1 unit of the asset;555This is just for notational convenience. In fact, it generalizes easily for demand up to any arbitrary finite bound, and a subsequent normalization enables using exactly our results here with unit demand. that is, the allocation rule should satisfy 1x(p^)1-1\leq x({\hat{p}})\leq 1 for all p^{\hat{p}}. The trader’s estimate p^{\hat{p}} is perceived by the market maker as one observation of an asset price estimate coming from a distribution 𝒟\mathcal{D} that is included in the market maker’s model. For this distribution 𝒟\mathcal{D}, we assume that it has a continuous, positive density function f(p^)f({\hat{p}}) on a compact support [pmin,pmax][{p_{\text{min}}},{p_{\text{max}}}] and a cumulative density function (CDF) F(p^)=pminp^f(s)𝑑s.F({\hat{p}})=\int_{p_{\text{min}}}^{\hat{p}}f(s)~{}ds.666Our results can be extended to non-continuous density functions supported at possibly non-compact intervals, e.g., (0,)(0,\infty), but for simplicity of exposition, we do not focus on handling these edge cases here, since they do not add to the general discussion points of the paper.

Applying Bayes’ theorem allows the market maker to specify the posterior distribution of the asset price, conditional on the observation from the trader. The market maker then sets this posterior distribution as their new prior for future observations (trades). We will assume that the way this posterior is used by the AMM is through valuing the quantity of asset given or obtained at a price of π(p0,p^){\pi}({p_{0}},{\hat{p}}) which can be, for instance, the mean of the posterior distribution according to the Bayesian framework. (A very interesting special case as to how a linear dependence arises on the mean of the posterior with normally distributed prior and observational error is shown in Section 4.)

In general, we will call π(p0,p^){\pi}({p_{0}},{\hat{p}}) the “update rule” and — for generality — we will not impose further constraints arising from the Bayesian framework on what it may be other than that:

Assumption 1.

The following conditions have to hold for the update rule:

  • π(p0,p^){\pi}({p_{0}},{\hat{p}}) lies in the interval between p0{p_{0}} and p^{\hat{p}}.

  • π(p0,p^){\pi}({p_{0}},{\hat{p}}) is non-decreasing in p^{\hat{p}}.

  • π(p0,p0)=p0{\pi}({p_{0}},{p_{0}})={p_{0}}, i.e., if the trader’s estimate is the same as the market maker’s prior, then the updated valuation of the market maker for the asset should be the same as their prior.

  • 𝔼p^𝒟[π(p0,p^)]=p0\mathop{\mathbb{E}\/}_{{\hat{p}}\sim\mathcal{D}}[{\pi}({p_{0}},{\hat{p}})]={p_{0}}, i.e., the prior is consistent with the update rule.

Therefore, according to the above, the market maker’s next best estimate for the asset’s price is π(p0,p^){\pi}({p_{0}},{\hat{p}}) conditioned on receiving the trader’s estimate p^{\hat{p}}. It is then natural to consider that, when selling (respectively, buying) some quantity x(p^)x({\hat{p}}) of the asset from the trader, the AMM will not only consider the amount of money that they receive (respectively, give) but also their perceived best estimate of the value of the asset that they lost (respectively, gained). This, then, arises as an interesting contrast to traditional auction theory, where the revenue of the auction is only the payment that is made. Here, according to the above reasoning, it makes sense for the AMM to value their profit according to

Profit=y(p^)π(p0,p^)x(p^).\displaystyle\text{Profit}=y({\hat{p}})-{\pi}({p_{0}},{\hat{p}})\cdot x({\hat{p}})\,. (4)

Therefore, an AMM choosing an optimal strategy to provide liquidity will consider the strategy that maximizes their profit, among all feasible, incentive-compatible (for the traders) strategies.

3.2 Equivalence of expected profit and virtual welfare, and virtual value functions

By re-working Myerson’s optimal auction theory under the new objective that we want to optimize and the constraints that come with the definition of the allocation rule from an AMM, we get that:

Theorem 3.1.

[Expected Profit = Expected Virtual Welfare] The expected profit according to Eq. 4 of a market maker under the assumptions of Section 3.1 is equal to the expected virtual welfare, i.e.,

𝔼p^𝒟[Profit]=𝔼p^𝒟[|x(p^)|(ϕu(p^)𝟏p^p0+ϕl(p^)𝟏p^p0)]\mathop{\mathbb{E}\/}_{{\hat{p}}\sim\mathcal{D}}[\text{Profit}]=\mathop{\mathbb{E}\/}_{{\hat{p}}\sim\mathcal{D}}\left[|x({\hat{p}})|\cdot\left(\phi_{u}({\hat{p}})\cdot\boldsymbol{1}_{{\hat{p}}\geq{p_{0}}}+\phi_{l}({\hat{p}})\cdot\boldsymbol{1}_{{\hat{p}}\leq{p_{0}}}\right)\right]\,

where 𝟏A\boldsymbol{1}_{A} is the indicator function that is 1 when AA holds and 0 otherwise, and ϕu(s),ϕl(s)\phi_{u}(s),\phi_{l}(s) are the virtual value functions defined by

ϕu(s)s1F(s)f(s)π(p0,s)\displaystyle\phi_{u}(s)\triangleq s-\frac{1-F(s)}{f(s)}-{\pi}({p_{0}},s) (5)

and

ϕl(s)π(p0,s)sF(s)f(s).\displaystyle\phi_{l}(s)\triangleq{\pi}({p_{0}},s)-s-\frac{F(s)}{f(s)}\,. (6)
Proof.

By Eq. 3 and re-writing x(p^)x({\hat{p}}) using the normalization condition, we have that777This proof assumes differentiability of x(s)x(s) for simplicity of the technical exposition but carries through verbatim in terms of Riemann–Stieltjes integrals where x(s)ds=dx(s)x^{\prime}(s)~{}ds=dx(s), which always exist because x(s)x(s) is guaranteed to be monotonic by Proposition 2.1.

y(p^)=p0p^sx(s)𝑑s and x(p^)=p0p^x(s)𝑑s,y({\hat{p}})=\int_{p_{0}}^{\hat{p}}sx^{\prime}(s)~{}ds\text{ and }x({\hat{p}})=\int_{p_{0}}^{\hat{p}}x^{\prime}(s)~{}ds\,,

so that the expected profit 𝔼p^𝒟[Profit]\mathop{\mathbb{E}\/}_{{\hat{p}}\sim\mathcal{D}}[\text{Profit}] is

pminpmaxp0p^(sπ(p0,p^))x(s)f(p^)𝑑s𝑑p^\displaystyle\int_{p_{\text{min}}}^{p_{\text{max}}}\int_{p_{0}}^{\hat{p}}\left(s-{\pi}({p_{0}},{\hat{p}})\right)x^{\prime}(s)f({\hat{p}})~{}ds~{}d{\hat{p}}
=\displaystyle= p0pmaxp0p^(sπ(p0,p^))x(s)f(p^)𝑑s𝑑p^pminp0p^p0(sπ(p0,p^))x(s)f(p^)𝑑s𝑑p^\displaystyle\int_{p_{0}}^{p_{\text{max}}}\int_{p_{0}}^{\hat{p}}\left(s-{\pi}({p_{0}},{\hat{p}})\right)x^{\prime}(s)f({\hat{p}})~{}ds~{}d{\hat{p}}-\int_{p_{\text{min}}}^{p_{0}}\int_{\hat{p}}^{p_{0}}\left(s-{\pi}({p_{0}},{\hat{p}})\right)x^{\prime}(s)f({\hat{p}})~{}ds~{}d{\hat{p}}
=\displaystyle= p0pmaxspmax(sπ(p0,p^))x(s)f(p^)𝑑p^𝑑spminp0pmins(sπ(p0,p^))x(s)f(p^)𝑑p^𝑑s\displaystyle\int_{p_{0}}^{p_{\text{max}}}\int_{s}^{p_{\text{max}}}\left(s-{\pi}({p_{0}},{\hat{p}})\right)x^{\prime}(s)f({\hat{p}})~{}d{\hat{p}}~{}ds-\int_{p_{\text{min}}}^{p_{0}}\int_{p_{\text{min}}}^{s}\left(s-{\pi}({p_{0}},{\hat{p}})\right)x^{\prime}(s)f({\hat{p}})~{}d{\hat{p}}~{}ds
=\displaystyle= p0pmaxx(s)(s(1F(s))spmaxπ(p0,p^)f(p^)𝑑p^)𝑑s\displaystyle\int_{p_{0}}^{p_{\text{max}}}x^{\prime}(s)\left(s(1-F(s))-\int_{s}^{p_{\text{max}}}{\pi}({p_{0}},{\hat{p}})f({\hat{p}})~{}d{\hat{p}}\right)~{}ds
pminp0x(s)(sF(s)pminsπ(p0,p^)f(p^)𝑑p^)𝑑s\displaystyle-\int_{p_{\text{min}}}^{p_{0}}x^{\prime}(s)\left(sF(s)-\int_{p_{\text{min}}}^{s}{\pi}({p_{0}},{\hat{p}})f({\hat{p}})~{}d{\hat{p}}\right)~{}ds
=\displaystyle= p0pmaxx(s)(1F(s)+(π(p0,s)s)f(s))𝑑s+pminp0x(s)(F(s)+(sπ(p0,s))f(s))𝑑s\displaystyle-\int_{p_{0}}^{p_{\text{max}}}x(s)\left(1-F(s)+({\pi}({p_{0}},s)-s)f(s)\right)~{}ds+\int_{p_{\text{min}}}^{p_{0}}x(s)\left(F(s)+(s-{\pi}({p_{0}},s))f(s)\right)~{}ds
=\displaystyle= p0pmax|x(s)|(sπ(p0,s)1F(s)f(s))f(s)𝑑s+pminp0|x(s)|(π(p0,s)sF(s)f(s))f(s)𝑑s,\displaystyle\int_{p_{0}}^{p_{\text{max}}}|x(s)|\left(s-{\pi}({p_{0}},s)-\frac{1-F(s)}{f(s)}\right)f(s)~{}ds+\int_{p_{\text{min}}}^{p_{0}}|x(s)|\left({\pi}({p_{0}},s)-s-\frac{F(s)}{f(s)}\right)f(s)~{}ds\,,

where the third line arises from switching the order of the integrals (and the correct switching depends on the relative order of p0{p_{0}} and p^{\hat{p}} which is why the second line is needed; the first integral when p^p0{\hat{p}}\geq{p_{0}} and the second vice-versa), the fifth line from integration by parts, and the sixth line because x(s)0x(s)\leq 0 for sp0s\leq{p_{0}} and x(s)0x(s)\geq 0 for sp0s\geq{p_{0}}.

Therefore, the two virtual value functions are as in the theorem description. ∎

3.3 Derivation of the optimal allocation rule and the no-trade gap

We now turn our attention to optimizing the expected profit, i.e., finding the allocation rule (equivalently, the demand curve up to an arbitrary positive additive constant) which maximizes the expected profit.

Theorem 3.2.

The optimal allocation rule x(p^)x^{\star}({\hat{p}}) that maximizes the expected profit according to Eq. 4 under the assumptions of Section 3.1 has the form

x(p^)={1,for p1p^pmax0,for p2<p^<p11,for pminp^p2,\displaystyle x^{\star}({\hat{p}})=\begin{cases}1,&\text{for }p_{1}\leq{\hat{p}}\leq{p_{\text{max}}}\\ 0,&\text{for }p_{2}<{\hat{p}}<p_{1}\\ -1,&\text{for }{p_{\text{min}}}\leq{\hat{p}}\leq p_{2}\end{cases}\,,

where p1p0p_{1}\geq{p_{0}} and p2p0p_{2}\leq{p_{0}} are some roots of the upper and lower virtual value functions ϕu(s),ϕl(s)\phi_{u}(s),\phi_{l}(s) of Eqs. 5 and 6 respectively.

Proof.

We will use the equivalence of expected profit and expected virtual welfare established by Theorem 3.1. Because we operate under the constraints that x(p0)=0x({p_{0}})=0, x(p^)0x({\hat{p}})\geq 0 for p^p0{\hat{p}}\geq{p_{0}}, and x(p^)0x({\hat{p}})\leq 0 for p^p0{\hat{p}}\leq{p_{0}}, we can just equivalently optimize the two integrals arising from the right hand side of Theorem 3.1 separately to obtain the optimal allocation rule. Additionally, since ϕu(p0)=1F(p0)f(p0)0\phi_{u}({p_{0}})=-\frac{1-F({p_{0}})}{f({p_{0}})}\leq 0, ϕu(pmax)=pmaxπ(p0,pmax)0\phi_{u}({p_{\text{max}}})={p_{\text{max}}}-{\pi}({p_{0}},{p_{\text{max}}})\geq 0, ϕl(pmin)=π(p0,pmin)pmin0\phi_{l}({p_{\text{min}}})={\pi}({p_{0}},{p_{\text{min}}})-{p_{\text{min}}}\geq 0, and ϕl(p0)=F(p0)f(p0)0\phi_{l}({p_{0}})=-\frac{F({p_{0}})}{f({p_{0}})}\leq 0, there always exists a non-trivial optimal solution to the optimization problem.

If ϕu(s)\phi_{u}(s) was monotone (increasing), then by the above sign changes, there would exist a (unique) root p1p_{1} such that ϕu(p1)=0\phi_{u}(p_{1})=0. A simple argument by contradiction then shows that the structure of the optimal allocation rule is to allocate the maximum allowable quantity of asset (by the constraint of unit demand, x(s)1x(s)\leq 1) to be sold from the price p1p_{1} onwards; that is,

x(s)={1,for p1spmax0,for p0s<p1.\displaystyle x^{\star}(s)=\begin{cases}1,&\text{for }p_{1}\leq s\leq{p_{\text{max}}}\\ 0,&\text{for }{p_{0}}\leq s<p_{1}\end{cases}\,. (7)

For the lower virtual value function, a similar argument shows that, if ϕl(s)\phi_{l}(s) was monotone (decreasing), and p2p_{2} is its unique root (which is guaranteed to exist by the aforementioned sign changes), then the optimal allocation rule obeying the constraint of unit demand x(s)1x(s)\geq-1 would be

x(s)={0,for p2<sp01,for pminsp2.\displaystyle x^{\star}(s)=\begin{cases}0,&\text{for }p_{2}<s\leq{p_{0}}\\ -1,&\text{for }{p_{\text{min}}}\leq s\leq p_{2}\end{cases}\,. (8)

In full generality, if the virtual value functions are not monotone, then there may now be multiple roots of those functions. In this case, and with an argument by contradiction that if the allocation rule were to switch in between roots then we could obtain better or equal expected profit by modifying the allocation rule to remain constant in between roots, along with the argument that if the allocation rule were not to allocate the entire available demand (1, 1-1, respectively) then we could obtain better or equal expected profit by increasing (or decreasing, respectively) the allocated quantity of the asset until the limit (of 1 or 1-1, respectively), we obtain that the optimal allocation rule is exactly characterized by Eqs. 8 and 7, where this time the choice of the roots as p1p_{1} (and p2p_{2}, respectively) needs to be the root of the upper (lower, respectively) virtual value function that gives the maximum expected profit under the allocation rule that has the form of Eq. 7 (Eq. 8, respectively). Therefore, the optimal allocation rule is as per the theorem statement. ∎

Therefore, in any case, we observe that the optimal solution of Eqs. 7 and 8 has a well-specified no-trade gap around p0{p_{0}} where the market maker is not willing to buy or sell any quantity of the asset to the trader. More specifically, the length of this no-trade gap is precisely p1p2p_{1}-p_{2}, where p1p0p_{1}\geq{p_{0}}, p2p0p_{2}\leq{p_{0}} are as per the above analysis roots of the upper and lower virtual value functions respectively.

We can now specialize in the two interesting extreme cases that were examined in Section 1.2 to obtain the respective observations there: first, consider the pure noise trading case, where the traders are assumed to offer no information on the true asset price, and hence the market maker’s prior is static, i.e., in the case that the update rule is π(p0,p^)=p0,p^[pmin,pmax]{\pi}({p_{0}},{\hat{p}})={p_{0}},\ \forall{\hat{p}}\in[{p_{\text{min}}},{p_{\text{max}}}]. In this case, we see that there is a non-trivial no-trade gap, since we have for the extremal values that ϕu(p0)<0\phi_{u}({p_{0}})<0, ϕu(pmax)>0\phi_{u}({p_{\text{max}}})>0, ϕl(pmin)>0\phi_{l}({p_{\text{min}}})>0, and ϕl(p0)<0\phi_{l}({p_{0}})<0 (see the beginning of Section 3.3 for the expressions), hence the respective roots are contained strictly in between their corresponding intervals (by continuity of the virtual value functions). This no-trade gap is akin to a bid-ask spread observed in traditional CLOB-based markets, and is attributable to the monopoly pricing power of the market maker. In addition, it is distribution-dependent and its length can be intuitively understood as being smaller under distributions 𝒟\mathcal{D}, according to which the traders’ estimates p^{\hat{p}} are distributed, that are more “concentrated” around p0{p_{0}}888With this statement, we intend to only give intuition around the length of the interval, because there can be pathological cases of pairs of distributions that do not follow this generic intuition, and hence it need not be true in full generality.. To mention an example that illustrates this intuition, the no-trade gap under pure noise trading and a uniform distribution supported on [pmin(1),pmax(1)][p_{\text{min}}^{(1)},p_{\text{max}}^{(1)}] will be smaller than the one under another uniform distribution supported on [pmin(2),pmax(2)][p_{\text{min}}^{(2)},p_{\text{max}}^{(2)}], where pmin(1)>pmin(2) and pmax(1)<pmax(2)p_{\text{min}}^{(1)}>p_{\text{min}}^{(2)}\text{ and }p_{\text{max}}^{(1)}<p_{\text{max}}^{(2)}.

At the other extreme, consider the case where the traders always have perfect information about the true asset price, i.e., the market maker’s update rule is π(p0,p^)=p^,p^[pmin,pmax]{\pi}({p_{0}},{\hat{p}})={\hat{p}},\ \forall{\hat{p}}\in[{p_{\text{min}}},{p_{\text{max}}}]. In this case, we observe that the two virtual value functions become

ϕu(s)=1F(s)f(s)0 and ϕl(s)=F(s)f(s)0,\phi_{u}(s)=-\frac{1-F(s)}{f(s)}\leq 0\text{ and }\phi_{l}(s)=-\frac{F(s)}{f(s)}\leq 0\,,

thus the optimal allocation rule is everywhere zero: x(p^)=0,p^[pmin,pmax]x^{\star}({\hat{p}})=0,\ \forall{\hat{p}}\in[{p_{\text{min}}},{p_{\text{max}}}]. It is therefore the case that this corollary which may be phrased as a version of a no-trade theorem in the presence of perfect adverse selection is distribution-independent: that is, regardless of the distribution 𝒟\mathcal{D} of the traders’ asset price estimates p^𝒟{\hat{p}}\sim\mathcal{D}, if the market maker believes that the traders have perfect information, then their optimal allocation rule is to perform no-trade at all. More specifically:

Corollary 3.3 (No-trade theorem when all traders have perfect information).

If the update rule π(p0,p^)=p^,p^[pmin,pmax]{\pi}({p_{0}},{\hat{p}})={\hat{p}},\ \forall{\hat{p}}\in[{p_{\text{min}}},{p_{\text{max}}}], then for every distribution 𝒟\mathcal{D}, the optimal allocation rule is x(p^)=0,p^[pmin,pmax]x^{\star}({\hat{p}})=0,\ \forall{\hat{p}}\in[{p_{\text{min}}},{p_{\text{max}}}].

4 An important special case: linear instantiation of the update rule

We move on to consider an interesting special case of the update rule of Section 3.1: the simplest specialization that allows us to capture an arbitrary mixture of both noise trading and adverse selection, and enables us to show exactly how they intermingle with one another. More specifically, we consider the case when the update rule is a convex combination of the two above extreme cases, controlled by a parameter λ[0,1]\lambda\in[0,1]:

π(p0,p^)=λp0+(1λ)p^\displaystyle{\pi}({p_{0}},{\hat{p}})=\lambda{p_{0}}+(1-\lambda){\hat{p}} (9)

The extreme cases arise as follows: for λ=1\lambda=1, we obtain that the update remains the same as the market maker’s prior (p0{p_{0}}), i.e., the pure noise trading model, where the trader is assumed to provide no information on the asset price. For λ=0\lambda=0, we obtain that the update always follows exactly the trader’s estimate (p^{\hat{p}}), thus the trader is considered as having perfect information around the asset price, i.e., pure adverse selection is attained.

There are standard normality assumptions under which this linear update rule naturally emerges as the update rule for Bayesian updating. For example, if we consider that the asset value V𝒩(p0,σ02)V\sim\mathcal{N}(p_{0},\sigma_{0}^{2}) where 𝒩\mathcal{N} is the normal distribution, and the trader’s estimate is p^=V+ϵ{\hat{p}}=V+\epsilon, where ϵ𝒩(0,σϵ2)\epsilon\sim\mathcal{N}(0,\sigma_{\epsilon}^{2}), i.e., p^𝒩(p0,σ02+σϵ2){\hat{p}}\sim\mathcal{N}(p_{0},\sigma_{0}^{2}+\sigma_{\epsilon}^{2}), then the posterior according to a Bayesian update step would also be a normal distribution with mean π(p0,p^)=λp0+(1λ)p^{\pi}({p_{0}},{\hat{p}})=\lambda{p_{0}}+(1-\lambda){\hat{p}}, where λ=σϵ2σ02+σϵ2\lambda=\frac{\sigma_{\epsilon}^{2}}{\sigma_{0}^{2}+\sigma_{\epsilon}^{2}} [18]. Of course, this is just an illustration of the motivation behind the linear update rule; it ignores the fact that asset prices cannot obtain negative values, but a similar calculation can be performed for log-normal distributions, for instance, and also holds approximately for truncated Gaussian distributions in the case of the standard deviation being small compared to the mean value. However, in this section, we will not be necessarily making any such Gaussian assumptions; we will only be assuming that the conducted update corresponds to a linear interpolation (in fact, convex combination) of the two cases of p0{p_{0}} and p^{\hat{p}} that we have seen in Section 1.2 as indicative of noise trading and adverse selection.

In order to proceed with a more precise characterization of the interval of no-trade around p0{p_{0}}, we will make a similar assumption to the regularity of the distribution 𝒟\mathcal{D} made by [33]:

Assumption 2.

The upper and lower virtual value functions, obtained by plugging in Eq. 9 to Eqs. 5 and 6,

ϕu(s;λ)=λ(sp0)1F(s)f(s) and ϕl(s;λ)=λ(p0s)F(s)f(s)\phi_{u}(s;\lambda)=\lambda(s-{p_{0}})-\frac{1-F(s)}{f(s)}\text{ and }\phi_{l}(s;\lambda)=\lambda({p_{0}}-s)-\frac{F(s)}{f(s)}

are non-decreasing and non-increasing (respectively) with respect to ss for all λ[0,1]\lambda\in[0,1].

Discussion of 2.

2 can be intuitively understood as stating that the distribution of p^{\hat{p}} (i.e., 𝒟\mathcal{D}) does not have heavy tails away from p0{p_{0}} on either direction (i.e., left or right tails). We now explain in a detailed way why this is the case and why this assumption is standard and naturally motivated. First, observe that the original regular distributional assumption of [33] is equivalent to the assumption that ϕu(s;λ)\phi_{u}(s;\lambda) is strictly increasing for λ=1\lambda=1. Additionally, notice that an equivalent re-statement of 2 is that the respective monotonicities hold for λ=0\lambda=0, since this implies the monotonicities for all λ[0,1]\lambda\in[0,1]. In particular, for the monotonicity of the upper virtual value function, we observe that it exactly corresponds to having a monotone hazard rate, where the hazard rate of a distribution is defined as

h(s)f(s)1F(s).h(s)\triangleq\frac{f(s)}{1-F(s)}\,.

Distributions that have a monotone hazard rate (MHR) have been widely used before as common distributional assumptions in revenue maximizing settings [25, 12, 13, 16]. More generally, ϕu(s;λ)\phi_{u}(s;\lambda) being non-decreasing for a specific λ\lambda corresponds to the notion of an α\alpha-strongly regular distribution (Definition 1.1) of [13] where α=1λ\alpha=1-\lambda. As for the monotonicity of the lower virtual value function assumption, we observe that if we make the change of variables p=p0p^p^{\prime}={p_{0}}-{\hat{p}} (where p^𝒟{\hat{p}}\sim\mathcal{D} is our original random variable, and pp^{\prime} is the new one), then ϕl(s;0)\phi_{l}(s;0) being non-increasing would be equivalent to the distribution of pp^{\prime} having a monotone hazard rate (MHR), because if we denote by G(s)G(s) and g(s)g(s) the CDF and the PDF of pp^{\prime} respectively, then from standard probabilities, we get that G(s)=1F(p0s)G(s)=1-F({p_{0}}-s), and g(s)=f(p0s)g(s)=f({p_{0}}-s), hence

g(s)1G(s)=f(p0s)F(p0s),\frac{g(s)}{1-G(s)}=\frac{f({p_{0}}-s)}{F({p_{0}}-s)}\,,

and ϕl(s;0)=F(s)f(s)\phi_{l}(s;0)=-\frac{F(s)}{f(s)} being non-increasing is equivalent to f(p0s)F(p0s)\frac{f({p_{0}}-s)}{F({p_{0}}-s)} being non-decreasing.

Intuitively, distributions satisfying 2 are well-behaved, in the sense that they correspond to distributions with MHR on both of their tails, i.e., distributions that have both left and right tails that are no heavier than an exponential.

Many interesting distributions satisfy the “non-heavy-tailed” property that 2 refers to. For example, all uniform and exponential distributions satisfy the assumption. More generally, all distributions with log-concave densities have a monotone hazard rate [16], and if centered around p0{p_{0}} (for instance symmetrically on both sides), both tail ends would not be heavy and they would satisfy the assumption. As with classical non-MHR distributions, 2 is not satisfied by most heavy-tailed distributions; the difference is that this assumption includes both left and right tails of the distribution. A good example of a double-sided (left and right) heavy-tailed distribution that would fail to satisfy 2 would be the Cauchy distribution with a location parameter of p0{p_{0}}, for which the moment generating function does not exist anywhere: in this case, both of its left and right tails around p0{p_{0}} are heavy [29].

We now move on to characterize the length of the no-trade interval present in the optimal solution of Eqs. 7 and 8 as λ\lambda varies.

Proposition 4.1.

The length of the no-trade gap in the optimal solution that obtains the maximum expected profit under Eq. 9 is a decreasing function of λ\lambda, when the distribution 𝒟\mathcal{D} satisfies 2.

Proof.

First, observe that under 2, the optimal allocation rule is exactly characterized by Eqs. 7 and 8, whereby there exists exactly one root for each of the corresponding upper and lower virtual value functions. We now need to show how the roots move, while λ\lambda varies. In particular, we will prove that the root of the upper virtual value function increases as λ\lambda decreases; the proof that the root of the lower virtual value function decreases is similar. These two combined facts mean that, as λ\lambda decreases, the length of the interval of no-trade increases (because each of the roots moves away from p0{p_{0}}), thus proving the desired result.

We finish the proof as follows: consider λ1λ2\lambda_{1}\leq\lambda_{2}. The roots p1,p2p_{1},p_{2} of the upper virtual value functions ϕu(s;λ1),ϕu(s;λ2)\phi_{u}(s;\lambda_{1}),\phi_{u}(s;\lambda_{2}) for λ1,λ2\lambda_{1},\lambda_{2} respectively satisfy

ϕu(p1;λ1)=0 and ϕu(p2;λ2)=(λ2λ1)(p2p0)+ϕu(p2;λ1)=0.\phi_{u}(p_{1};\lambda_{1})=0\text{ and }\phi_{u}(p_{2};\lambda_{2})=(\lambda_{2}-\lambda_{1})(p_{2}-{p_{0}})+\phi_{u}(p_{2};\lambda_{1})=0\,.

Additionally, (λ2λ1)(p2p0)0(\lambda_{2}-\lambda_{1})(p_{2}-{p_{0}})\geq 0 since λ1λ2\lambda_{1}\leq\lambda_{2} and p2p0p_{2}\geq{p_{0}} (by definition of the upper virtual value function), so the latter equality means that ϕu(p2;λ1)0=ϕu(p1;λ1)\phi_{u}(p_{2};\lambda_{1})\leq 0=\phi_{u}(p_{1};\lambda_{1}). Therefore, by the monotonicity of ϕu(s;λ1)\phi_{u}(s;\lambda_{1}), the latter is equivalent to the ordering p2p1p_{2}\leq p_{1} of the respective roots, as desired. ∎

Proposition 4.1 allows us to make precise the important interpretation of how the effects of monopoly pricing and adverse selection interplay in a model of trading that incorporates both noise trading and better-informed traders. More specifically, in the optimal solution to the profit maximization problem of the market maker, there is a minimal interval of no-trade (corresponding to the pure noise trading case, λ=1\lambda=1) that exhibits the monopoly pricing power being the sole driving force of the shape of the optimal mechanism. As λ\lambda gets smaller, and the market maker’s model for the trader pre-supposes more and more traders with perfect information, according to Proposition 4.1, the interval around p0{p_{0}} on which the AMM is not willing to trade grows larger and larger. This change is attributed to adverse selection being added in the mixture because of the traders that are better informed than the market maker. At the other extreme, where pure adverse selection is observed (λ=0\lambda=0), the optimal solution is to provide no liquidity, or equivalently, perform no trade. This is a distribution-independent result that is due to the corresponding virtual value functions (both upper and lower) being purely non-positive in that case (c.f., the expressions of 2 for ϕu(s;0)\phi_{u}(s;0) and ϕl(s;0)\phi_{l}(s;0) where we substitute λ=0\lambda=0), making the optimal solution that obtains the maximum profit be exactly the no-trade-anywhere solution x(p^)=0,pminp^pmaxx({\hat{p}})=0,\ \forall{p_{\text{min}}}\leq{\hat{p}}\leq{p_{\text{max}}}.

5 Conclusion and future directions

The goal of this work is to isolate the most essential and salient properties of the problem of optimal liquidity provision: the zero-sum game between traders and liquidity providers, uncertain valuations, asymmetric information, and price updates conditioned on trade. We show how a “no-trade gap” (that arises as a “bid-ask spread” in traditional market microstructure literature for reasons other than the ones considered here) surprisingly arises in very general settings of liquidity provision in exchange mechanisms, like the ones we consider, allowing us to unlock a fruitful connection between optimal market-making and the Myersonian theory of optimal auction design. This connection has not been made in prior literature to the best of our knowledge.

Our general framework for reasoning about AMMs is based on a Bayesian-like belief inference procedure. Such Bayesian updating procedures are well-known and widely used in machine learning, even in the specific context of market-making [15]. The generality of our framework has the exact intention of capturing any possible exchange mechanism, including the most prominent examples of both limit order books and automated market makers [[, see also]]exchange_complexity. At the same time, for the optimal allocation rule whose structure we hereby characterize, it would be interesting to give the complexity of the market maker’s computation with update rules other than the linear one, which we gave as an indicative example of the mixing effects of both adverse selection and noise trading. In the case of update rules that can arise from an online learning framework with iterative belief updates, what makes the complexity determination not straightforwardly arise from these online learning frameworks is exactly the needed calculation of the roots in Theorem 3.2.

It might seem, at a first glance, that the market maker in the framework given in this work is not just risk-neutral but also myopic, i.e., maximizes expected profit from the next trade given its update rule, belief distribution over traders’ estimates, and its own current asset value estimate. However, our framework can capture much more generic structures of dependencies that allow the market maker to not be myopic, including a (possibly discounted) cumulative profit/reward structure. It would be an interesting future direction to examine whether the insights we give in this work change in such cases; we conjecture that they do not, but additional effects could be observed. In fact, our Bayesian (update rule) framework can be adjusted to accommodate these more complicated structures, where the updated belief (through the update rule) can have any future expectations already baked in. In particular, sequentially, the market maker’s new updated belief of the prior round of trading becomes their prior belief in the next trade, so that the prior at each round depends on the entire past history of trades; the update rule at each time holds the best (future) expectation of the market maker.

Finally, future empirical work that probes the model’s assumptions and results could be explored, just as empirical work on revenue-maximizing auctions and online learning has served to usefully probe Myerson’s original theoretical framework.

Acknowledgments

The first author is supported in part by NSF awards CNS-2212745, CCF-2212233, DMS-2134059, and CCF-1763970. The second author is supported by the Briger Family Digital Finance Lab at Columbia Business School. The third author’s research at Columbia University is supported in part by NSF awards CNS-2212745, and CCF-2006737.

Disclosures

The second author is an advisor to fintech companies. The third author is Head of Research at a16z crypto, which reviewed a draft of this article for compliance prior to publication and is an investor in various decentralized finance projects, including Uniswap, as well as in the crypto ecosystem more broadly (for general a16z disclosures, see https://www.a16z.com/disclosures/).

References

  • [1] Jacob Abernethy and Satyen Kale “Adaptive Market Making via Online Learning” In Advances in Neural Information Processing Systems 26 Curran Associates, Inc., 2013 URL: https://proceedings.neurips.cc/paper_files/paper/2013/file/995e1fda4a2b5f55ef0df50868bf2a8f-Paper.pdf
  • [2] Saeed Alaei, Hu Fu, Nima Haghpanah and Jason Hartline “The simple economics of approximately optimal auctions” In 2013 IEEE 54th Annual Symposium on Foundations of Computer Science, 2013, pp. 628–637 IEEE
  • [3] Guillermo Angeris and Tarun Chitra “Improved price oracles: Constant function market makers” In Proceedings of the 2nd ACM Conference on Advances in Financial Technologies, 2020, pp. 80–91
  • [4] Guillermo Angeris, Alex Evans and Tarun Chitra “Replicating market makers” In arXiv preprint arXiv:2103.14769, 2021
  • [5] Guillermo Angeris, Alex Evans and Tarun Chitra “Replicating monotonic payoffs without oracles” In arXiv preprint arXiv:2111.13740, 2021
  • [6] Aseem Brahma, Mithun Chakraborty, Sanmay Das, Allen Lavoie and Malik Magdon-Ismail “A Bayesian Market Maker” In Proceedings of the 13th ACM Conference on Electronic Commerce, EC ’12 Valencia, Spain: Association for Computing Machinery, 2012, pp. 215–232 DOI: 10.1145/2229012.2229031
  • [7] Jeremy Bulow and John Roberts “The Simple Economics of Optimal Auctions” In Journal of Political Economy 97.5, 1989, pp. 1060–1090 DOI: 10.1086/261643
  • [8] Shuchi Chawla, Jason D Hartline and Robert Kleinberg “Algorithmic pricing via virtual valuations” In Proceedings of the 8th ACM Conference on Electronic Commerce, 2007, pp. 243–251
  • [9] Shuchi Chawla, Jason D Hartline, David L Malec and Balasubramanian Sivan “Multi-parameter mechanism design and sequential posted pricing” In Proceedings of the forty-second ACM symposium on Theory of computing, 2010, pp. 311–320
  • [10] Shuchi Chawla, Jason D Hartline and Balasubramanian Sivan “Optimal crowdsourcing contests” In Games and Economic Behavior 113, 2019, pp. 80–96 DOI: https://doi.org/10.1016/j.geb.2015.09.001
  • [11] Y. Chen and D.M Pennock “A utility framework for bounded-loss market makers” In Proceedings of the 23rd Conference on Uncertainty in Artificial Intelligence (UAI 2007, 2007, pp. 49–56
  • [12] Richard Cole and Shravas Rao “Applications of α\alpha-Strongly Regular Distributions to Bayesian Auctions” In ACM Trans. Econ. Comput. 5.4 New York, NY, USA: Association for Computing Machinery, 2017 DOI: 10.1145/3157083
  • [13] Richard Cole and Tim Roughgarden “The sample complexity of revenue maximization” In Proceedings of the forty-sixth annual ACM symposium on Theory of computing, 2014, pp. 243–252
  • [14] Sanmay Das “A learning market-maker in the Glosten–Milgrom model” In Quantitative Finance 5.2 Taylor & Francis, 2005, pp. 169–180
  • [15] Sanmay Das and Malik Magdon-Ismail “Adapting to a Market Shock: Optimal Sequential Market-Making” In Advances in Neural Information Processing Systems 21 Curran Associates, Inc., 2008 URL: https://proceedings.neurips.cc/paper_files/paper/2008/file/7a614fd06c325499f1680b9896beedeb-Paper.pdf
  • [16] Christian Ewerhart “Regular type distributions in mechanism design and ρ\rho-concavity” The original publication is available at www.springerlink.com In Economic Theory 53.3 Springer, 2013, pp. 591–603 DOI: 10.1007/s00199-012-0705-3
  • [17] Zhou Fan, Francisco J. Marmolejo-Cossío, Ben Altschuler, He Sun, Xintong Wang and David Parkes “Differential Liquidity Provision in Uniswap v3 and Implications for Contract Design” In Proceedings of the Third ACM International Conference on AI in Finance, ICAIF ’22 New York, NY, USA: Association for Computing Machinery, 2022, pp. 9–17 DOI: 10.1145/3533271.3561775
  • [18] Andrew Gelman, John B. Carlin, Hal Steven Stern, David B. Dunson, Aki Vehtari and Donald B. Rubin “Bayesian data analysis” OCLC: 909477393 Boca Raton: CRC Press, 2014
  • [19] Lawrence R Glosten “Insider trading, liquidity, and the role of the monopolist specialist” In Journal of business JSTOR, 1989, pp. 211–235
  • [20] Lawrence R Glosten “Is the electronic open limit order book inevitable?” In The Journal of Finance 49.4 Wiley Online Library, 1994, pp. 1127–1161
  • [21] Lawrence R. Glosten and Paul R. Milgrom “Bid, ask and transaction prices in a specialist market with heterogeneously informed traders” In Journal of Financial Economics 14.1, 1985, pp. 71–100 DOI: https://doi.org/10.1016/0304-405X(85)90044-3
  • [22] Mohak Goyal, Geoffrey Ramseyer, Ashish Goel and David Mazières “Finding the Right Curve: Optimal Design of Constant Function Market Makers” arXiv, 2022 DOI: 10.48550/ARXIV.2212.03340
  • [23] Nima Haghpanah and Jason D Hartline “Reverse mechanism design” In Proceedings of the Sixteenth ACM Conference on Economics and Computation, 2015, pp. 757–758
  • [24] Jason D Hartline “Approximation in mechanism design” In American Economic Review 102.3 American Economic Association, 2012, pp. 330–336
  • [25] Jason D Hartline “Mechanism design and approximation” In Book draft 122.1, 2021
  • [26] Jason D Hartline and Tim Roughgarden “Simple versus optimal mechanisms” In Proceedings of the 10th ACM conference on Electronic commerce, 2009, pp. 225–234
  • [27] Albert S. Kyle “Continuous Auctions and Insider Trading” In Econometrica 53.6 [Wiley, Econometric Society], 1985, pp. 1315–1335 URL: http://www.jstor.org/stable/1913210
  • [28] Albert S. Kyle “Informed Speculation with Imperfect Competition” In The Review of Economic Studies 56.3 [Oxford University Press, Review of Economic Studies, Ltd.], 1989, pp. 317–355 URL: http://www.jstor.org/stable/2297551
  • [29] Nathan Mantel “Tails of Distributions” In The American Statistician 30.1 [American Statistical Association, Taylor & Francis, Ltd.], 1976, pp. 14–17 URL: http://www.jstor.org/stable/2682880
  • [30] Jason Milionis, Ciamac C. Moallemi and Tim Roughgarden “Complexity-Approximation Trade-offs in Exchange Mechanisms: AMMs vs. LOBs” In Financial Cryptography and Data Security Springer International Publishing, 2023
  • [31] Jason Milionis, Ciamac C. Moallemi and Tim Roughgarden “Extended Abstract: The Effect of Trading Fees on Arbitrage Profits in Automated Market Makers” In Financial Cryptography and Data Security. FC 2023 International Workshops Springer International Publishing, 2023
  • [32] Jason Milionis, Ciamac C. Moallemi, Tim Roughgarden and Anthony Lee Zhang “Quantifying Loss in Automated Market Makers” In Proceedings of the 2022 ACM CCS Workshop on Decentralized Finance and Security, DeFi’22 Los Angeles, CA, USA: Association for Computing Machinery, 2022, pp. 71–74 DOI: 10.1145/3560832.3563441
  • [33] Roger B. Myerson “Optimal Auction Design” In Mathematics of Operations Research 6.1 INFORMS, 1981, pp. 58–73 URL: http://www.jstor.org/stable/3689266
  • [34] Michael Neuder, Rithvik Rao, Daniel J Moroz and David C Parkes “Strategic liquidity provision in uniswap v3” In arXiv preprint arXiv:2106.12033, 2021
  • [35] Maureen O’Hara “Market microstructure theory” Malden, Mass.: Blackwell, 2011
  • [36] Tim Roughgarden and Inbal Talgam-Cohen “Optimal and robust mechanism design with interdependent values” In ACM Transactions on Economics and Computation (TEAC) 4.3 ACM New York, NY, USA, 2016, pp. 1–34
  • [37] Tim Roughgarden and Inbal Talgam-Cohen “Approximately optimal mechanism design” In Annual Review of Economics 11 Annual Reviews, 2019, pp. 355–381
  • [38] Jimmy Yin and Mac Ren “On Liquidity Mining for Uniswap v3” In arXiv preprint arXiv:2108.05800, 2021