When and How Order-Flow Interventions Work After Dealers Adapt
Organizations: University of Technology Sydney Sydney, NSW, Australia
Abstract
Learning dealer agents can settle on persistently wide quotes, raising what customers pay to trade. A venue can route more orders to tighter quotes, but a wide quote may reflect real risk, and once dealers adapt, an end-to-end comparison cannot show why a rule works: because it intervenes more, picks better moments, is announced in advance, or rewards the right quote. We propose SOFA (State-aligned Order-Flow Allocation), a public order-flow contract with three parts: a State Scorer ranks market states from lagged public data, a Commitment Scheduler announces a budgeted intervention strength before dealers quote, and a Quote-to-Flow Allocator shifts a bounded share of fixed customer demand toward tighter quotes. Our paired re-adaptation protocol gives competing rules the same intervention strengths, only re-timed, lets dealers re-adapt to each rule from a shared checkpoint, and breaks one link at a time. Across 20 independently trained dealer populations in an ABIDES market, concentrating the intervention in states that the score ranks as low-risk lowers low-risk execution cost relative to random timing in every population, by 0.040 tick on average, while a stale announcement or a broken quote-to-flow link raises this cost. In the primary setting the gain comes at the expense of high-risk trades, whose costs rise, so state alignment pays off only for a venue that weighs low-risk costs more than 1.38 times as heavily as high-risk costs. Our code is available at https://github.com/moderncavemann/state-aligned-order-flow-contracts.
Figures & tables
| A Market environment | C Learners | ||
| Market | dealers, decisions, unit events per decision; half-spreads ticks | Controlled response | Shared tanh actor, dealer-specific heads, linear response adapter, centralized critic |
| Risk process | Shock scales ; transitions ; | Controlled PPO | Learning rate , entropy , , GAE , clip , 4 epochs, batch 512 |
| Order flow | Informed probability ; inventory penalty | Full-policy learners | Recurrent MAPPO/IPPO, hidden size 64, complete actor–critic updates; learning rate , entropy , , GAE , clip , 10 epochs |
| B Primary contract | D Protocol and inference | ||
| State Scorer ( ) | 10-step volatility and absolute return, fit on 1,000 untreated records (validation AUC 0.83 on 1,000 more) | Episodes | 384 untreated, then 96 arm-specific response episodes; primary , ; transfer cells (hard-best, stress test ), |
| Scheduler ( ) | Threshold , pacing , | Inference | Student- intervals across populations (primary), exact sign tests, paired two-way bootstrap; Holm-adjusted link contrasts |
| A Budget-matched schedules | (ticks) | (ticks) | High-risk share (%) | Increase vs. aligned | Aligned better |
| State-aligned (ours) | 6.307 | 9.42 | – | – | |
| Exact random | 0.004 | 20/20 | |||
| Circular shift | 6.341 | 0.003 | 20/20 | ||
| Periodic placement | 0.003 | 20/20 |
| Variant | What is removed or changed | Increase in (ticks) | SOFA better |
| Placement (CH1) State Scorer ( ) replacements and re-timed schedules | |||
| Volatility-only score | Absolute-return feature and the two-feature score (validation AUC 0.76) | 0.003 | 20/20 |
| Absolute-return-only score | Volatility feature and the two-feature score (validation AUC 0.80) | 0.004 | 20/20 |
| Lagged-spread trigger | Public-state score replaced by an outcome-linked trigger | 0.004 | 10/10 |
| Exact random placement | State alignment removed; exact strength multiset retained | 0.004 | 20/20 |
| Circular shift | State alignment removed; temporal clustering retained | 0.003 | 20/20 |
| Diagnostic | Estimate ( 95% CI) |
| Manipulation check correlation of with | |
| Quote-aligned allocation | |
| Identity-scrambled allocation | |
| Forced undercut 400 paired paths | |
| High-spread recovery by | 0.0184 |
| Continuation flow loss | 0.0000 |
| Controlled response ( ) | Full-policy MAPPO ( ) | |||
| Link broken | Rise | SOFA better | Rise | SOFA better |
| Placement | 0.004 | 20/20 | 0.080 | 9/10 |
| Information | 0.003 | 20/20 | 0.173 | 7/10 |
| Implementation | 0.006 | 20/20 | 0.292 | 8/10 |
| Cell | Low-risk | High-risk | Pooled |
| Primary ( ) | 0.004 | 0.007 | 0.003 |
| 5 dealers | 0.006 | 0.005 | |
| 10 dealers (fresh) | 0.005 | 0.004 | |
| 20 dealers | 0.010 | 0.006 | |
| 0.005 | 0.012 | 0.003 | |
| 0.004 | 0.009 | 0.002 |
Quantitative Finance
Quantitative finance uses mathematical models, statistics, and machine learning to value assets, measure risk, and guide trading and portfolio decisions.
See all 191 papers