Overview
The GLFT model (Guéant, Lehalle & Fernandez-Tapia, 2013) solves the optimal market-making problem: how to set bid and ask prices that maximize expected profit while controlling inventory risk. The key insight is that optimal quotes depend on three factors:- Volatility of the underlying asset
- Your current inventory (position risk)
- Order arrival rate (how often you get filled)
The Model
The optimal bid and ask offsets from the fair price are:mid= current fair price (midpoint)q= current inventory (positive = long, negative = short)gamma= risk aversion parameter (higher = wider spreads, less inventory risk)sigma= volatility of the underlying assetT= time remaining until market closek= order arrival decay parameter (how quickly fill probability drops with quote distance from mid)
These are the closed-form approximations from Avellaneda & Stoikov (2008). The full GLFT solution (Guéant, Lehalle & Fernandez-Tapia, 2013) uses a finite-horizon ODE with matrix exponential.
Implementation
Parameter Tuning
Risk Aversion (gamma)
Order Arrival Rate (k)
Estimate from historical trade frequency. Higherk means tighter spreads are optimal (you’ll get filled more often).
Volatility (sigma)
Use Pyth oracle ticks for real-time volatility estimation:Blink-Specific Considerations
Market Windows
Markets have a defined close time. AsT approaches 0:
- Spread widens (higher uncertainty per unit time)
- Inventory skew increases (more aggressive position reduction)
Binary Outcome
Unlike continuous assets, prediction market tokens converge to 0 or 1 at expiry. The GLFT model’s spread naturally accounts for this via theT term — as expiry approaches, the model quotes wider to reflect settlement risk.
MINT/MERGE Liquidity
Blink supports cross-book matching via MINT and MERGE:- A BUY on YES + BUY on NO at combined price $1.00 creates new tokens (MINT)
- A SELL on YES + SELL on NO burns tokens and returns $1.00 (MERGE)
References
- Guéant, O., Lehalle, C.A., & Fernandez-Tapia, J. (2013). “Dealing with the Inventory Risk: A Solution to the Market Making Problem.” Mathematics and Financial Economics, 7(4), 477-507.
- Guéant, O. (2017). “Optimal Market Making.” Applied Mathematical Finance, 24(2), 112-154.

