This paper presents a general framework for the design and analysis of exchange mechanisms between two assets that unifies and enables comparisons between the two dominant paradigms for exchange, constant function market markers (CFMMs) and limit order books (LOBs). In our framework, each liquidity provider (LP) submits to the exchange a downward-sloping demand curve, specifying the quantity of the risky asset it wishes to hold at each price; the exchange buys and sells the risky asset so as to satisfy the aggregate submitted demand. In general, such a mechanism is budget-balanced and enables price discovery. Different exchange mechanisms correspond to different restrictions on the set of acceptable demand curves. The primary goal of this paper is to formalize an approximation-complexity trade-off that pervades the design of exchange mechanisms. For example, CFMMs give up expressiveness in favor of simplicity: the aggregate demand curve of the LPs can be described using constant space, but most demand curves cannot be well approximated by any function in the corresponding single-dimensional family. LOBs, intuitively, make the opposite trade-off: any downward-slowing demand curve can be well approximated by a collection of limit orders, but the space needed to describe the state of a LOB can be large. This paper introduces a general measure of {\em exchange complexity}, defined by the minimal set of basis functions that generate, through their conical hull, all of the demand functions allowed by an exchange. With this complexity measure in place, we investigate the design of {\em optimally expressive} exchange mechanisms, meaning the lowest complexity mechanisms that allow for arbitrary downward-sloping demand curves to be well approximated. As a case study, we interpret the complexity-approximation trade-offs in the widely-used Uniswap v3 AMM through the lens of our framework.
翻译:本文提出了一个通用框架,用于设计和分析两个资产之间的交易机制,统一并比较了交易的两种主导范式:常数函数市场做市商(CFMMs)和限价订单簿(LOBs)。在我们的框架中,每个流动性提供者(LP)向交易所提交一个向下倾斜的需求曲线,指定其希望在每个价格上持有的风险资产数量;交易所买卖风险资产,以满足提交的需求的总和。一般来说,这样的机制是预算平衡的,使价格发现成为可能。不同的交易机制对应于可接受需求曲线集合上的不同限制。本文的主要目标是形式化一种贯穿于交易机制设计中的近似和复杂度权衡。例如,CFMMs为简单性而放弃了表现力:LP的总需求曲线可以用常数空间描述,但大多数需求曲线不能用相应的一维系列中的任何函数很好地近似。相反,直观上来说,LOBs则是做相反的权衡:任何向下倾斜的需求曲线都可以用一系列限价订单很好地逼近,但需要描述LOB状态的空间可能很大。本文介绍了一种称为“交易复杂度”的全新度量方式,它由产生交易所的所有允许需求函数的圆锥壳体的最小基函数集合定义。有了这个复杂度衡量标准,我们研究了“最优表现力”交易机制的设计,这意味着至少复杂度的机制可以逼近任意向下倾斜的需求曲线。作为案例研究,我们通过我们的框架来解释Uniswap v3 AMM中的复杂度-近似性权衡。