What Matters: A trading result depends on the environment that turns orders into fills. DN’s fictional quote fills six units under a snapshot-allocation rule and zero under a persistent queue rule, with prices and arriving flow unchanged. The contrast shows why a competition technique needs a mechanism audit before it becomes a claim about another market.
Evidence: DN inspected the pinned Prosperity 3 team write-up and executed an original matching-rule illustration on 28 November 2026. This 2027 article neither reproduces the contest engine nor copies the team’s strategy. All order quantities, prices, fees and allocation rules below are authored teaching inputs.
A competition result belongs to its rules
A successful contest submission can demonstrate skill within a specified environment. That environment includes the available information, how often decisions are made, the behavior of counterparties, position limits and the mechanism that processes orders. Moving a strategy elsewhere changes some of those inputs. The reported outcome cannot establish what will happen after the change.
The authors of the Prosperity 3 write-up report a second-place contest finish and discuss their understanding of the simulated environment. We treat that account as source material about their research, not independent verification of every result or a transferable profit estimate. The lesson worth examining is how much a decision relies on its surrounding rules.
Hold the quote fixed and change allocation
Our example submits a buy order for ten units at price 99. Six units of sell flow arrive at that price. A later accounting mark is 100, and each filled unit incurs an invented fee of 0.1. These values remain identical in both scenarios. Only the treatment of prior queue claims changes.
Under the first authored rule, arriving flow is allocated to our quote without a persistent queue ahead. It fills the smaller of our ten-unit order and the six-unit flow: six units. This deliberately generous snapshot convention is a definition of the example. It is not asserted to be the exact Prosperity rule or a feature of a real venue.
Under the second rule, six units already stand ahead of us in a persistent first-in-first-out queue. Arriving flow first consumes that quantity. Nothing remains for our order, so our fill is zero. We ignore cancellations, hidden orders, replenishment, price changes and latency to isolate this single mechanism.
| Quantity | Snapshot allocation | Persistent FIFO |
|---|---|---|
| Our buy order | 10 at 99 | 10 at 99 |
| Arriving flow | 6 | 6 |
| Persistent quantity ahead | Ignored by definition | 6 |
| Our fill | 6 | 0 |
| Marked gross result at 100 | 6 | 0 |
| Fee | 0.6 | 0 |
| Marked result after fees | 5.4 | 0 |
Matching is part of the apparent edge
The quote and later mark have not changed, yet the displayed opportunity produces different exposure. In the snapshot case, six units receive the favorable one-unit price difference. In the persistent case, the strategy never obtains those units. A backtest that assumes the first allocation cannot support a claim about the second without further evidence.
This is a portability question, not simply a fee adjustment. Multiplying the snapshot profit by a larger commission would retain fills that may never happen under a different queue mechanism. The relevant intervention changes the order-to-fill mapping. Costs should be applied to the fills that the chosen model actually produces.
The mark is an accounting input
Buying at 99 and marking at 100 creates an unrealized valuation difference in the example. No exit order is executed. The 5.4 figure therefore is a marked result after the stated entry fee, not realized profit. An executable exit could involve another price, another fee and insufficient liquidity.
Change only the later mark to 98. The same six-unit snapshot fill now has a marked result of −6.6 after fees. The persistent case still has no fill in this narrow event. More fills are not inherently better; they create exposure whose subsequent outcome matters. The original favorable mark should not be mistaken for a forecast known when quoting.
Order replacement can alter priority
A strategy may repeatedly cancel and recreate a quote because that behavior is convenient in a periodic simulation. In another environment, the operation may affect queue position, leave an order active while cancellation is pending or produce fills before the acknowledgement arrives. The relevant behavior must be documented for the actual system being evaluated.
Our two-rule arithmetic does not simulate those events. It identifies a specific missing responsibility: determine how order persistence and replacement affect priority. A portability audit should establish that mechanism before projecting a contest technique onto a continuous market. A shared API method name does not establish shared event semantics.
Map the assumptions that give the technique its value
| Assumption | What to inspect | Possible change in the result |
|---|---|---|
| Information arrives in discrete rounds | Decision schedule and observation cutoff | Orders may act on older information |
| Order state resets each round | Persistence and cancellation rules | Queue position or residual orders differ |
| Counterparty behavior repeats | Observed behavior and its stability | A modeled pattern may disappear |
| Inventory is bounded simply | Limits, margin and liquidation semantics | The permitted exposure changes |
| A terminal mark settles the score | Realized versus marked accounting | An exit and its costs remain unresolved |
The table is a research plan, not a list of defects in the competition. A designed simulation can be internally consistent and useful precisely because it defines its rules clearly. The error would be erasing those definitions while carrying its result into a different setting.
Use an original contrast rather than copying the strategy
The reviewed repository did not provide an explicit root reuse licence in the inspected two-file tree. This article cites its explanation and creates a separate numerical example. The result is useful without incorporating the submitted strategy into a product. Source visibility and permission to reuse a complete implementation are separate matters.
For research communication, preserve the boundary between an author’s reported contest outcome, a reader’s interpretation and a newly executed local test. Our source account motivates the mechanism question. Our original fill calculation demonstrates only the two stated allocation definitions. Neither should be relabeled a replication of the other.
Explore the rule change
Start with six units ahead and six units of arriving flow. Then set queue-ahead quantity to zero: both rules fill six units and both marked results become 5.4. This boundary confirms that the difference comes from the queue assumption. Set order quantity to zero and both fills disappear, independently of the favorable mark.
Next vary the mark below the quote and observe the adverse valuation. The worksheet accepts bounded finite quantities and rejects missing prices or negative fees. It cannot infer actual queue position, authenticate a book snapshot or decide whether a quote is executable on a particular exchange.
What a stronger transfer test would require
A stronger study would replay the same declared strategy under two explicit execution models, using the same decision-time observations and preserving order events. It would distinguish intended orders, accepted orders, fills, residual quantities and inventory. The report would explain which model assumptions are supported by observed venue behavior and which remain provisional.
Changing multiple mechanisms at once can be realistic, but it makes attribution harder. Begin with a controlled difference like the one here, then add relevant interactions. If the result changes, record whether the cause is fill probability, price, timing, exposure or accounting. A single before-and-after profit number would not explain the failure of portability.
Preserve events before comparing totals
For a future event-level study, retain the intended order, submission time, acceptance event, queue assumption, matched quantity and resulting inventory. If a cancellation occurs, retain both the request and its acknowledged result. These records explain whether a difference came from an unaccepted order, queue allocation, a price change or a delayed state update. A final P&L value cannot reconstruct that distinction.
Also separate an absent fill from an unknown fill. Our persistent example calculates zero because the declared six-unit queue consumes the declared six-unit flow. A missing execution record in a real system would not justify the same conclusion without reconciliation. The first is a result of a complete toy rule; the second is an evidence gap.
This distinction keeps the proposed transfer study operationally precise. The useful question is whether the new environment supports the mechanism the strategy depends on, with records sufficient to explain each outcome. A familiar instrument name or similar-looking order book is not enough evidence to preserve the original mechanism, and a successful local calculation cannot supply the missing event history.
Methodology and limitations
DN’s standard-library script calculates both authored allocation rules from one input record. Independent browser tests verify six versus zero fills, 5.4 after fees, agreement when queue-ahead quantity is zero, an adverse-mark result of −6.6 and the zero-order boundary. No competition or exchange engine was installed or queried.
The practical next step is a mechanism record in the Research Desk, connected to a scenario receipt in the Trading Tool Lab. Record the environment in which a result was obtained before asking whether the same decision rule deserves a new test elsewhere.
Download the dated source and scenario record (JSON) · Download the reproducible calculation pack (ZIP).
Frequently asked questions
Does this recreate IMC Prosperity matching?
No. Both allocation rules are authored simplifications. The article uses the team write-up as motivation for a portability question, not as a claim that these exact rules reproduce the contest.
Is 5.4 realized profit?
No. It is a six-unit position marked from 99 to 100 after an assumed entry fee. No sale or settlement is executed, and exit costs and liquidity are absent.
Why not apply a larger fee instead of changing the fill model?
A fee adjustment keeps the original fills. If the new environment would not fill the order at all, the order-to-fill mapping must change first; fees then apply to whatever fills that model produces.
Primary sources and evidence
- Prosperity 3 team write-up. Authors’ reported contest experience and environment-specific reasoning; inspiration only Checked 2026-11-28.
Editorial disclosure: This research explains documented capabilities and original worked examples. Inclusion does not imply endorsement, a commercial relationship or verified trading performance. No placement in this article was purchased.
Corrections and updates: Send source-backed corrections to press@decentralised.news. This 2027 edition was checked on 28 November 2026; documentation, permissions and product availability can change.




