
Augmenting Batch Exchanges with Constant Function Market
Makers
GEOFFREY RAMSEYER*, Stanford University, USA
MOHAK GOYAL*, Stanford University, USA
ASHISH GOEL, Stanford University, USA
DAVID MAZIÈRES, Stanford University, USA
Batch auctions are a classical market microstructure, acclaimed for their fairness properties, and have received
renewed interest in the context of blockchain-based nancial systems. Constant function market makers
(CFMMs) are another market design innovation praised for their computational simplicity. Liquidity provision
in batch exchanges is an important problem, and CFMMs have recently shown promise in being useful within
batch exchanges. Dierent real-world implementations have used fundamentally dierent approaches towards
integrating CFMMs in batch exchanges, and there is a lack of formal understanding of the trade-os of dierent
design choices.
We rst provide a minimal set of axioms that capture the well-accepted rules of batch exchanges and
CFMMs. For batch exchanges, these are asset conservation, uniform prices, and a best response for limit
orders. For CFMMs, our axiom is that their trading function is non-decreasing. Many market solutions may
satisfy all our axioms. We then describe several economically desirable properties of market solutions. These
include Pareto optimality for limit orders, price coherence of CFMMs (as a defence against cyclic arbitrage),
joint price discovery for CFMMs (as a defence against parallel running), path independence, and a locally
computable trade response of the CFMMs (to provide them with a predictable trade size given a market price).
For market solutions satisfying all our axioms, we show fundamental conicts between some pairs of desirable
properties. Most notably, a batch exchange cannot simultaneously guarantee ‘Pareto optimality’ for the limit
orders and any of ‘price coherence’ or ‘locally computable response’ for the CFMMs. We then provide two
ways of integrating CFMMs in batch exchanges, which attain dierent subsets of these properties.
We further provide a convex program for computing Arrow-Debreu exchange market equilibria when
all agents have weak gross substitute (WGS) demand functions on two assets – this program extends the
literature on Arrow-Debreu exchange markets and may be of independent interest.
CCS Concepts: •Theory of computation
→
Market equilibria;•Applied computing
→
Electronic
commerce.
Additional Key Words and Phrases: Batch Exchanges, Automated Market Makers, Market Equilibria
ACM Reference Format:
Georey Ramseyer*, Mohak Goyal*, Ashish Goel, and David Mazières. 2024. Augmenting Batch Exchanges
with Constant Function Market Makers. In Conference on Economics and Computation (EC ’24), July 8–11, 2024,
New Haven, CT, USA. ACM, New York, NY, USA, 31 pages. https://doi.org/10.1145/3670865.3673569
* denotes equal contribution.
Authors’ Contact Information: Georey Ramseyer*, Stanford University, Stanford, California, USA, geo.ramseyer@cs.
stanford.edu; Mohak Goyal*, Stanford University, Stanford, California, USA, mohakg@stanford.edu; Ashish Goel, Stanford
University, Stanford, California, USA, ashishg@stanford.edu; David Mazières, Stanford University, Stanford, California,
USA, .
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee
provided that copies are not made or distributed for prot or commercial advantage and that copies bear this notice and the
full citation on the rst page. Copyrights for components of this work owned by others than the author(s) must be honored.
Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires
prior specic permission and/or a fee. Request permissions from permissions@acm.org.
EC ’24, July 8–11, 2024, New Haven, CT, USA
©2024 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM ISBN 979-8-4007-0704-9/24/07
https://doi.org/10.1145/3670865.3673569
arXiv:2210.04929v7 [cs.GT] 21 Jun 2024