# DN fictional MMP ledger

Companion to **Options Market-Maker Protection in 2027: What Auto-Cancel Leaves Open**.

Canonical article: https://decentralised.news/options-market-maker-protection-auto-cancel-2027

Research cutoff: 29 November 2026. Formula version: **2026-11-29.1**.

## Files and reproduction

**fictional-fills.csv** contains three invented records. It is not an exchange export, an account record or a collection of observed trades.

Download the example JSON linked from the article, save it beside **reproduce_mmp_ledger.py**, and use Python 3. No additional packages are needed:

    python3 reproduce_mmp_ledger.py options-market-maker-protection-auto-cancel-2027-example.json
    python3 reproduce_mmp_ledger.py options-market-maker-protection-auto-cancel-2027-example.json --window-ms 2000
    python3 reproduce_mmp_ledger.py options-market-maker-protection-auto-cancel-2027-example.json --window-ms 2000 --window-mode trailing-comparison

The script also accepts a worksheet scenario JSON containing an **inputs** object, or a bare inputs object. It independently uses Python's Decimal arithmetic; the browser definition uses scaled integers. This reference reproduces the documented core sums and candidate trigger rows, not the browser's presentation strings or download interface.

## Units and signs

The example uses one fictional option and one protected group, without a venue contract multiplier. Quantity units are consistent across all three rows and the opening position. Positive quantity means a buy; negative quantity means a sell. Execution delta and execution vega are signed, already size-adjusted contributions. Do not multiply them by quantity again.

The default option is call-like. A put-like scenario may use negative long-option delta; it remains a different assumption. Execution vega must follow buy-positive/sell-negative signs in this model. Current long-option vega must be nonnegative.

All numeric amounts accept plain decimal inputs with at most four decimal places, bounded in absolute value by one billion. Current delta must be between −1 and +1. Fill timestamps are chronological whole milliseconds from a common origin, within one modeled day. Window duration is 1–3,600,000 ms; frozen duration is 0–3,600,000 ms. These are worksheet bounds, not a statement of venue configuration support.

## Exact comparison conventions

- Anchored mode: the first fill starts [start, start + window). The next fill at or after expiry starts a new interval; a quiet period does not create empty intermediate windows.
- Trailing comparison: at each fill time, use (time − window, time] and only records encountered so far.
- Equal timestamps are ordered A, B, C.
- Gross quantity is the sum of absolute signed quantities. Net delta and net vega are signed sums; their absolute values are compared with the respective limits.
- The worksheet evaluates both inclusive and strict thresholds. Unknown equality semantics remain unresolved when the first candidate row differs.
- A nominal freeze starts at the selected candidate time. Zero freeze duration means manual reset in this declared model.
- All supplied fills remain executed records, including rows after an earlier candidate trigger. The tool never predicts whether those later fills would be admitted.

## Expected outputs

With the defaults, C is the first candidate under both boundaries. The final counters are gross quantity 12, signed delta 2.1 and signed vega 125. Starting position 2 becomes 8. Current per-unit estimates 0.4 and 25 produce sensitivities 3.2 and 200. A 2,000 ms modeled freeze has nominal endpoint 4,500 ms.

With a 2,000 ms anchored window, the final counter only includes C: 5, 1.5 and 90. With a 2,000 ms trailing comparison, B and C contribute: 8, 0.9 and 45. The signed position remains 8 in both cases.

## Interpretation limits

This is an arithmetic worksheet, not a Deribit or OKX emulator. The public article preserves documentation differences about account scope, rolling terminology and exact threshold boundaries. Neither comparison mode establishes live venue behavior.

Cancellation candidates are still-pending protected orders in the declared group. Cancellation does not close positions. An elapsed modeled freeze does not authorize a restart, demonstrate a completed cancellation or verify the current account state.

There is no network access, account lookup, credential handling, signing, order submission, configuration write or reset call. No prices, fees, P&L, hedges, gamma, margin, MQQ admission, liquidation, execution race or legal eligibility are modeled.
