Latent Liquidity Resiliency via Sweep→Refill Modeling

2026-02-27 · finance

Latent Liquidity Resiliency via Sweep→Refill Modeling

Date: 2026-02-27
Category: research (quant execution / slippage modeling)

Why this playbook

Top-of-book depth is an unreliable proxy for true executable liquidity. What matters in production is how fast liquidity refills after you consume it.

This playbook models slippage as a function of:

  1. Immediate sweep cost (how far you must walk the book),
  2. Refill speed (how quickly liquidity comes back),
  3. Adverse continuation risk (does price keep drifting against you before refill).

The goal is to replace static depth-based heuristics with an online, regime-aware controller.


Core idea

Treat every child-order interaction as a tiny experiment:

So execution policy becomes:

“Trade more when refill is healthy; throttle when refill is slow or toxic.”


Slippage decomposition

For child order (i):

[ \text{Cost}i = C{\text{sweep}, i} + C_{\text{transient}, i} + C_{\text{continuation}, i} + C_{\text{timing}, i} ]

Where:

Traditional models usually fit the first term well and under-model the middle two.


Observables to log per child order

At minimum:

Derived metrics

  1. Depth Recovery Ratio (DRR) [ \text{DRR}_{\Delta t} = \frac{\text{same-side depth at } t+\Delta t}{\text{depth consumed at } t} ]

  2. Refill Half-life (\tau_{1/2})

Time until DRR reaches 0.5.

  1. Recovery Efficiency (RE) [ \text{RE}_{\Delta t} = \frac{\text{refilled depth at same/better price}}{\text{total refilled depth}} ]

  2. Adverse Continuation Score (ACS)

Side-adjusted post-fill drift standardized by intraday volatility.

  1. Sweep-to-Refill Elasticity (SRE) [ \text{SRE} = \frac{\partial \text{DRR}_{1s}}{\partial \text{sweep size percentile}} ]

If SRE is strongly negative, larger clips nonlinearly damage refill quality.


A practical online model

Use a two-stage model:

Stage A — refill/resiliency nowcast

Predict:(\hat{\tau}{1/2}), (\widehat{\text{DRR}}{1s}), (\widehat{\text{RE}}_{1s})

Features:

Good defaults:

Stage B — continuation/markout risk

Predict side-adjusted 5s/30s markout conditional on Stage A outputs + flow toxicity features.

Useful formula:

[ \widehat{\text{Cost}}(q) = \widehat{C}_{\text{sweep}}(q)

Then optimize child size (q) under:


Regime state machine (operational)

Define 3 states from resiliency + continuation signals:

1) HEALTHY

Action:

2) FRAGILE

Action:

3) EXHAUSTED

Action:

Add hysteresis (e.g., 2 consecutive windows to enter, 3 to exit) to avoid flapping.


“Sentinel sweep” calibration trick

To estimate live resiliency without overtrading:

Guardrails:

This gives online identifiability for refill dynamics when normal flow is sparse/noisy.


Data contract (example)

create table exec_micro_events (
  event_id text primary key,
  symbol text not null,
  side text not null,
  decision_ts timestamptz not null,
  fill_ts timestamptz,
  child_qty numeric not null,
  child_notional numeric not null,
  spread_bps numeric,
  l1_imbalance numeric,
  sweep_levels int,
  swept_qty numeric,
  drr_250ms numeric,
  drr_1s numeric,
  re_1s numeric,
  tau_half_ms numeric,
  markout_5s_bps numeric,
  markout_30s_bps numeric,
  regime_label text,
  created_at timestamptz default now()
);

Keep event-time semantics strict; slippage attribution dies when clocks drift.


Validation: what to track weekly

  1. Forecast calibration

    • q50/q90 coverage for (\tau_{1/2}), DRR, markout.
  2. Control quality

    • p95 child-order slippage vs baseline,
    • underfill rate delta,
    • completion lateness incidents.
  3. Stability

    • regime flip frequency,
    • time spent in EXHAUSTED,
    • false-positive throttles (cost saved vs opportunity lost).
  4. Robustness

    • stress windows (open/close/news) sliced separately,
    • liquidity-bucket stratified performance.

Failure modes and anti-footguns


Minimal rollout plan (production)

Phase 1 (Shadow)

Phase 2 (Canary 5–10%)

Phase 3 (Scaled)

Phase 4 (Governance)


Practical takeaway

In live execution, liquidity quality is not “how much is visible now,” but how the book heals after being touched.

Modeling sweep→refill resiliency turns slippage control from static heuristics into an adaptive control loop that better protects p95/p99 cost without blindly sacrificing fills.