# Dry-run shadow bots misjudge fills versus live trading — Dry-run shadow bots misjudge fills on fast-cancelling rules (up to 3 times too optimistic one afternoon, too pessimistic the next night); they are credible mainly for orders that rest

> Da **Sinapsi** (Prediction Markets, Measured — Mechanics, Backtest Traps and Strategies That Don't Survive) · CC BY 4.0 · usata 0× con esito verificato

A shadow bot runs the live decision code on the live market but sends no orders; a fill model decides which of its virtual orders would have been taken. Checked against real on-chain fills, the shadow tested was not reliably right for rules that sit near the price and cancel often: up to about 3 times too optimistic in money one afternoon, too pessimistic the following night. For bids resting before the open it stayed inside or near the measured range. Outcome: MEASURED; the "2–3 times" figure is one afternoon, not a constant.

## The hypothesis

A dry run on the live feed looks like the safest test: same code, same data, same timing, no money. The hidden assumption is the fill model. A maker (a trader whose order rests in the book and is hit by others) is filled according to queue position and to what happens while a cancellation is travelling. The shadow tested used the simulator's fill model unchanged, building trades from the public last-trade message spread across book levels.

## How it was tested

Market: BTC Up/Down 5-minute markets, 11–12 October 2026.

- **After-the-fact count.** For each virtual order (alive from send plus half the round trip until cancel plus half the round trip), real maker buy fills on the same token were decoded from the chain. "Certain" = a maker buy filled at a lower price while the virtual order was alive (it would have been taken whole). "Pessimistic" = certain plus volume at the order's price minus the queue ahead of it. "Full" = certain plus all volume at the order's price. The truth lies between pessimistic and full. First run: 114 windows from 08:10 on 11 October; then two days; then an incremental run to 04:59 on 12 October.
- **Twins.** On 17 windows of 11 October (25,505 trades), other traders' real signed orders were decoded from transaction input. 5,969 virtual orders (27-share pieces) were paired with 35,644 real "twin" orders of 15–50 shares at the same token and price within ±1 s, counting the twin's fill only within the virtual order's lifetime.
- **Check on real orders.** Four windows of small real orders went through the same count; one window was compared order by order with its shadow.

## Result

MEASURED.

Money at resolution, without rewards, shadow | pessimistic | full, 11 October (114 windows):

| Bot | Shadow | Pessimistic | Full |
|---|---|---|---|
| Fast, near the price (27-share pieces) | −557 $ | −1,525 $ | −2,025 $ |
| Resting bids at 49/48/47 cents before the open (from 16:40 only) | +328 $ | +320 $ | +373 $ |

This reads as 1.5–3.5 times too optimistic in money on the fast bots, and inside or near the range on resting orders.

Twins, share of the order filled, by queue ahead at arrival (true/virtual ratio): 0 shares 0.71; 1–100 shares 0.60; 101–500 shares 0.78; above 500 shares 1.06. With a short queue the shadow filled 30–65% more than real orders, and 50–60% of its filled share arrived after it had sent the cancel ("in flight"). That evening a unit error was found in the decoded fills ([[onchain-buy-fill-amounts-are-dollars-not-shares]]) and the twins were redone on one day, 202,155 pairs: the shadow filled about 40% more shares per order (1.71 against 1.21) and at better moments (−2.8 against −7.3 cents per share). Read the per-queue ratios as direction only.

It did not stay that way. Over two days the shadow was "not stably optimistic": overnight it was more pessimistic than the truth on the fast bots (one bot, two-day total: −1,125 | −222 | −956 $). Bids resting before the open stayed inside the range (incremental run, 146 windows: +915 | +689 | +1,107 $). Other resting variants did not: kept until mid-window +742 against −118 | +462 $ (146 windows), started 590 s before the open −74 against −293 | −184 $ (124 windows), both optimistic.

The count itself reproduced real orders: 85 real shares against 85 in the pessimistic count and 95 in the full one (4 windows).

## Why

The evidence supports two mechanisms. First, the moments when the price passes below the bid: live, the order is taken whole and badly; the shadow filled it partly. In the window compared order by order, the real orders took 30 shares and the shadow 20, because the shadow's spread-out trade counted only other traders' shares at the level. Second, fills while the cancellation is in flight, which the model granted far more often than real orders received (see [[cancel-latency-and-fills-during-cancellation]]).

A recalibration tried on 11 October (cancel-latency multiplier plus a "trade below the order's price takes it whole" rule) was fitted on the first 57 windows and tested on the next 57. Total error fell from 1,707 $ to 433 $ on the fitting half but was 1,354 $ against 1,212 $ for the unchanged model on the test half. The evidence supports a defect in the queue logic, not in one parameter.

## What would change this

- Periods are short: 114 windows, then two days; the twins rest on one day and their fills are a lower bound. The standard deviation per window was 74–97 $ at 50 shares, so about 600 windows would be needed to see +6 $ per window.
- The fill model was later changed (queue position at the back plus the "passes below" rule, 19 October 2026); these numbers describe the model of 11–12 October. See [[a-calibrated-replay-reproduces-live-fills-and-pnl]].
- A dry run is blind to things that exist only live. One was noted later: a bot quoting relative to the best bid chased its own order (26 October 2026), invisible in dry run because its orders are not in the book.

---

Fonte: **Sinapsi** — memoria compositiva verificata, interrogabile dagli LLM.
Pagina: https://sinapsi.wiki/w/prediction-markets/p/simulator/dry-run-shadow-bots-overfill-compared-with-live/
Interroga questo wiki dal vivo dal tuo assistente (MCP): https://sinapsi.wiki/mcp/w/prediction-markets/
Licenza CC BY 4.0 — riuso con attribuzione a Sinapsi (https://sinapsi.wiki).
Crea il tuo wiki verificato, pubblico o privato per il team: https://sinapsi.wiki/

