Katya Malinova and Andreas Park
Women in Microstructure
San Francisco, June 25 2023
Preliminaries & Some Motivation
Basic Idea
AMMs price: mechanical, based on the amount of liquidity deposits.
L(a−q,c+Δc)=L(a,c)
a
a−q
c+Δc
c
Given the initial deposits (a, c), the total cost Δc for q units is such that:
Remove (buy) q units of the asset from the pool
Add (pay) Δc cash to the pool
a
asset (stock)
cash
liquidity after trade = liquidity before trade
Key Components
Liquidity Supply and Demand in an Automated Market Maker
(a−q)⋅(c+Δc)=a⋅c
a
a−q
c+Δc
c
Initial marginal price = initial asset value: p(0)=ac
Most Common Pricing: Constant Product: L(a,c)=a⋅c
Per unit p(q) as liquidity deposits increase
(a−q)⋅(c+Δc)=a⋅c
a
a−q
c+Δc
c
Initial marginal price = initial asset value: p(0)=ac
Liquidity providers: positional losses
If trade is informed ⇒ new asset value =a−qc+Δc>p(q)
Basics of Liquidity Provision in an AMM
fees earned on balanced flowFp0V+∫0∞adverse selection loss when the return is R(Δc(q∗)−q∗pt(R)+fees earned from arbitrageursF⋅Δc(q∗)) ϕ(R)dR≥0.
q∗ is what arbitrageurs trade to move the price to reflect R
LP compensation in AMM: liquidity providers earn fees
fee income+adverse selection losswhat LP sold it for−value of net position≥0
in AMMs:
protocol fee
takes the role of the TradFi bid-ask spread
Basics of Liquidity Provision
∫0∞adverse selection loss when the return is R(Δc(q∗)−q∗pt(R)+fees earned from arbitrageursF⋅Δc(q∗)) ϕ(R)dR+fees earned on balanced flowFp0V≥0
initial deposit1∫0∞(Δc(q∗)−q∗pt(R)+F⋅Δc(q∗)) ϕ(R)dR+initial depositFp0V≥0
∫0∞(initial depositΔc(q∗)−q∗pt(R)+F⋅initial depositΔc(q∗)) ϕ(R)dR+initial depositFp0V≥0
closed form functions of R only
(see Barbon & Ranaldo (2022))
Sidebar: we can quantify how much a PASSIVE LP loses when the price moves by R
for orientation:
initial depositadverse selection loss when the return is R=R−21(R+1)
same as in Barbon & Ranaldo (2022)
Liquidity Provision Decision
E[IILRAS(R)]+F⋅E[another function of R]+F⋅initial depositdollar volume≥0.
what LP sold it for−value of net position+fee income≥0
Liquidity Demander's Decision & (optimal) AMM Fees
Fπ=E[∣R−1∣/2]+V1(−2q E[ILLRAS]+−2qV E[ILLRAS]).
What's next?
How we think of the Implementation of an AMM for our Empirical Analysis
Approach: daily AMM deposits
Background on Data
some volume may be intermediated
AMMs based on historical returns
Return distribution example: Microsoft
Return distribution example: Tesla
Average of the market cap to be deposited for competitive liquidity provision: αˉ≈2%
almost break even on average (average loss 0.2bps ≈0)
average: 94% of days AMM is cheaper than LOB for liq demanders
average savings: 16 bps
average daily: $9.5K
saves around 45% of transaction costs (measured as bid-ask spread)
average annual saving: $2.4 million
implied "excess depth" on AMM relative to the traditional market
Sidebar: Capital Requirement
Deposit Requirements
⇒ Need about 5% of the value of the shares deposited -- not 100% -- to cover up to a 10% return decline
An alternative to -10% circuit breaker:
max cash needed based on long-run past average R − 2 std
Summary
@katyamalinova
malinovk@mcmaster.ca
slides.com/kmalinova
https://sites.google.com/site/katyamalinova/