BANGER
Product status: Banger’s public beta is paper-only. References to live execution are future-looking. Venue rules and legal claims can change; verify current primary sources for your jurisdiction.
2026-10-31 · 6 min read · facts as of 2026-10-31

Keep Paper Tests Reproducible with Immutable Strategy Versions

A paper result that you cannot reproduce is an anecdote. If you tweak a threshold, rerun a backtest, and get a different P&L, you have no way to tell whether the strategy improved or the inputs shifted under you. Reproducibility in prediction-market research is not a nice-to-have. It is the difference between evidence and a story you told yourself.

The fix is boring and it works: pin everything that can move, and keep it pinned together. This post covers what belongs in that pinned bundle, why each piece matters, and how Banger's saved-version provenance handles it, with honest limits on what a paper result does and does not prove.

Five things that must travel together

A reproducible run is defined by a tuple, not a single file. Change any element and you are running a different experiment, even if the Python looks identical. The five that matter most:

The last item is the one people forget. Two engines can read the same ticks and the same code and still disagree on P&L because they fill, fee, or mark positions differently. If you do not record the execution model, you cannot defend the number.

Why execution assumptions move the number

Fees are a concrete example. Kalshi's published fee schedule (effective July 7, 2026) describes rounding so that fee plus position cost rounds up to a centicent ($0.0001). A packaged helper that instead rounds each fill up to a whole cent will disagree with that on small orders, where a sub-cent raw fee becomes a full cent and the effective rate climbs. Neither is "wrong," but they are different models, and a result is only comparable to another result produced under the same one.

Banger's documentation is explicit that fee behavior differs by model: the packaged standard Kalshi fee helper rounds up to a whole cent, which is coarser than the current official venue rounding. The optional forward-paper fee policy selects that named Kalshi model and does not implement every current Polymarket category fee. The practical rule: inspect the actual result model your run used rather than assuming a single global fee setting applies everywhere.

Fills matter just as much. In the public 0.1.7 forward-paper context, a non-crossing requested limit can fill at that limit, and the engine logs paper.fill.resting-assumed to flag the assumption. Its quantity cap is based on reported volume, not full order-book depth or passive-queue reconstruction, and missing quotes can trigger a price fallback. Historical backtesting is a separate model. Do not assume both walk depth the same way or deliver identical fills.

How Banger ties the bundle together

Banger is a paper-research beta for prediction-market strategies. You write a Python Strategy class, or clone one from the marketplace, inspect versioned historical backtests, and run bounded paper experiments against current market data without venue trading keys. Live execution is not available in the public beta, and hosted historical backtesting currently supports Kalshi binary markets.

The useful property for reproducibility is that a saved version is the unit of record. A versioned historical backtest is attached to a specific code version, so when you later run that same version forward in paper you have provenance linking the two: same source, same declared parameters, same selected ticker. That is what lets you argue a forward-paper run is a test of the thing you backtested, rather than a loosely related rewrite.

A minimal strategy makes the pinned surface visible. Parameters and risk live on the class, where a saved version captures them:

from decimal import Decimal
from banger import Strategy, signals
from banger_adapter_kalshi import Kalshi
from banger.risk import RiskEnvelope

class FadeExtremes(Strategy):
    name = "fade_extremes"
    venues = [Kalshi()]
    # Pin the universe; then select and preserve an exact ticker for a reproducible test.
    universe = signals.kalshi_markets(category="NFL", time_to_resolution_lt="24h")
    risk = RiskEnvelope(
        max_position_usd=Decimal("200"),
        max_daily_loss_usd=Decimal("500"),
        max_open_positions=5,
    )

    async def on_start(self, ctx):
        self.edge_threshold = Decimal("0.05")  # a parameter: it belongs to the version

    async def on_market_tick(self, market, tick, ctx):
        # tick prices are Decimal; bid/ask can be absent; timestamp is a datetime.
        ...  # ctx.place(venue, market, side, size, price=None) takes USD notional

Note what the risk envelope does and does not promise. max_position_usd limits cumulative position cost basis, not a per-order stake. The forward-paper daily-loss control rejects new exposure once mark-to-market loss from the current UTC-day baseline reaches the limit. It does not automatically flatten existing holdings, guarantee an eventual loss ceiling, or stop a worker on a timer. A per-context limit is not an account-wide guarantee. Record these settings as part of the version, because changing them changes the experiment.

Historical versus forward comparability

Even with the full tuple pinned, a backtest and a forward-paper run on the same version are not the same experiment. The backtest replays recorded history under one model. The forward run observes live data under a different fill-and-fee model, with resting-assumed fills, a reported-volume quantity cap, and possible price fallbacks when quotes are missing. Expect the numbers to differ. The provenance link tells you they share code and parameters. It does not promise identical fills, and it never promises profitability.

So read a paper result for what it is: evidence under a specific data, fill, fee, and valuation model, not proof of real venue execution. Keep the distinctions straight between marked value, a settlement claim, credited cash, and hypothetical executable proceeds. A YES/NO pair that looks like it sums to a dollar on standard binaries will not generalize to scalar or exceptional event contracts.

A workflow that stays reproducible

Stopping preserves your research history and says nothing about any real account's positions, because the public beta does not place live orders. That is the point of the discipline: every saved version is a reproducible claim you can rerun, compare, and defend, instead of a number you cannot explain a week later.

Sources

Keep reading

Run your first strategy free

Paper-trade on Polymarket and Kalshi market data without venue keys.

Start free