2nd place — National Bank ChallengeJanuary 2026
ARMM
Adaptive Regime Market Maker
- Result
- 2nd place
- Build time
- 24 hours, solo
The problem
A fixed spread is correct in exactly one market regime and wrong in every other. A quiet book, a trending book and a flash crash each punish the same quoting policy in a different way, so the policy has to know which one it is in.
What I built
- Classified the book into three regimes — band, drift and event — from rolling quantiles of recent price action, EMA persistence to avoid flipping on single-tick noise, and realised volatility.
- Treated inventory as a control variable rather than a reporting line: as a position accumulated, quotes skewed to lean against it instead of continuing to quote symmetrically into a one-sided fill pattern.
- Rate-limited how fast quotes could move, so the strategy could not chase its own signal — the single change that most improved behaviour under the stressed and flash-crash scenarios.
Outcome
- Second place in the National Bank Challenge.
Stack
PythonNumPy
Note
Credit where it is due: the exchange simulator and the competition harness were provided by the organisers. What is mine is the strategy layer — the regime classifier, the inventory skew, and the slew limiting.
Next
wtf
Wraps any command and, when it fails, diagnoses the error against your actual environment — your versions, your packages, your virtualenv.