Preprint · Registration draft for commentODIN Equities & Exchange · Technical paper
MIMIR: a fail-closed decision engine for thin, fragmented markets
Method, model stack and a pre-registered evaluation plan, published before any result
a Asgard Hashworks, Oklahoma City, OK, United States
This is a draft for comment. The thresholds in Table 4 are proposals: they will be fixed in version 1.0, and published with its digest, before any recording is evaluated.
Outline
Article info
- Version
- 0.9
- Date
- 28 November 2026
- Status
- Registration draft; no results claimed
- Licence
- CC BY-NC-ND 4.0
- Pages (PDF)
- 30 · Download
- Contact
- Contact page
Figures (3)
- Figure 1 Intended decision pipeline.
- Figure 2 The depth-walked net edge of Equation (14) on a toy two-venue book (illustrative numbers, not market data).
- Figure 3 The pre-registered evaluation timeline.
Tables (5)
Highlights
- Specifies MIMIR’s method before any result exists: twelve published methods, each with its formula, source, role in the decision, failure modes and behaviour without data.
- Records exactly where the implementation is a simplification of the cited method and what is not yet written.
- All the pieces feed one fail-closed gate: a depth-walked net edge after both venues’ fees, a three-source median price check, and a block on any non-finite input or model without data.
- A two-leg execution core with exact fixed-point money, limits the running engine cannot raise, and a hash-chained record of every decision.
- The evaluation is pre-registered, with a commitment to publish the outcome whatever it is. No performance is claimed; the software is watch-only and has never sent an order.
Abstract
ODIN Equities & Exchange is a client-side, multi-venue trading system under development at Asgard Hashworks; MIMIR is its decision engine. This paper specifies MIMIR’s method before any result exists. We describe twelve published methods from market microstructure, filtering, sequential detection, optimal execution and distribution-free inference. For each we state the formula, the source, its role in the decision, its failure modes and its behaviour without data, and we record exactly where the implementation is a simplification of the cited method and what is not yet written. We show how the pieces feed one fail-closed gate: a net edge computed by walking both order books and deducting both venues’ fees, a three-source median price check, and the rule that a non-finite input or a model without data blocks. We describe a two-leg execution core with exact fixed-point money, limits the running engine cannot raise, and a hash-chained record of every decision. We argue that thin, fragmented markets are the right first test, with Pearl quoted against the US dollar and against USDT as the first market (no Pearl–Bitcoin market has been found), and we treat that argument as a hypothesis with stated falsifiers. Finally we pre-register the evaluation: three hypotheses, the data, the replay method, the metrics, the sample and the pass or fail thresholds, with a commitment to publish the outcome whatever it is. No performance is claimed. As of this version the software is watch-only and has never sent an order.
Keywords
- market microstructure
- cross-venue arbitrage
- fragmented markets
- fail-closed design
- order-book replay
- conformal prediction
- pre-registration
- hash-chained audit log
JEL classification
- G10
- G14
- C12
- C58
How to cite
Chancellor, S. (2026). MIMIR: a fail-closed decision engine for thin, fragmented markets. Version 0.9, registration draft for comment. Asgard Hashworks, 28 November 2026.
Notice. This paper describes software under development and a research plan. It is not investment advice, not an offer or a recommendation to trade anything, and it makes no promise of results. It reports no performance, because none has been measured. Trading can lose money.
1Design thesis
Four commitments shape every part of the system. Each is stated here with the mechanism that enforces it and with its present limit, because a principle without a mechanism is a slogan.
1.1Sovereignty
The program runs on the operator’s own machine, with the operator’s own venue accounts. There is no vendor service between the operator and the venue, and Asgard Hashworks never holds a customer’s keys or funds. Three properties make this concrete.
- Zero custody. The execution core’s venue interface has three calls: the venue’s name, “what happened to this order?”, and, in live builds only, “send this order”. It has no call that withdraws or transfers, and a test fails the build if one appears anywhere in the source.
- Sealed secrets. On Windows, keys are sealed with the operating system’s data-protection facility. On Linux the program performs no encryption of its own and accepts a secret only from the credentials directory that the service manager has already protected; a plain file anywhere else is refused.
- Loopback only. Any local status surface is designed to bind to 127.0.0.1. Today the engine opens no port at all.
1.2Determinism over heuristics
A decision should be a function of recorded inputs and fixed rules, so that anyone holding the inputs can recompute it. The system pursues this in three ways.
- Exact arithmetic for money. In the execution core, the replay simulator and the market watcher, every price, quantity, fee and cash amount is a whole number of units. Sums and products are overflow-checked and rounding is always against the account. There is no floating point in any amount sent, booked or reported.
- Fixed rules. The gate is an ordered list of checks, each with one outcome: pass, or block with a reason. There is no outcome that means “unsure, proceed”.
- Replay. The replay simulator reads a recording in file order, never looks ahead, and is tested to give the same report for the same input.
The limit: the statistical models of Section 3 are computed in double-precision floating point. Their readings reach a decision only through comparisons that are false unless both sides are finite, and money never passes through them. We do not claim bit-identical model readings across processors or compilers.
1.3Fail-closed operation
Missing, stale, malformed or non-finite data means hold. A model that has not yet seen enough data reports “not ready”, and “not ready” blocks. The public build contains no code path that can send an order: the armed mode and the order encoder exist only behind a compile-time feature that is off by default, and this is checked three ways (by the compiler, by a source scan and by a search of the finished binary, with a control build proving the search is not vacuous).
1.4Proof by public record
Every decision is written to a hash-chained log before it has any effect. The design for publication is a second, redacted public chain that anyone can verify, with commitments that bind each public record to its private original (Section 6). We apply the same discipline to this paper: the method and the evaluation protocol are fixed and published before the data are examined (Section 7).
1.5What exists today
The system is five components (Table 1). They are built and tested separately and are not yet wired into one running program. Nothing in this paper should be read as describing a system that trades. Figure 1 shows how they are intended to compose.
Table 1. The five components and their state as of this version.
| Component | What it does | State |
|---|---|---|
| Model library and engine | The statistical models of Section 3 and the model-side gate | Compiles, tests pass, watch-only. No market feed is connected, so the gate blocks every trade, which is the correct behaviour without data. |
| Execution core | Two-leg planning, the eleven-step gate, ledger, hard limits, audit chain | Written and tested against an in-memory stand-in venue. It contains no network code and has never reached a real venue. |
| Market watcher | Reads public order books, runs the price check and the asset-identity guard, records books | Written and tested against a stand-in exchange. Read-only by construction. Verification of real listings is in progress. |
| Replay simulator | Plays a recording back with order delay, depth walking and partial fills | Written and tested on hand-computed recordings. No market recording has been admitted to evaluation. |
| Public record | Redacted public chain, verifier, anchors | Designed. Not built. |
2Market selection, by design
The first market is a deliberate choice. It is a thin proof-of-work asset, Pearl, traded on several venues that do not share a book. No venue has been found quoting Pearl against Bitcoin (Section 2.4), so the first market is Pearl against the US dollar and Pearl against USDT. The two are treated as separate markets, and no USDT price is read as a dollar price without a check that USDT is holding its peg; that check is not yet built. We set out the argument for starting there, the arguments against, and what would show the choice was wrong.
2.1The argument
The literature on limits of arbitrage explains why price differences for the same asset can persist: arbitrage needs capital, capital is held by specialists who face constraints, and frictions in moving the asset or the cash prevent the trade that would close the gap [28, 29]. Persistent price differences for one asset across trading venues have been documented in cryptocurrency markets and linked to frictions in moving capital between them [30]. We add a simple participation argument.
Let a market offer, over a period, a total executable opportunity : the sum over all moments of the net amount that could have been captured at the displayed depth. is bounded by depth, so in a thin market it is small in absolute terms however wide the spread in relative terms. A participant faces a fixed cost to serve the market at all: venue onboarding, integration of each venue’s interface, monitoring, and the cost of capital held idle on each venue. The participant enters only if
where is the share of the opportunity the participant expects to capture. Large organisations have large per market and deploy capital where capacity is deep; returns to scale decline as capital grows relative to capacity [31]. A market with below their threshold is rationally left alone. A single operator with low fixed costs can clear the same inequality at a far smaller . The hypothesis is that thin, fragmented markets contain opportunity that is real but too small to attract well-capitalised competition, and that this is where a small, careful engine should begin.
Three frictions make the gap wider in such markets, and one of them is lower for this operator.
- Capacity. Displayed depth caps the size of any one trade. This discourages scale and does not discourage a participant whose target size is small.
- Attention. Each venue has its own interface, symbol and listing status, and tickers are not unique: the watcher’s identity guard exists because the same short ticker is used for an unrelated token. Sorting this out is a fixed cost paid per market.
- Inventory and transfer. A two-venue trade completed without waiting for a transfer needs the asset already resting on the selling venue and cash on the buying venue. For most participants the asset must first be bought, at a spread and a fee. An operator who already mines the asset can source inventory from production instead of from the market, but only if the mined coins are retained and placed on the selling venues rather than converted automatically on payout. This lowers the cost of acquiring inventory. It does not remove the price risk of holding it.
2.2The case against
A wide quoted spread between venues is not evidence of profit. It may be the fair price of costs that the quote does not show.
- Transfer time and cost. Restoring balances after a run of trades needs an on-chain transfer and a cash transfer, each with a fee and a delay during which the price moves. If deposits or withdrawals are suspended on a venue, its price can drift from the others for exactly that reason, and the gap cannot be closed by anyone.
- Venue and counterparty risk. Balances pre-positioned on a venue are unsecured claims on that venue. A persistent discount on a venue can be the market’s price for that risk.
- Adverse selection. A quote that looks mispriced may simply be stale, and the trader who takes it is then the uninformed side of the trade [6, 15]. The crosses that persist are, by selection, the ones other traders declined.
- Displayed depth is not fillable depth. In a thin book a displayed quantity can vanish before an order arrives.
- Different quote currencies. A US dollar market and a USDT market for the same asset are not the same market. The difference between them includes the price of the stablecoin, and the watcher keeps them apart for that reason.
- Capacity cuts both ways. An edge that exists only below a useful size is an observation, not a business.
2.3What has been established, and what has not
As of this version, Pearl has been found quoted against the US dollar on Coinbase and Kraken and against USDT on Gate and LBank, with a further venue, SafeTrade, unconfirmed (Section 2.4). No venue has been found quoting it against Bitcoin. These listings are being verified by the read-only watcher, and a listing’s data are admitted only after the operator has confirmed on the venue itself that the listed asset is the intended one. Naming a venue here means only that its public data are being read. No venue has endorsed or certified anything.
One consequence is already visible. The price check of Section 4.2 needs three independent sources in one quote currency. If the asset trades on only two confirmed venues in a given currency, the check cannot pass and the gate holds. That is the position today: two venues quote Pearl in each currency, and none is yet confirmed. The design accepts this. It is a precondition of the evaluation in Section 7, not a detail to be worked around.
2.4Preliminary observation (not part of the evaluation)
Dated 28 November 2026.
A first read-only run of the market watcher, lasting 15 seconds, was made on the owner’s computer at 07:04 UTC. It found no Pearl market quoted against Bitcoin on any venue it could reach: Coinbase answered HTTP 404, Kraken “unknown asset pair”, Gate, Ourbit and WEEX HTTP 400, and LBank returned no data. Pearl was quoted against the US dollar on Coinbase and Kraken and against USDT on Gate and LBank (Table 2). WEEX showed a book about 11% higher than the others; the identity of the asset listed there is unconfirmed, and it is excluded. Ourbit returned no market.
Table 2. Best bid and ask for Pearl in the first read-only run, 07:04 UTC, 28 November 2026. One snapshot, reported for completeness; not part of the evaluation. Asset identity on each venue is still to be confirmed.
| Venue | Quoted against | Best bid | Best ask | Treatment |
|---|---|---|---|---|
| Coinbase | US dollar | 1.6144 | 1.6174 | Listed; identity to be confirmed |
| Kraken | US dollar | 1.6144 | 1.6165 | Listed; identity to be confirmed |
| Gate | USDT | 1.6170 | 1.6184 | Listed; identity to be confirmed |
| LBank | USDT | 1.6138 | 1.6196 | Listed; identity to be confirmed |
| WEEX | not established | 1.8025 | 1.8157 | Excluded: about 11% above the others; identity unconfirmed |
| Ourbit | — | — | — | No market returned |
Across the four books retained (Coinbase, Kraken, Gate and LBank) the top-of-book prices were within about 0.36% of each other, which is inside the typical retail taker fees paid on two venues, so no executable net edge was visible in this snapshot. One snapshot is not evidence either way. It is reported because this paper commits to reporting what is seen, and because it sharpens H1: at a moment like this one the venues’ quotes lie inside the cost of crossing two books, so any executable edge must come from departures from that state, and H1 asks whether such departures occur often enough, and with enough depth, to matter at the reference size. The identity of the asset on each venue is still to be confirmed by the owner, and no recording has yet been admitted to evaluation.
2.5Falsification
The market-selection hypothesis is rejected if any of the following is found under the protocol of Section 7:
- net edge after both fees is not positive at the reference size (H1 fails);
- net edge is positive only at sizes below the reference size;
- net edge is positive before, and not after, a measured allowance for the cost of restoring balances between venues;
- the periods that carry the edge coincide with stale books, failed price checks or suspended transfers, so that the gates of Section 4 remove them.
A rejection is a result. It will be published as one.
3The model stack
MIMIR draws on twelve published methods. They fall into four groups: fair value (3.1 to 3.3), passive-quoting and adverse-selection models (3.4, 3.6), stress and toxicity detectors (3.5, 3.7, 3.9), and cost, threshold and size (3.8, 3.10 to 3.12). The first strategy, the cross-venue pair of Section 5, takes liquidity on both legs with immediate-or-cancel orders. For that strategy the binding quantities are the depth-walked net edge (3.11) and the required edge (3.10); the stress detectors raise the requirement or block; the passive-quoting models have no role until a passive strategy exists.
Each entry gives the formula, the published source, the role, the inputs, the failure modes, the behaviour without data, and a status. The status vocabulary is exact:
- Written and tested means the code exists and its tests pass, including tests for missing, zero, negative, NaN and infinite inputs.
- Written, awaiting live inputs means the code exists and is tested, and nothing yet feeds it market data, so in the running program it reports “not ready” and blocks.
- Planned means designed and not yet written.
No status means connected to a live venue. Every constant named below as a placeholder is a literal carried from the first draft of the code. None has been fitted to any market, and fitting them is part of the roadmap, not something this paper claims.
3.1Size-weighted mid price (micro-price)
Status: written and tested.
Source. Stoikov [1] defines the micro-price as the limit of the expected future mid price given the present imbalance and spread, , where is estimated from the observed transitions of a discretised (imbalance, spread) state.
Departure. The implementation is the size-weighted mid (2), which is the special case . It is not the estimator of [1]. That paper treats the weighted mid as the baseline it improves on. The fitted adjustment needs a history of book states per market and is not written.
Role. A short-horizon fair-value reading for one venue, used as the observation of the filter in 3.2. It is computed per venue from that venue’s own best bid and ask. An early draft fed it a bid from one venue and an ask from another, which is not a book; that was corrected.
Inputs. Best bid and ask prices and their sizes on one venue.
Failure modes. Top-of-book size in a thin market is noisy and easy to place and withdraw, so can be moved cheaply. The reading is confined to the spread, so it is uninformative when the spread is one tick.
Without data. Stateless. With zero total size it returns the plain mid. A non-finite or negative input returns no value, and no value blocks.
3.2Scalar Kalman filter with a leading venue
Status: written, awaiting live inputs.
Source. Kalman [2], in the scalar case with a control input. The state model is a random walk in the latent price driven by the price change on a venue that leads, with process variance and observation variance . That one venue’s price can lead another’s is the subject of the price-discovery literature [17].
Departure. None in the algebra. The parameters are not estimated: , and are placeholders, and and are in absolute price units, so they do not transfer between assets of different price.
Role. A smoothed fair value and a one-step-ahead prediction . Today its only effect on a decision is through the prediction error stored by the interim edge band (3.10).
Inputs. The observation (the reading of 3.1) and the leading venue’s price change.
Failure modes. Linear-Gaussian assumptions; a mis-set pushes the estimate by an arbitrary amount; a leader that stops leading. A non-finite observation is skipped, so it cannot poison the state.
Without data. The first observation initialises the state with variance . Before that there is no prediction, and the gate blocks.
To do. Estimate by regression for each venue pair, express noise relative to price, and test the lead-lag relation on recordings before relying on it.
3.3Order flow imbalance
Status: planned.
Source. Cont, Kukanov and Stoikov [3] define at the best quotes and show a linear relation between price change and order flow imbalance over short intervals, with a slope inversely related to depth. The extension to deeper levels, one imbalance per level with coefficients fitted by regression, is due to Xu, Gould and Howison [16].
Departure. The design sums eight levels with fixed weights . Fixed weights are a design shortcut and come from neither paper; [16] fits them. The cited definition is per book event. Computed from snapshots polled every few seconds it is an approximation that misses events between snapshots.
Role. A short-horizon drift estimate. Planned as an input to fair value. It gates nothing.
Inputs. Successive book states at each level; ideally the event stream.
Failure modes. Unstable slope in thin books; sensitivity to sampling interval; quote flicker counted as flow.
Without data. Not written. When written it will report “not ready” until a minimum number of intervals has been seen.
3.4Reservation price and optimal spread
Status: planned.
Source. Avellaneda and Stoikov [4]: a market maker with inventory , risk aversion and horizon , facing a mid price with variance and order arrival intensity that decays exponentially in the distance from the mid at rate .
Role. Inventory-aware quoting for a passive strategy. The first strategy never rests an order on a book, so this model has no role in its gate.
Inputs. Inventory, a variance estimate, an estimate of from the book, a horizon.
Failure modes. The model assumes an arithmetic Brownian mid, a fixed horizon and exponential fill intensity. A market that trades around the clock has no natural . Estimates of are fragile in thin books.
Without data. Not written. It will block without a variance and a estimate.
3.5Self-exciting arrival intensity
Status: written, awaiting live inputs.
Source. Hawkes [5], with the exponential kernel that makes the intensity recursive. For its use on trade arrivals see [18]. The process is stationary when the branching ratio is below one, where is the mean mark.
Departure. The parameters are placeholders, not maximum-likelihood fits. The reported branching ratio is and ignores the marks, so it understates the true ratio when the mean mark exceeds one.
Role. A burst detector: clustering of trades raises the reading. Intended as a stress term in the required edge. It gates nothing today.
Inputs. Trade arrival times and, optionally, sizes as marks. An early draft fed it book updates weighted by resting depth; depth is not an event and that feed was withdrawn.
Failure modes. Read without decaying to the present moment, a burst appears to last for ever; the implementation therefore provides the reading at a stated time (second line of (6)). Non-finite inputs are ignored. Out-of-order timestamps do not move the clock backwards.
Without data. No reading before the first event.
3.6Adverse-selection impact coefficient
Status: planned.
Source. Kyle [6]: price moves linearly in net order flow, with a slope set by the volatility of fundamental value against the volume of uninformed trading . Glosten and Milgrom [15] derive the bid-ask spread itself from the same information asymmetry.
Departure. and are not observable, so the closed form is not an estimator. In practice is the regression slope of price change on signed volume, as in the first line of (7). That regression is what is planned.
Role. The expected permanent move per unit of signed flow: a cost input for resting orders.
Inputs. Signed trade volume, which needs a trade feed and a classification rule.
Failure modes. Impact is not linear at large size; the slope is unstable in thin markets.
Without data. Not written.
3.7Volume-synchronised informed trading (VPIN)
Status: written, awaiting live inputs.
Source. Easley, López de Prado and O’Hara [7]. Trade flow is cut into buckets of equal volume , and each bucket’s volume is split into buys and sells by bulk classification, which assigns a share of volume from the standardised price change through the normal distribution function [7, 19].
Departure. The implementation uses buckets where the paper’s reference setting is 50. The bucket arithmetic is written; the classification step is not, and the split is supplied by the caller. The metric itself is contested: its predictive content has been shown to depend on the classification scheme and to be closely tied to volume and volatility [20]. We treat it as one stress input among several and will test it before relying on it.
Role. A toxicity gate: above a limit (placeholder 0.65) the gate blocks, and the reading raises the required edge.
Inputs. Trade prints with sizes. The watcher currently records books, not trades.
Failure modes. One bucket is a reading of zero or one, so a partly filled window is noise. A single very large trade is handled arithmetically and cannot stall the update. Non-finite input is rejected.
Without data. “Not ready” until a full window of buckets is complete. An early draft returned zero before the first bucket, and zero read as “safe”; that was the most consequential cold-start fault found in review.
3.8Execution cost: impact and depth walk
Status: written, awaiting live inputs.
Source. Almgren and Chriss [8] model permanent impact as linear in the amount traded and temporary impact as linear in the rate of trading. Concave, roughly square-root impact is an empirical finding of later work, usually written with daily volume and volatility [21, 22].
Departure. The parametric form in the first line of (9) is neither model. It is concave like the empirical law (placeholder exponent ) and has a permanent term like [8], yet it carries no volatility term and scales by displayed top-of-book notional instead of daily volume. Its coefficients are therefore not comparable with published ones.
Role. For a taker pair the binding cost is not parametric at all: the execution core, the watcher and the replay simulator compute the cost of a quantity by walking the displayed levels, the second line of (9), in exact arithmetic on each leg. The parametric form is kept for one purpose, to be calibrated on the measured gap between displayed cost and realised cost.
Inputs. Order notional ; displayed levels on each venue; after trading begins, realised shortfall .
Failure modes. The walk prices the book as shown; a book moves between the read and the fill. An order larger than the displayed depth cannot be priced and blocks. The blend weight is confined to (0, 1], because a weight above one can drive the coefficient negative, which would read as negative cost.
Without data. The parametric model is “not calibrated” until it has at least one realised sample, and an uncalibrated cost model blocks. The depth walk needs only a valid book. The walk is written and tested.
3.9Two-sided cumulative sum detector
Status: written, awaiting live inputs.
Source. Page [9]. The property usually quoted for it, the smallest worst-case detection delay for a given false-alarm rate, was proved later and holds for independent observations with known distributions before and after the change [23]. We make no optimality claim for market data.
Departure. None in the recursion. Note what it detects: applied to standardised returns it responds to a sustained shift in their mean, a drift. Detecting a break in volatility needs the same recursion on a variance statistic such as . Both are intended; only the first is written. The slack and threshold are placeholders.
Role. A regime-stress reading that raises the required edge and damps size.
Inputs. Standardised returns, which need a running volatility estimate. That estimator is not yet written.
Failure modes. A non-finite input latches a fault and raises the alarm; it never clears one. There is no automatic reset after an alarm.
Without data. “Not ready” until 30 finite values have been seen, and after any data fault. Not ready blocks.
3.10Required-edge band
Status: written, awaiting live inputs.
This is the model most changed by review, and the one where the gap between the name and the mathematics was widest. We state the standard procedure, then what was first written, what is in the code now, and what is being built.
The standard procedure. Split conformal prediction [10, 24] takes a calibration set of scores , each the error of a prediction against the value later realised, and forms
where is the -th smallest of .
As first written. The band was not a valid conformal procedure, for four reasons. The score was the distance between a smoothed price and the same tick’s input price, not a prediction against a later outcome. It was computed after the filter had absorbed the observation, so it was shrunk in-sample. The rank was , not the rank. Consecutive ticks are strongly autocorrelated and not exchangeable. In addition the stress multiplier scaled the quantile alone, so on a cold start or in a quiet market the requirement fell to its floor whatever the stress.
In the code now (interim). The stored score is the one-step-ahead price prediction error, made before the tick is seen. The quantile uses the rank of (11) and returns nothing when the rank exceeds the window or fewer than 30 scores are held. The requirement is
with regime stress from 3.9, toxicity from 3.7 and measured venue latency , so the stress terms now scale the base as well as the quantile and the result is never below the base. The coefficients (0.15, 0.80 and 0.005 per millisecond) and the base are placeholders. This interim band still carries no coverage guarantee: its score is a price error, not an edge error, and the exchangeability condition does not hold. It is a conservative rolling quantile, and we call it that.
The rebuild. The score becomes the quantity the gate actually protects, the shortfall of realised net edge against predicted net edge on attempted pairs, in basis points of the buy value:
with from (11), an additive stress allowance , and a block until the calibration set reaches a stated minimum size. Because scores from a market are serially dependent and regimes change, the nominal coverage is treated as a claim to be measured, not assumed: Section 7 tests it on held-out data, and weighted or adaptive variants designed for non-exchangeable data [25, 26] are the fallback if it fails.
Role. Sets the smallest net edge a pair must show.
Inputs. Now: price prediction errors, stress, toxicity, latency. Rebuilt: predicted and realised edge per attempted pair, from replay first and from fills later.
Failure modes. Regime change invalidates the calibration set; too small a set gives no finite bound; a quiet window understates risk.
Without data. No value, and no value blocks. With every stress input “not ready” today, the requirement cannot be computed and the gate holds.
3.11Net edge after both fees
Status: written and tested.
Source. This is an accounting identity, not a model. The reference for the surrounding concepts (quoted and effective spreads, the cost of immediacy) is Hasbrouck [11].
Departure. The model library also holds a top-of-book form in floating point, with the mean of the two prices. The form the gate relies on is (14): exact integers, both books walked to the full quantity, both fees rounded up. Funding cost is zero for a spot pair.
Role. The quantity the gate compares with the required edge. Buy on venue A by walking its asks (cost , second line of (9)); sell on venue B by walking its bids (proceeds ). Figure 2 illustrates the computation on a toy book.
Inputs. Both order books, both venues’ taker fees , the quantity. Fees must be supplied per venue; a venue with no fee set is left out, and a fee above 5% is refused as a unit mistake.
Failure modes. A fee in the wrong unit; a fee charged in the asset bought or in a venue’s own token (not handled); costs outside the two fills (Section 8).
Without data. Anything that cannot be computed exactly gives no value, and no value is never an opportunity.
3.12Order size
Status: written, awaiting live inputs.
Source. Kelly [12] for the growth-optimal fraction; fractional Kelly, which trades growth for security, is analysed by MacLean, Ziemba and Blazenko [27].
Departure. The draft rule in the second line of (15) is not Kelly sizing. Kelly gives a fraction of capital; the draft multiplies a Kelly-style ratio by displayed depth , and capital never enters. Its edge and variance were literals, not measurements. It is retained only as a bounded rule of thumb that returns zero on any invalid input.
Role. In practice size is set by caps, which only ever shrink it: a per-order cap, a cap on the share of displayed depth (10% of the thinner level in the model-side gate, a new default awaiting the owner’s confirmation; never above 25% in the execution core, by a ceiling written in the code), the funds actually present, and the position limits of Section 5.
Inputs. Rebuilt: allocated capital, and the mean and variance of realised edge from the evaluation data.
Failure modes. Kelly with estimated parameters over-bets when the edge is overestimated, which is why the fraction is at most one half and the caps bind first.
Without data. No size from a model. The execution core treats the wanted size as an input and bounds it.
4The decision gate
The models do not vote, and no score is averaged. Each piece either supplies a number the gate needs or holds a veto, and the gate is the conjunction of every condition. A pair is taken only if all of the following hold at the moment of decision; the first that fails ends the evaluation with its reason recorded.
4.1Net edge on the books as they stand
For a wanted quantity, the size is first cut to the per-order cap and to the share-of-depth cap, then rounded down to a whole number of lots that both venues accept. The edge is then computed by (14): the buy cost and the sell proceeds come from walking the actual levels of each book inside the limit prices, and both venues’ fees are deducted. The condition is
where is the required edge as a fraction, is the most the buy may pay and the least the sale may accept. The second condition is the worst case: if both legs filled exactly at their limit prices, the pair must still not lose money. Limit prices sit on each venue’s tick, with the buy limit rounded down and the sell limit rounded up.
4.2The price quorum
A gap between two venues is evidence of an opportunity only if the venues agree about what the asset is worth. The watcher takes three independent sources for a market, each fresh and readable, and forms
The reference price is the median, which one wrong source cannot move. Two sources are never enough: if two disagree there is no telling which is wrong, so fewer than three usable sources fails. A source is unusable if it has no price, a price not above zero, a timestamp older than the freshness limit or ahead of the clock, or if it repeats another source. The limit defaults to 15 basis points when the three sources are named deep venues and to 200 basis points when they are the three deepest fresh books of a thin market, whose own bid-ask gap is often near one percent; it can never be set above 2,000. While the check fails, every spread on that market reads “hold” and nothing is counted as an opportunity. The arithmetic is in whole numbers throughout.
The execution core does not compute the quorum. It receives the result as an input with three states, and only “passed” lets a pair through: “failed” and “not said” both block.
4.3Asset identity
Tickers are not unique, so a book is admitted only after two checks. The declared check requires the operator to have recorded, for each venue listing, that the listed asset is the intended one; until then the book is displayed and is neither recorded nor compared. The price check leaves out any book whose mid price is more than a set distance (default 25%) from the median of the other venues’ mids for the same symbol. With two books that disagree, both are left out.
4.4Non-finite inputs block
The most serious defect found in review was arithmetic. The first gate was written as “block if the edge is below the requirement”. Every comparison with NaN is false, so a NaN edge was never below anything, and a NaN fee approved a full-size order on a trade that lost money before fees. Two rules now close this class of fault.
- In the floating-point model gate, every input is validated first, and every comparison goes through a function that is true only when both sides are finite and the inequality holds. The gate is written in the passing direction: trade only if the edge is at least the requirement.
- In the execution core a NaN cannot reach a comparison at all. Numbers are read from text into exact integers at the door, and text that is not a plain decimal is refused where it is read: empty, “NaN”, “inf”, exponent form, too many decimals.
The tests feed every input, book level, limit, setting and venue rule a missing value, NaN, both infinities, zero, negative zero, a negative, an absurdly large value and non-numeric text, and check that each one blocks.
4.5A model without data blocks
“No data” and “safe” are different states. Each stateful model exposes readiness: the toxicity measure needs a full window, the regime detector 30 finite values and no data fault, the cost model at least one realised sample, the edge band 30 scores. The gate blocks on any “not ready”. Since nothing yet feeds these models, the model gate blocks every trade today. That is the intended behaviour of the system in its present state, and a cold-start test asserts it.
4.6The remaining conditions
The execution core’s gate has eleven steps in a fixed order: valid books (finite, positive, ordered, uncrossed, timestamped); venue rules present and consistent; freshness (a book older than the setting is not used, and the setting can never exceed five seconds); the price quorum; a usable proposal; depth inside each limit; size after caps and lot rounding; the edge and worst-case conditions of (16); inventory on the selling venue and cash on the buying venue; and the hard limits of Section 5. The gates only read. They place nothing, change no state and consume no order number.
4.7What is not yet joined
The model gate and the execution gate are separate code today. The intended composition is simple: the model side supplies and its vetoes, the watcher supplies the quorum result, and the execution gate does the rest. Until that wiring exists and is tested end to end, the description above is of two gates that have each been tested alone.
5Execution and risk
5.1A pair is two exact orders
A plan holds a buy on one venue and a sell on another for the same size. Both orders are immediate-or-cancel; it is the only time-in-force the order type has. Nothing rests on a book and there is no market order type. Each leg carries its own identifier, built from the start time, a run number that rises at every start and a pair number saved to disk before it is handed out, so a crash can skip a number and cannot issue one twice.
5.2The second leg is sized to what the first leg filled
The buy is sent first. If it is refused or fills nothing, the pair ends with no position. Otherwise the sell is sent for the quantity the buy actually filled, at the planned limit, never for the planned size. If the sell fills all of it, the pair is settled and its realised result is booked from the amounts and fees the venues reported.
Sending the legs in sequence is a choice with a cost: the price on the selling venue can move while the buy is being answered. The limit price bounds the loss, since the sell then simply does not fill; how often that happens is an empirical question, and Section 7 measures it.
5.3The one-leg rule
If the sell ends smaller than the buy for any reason, the engine stops. The unsold amount is recorded as a residual with its location, size and cost, it counts against the open-money limit, a one-leg record goes into the audit chain, and the engine halts. Nothing is sent to close the residual. There is no second sell, no sell at a worse price, no market order. Closing an unwanted position in a thin market is a judgement, and the design leaves it to a person. A stated tolerance, zero unless set, allows for the dust left when two venues’ lot sizes differ.
The same caution governs unclear answers. When a send times out, the venue is first asked about the order by its identifier. If found, the report is used. If the venue is certain it never received it, the same order with the same identifier may be sent once more. If the venue cannot say, nothing is resent, the order is marked unknown and counted as open money, and the engine halts. An unknown outcome never leads to a second order.
5.4Limits the running engine cannot raise
Six hard limits are independent of every model: the largest holding of each asset across all venues; the largest single order; the largest total of open money; the most orders in any 60 seconds and in one UTC day; and a daily cap on realised loss. Each must be present and positive or the engine does not start. They are read once at start into a type with private fields and no method that changes them, and the running engine holds only a read-only view. Operator settings may be tighter than a hard limit and are refused at start if looser.
The precise claim is that no code path in the running engine can raise a limit or clear a halt. An operator can stop the program, change a limit and start it again; the limits in force are written to the audit chain at every start, so that act is recorded.
5.5Halt and kill flag
A limit breach, a one-legged pair, an order nobody can account for, a venue report that does not add up, or an audit record that cannot be written sets a halt. The halt is written to a file and survives a restart. Waiting does not clear it and neither does a new day. Only an operator’s command, given with the engine stopped, clears it, and that command writes a name and a reason to the audit chain first. Today’s counters are saved before the event they count, so a restart does not grant a fresh daily allowance.
The kill flag is a file. While it exists nothing is sent; it is checked before every send, including between the two legs, and a flag that cannot be read counts as present.
5.6The ledger moves only on fills
Balances are set from each venue’s own balance read before the first order, and after that they change in one place, from a venue’s report of an order. A plan or a forecast never moves a balance. A report is checked before it is believed: it must be for an order the engine sent, it cannot go backwards, fill more than was ordered, fill at a worse price than the limit, or charge money without a fill. A report that fails is refused and the engine halts.
5.7Exact fixed-point money
Prices, quantities, cash and rates are four distinct types, each a 64-bit count of units, so a price cannot be used as a size. Costs round up, proceeds round down, sizes round down. An overflow is an error; nothing wraps or is clipped. The representable range reaches about units per value, and an instrument quoted more finely than is refused, not rounded.
5.8State
The execution core closes the review findings on single-leg execution, absent position tracking, order identity and integer amounts. It has been exercised only against a stand-in venue. Real venues differ in how they treat a repeated identifier and in how quickly an order query catches up after a send; each connector must prove those behaviours before the resend rule is enabled for it. No connector exists.
6Verification
6.1The private chain
Every start, plan, send, resend, unclear answer, venue report, finished pair, one-leg event, halt and cleared halt is a record in an append-only file. Record carries a sequence number, the hash of its predecessor and its own hash over a canonical form of its contents:
using the standard hash function [14]; linking records by hash is the construction of Haber and Stornetta [40]. Records hold whole numbers and text only, with amounts as exact decimal text, so a hash never depends on how a floating-point number prints. On opening, the whole file is re-verified and the chain continues from the last record; a file that does not verify refuses the start. The plan and every order are recorded before the send, and a write that fails halts the engine, so no order can go out unrecorded. This chain is written and tested.
6.2The public chain
Status: designed, not built.
The private file never leaves the machine. The design for publication is a separate publisher that reads it and writes a second chain for the public, under four rules.
- Allow-list, built up. A public record starts empty and receives named fields one at a time, each checked for type and range. No free text from the engine or a venue is published. A record of an unknown kind, or one with a field that fails its check, is published as “withheld” with no content.
- Aggregation. Sizes appear as ranges, results as basis points, times to the whole minute. Balances, account identifiers, order identifiers and exact quantities are never published.
- Delay. A record is released no sooner than 15 minutes after the event and, for an order, not before the order is finished.
- Commitment. Each public record carries a salted commitment to its private original:
The salt stays private, so nobody can test guesses about withheld fields against . One private record yields exactly one public record in order, so the private sequence numbers shown in the public chain run without gaps. To prove that a public record matches its original, the owner gives a chosen checker the private record and its salt; one record can be opened without opening its neighbours. A free verifier, with the hashing rule published as a one-page specification and a second independent implementation, lets anyone check the chain offline.
6.3What the chain proves and what it does not
It proves
- The published records form one unbroken chain from the first to the head.
- No published record was edited, removed, inserted or reordered after publication.
- No private record after the first published one was skipped.
- With an external anchor: the chain as it stood on the anchor’s date is still the beginning of today’s chain.
It does not prove
- That a record was true when written. A chain shows a record was not changed; it cannot show that it matches what happened at a venue.
- Anything about trading before the first published record.
- That the redaction was honest or the derived figures correct, until a commitment is opened to a checker.
- That the engine recorded every action. That is a rule of the program, not a property of the chain.
- Without an anchor, that the whole chain was not replaced by another self-consistent one, or that the end of a file was not cut off.
- That the account is the owner’s only account.
The public pages are to state both lists with equal weight. The words “tamper-proof”, “audited” and “guaranteed” are not used; the accurate phrase is that tampering shows.
6.4Strengthening over time
- Daily anchor. The chain head is timestamped each day in a public blockchain, after which the chain up to that head cannot be replaced unnoticed.
- Heads held by others. The head hash is posted where the owner cannot alter it, and readers are invited to keep copies.
- Signed heads. A periodic list of heads is signed with the release-signing key [13].
- Statement commitments. The hash of each venue statement is added to the chain, pinning the statement without publishing it.
- Independent check. A named accountant opens commitments, compares the private records with the venue statements and signs a letter whose hash enters the chain. This is the step that addresses the first item of the “does not prove” list, and the only one that needs a third party.
- Sampling by challenge. A reader names a public record and the owner opens that commitment to an agreed checker.
None of 6.2 to 6.4 is built. Publication of shadow decisions is deliberately held back until the models are fed live data: a public feed of readings that never move would look like a working gate.
7Pre-registered evaluation protocol
A backtest tuned until it looks good is weak evidence, and the number of configurations tried is usually larger than the number reported [34, 35]. The remedy adopted in the empirical sciences is to fix the hypotheses, data, analysis and decision rule before the data are seen [33]. We adopt it. This section is the registration text.
7.1Registration procedure
- This version (0.9) proposes the thresholds of Table 4. They are owner decisions and, in this version, proposals only. Version 1.0 is issued when the owner has fixed them, and no recording is evaluated before then.
- Before the evaluation window opens, the SHA-256 digests of version 1.0, of the replay program’s binary and of its settings file are published and timestamped by a party the owner does not control.
- No recording made inside the evaluation window is replayed, plotted or summarised before step 2 is complete.
- Any later departure from this text is recorded as a numbered deviation, with its date and reason, and published with the results. Analyses not specified here are labelled exploratory and cannot change a verdict.
Figure 3 shows the order of these steps against the recording schedule of Section 7.3.
7.2Hypotheses
H1. Executable net edge after both venues’ fees exists in the chosen markets at tradable size.
H2. Predicted edge is an unbiased estimate of realised edge.
H3. The gates reduce loss in stressed conditions.
Each is stated so that it can fail. H2 in particular is expected to be at risk: an immediate-or-cancel order can fill at its limit or better but is more often filled in part or not at all, so realised edge will tend to fall short of predicted edge. If H2 fails, the measured shortfall is exactly the input the rebuilt edge band of 3.10 requires, and the secondary analysis in 7.6 tests whether that band then holds its stated coverage.
7.3Data
- Source. Read-only recordings made by the market watcher from venues’ public order-book endpoints: up to 50 levels a side per venue per poll, as exact decimal text, timestamped on receipt, together with one price-check record per market per poll. The watcher sends no order and holds no key.
- Admission. A venue’s books are admitted only after the operator has confirmed the asset’s identity on that venue, and only while the price-outlier guard passes. Pairs are counted only at polls where the latest price-check record for the market is a pass.
- Precondition. A market is evaluable only if at least three confirmed venues quote the asset in the same currency. US dollar and USDT markets are evaluated separately and never pooled. If no market meets the precondition, the result reported is “not evaluable under the design rules”, and that is published.
- Shakedown. The first 7 days of recording are used only to correct venue symbols and to measure each venue’s request latency. They are excluded from every test.
- Evaluation window. 28 consecutive UTC days following the shakedown. A venue-day with fewer than 90% of its scheduled polls answered is excluded for that venue and listed.
- Integrity. The SHA-256 digest of each daily recording file is published. The recordings themselves are published where the venues’ data terms allow.
7.4Replay method and assumptions
The replay reads the recording in time order and never looks ahead. On each admitted book the reference strategy asks for a pair whenever buying on one venue’s asks and selling on another’s bids clears the required edge after both fees, level by level. The replay prices the pair on the books in front of it, which is the prediction, limits it by the reference size and by the balances it holds, and sends a buy limited at the worst ask it priced and a sale limited at the worst bid it priced. Each order arrives after its venue’s delay and is matched against that venue’s first recorded book at or after the arrival time, taking only levels at the limit or better; the unfilled remainder is cancelled. Quantity the replay has taken at a price stays taken while that price is still displayed. All arithmetic is exact.
The assumptions, fixed in advance:
- Fees. Each venue’s published base taker fee for the account, with no discount or rebate.
- Delay. Each venue’s 95th-percentile request round trip measured during the shakedown, used as a fixed delay.
- Usable depth. A fixed share of each displayed level is treated as available.
- Balances. Fixed starting balances per venue. Nothing is transferred between venues during the window; a route stops when a balance runs out.
- Sensitivity grid. Exactly six runs: three depth shares by two delays (the measured delay and twice that). The primary run is named in Table 4. No other configuration is run on the evaluation window before the verdicts are published.
The replay departs from the execution core in one stated respect: it sends both legs at the decision time, each delayed by its own venue, where the core sends the sell only after the buy’s fill is known. The replay therefore understates the time the sell is exposed. The twice-delay runs are the allowance for this, and shadow operation (Section 9) will measure it directly.
7.5Metrics
For attempted pair , let be the net result predicted at decision time on buy value , the realised result after both fees on the quantity both bought and sold, and the marked result of any quantity left over, valued at the other venue’s best bid at the time the pair closes, less that venue’s taker fee, minus its cost. Then
The metrics reported for every run are defined in Table 3. Dividing by the predicted buy value keeps a pair that filled nothing in the sample, with . Including charges each one-leg outcome to the pair that caused it. The mark is a valuation, not a sale, and is reported separately as well.
Table 3. Metrics reported for every run.
| Metric | Definition |
|---|---|
| Fill ratio | Quantity filled over quantity asked for, across both legs of all attempted pairs |
| Realised result after fees | The total of , on matched quantity only, per market, in its quote currency. The total of is reported beside it and never added to it silently |
| Predicted against realised edge | The regression (21), and the mean of |
| One-leg rate | Pairs in which one side filled something and the other nothing, over pairs attempted, with an exact binomial interval [39] |
| Drawdown | for the running sum of |
Equation (21) is the forecast-evaluation regression of Mincer and Zarnowitz [36]. Pairs cluster in time, so standard errors are robust to heteroskedasticity and autocorrelation [37], and intervals for means and differences come from a bootstrap that resamples whole UTC days [38]. All intervals are two-sided at 95%. The three hypotheses are tested once each on the primary run, without adjustment for multiplicity; with three pre-specified tests we report this plainly instead of correcting for it.
7.6Tests
H1. Supported if, on the primary run, the lower bound of the interval for the mean of is above zero; the mean of is also above zero on the stressed run; the mean of is at least the transfer hurdle; and the fill ratio is at least its threshold. The transfer hurdle is the measured cost of restoring balances once (both venues’ published withdrawal fees and the network fee), divided by the traded value that one set of starting balances supports, plus a margin. It is computed during the shakedown and fixed before the window opens.
H2. Supported if the interval for contains 1 and the interval for contains 0. Because a wide interval would pass trivially, the verdict is “inconclusive” unless the half-width of the interval for is within its threshold. Secondary, pre-specified: the scores from the first half of the window calibrate the band of (11) at the registered , and the share of second-half pairs with is compared with its threshold.
H3. Two parts. First, a fault suite is applied to the recording, labelled as synthetic: one venue’s book frozen while the others move; one venue’s prices scaled up and down by 5%; a different price series substituted under the same symbol; one venue removed; and malformed, non-numeric and non-finite lines inserted. The gated configuration must attempt no pair that depends on a corrupted input. One such attempt fails H3. Second, on the unaltered recording, each gate is removed in turn (price quorum, freshness, identity guard, worst-case-at-limits) and the replay repeated. Within the stressed periods defined in Table 4, the loss of the gated configuration, measured by the negative of the total of and by drawdown, must be no greater than that of each ablated configuration, with the lower bound of the interval for the difference at or above zero, and the one-leg rate must be no higher. What the gates cost in calm periods, the result forgone, is reported and carries no threshold.
H3 as tested here covers the gates that can be evaluated from order-book recordings. The toxicity, burst and regime detectors need trade prints, which the watcher does not yet record. Their test is deferred to a later addendum, registered the same way before its data are collected.
7.7Sample, duration and thresholds
The unit of analysis is the attempted pair. The minimum sample is chosen so that a one-leg rate near 10% is estimated to within about ±3.5 percentage points, from , and so that at least 20 distinct days contribute to the day-level bootstrap. If the minimum is not reached in 28 days the window is extended, to at most 84 days. If it is still not reached, H1 is reported as not supported for want of opportunity at the reference size, which is itself an answer to the market-selection question.
Every value in Table 4 is a proposal awaiting the owner’s decision, to be fixed in version 1.0 before any recording is evaluated. The values are chosen to be conservative, and each is an assumption or a criterion, not a forecast.
Table 4. Proposed thresholds and assumptions. These are owner decisions and proposals only; they will be fixed in version 1.0 before any recording is evaluated.
| Item | Proposed value | Used in |
|---|---|---|
| T1 | Reference size: 250 units of quote currency per pair. Reported also at 100 and 1,000, as exploratory. | H1, “tradable size” |
| T2 | Usable depth: 50% primary; 25% stressed; 100% reported as an upper bound only. | Replay |
| T3 | Delay: measured 95th percentile per venue, primary; twice that, stressed. | Replay |
| T4 | Required edge in the replay strategy: 5 basis points after both fees. Maximum book age 5 seconds. | Replay |
| T5 | Minimum sample: 300 attempted pairs on at least 20 distinct UTC days; window 28 days, extensible to 84. | All |
| T6 | Recorder coverage for a venue-day to count: 90% of scheduled polls. | Data |
| T7 | H1: lower 95% bound of mean above 0 (primary); mean above 0 (stressed); mean at least the transfer hurdle with a margin of 10 basis points; fill ratio at least 50%. | H1 |
| T8 | H2: 95% intervals contain and ; conclusive only if the half-width for is at most 0.25. Secondary: , calibration set at least 100 pairs, held-out coverage at least 87%. | H2 |
| T9 | H3: zero attempts on corrupted input; gated loss no greater than ablated loss in stressed periods, lower 95% bound of the difference at or above 0. Stressed periods: the tenth of UTC hours with the largest absolute move of the three-source median price, plus every poll at which the price check failed or a book was stale. | H3 |
| T10 | Risk criteria reported with every run: one-leg rate at most 10%, with the upper 95% bound at most 15%; no UTC day reaching a loss cap of 1% of the capital allocated to the replay; drawdown at most 3% of it. | Go or no-go |
Passing all three hypotheses and T10 does not authorise live trading. It authorises the next stage: shadow operation against live feeds, then minimum-size trading on the company’s own account, each with its own registered addendum, and each comparing realised results with these predictions before any increase in size.
7.8What will be published regardless of outcome
- Version 1.0 of this text and the digests of step 2, with their timestamp.
- Recorder coverage by venue and day, every excluded venue-day and the reason.
- The complete replay reports for all six runs, in machine-readable form, including every attempted pair with its predicted and realised figures.
- The verdict on each hypothesis as supported, not supported or inconclusive, with the numbers behind it.
- Every deviation from this protocol.
- The outcome “not evaluable”, if that is the outcome.
A replay result, favourable or not, is a statement about one recording under stated assumptions. It will be described in those words.
8Limitations and threats to validity
- Transfer costs are not modelled. A cross-venue pair leaves the asset on the buying venue and cash on the selling venue. Restoring balances costs fees and time, and may be impossible while a venue suspends deposits or withdrawals. Neither the gate nor the replay includes this; the transfer hurdle of 7.6 is a coarse allowance, not a model. The watcher does not yet record venues’ deposit and withdrawal status.
- Displayed depth is not fillable depth. The depth walk prices the book as shown. The usable-depth share is an assumption no recording can verify; only fills can.
- Snapshot data. Books are polled every few seconds. Nothing is known about the time between polls, an order “arrives” at the next snapshot, and queue position is not modelled.
- No market impact of our own orders. The recording was made without them. The replay remembers its own fills for a time and models no reaction by others.
- Small samples. A thin market may yield few opportunities; the sample-size rule guards against concluding from a handful of trades, at the price of a longer window.
- Regime change. One window is one sample from one regime. A listing, a delisting, a change of fee schedule or a new participant can remove an edge that was real. Calibration sets for the edge band inherit the same weakness.
- Selection. The first market was chosen after informal observation of quoted prices. Only data recorded after registration count, which controls for this in the tests and not in the choice of market.
- Venue and counterparty risk. Funds resting on a venue can be frozen or lost. No model here prices that risk, and no limit removes it; the per-asset and open-money limits only bound what is exposed.
- Latency. The engine runs on an operator’s own machine over the public internet, with no co-location. Where an opportunity is contested on speed, a slower participant is filled mainly when the faster ones have declined [32]. The thesis of Section 2 is that the first markets are not contested in this way; the delay sensitivity runs test how fragile the result is if they are.
- Sequential legs. The sell follows the buy, and the replay understates the gap (7.4).
- Unfitted parameters. Every model constant in Section 3 is a placeholder. None of the stress detectors has been shown to predict anything in these markets.
- Residuals are not marked for the loss cap. The daily loss cap counts realised results. A residual position counts against the position and open-money limits at cost and halts the engine; its mark-to-market loss is not in the cap.
- Fees. Only fees charged as a fraction of the quote amount are handled. Tiered schedules, rebates and fees charged in another asset are not.
- Integration. The components have been tested separately. Faults that arise only when they are joined have not yet had the chance to appear.
- Platform. The audited engine workspace was compiled and tested on Linux; its Windows-specific code has not yet been compiled in that pass. The clock is the machine’s own, and a badly wrong clock makes fresh books look stale, which blocks.
- Self-declared jurisdiction. The venue gate that withholds certain venues by country relies on a country the operator enters. The software does not verify location, and operators remain responsible for the rules that apply to them.
9Status and roadmap
Table 5 gives the state of each method of Section 3 and the item that remains open for it.
Table 5. Status of each method of Section 3 and its open item.
| Section | Method | Status | Open item |
|---|---|---|---|
| 3.1 | Size-weighted mid | Written and tested | Fitted adjustment of [1] not written |
| 3.2 | Kalman filter with leader | Written, awaiting live inputs | Parameters to be estimated per market |
| 3.3 | Order flow imbalance | Planned | Needs event or dense snapshot data |
| 3.4 | Reservation price and spread | Planned | No role until a passive strategy exists |
| 3.5 | Self-exciting intensity | Written, awaiting live inputs | Trade feed; fitted parameters |
| 3.6 | Impact coefficient | Planned | Trade feed and classification |
| 3.7 | VPIN | Written, awaiting live inputs | Trade feed; bulk classification step |
| 3.8 | Execution cost | Written, awaiting live inputs | Depth walk is tested; parametric form needs fills |
| 3.9 | Cumulative sum detector | Written, awaiting live inputs | Volatility estimator; variance form |
| 3.10 | Required-edge band | Written, awaiting live inputs | Rebuild on predicted against realised edge |
| 3.11 | Net edge after both fees | Written and tested | Real fee schedules per venue |
| 3.12 | Order size | Written, awaiting live inputs | Sizing from capital and measured edge |
The order of work follows from the dependencies. No dates are given, because each step is earned by the one before it.
- Verify listings and asset identity on real venues with the read-only watcher, and establish whether any market meets the three-source precondition.
- Owner decisions on Table 4; issue version 1.0 and publish its digest.
- Shakedown, then the evaluation window. Replay, verdicts and publication under 7.8.
- Join the components: feeds into the model library, the watcher’s price check into the execution gate, trade prints into the recording. Rebuild the edge band on the data of step 3. Fit or discard each placeholder constant.
- Shadow operation against live feeds: full plans recorded and not sent, under a registered addendum that tests the stress detectors and measures the sequential-leg gap.
- Minimum-size trading on the company’s own account only, behind every gate in this paper, with the public record of Section 6 running from the first order.
- Further markets and desks, each admitted by the same protocol.
The public release remains watch-only throughout. It reads markets and shows what the engine would decide, and it cannot place an order.
References
- [1]Stoikov, S. (2018). The micro-price: a high-frequency estimator of future prices. Quantitative Finance, 18(12), 1959–1966.Cited in Section 3.1, 9
- [2]Kalman, R. E. (1960). A new approach to linear filtering and prediction problems. Transactions of the ASME, Journal of Basic Engineering, 82(1), 35–45.Cited in Section 3.2
- [3]Cont, R., Kukanov, A., & Stoikov, S. (2014). The price impact of order book events. Journal of Financial Econometrics, 12(1), 47–88.Cited in Section 3.3
- [4]Avellaneda, M., & Stoikov, S. (2008). High-frequency trading in a limit order book. Quantitative Finance, 8(3), 217–224.Cited in Section 3.4
- [5]Hawkes, A. G. (1971). Spectra of some self-exciting and mutually exciting point processes. Biometrika, 58(1), 83–90.Cited in Section 3.5
- [6]Kyle, A. S. (1985). Continuous auctions and insider trading. Econometrica, 53(6), 1315–1335.Cited in Section 2.2, 3.6
- [7]Easley, D., López de Prado, M. M., & O’Hara, M. (2012). Flow toxicity and liquidity in a high-frequency world. Review of Financial Studies, 25(5), 1457–1493.Cited in Section 3.7
- [8]Almgren, R., & Chriss, N. (2001). Optimal execution of portfolio transactions. Journal of Risk, 3(2), 5–39.Cited in Section 3.8
- [9]Page, E. S. (1954). Continuous inspection schemes. Biometrika, 41(1/2), 100–115.Cited in Section 3.9
- [10]Vovk, V., Gammerman, A., & Shafer, G. (2005). Algorithmic Learning in a Random World. New York: Springer.Cited in Section 3.10
- [11]Hasbrouck, J. (2007). Empirical Market Microstructure: The Institutions, Economics, and Econometrics of Securities Trading. New York: Oxford University Press.Cited in Section 3.11
- [12]Kelly, J. L., Jr. (1956). A new interpretation of information rate. Bell System Technical Journal, 35(4), 917–926.Cited in Section 3.12
- [13]Bernstein, D. J., Duif, N., Lange, T., Schwabe, P., & Yang, B.-Y. (2012). High-speed high-security signatures. Journal of Cryptographic Engineering, 2(2), 77–89.Cited in Section 6.4
- [14]National Institute of Standards and Technology (2015). Secure Hash Standard (SHS). Federal Information Processing Standards Publication 180-4. Gaithersburg, MD: NIST.Cited in Section 6.1
- [15]Glosten, L. R., & Milgrom, P. R. (1985). Bid, ask and transaction prices in a specialist market with heterogeneously informed traders. Journal of Financial Economics, 14(1), 71–100.Cited in Section 2.2, 3.6
- [16]Xu, K., Gould, M. D., & Howison, S. D. (2018). Multi-level order-flow imbalance in a limit order book. Market Microstructure and Liquidity, 4(03n04), 1850011.Cited in Section 3.3
- [17]Hasbrouck, J. (1995). One security, many markets: determining the contributions to price discovery. Journal of Finance, 50(4), 1175–1199.Cited in Section 3.2
- [18]Bacry, E., Mastromatteo, I., & Muzy, J.-F. (2015). Hawkes processes in finance. Market Microstructure and Liquidity, 1(1), 1550005.Cited in Section 3.5
- [19]Easley, D., López de Prado, M. M., & O’Hara, M. (2016). Discerning information from trade data. Journal of Financial Economics, 120(2), 269–285.Cited in Section 3.7
- [20]Andersen, T. G., & Bondarenko, O. (2014). VPIN and the flash crash. Journal of Financial Markets, 17, 1–46.Cited in Section 3.7
- [21]Almgren, R., Thum, C., Hauptmann, E., & Li, H. (2005). Direct estimation of equity market impact. Risk, 18(7), 58–62.Cited in Section 3.8
- [22]Tóth, B., Lempérière, Y., Deremble, C., de Lataillade, J., Kockelkoren, J., & Bouchaud, J.-P. (2011). Anomalous price impact and the critical nature of liquidity in financial markets. Physical Review X, 1(2), 021006.Cited in Section 3.8
- [23]Moustakides, G. V. (1986). Optimal stopping times for detecting changes in distributions. Annals of Statistics, 14(4), 1379–1387.Cited in Section 3.9
- [24]Lei, J., G’Sell, M., Rinaldo, A., Tibshirani, R. J., & Wasserman, L. (2018). Distribution-free predictive inference for regression. Journal of the American Statistical Association, 113(523), 1094–1111.Cited in Section 3.10
- [25]Barber, R. F., Candès, E. J., Ramdas, A., & Tibshirani, R. J. (2023). Conformal prediction beyond exchangeability. Annals of Statistics, 51(2), 816–845.Cited in Section 3.10
- [26]Gibbs, I., & Candès, E. J. (2021). Adaptive conformal inference under distribution shift. Advances in Neural Information Processing Systems, 34.Cited in Section 3.10
- [27]MacLean, L. C., Ziemba, W. T., & Blazenko, G. (1992). Growth versus security in dynamic investment analysis. Management Science, 38(11), 1562–1585.Cited in Section 3.12
- [28]Shleifer, A., & Vishny, R. W. (1997). The limits of arbitrage. Journal of Finance, 52(1), 35–55.Cited in Section 2.1
- [29]Gromb, D., & Vayanos, D. (2010). Limits of arbitrage. Annual Review of Financial Economics, 2, 251–275.Cited in Section 2.1
- [30]Makarov, I., & Schoar, A. (2020). Trading and arbitrage in cryptocurrency markets. Journal of Financial Economics, 135(2), 293–319.Cited in Section 2.1
- [31]Berk, J. B., & Green, R. C. (2004). Mutual fund flows and performance in rational markets. Journal of Political Economy, 112(6), 1269–1295.Cited in Section 2.1
- [32]Budish, E., Cramton, P., & Shim, J. (2015). The high-frequency trading arms race: frequent batch auctions as a market design response. Quarterly Journal of Economics, 130(4), 1547–1621.Cited in Section 8
- [33]Nosek, B. A., Ebersole, C. R., DeHaven, A. C., & Mellor, D. T. (2018). The preregistration revolution. Proceedings of the National Academy of Sciences, 115(11), 2600–2606.Cited in Section 7
- [34]Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-mathematics and financial charlatanism: the effects of backtest overfitting on out-of-sample performance. Notices of the American Mathematical Society, 61(5), 458–471.Cited in Section 7
- [35]Harvey, C. R., Liu, Y., & Zhu, H. (2016). … and the cross-section of expected returns. Review of Financial Studies, 29(1), 5–68.Cited in Section 7
- [36]Mincer, J., & Zarnowitz, V. (1969). The evaluation of economic forecasts. In J. Mincer (Ed.), Economic Forecasts and Expectations (pp. 3–46). New York: National Bureau of Economic Research.Cited in Section 7.5
- [37]Newey, W. K., & West, K. D. (1987). A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix. Econometrica, 55(3), 703–708.Cited in Section 7.5
- [38]Politis, D. N., & Romano, J. P. (1994). The stationary bootstrap. Journal of the American Statistical Association, 89(428), 1303–1313.Cited in Section 7.5
- [39]Clopper, C. J., & Pearson, E. S. (1934). The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26(4), 404–413.Cited in Section 7.5
- [40]Haber, S., & Stornetta, W. S. (1991). How to time-stamp a digital document. Journal of Cryptology, 3(2), 99–111.Cited in Section 6.1