RQ4: latency and expected PnL
Generated by python -m hftsim.research rq4 on 2026-11-16.
Simulation evidence only. These numbers describe the hft-sim synthetic market (docs/STYLIZED_FACTS.md §5 and docs/MARKET_MAKING.md §7 list its artefacts, notably RISKS K21 and K23). They are not evidence about any real market.
Question. How does the market maker’s latency, against fast arbitrageurs, change its PnL and race losses?
Design. One market maker, step 7 (micro-price centre, GLFT quotes, online σ, order-flow skew), at three latency locations (co-located ≈ µs, proximity ≈ tens of µs, remote ≈ ms; docs/SIMULATION.md), with 0 or 3 co-located latency arbitrageurs that snipe quotes left stale by a value move; 10 informed traders. Each cell: seeds 2026–2033 (the same seeds in every cell), 180 simulated seconds, everything measured over the window 60–180 s. Agent PnL is the change in mark-to-market PnL over the window: a position held at 60 s is carried in at that moment’s mid, and its revaluation is included in the inventory column. Values are means over seeds with 95% Student-t intervals in brackets; money in dollars.
| background | arbitrageurs | maker latency | PnL $ | PnL − co-located (paired) $ | adverse selection 50 ms $ | maker’s race losses | cancels too late / sent | too late (%) | races in the market | fills |
|---|---|---|---|---|---|---|---|---|---|---|
| default | 0 | colocated | 28.66 [25.98, 31.33] | baseline | -5.50 [-6.83, -4.17] | 2.5 [0.6, 4.4] | 168/8408 | 2.0 [1.7, 2.3] | 7.9 [3.0, 12.8] | 6481 |
| default | 0 | proximity | 28.93 [26.80, 31.06] | 0.27 [-0.94, 1.49] | -6.20 [-8.13, -4.27] | 3.5 [0.1, 6.9] | 227/9157 | 2.5 [2.2, 2.8] | 8.5 [0.8, 16.2] | 6404 |
| default | 0 | remote | 27.69 [26.61, 28.78] | -0.96 [-3.70, 1.77] | -6.62 [-7.92, -5.32] | 6.1 [1.3, 10.9] | 1092/14089 | 7.8 [7.3, 8.2] | 10.4 [3.4, 17.3] | 5499 |
| default | 3 | colocated | 29.38 [27.27, 31.48] | baseline | -6.65 [-8.18, -5.12] | 5.8 [2.4, 9.1] | 213/8188 | 2.6 [2.3, 3.0] | 19.2 [12.1, 26.4] | 6587 |
| default | 3 | proximity | 29.49 [27.56, 31.42] | 0.11 [-0.47, 0.70] | -7.15 [-8.93, -5.37] | 4.8 [1.5, 8.0] | 277/8940 | 3.1 [2.8, 3.5] | 20.1 [15.2, 25.1] | 6554 |
| default | 3 | remote | 28.82 [26.79, 30.84] | -0.56 [-1.53, 0.41] | -7.01 [-8.37, -5.66] | 6.1 [0.2, 12.1] | 1145/13908 | 8.2 [7.8, 8.7] | 21.5 [15.7, 27.3] | 5482 |
| zero-intelligence | 0 | colocated | 29.40 [26.73, 32.06] | baseline | -7.80 [-10.03, -5.57] | 10.4 [6.2, 14.5] | 235/10835 | 2.2 [1.9, 2.5] | 16.6 [10.5, 22.7] | 7224 |
| zero-intelligence | 0 | proximity | 29.73 [26.69, 32.77] | 0.33 [-0.53, 1.20] | -7.68 [-9.41, -5.95] | 9.4 [5.7, 13.0] | 302/11014 | 2.7 [2.5, 3.1] | 15.6 [11.5, 19.8] | 7132 |
| zero-intelligence | 0 | remote | 26.88 [24.62, 29.15] | -2.51 [-4.39, -0.63] | -6.52 [-8.54, -4.50] | 8.5 [4.4, 12.6] | 1313/15264 | 8.6 [8.2, 9.1] | 17.0 [11.3, 22.7] | 5732 |
| zero-intelligence | 3 | colocated | 30.05 [26.75, 33.35] | baseline | -7.65 [-9.50, -5.80] | 9.2 [5.0, 13.5] | 238/10929 | 2.2 [1.9, 2.5] | 20.2 [15.9, 24.6] | 7227 |
| zero-intelligence | 3 | proximity | 30.87 [28.15, 33.59] | 0.82 [-0.50, 2.14] | -8.10 [-10.23, -5.97] | 11.9 [6.2, 17.5] | 302/11284 | 2.7 [2.4, 3.0] | 21.4 [15.2, 27.6] | 7225 |
| zero-intelligence | 3 | remote | 27.07 [25.43, 28.70] | -2.98 [-5.34, -0.62] | -6.49 [-7.82, -5.17] | 7.2 [3.8, 10.7] | 1271/16428 | 7.7 [7.3, 8.2] | 21.4 [16.8, 26.0] | 5676 |
A race: messages from two or more participants at the same quote within 500 µs, at least one succeeding and one failing (docs/METRICS.md). A cancel is too late when the order was already gone, at the engine or at the gateway. Too-late shares are pooled over seeds with Wilson intervals.
Reproducibility. 96 runs of hftsim 0.1.0. rq4.manifests.json holds each run’s complete flags and event digest; hftsim run <flags> reproduces the digest. Check: the first run (seed 2026) was re-run without the cache and reproduced digest 0x1572a49baf5609bd.