RQ1: inventory risk and optimal quoting
Generated by python -m hftsim.research rq1 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 risk aversion (and the inventory limit) trade spread income against inventory risk?
Design. One market maker with 10 informed traders (signal noise 0.5 tick, proximity latency). GLFT quotes (ladder step 5: micro-price centre, closed-form GLFT spreads and skew, σ = 1 tick/√s, A = 130, k = 5) with risk aversion γ swept at an inventory limit of 50 shares, then the limit swept at γ = 3.5; last, the Avellaneda–Stoikov quotes (step 4, horizon 0.03 s) at γ = 3.5. A control repeats γ = 3.5 against γ = 14 without 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 | quotes | γ | limit (shares) | PnL $ | PnL − baseline (paired) $ | PnL s.d. across seeds $ | spread capture $ | adverse selection (1 s) $ | inventory $ | inventory RMS (shares) | max | position | fills | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| default | GLFT | 0.5 | 50 | 14.26 [11.36, 17.16] | -2.52 [-4.35, -0.69] | 3.47 | 47.57 [42.45, 52.69] | -31.11 [-39.64, -22.57] | -2.21 [-6.58, 2.17] | 31.2 [30.2, 32.1] | 50 | 7338 | ||
| default | GLFT | 1.75 | 50 | 15.12 [11.73, 18.51] | -1.66 [-3.89, 0.58] | 4.06 | 47.88 [42.49, 53.26] | -30.71 [-39.62, -21.80] | -2.04 [-5.38, 1.29] | 29.3 [27.1, 31.5] | 50 | 7389 | ||
| default | GLFT | 3.5 | 50 | 16.78 [13.03, 20.53] | baseline | 4.48 | 48.60 [43.54, 53.67] | -32.83 [-41.44, -24.22] | 1.01 [-1.35, 3.37] | 28.6 [26.7, 30.5] | 50 | 7530 | ||
| default | GLFT | 7.0 | 50 | 21.70 [18.45, 24.96] | 4.93 [3.11, 6.75] | 3.89 | 47.69 [42.33, 53.05] | -27.38 [-34.73, -20.02] | 1.39 [-1.64, 4.43] | 24.1 [22.0, 26.1] | 50 | 7283 | ||
| default | GLFT | 14.0 | 50 | 25.96 [23.39, 28.53] | 9.18 [5.87, 12.49] | 3.08 | 45.25 [40.81, 49.68] | -21.37 [-25.22, -17.52] | 2.08 [0.23, 3.92] | 17.8 [16.4, 19.2] | 50 | 6789 | ||
| default | GLFT | 3.5 | 20 | 22.69 [20.71, 24.67] | 5.92 [1.65, 10.18] | 2.37 | 41.90 [36.95, 46.85] | -20.19 [-24.27, -16.11] | 0.98 [-0.22, 2.19] | 10.8 [10.6, 11.0] | 20 | 6325 | ||
| default | GLFT | 3.5 | 100 | 17.38 [13.93, 20.83] | 0.60 [-1.67, 2.88] | 4.13 | 49.76 [44.13, 55.40] | -30.96 [-37.57, -24.36] | -1.42 [-4.83, 1.99] | 35.0 [31.0, 39.0] | 97 | 7620 | ||
| default | A–S | 3.5 | 50 | 21.38 [18.13, 24.63] | 4.60 [1.82, 7.39] | 3.89 | 47.24 [41.99, 52.49] | -27.91 [-36.26, -19.56] | 2.05 [-1.59, 5.69] | 22.5 [20.9, 24.0] | 49 | 7192 | ||
| zero-intelligence | GLFT | 0.5 | 50 | 8.37 [4.86, 11.88] | 1.78 [-0.58, 4.13] | 4.20 | 55.09 [49.41, 60.77] | -46.61 [-56.26, -36.95] | -0.11 [-5.55, 5.32] | 33.1 [32.5, 33.8] | 50 | 8607 | ||
| zero-intelligence | GLFT | 1.75 | 50 | 7.85 [3.32, 12.38] | 1.25 [-1.47, 3.97] | 5.42 | 55.08 [49.59, 60.57] | -47.50 [-56.40, -38.60] | 0.27 [-4.30, 4.84] | 33.4 [32.4, 34.3] | 50 | 8583 | ||
| zero-intelligence | GLFT | 3.5 | 50 | 6.60 [1.73, 11.46] | baseline | 5.82 | 55.15 [49.22, 61.08] | -48.85 [-58.51, -39.18] | 0.29 [-3.74, 4.33] | 33.1 [32.5, 33.7] | 50 | 8627 | ||
| zero-intelligence | GLFT | 7.0 | 50 | 14.30 [10.40, 18.21] | 7.71 [5.04, 10.37] | 4.67 | 55.03 [50.00, 60.06] | -41.93 [-48.87, -34.99] | 1.21 [-1.99, 4.40] | 27.4 [26.5, 28.4] | 50 | 8492 | ||
| zero-intelligence | GLFT | 14.0 | 50 | 22.76 [20.40, 25.12] | 16.16 [13.11, 19.22] | 2.82 | 51.83 [46.81, 56.86] | -31.17 [-35.76, -26.58] | 2.10 [1.02, 3.18] | 18.5 [17.4, 19.5] | 48 | 7887 | ||
| zero-intelligence | GLFT | 3.5 | 20 | 22.08 [19.61, 24.54] | 15.48 [12.10, 18.86] | 2.95 | 47.62 [42.11, 53.14] | -25.72 [-30.28, -21.15] | 0.17 [-0.87, 1.21] | 11.1 [10.9, 11.3] | 20 | 7208 | ||
| zero-intelligence | GLFT | 3.5 | 100 | 6.19 [2.22, 10.17] | -0.40 [-3.32, 2.51] | 4.76 | 58.46 [52.67, 64.24] | -51.82 [-61.95, -41.69] | -0.44 [-5.91, 5.02] | 43.7 [41.8, 45.5] | 97 | 9027 | ||
| zero-intelligence | A–S | 3.5 | 50 | 16.92 [13.76, 20.09] | 10.33 [7.44, 13.21] | 3.78 | 54.23 [48.71, 59.76] | -38.59 [-44.21, -32.97] | 1.28 [-1.15, 3.72] | 24.7 [23.7, 25.7] | 47 | 8334 |
Baseline: GLFT, γ = 3.5, limit 50 shares, same background; differences are paired on seed. Decomposition at a 1 s horizon (ARCHITECTURE §8): spread capture + adverse selection + inventory − fees = PnL, exactly, in every run (no fees here).
Control: no informed traders
| background | γ | PnL $ | PnL − γ 3.5 (paired) $ | spread capture $ | adverse selection (1 s) $ | inventory $ | inventory RMS (shares) |
|---|---|---|---|---|---|---|---|
| default | 3.5 | 15.88 [11.80, 19.95] | baseline | 42.99 [38.39, 47.59] | -24.86 [-29.60, -20.13] | -2.25 [-6.10, 1.60] | 27.9 [24.5, 31.4] |
| default | 14.0 | 24.42 [21.09, 27.76] | 8.54 [6.69, 10.40] | 41.84 [37.72, 45.95] | -19.06 [-23.16, -14.96] | 1.65 [0.06, 3.23] | 18.4 [17.0, 19.7] |
| zero-intelligence | 3.5 | 10.82 [6.30, 15.35] | baseline | 41.80 [38.71, 44.89] | -23.08 [-26.37, -19.79] | -7.90 [-10.84, -4.96] | 31.8 [30.6, 33.0] |
| zero-intelligence | 14.0 | 21.08 [17.42, 24.74] | 10.26 [7.66, 12.86] | 40.70 [37.71, 43.68] | -19.20 [-21.16, -17.25] | -0.41 [-3.14, 2.31] | 21.2 [19.1, 23.2] |
Reproducibility. 160 runs of hftsim 0.1.0. rq1.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 0xd130e7689894d0af.