MathFin
Map / Choice · Market microstructure / MathFin.Markets.Microstructure.MarketMakingRiccati

Single-asset market making — closed-form (Riccati) approximation

MathFin.Markets.Microstructure.MarketMakingRiccatiMSC 91G80MSC 49L20JEL G14 source

The multi-asset Avellaneda–Stoikov market-making problem of Bergault, Evangelista, Guéant and Vieira (Closed-form approximations in multi-asset market making, arXiv:1810.04383) reduces, via a quadratic (LQ) approximation of the trade-intensity Hamiltonians, to a Riccati system whose solution is a closed-form proxy for the value function θ(t, q).

This Riccati is the LQ-approximation view, not the fundamental structure: for exponential intensities the exact single-asset problem is linearisable by a Hopf–Cole change of variables into a linear ODE system (Guéant–Lehalle–Fernandez-Tapia), the deeper and more faithful target (not formalised here; the matrix-exponential derivative it needs is Mathlib's hasDerivAt_exp_smul_const). We formalise the tractable approximate closed form (see MatrixMarketMakingRiccati for the multi-asset analogue and the full landscape note).

Specialised here to a single asset (d = 1), we verify, in three layers:

  • Riccati coefficient — a(t) =  · tanh ( · (T − t)) solves a' = a² − ² with a(T) = 0 (the tanh derivative is derived locally — Mathlib carries none at this pin; the T → ∞ ergodic limit a(0) →  is a deferred follow-up).
  • Value function — the quadratic ansatz θ̌(t, q) = −A(t) q² − B(t) q − C(t) solves the approximate Hamilton–Jacobi equation (the paper's Eq. 9) whenever (A, B, C) solve the Riccati/linear ODE system, with A the Riccati coefficient.
  • Quotes — with the known exponential-intensity quote map δ̃_ξ(p) = p + c, the greedy bid/ask give a constant half-spread and an inventory-linear skew, for both the CARA (Model A) and risk-adjusted (Model B) objectives.

Scope (mirroring AlmgrenChriss.lean)

We verify the closed-form solution of the approximate (quadratic-Hamiltonian) HJ equation. Out of scope: the stochastic optimal-control substrate (existence/uniqueness of the true value function solving the exact HJ equation, and the verification theorem linking θ to optimal quotes — controlled marked-point-process control beyond the current pin); that the approximate value function approximates the true one (justified numerically in the paper); the exact Hopf–Cole linearisation (the fundamental structure; Mathlib's hasDerivAt_exp_smul_const covers the matrix-exponential calculus it needs, so what is missing is the construction itself); and deriving δ̃_ξ from the intensity sup (it is defined by its known closed form from Guéant [18] / Guéant–Lehalle–Fernandez-Tapia [20]). The multi-asset approximate matrix Riccati is now discharged in MatrixMarketMakingRiccati.

Main definitions

  • riccatiCoeff: the scalar Riccati coefficient a(t) = Â · tanh (Â · (T − t)).
  • expIntensityQuote: the exponential-intensity quote map δ̃(p) = p + c.
  • quoteConstA, quoteConstB: the constants c = log (1 + γ z / k) / (γ z) (CARA objective) and c = 1 / k (risk-adjusted objective).
  • mmQuoteBid, mmQuoteAsk: the greedy bid and ask quotes δ̃(2A(t)q + A(t)z + B(t)) and δ̃(−2A(t)q + A(t)z − B(t)).

Main results

  • hasDerivAt_tanh: tanh' x = 1 − tanh² x.
  • riccatiCoeff_terminal, hasDerivAt_riccatiCoeff: a(T) = 0 and a' = a² − ².
  • valueFunction_satisfies_approxHJ: if A, B, C have the stated derivatives, the quadratic ansatz −A(s) q² − B(s) q − C(s) has time-derivative equal to the approximate Hamilton–Jacobi right-hand side, for z > 0.
  • mmHalfSpread_const: (δ̌ᵃ + δ̌ᵇ)/2 = A(t)·z + c, independent of the inventory q.
  • mmSkew_linear: (δ̌ᵃ − δ̌ᵇ)/2 = −2·A(t)·q − B(t).

References

Tags

Avellaneda–Stoikov, market making, Riccati equation, Hamilton–Jacobi–Bellman, optimal quotes, inventory risk, bid-ask spread, MSC 91G80, MSC 49L20, JEL G14

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-mm-riccati · market_microstructure.json · full statement
Market-Making Riccati Coefficient — Closed Form

The scalar Riccati coefficient a(t)=·tanh(Â(T−t)) solves a'=a²−² (single-asset LQ approximation of multi-asset market making).

mf-mm-value-function · market_microstructure.json · full statement
Market-Making Value Function — Approximate HJ Verification (d=1)

The quadratic ansatz θ̌(t,q)=−A(t)q²−B(t)q−C(t) solves the approximate (quadratic-Hamiltonian) Hamilton–Jacobi equation when (A,B,C) solve the Riccati/linear ODE system.

mf-mm-quotes · market_microstructure.json · full statement
Market-Making Closed-Form Quotes — Constant Spread + Linear Skew

The greedy quotes give a constant half-spread A(t)z+c (c=quoteConstA for Model A, quoteConstB for Model B) and an inventory-linear model-independent skew −2A(t)q−B(t).

Declarations 12

theoremMathFin.hasDerivAt_tanhsource
∀ (x : ℝ), HasDerivAt Real.tanh (1 - Real.tanh x ^ 2) x

Derivative of tanh — tanh'(x) = 1 − tanh² x — derived from tanh = sinh / cosh and the quotient rule (Mathlib carries no HasDerivAt lemma for tanh at this pin).

defMathFin.riccatiCoeffsource
ℝ → ℝ → ℝ → ℝ

Scalar Riccati coefficient a(t) =  · tanh ( · (T − t)) — the closed-form solution of the normalised Riccati equation a' = a² − ² with terminal value a(T) = 0. In the market-making instance,  = σ · √(γ · (α₂ᵇ + α₂ᵃ) · z) and the value-function coefficient is A(t) = riccatiCoeff  T t / (2 · (α₂ᵇ + α₂ᵃ) · z).

theoremMathFin.riccatiCoeff_terminalsource
∀ ( T : ℝ), riccatiCoeff  T T = 0

Terminal condition: a(T) = 0.

theoremMathFin.hasDerivAt_riccatiCoeffsource
∀ ( T t : ℝ), HasDerivAt (riccatiCoeff  T) (riccatiCoeff  T t ^ 2 -  ^ 2) t

Riccati ODE: a'(t) = a(t)² − ².

theoremMathFin.valueFunction_satisfies_approxHJsource
∀ (γ σ z α₀b α₁b α₂b α₀a α₁a α₂a : ℝ), 0 < z → ∀ (A B C : ℝ → ℝ) (t q : ℝ), HasDerivAt A (2 * z * (α₂b + α₂a) * A t ^ 2 - γ * σ ^ 2 / 2) t → HasDerivAt B (2 * z * (α₁b - α₁a) * A t + 2 * z ^ 2 * (α₂b - α₂a) * A t ^ 2 + 2 * z * (α₂b + α₂a) * A t * B t) t → HasDerivAt C (z * (α₀b + α₀a) + z ^ 2 * (α₁b + α₁a) * A t + z * (α₁b - α₁a) * B t + z ^ 3 * (α₂b + α₂a) * A t ^ 2 / 2 + z * (α₂b + α₂a) * B t ^ 2 / 2 + z ^ 2 * (α₂b - α₂a) * A t * B t) t → HasDerivAt (fun s => -A s * q ^ 2 - B s * q - C s) (γ * σ ^ 2 / 2 * q ^ 2 - z * (α₀b + α₀a) - α₁b * (2 * A t * q * z + A t * z ^ 2 + B t * z) - α₁a * (-2 * A t * q * z + A t * z ^ 2 - B t * z) - 1 / (2 * z) * (α₂b * (2 * A t * q * z + A t * z ^ 2 + B t * z) ^ 2 + α₂a * (-2 * A t * q * z + A t * z ^ 2 - B t * z) ^ 2)) t

Value-function verification (Prop. 1, d = 1). The quadratic ansatz θ̌(t, q) = −A(t) q² − B(t) q − C(t) has time-derivative equal to the algebraic right-hand side of the approximate Hamilton–Jacobi equation (the paper's Eq. 9, Q = ∞) whenever (A, B, C) solve the scalar reduction of the ODE system (Eq. 11) — A the Riccati coefficient (Â = σ · √(γ · (α₂ᵇ + α₂ᵃ) · z)). The B/C ODE right-hand sides are pinned by the ring closure below (self-certifying).

defMathFin.expIntensityQuotesource
ℝ → ℝ → ℝ

Exponential-intensity quote map δ̃_ξ(p) = p + c (Guéant [18] / GLFT [20]); c is the model constant (quoteConstA/quoteConstB). Defined, not re-derived from the intensity sup.

defMathFin.quoteConstAsource
ℝ → ℝ → ℝ → ℝ

Model-A (CARA, ξ = γ) quote constant c = (1 / (γ z)) · log (1 + γ z / k).

defMathFin.quoteConstBsource
ℝ → ℝ

Model-B (risk-adjusted, ξ = 0) quote constant c = 1 / k.

defMathFin.mmQuoteBidsource
(ℝ → ℝ) → (ℝ → ℝ) → ℝ → ℝ → ℝ → ℝ → ℝ

Greedy bid quote δ̌ᵇ = δ̃(2 A(t) q + A(t) z + B(t)) (from Δ⁺ / z).

defMathFin.mmQuoteAsksource
(ℝ → ℝ) → (ℝ → ℝ) → ℝ → ℝ → ℝ → ℝ → ℝ

Greedy ask quote δ̌ᵃ = δ̃(−2 A(t) q + A(t) z − B(t)) (from Δ⁻ / z).

theoremMathFin.mmHalfSpread_constsource
∀ (A B : ℝ → ℝ) (z c t q : ℝ), (mmQuoteAsk A B z c t q + mmQuoteBid A B z c t q) / 2 = A t * z + c

Constant half-spread: (δ̌ᵃ + δ̌ᵇ) / 2 = A(t) · z + c, independent of inventory q. Holds for both models via the constant c (quoteConstA for Model A, quoteConstB for Model B).

theoremMathFin.mmSkew_linearsource
∀ (A B : ℝ → ℝ) (z c t q : ℝ), (mmQuoteAsk A B z c t q - mmQuoteBid A B z c t q) / 2 = -2 * A t * q - B t

Inventory-linear skew: (δ̌ᵃ − δ̌ᵇ) / 2 = −2 · A(t) · q − B(t) (the constant c cancels).