Expanding from one seat: what the public small-team paradigms do, and what this tree already does¶
This page is the expansion rule for the stage the account is actually in: one operator, one C++ engine, a Tokyo host, OKX
perpetuals, a clip of ten contracts and a retail maker fee of 2 bps. The comparison is not Citadel; it is the public
engineering of teams of one to five, of which two are readable end to end -- hftbacktest (a simulator built for market
making on crypto books) and NautilusTrader (a framework whose architecture page states the same boundaries this tree has).
It says what to copy, what not to copy, and which of the claimed gaps this tree had already closed before the
comparison was made.
The premise the examples inherit, and this account cannot¶
hftbacktest's market-making tutorials are Binance Futures and Bybit examples. A maker's economics there depend on the
account's fee tier, and the tutorials do not carry this account's: 2 bps paid per maker fill, which is the number every
row in the Retrospective was priced under. So the examples are a method to copy and not a result:
their fee line, their rebate and their tick regime have to be replaced before any of their numbers mean anything here.
Two consequences the record already carries:
- the wide-spread screen's ranking and the
k_minfloor exist because at 2 bps only a wide tick pays; - a strategy that works on a rebate instrument is not a strategy here, and the row that would admit one is a fee-tier row, not a signal row.
1. Sim-to-real first, and the entry condition is a number¶
The paradigm's first rule is the one this tree already acts on: before a batch is expanded, a replay must reproduce a live window. What the paradigms add is which discrepancy to remove first, and it is the latency model.
hftbacktestcarries an Order Latency Data tutorial: latency is read from recorded order timestamps rather than assumed constant, and the feed, the order entry and the order response are separate quantities in the model.- This tree has two knobs and one measurement:
--order-latency-usand--cancel-latency-us, withokx_probe.py rttreading a round trip (77 to 118 ms direct, 414 through the proxy). A feed delay, an entry delay and a response delay are not separable from that number, and the recorded defect of 2026-11-28 -- a "10 ms" arm that was ten seconds -- is exactly what a single constant invites. - The entry condition for any multi-seat batch: one live window whose record reproduces the replay's fill count and
net PnL, with the three latencies estimated from the record's own
submission/ack/fillrows. Until then a new seat's numbers are a hypothesis. The tools for the two halves exist (tools/live/record_stats.py,close_cost.py); the three-way split is the gap.
What the tree already has that the comparison calls a gap: prices and quantities are integers. src/common/types.h
carries integer ticks with a scale and the engine works in units of 1e7 per contract; the CSV's floats are reporting,
not accounting. That row is closed, and quoting it as a gap would spend a budget on a refactor that changes nothing.
2. Two microstructures, two quoting rules -- and what is already built¶
The large-tick/small-tick split is real and the tree has been living it without naming it:
| regime | what the paradigm does | what this tree has |
|---|---|---|
| large tick (one tick is a large share of the spread, e.g. UP at 5.26 bps) | queue position is the game, and a BBO size collapse is the cancel trigger -- hftbacktest's queue-based tutorial is about exactly this regime |
the queue model, the arrival share, the queue-preservation rule and max_depth_ratio are built and measured; the BBO-collapse cancel is not |
| small tick (one tick is a fraction of the spread) | half-spread and grid step scale with realised volatility (the GLFT tutorial), never a constant tick count | bps distances (--quote-distance-bps, --layer-step-bps, --as-skew-bps) and the halt in bps/s (--pause-bps-per-second) exist; a volatility-scaled half-spread does not |
So the rule for expansion is: a seat is admitted into one of the two regimes, and its quoting rule is the one that
regime needs. Copying UP's three-tick template onto a small-tick instrument is the mistake this page exists to stop, and
the fitted arm on PROS (a thin fill count at ten ticks) is the record's own example of what a template does when it is
moved.
3. The fair-value layer, and the diagnostic that decides it¶
Both paradigms separate pricing from quoting: hftbacktest's Pricing Framework and its three alpha tutorials
(order-book imbalance, spot-perpetual basis, a peer's lead) are signals that move the quote before it is exposed.
This tree's decision is a mid plus an inventory shift; a fair-value layer is a candidate, and the cheap version of it is
already measurable:
- multi-scale markout.
--markout-horizon=Nexists, so the four curves are four runs and not a build: a fill's markout at +1 s, +10 s, +60 s and +300 s. If the loss is at +1 s the quote was late; if it is at +300 s the inventory was held too long. That distinction is what decides whether the next build is a latency fix or a fair-value signal, and it is cheaper than either. - the basis is already a data question on this tree (the index series exists, per the ROADMAP's Tier 1 row); the barrier is the measurement, not the feed.
4. Architecture: what to adopt, and what to refuse until a seat count forces it¶
NautilusTrader's architecture page states the boundaries this tree already has, and one it does not:
- Adopt: one runtime, several strategies. Nautilus says one node per process and multiple strategies in one node, with a message bus and one risk engine for the node. This tree runs one engine per seat with one relay per seat -- the arrangement ADR 0005 fixed. At three or more seats, the shared gateway becomes a decision to write, not a refactor to start: a single market-data socket fanned to several strategy instances, one account-level risk read. That is a new ADR and a measured migration, not this page's work.
- Adopt: the sandbox rung.
--paper-brokeralready runs the live feed against a virtual venue (src/lines/ paper_broker.*), which is Nautilus's second environment andhftbacktest's replay with a live clock. The ladder below uses it; it needs no new code. - Refuse: a second engine for live. A "common core" written as a separate live path is the drift the paradigms exist
to prevent; this tree's
l2_replay/wsmodes and the shared strategy factory are the property to keep.
5. The ladder this account climbs, with an entry condition per rung¶
| rung | what it is | entry condition | what exists |
|---|---|---|---|
| 0 | l2_replay on a recorded window |
a batch's bar registered first | built; the funnel decides |
| 1 | ws --paper-broker on the live feed, zero capital |
one full window with no order it would refuse in replay | built |
| 2 | 1 contract live | the window's record reproduces the replay's fills and net PnL | needs the three-latency split and the close cost |
| 3 | the seat's measured size | rung 2 twice, and the funnel's SR > max(0, rho * SR_P) against the portfolio |
needs Cap and N registered |
| 4 | a second seat | rung 3 at size, and the shared-gateway decision at three seats | not started |
The order is not a schedule; it is a dependency. Rung 1 exists and has had no window spent on it, which is a finding in itself: the cheapest rung of the ladder is unused while rung 0 runs in bulk.
What this page changes in the tree¶
Nothing measured. It records the comparison, names the three real gaps (a three-way latency split, a BBO-collapse cancel, a volatility-scaled half-spread), and fixes the rule that an example's fee tier and tick regime are replaced before its method is borrowed. The funnel's contract is its own page and is not repeated here.