Keep Midpoints Separate From Executable Quotes
The midpoint is a convenient number. It is one scalar that summarizes two sides of a book, it moves smoothly, and it is easy to log. That convenience is exactly why it leaks into analysis where it does not belong. A midpoint is a descriptive statistic about where the inside bid and ask sit. It is not a price at which either side could have traded.
This post is narrow on purpose. It gives you an observation worksheet that records bid, ask, midpoint, chosen side and an explicit execution assumption, and it explains what the midpoint does and does not tell you. For the broader distinction between a paper fill and a real venue fill, read the companion post on paper fills versus real execution first. Here we stay on the single column that causes the most quiet errors: the one where a midpoint gets treated as a quote.
What a midpoint actually summarizes
A midpoint is (best bid + best ask) / 2. It compresses three things you care about into one you cannot act on: the level of the best bid, the level of the best ask, and the gap between them. The moment you collapse those into a single number, you have thrown away the spread and the side. You cannot buy at the midpoint unless someone is offering there, and you cannot sell at it unless someone is bidding there.
On Kalshi the gap between display and executability is structural, not incidental. Kalshi's order book endpoint returns resting bids only. As the API docs put it, the order book shows active bid orders for both the yes and no sides, and no asks are returned.
The reason is the binary identity. A yes bid at price X is the same order as a no ask at (1.00 - X). The docs give the worked example directly.
So when you compute a yes midpoint on Kalshi, one side of your inputs is not a displayed yes ask at all. It is an implied value derived from the best no bid. Kalshi's own example shows a best yes bid of 0.42 and a best yes ask of 0.44 reconstructed from 1.00 minus the best no bid of 0.56, meaning you could buy yes at the implied 0.44 and sell at 0.42. The midpoint of that, 0.43, is a number no resting order names.
Why the midpoint is not proof of a fill
Three failure modes follow from treating a midpoint as a quote.
- Side blindness. A buyer crosses toward the ask, a seller crosses toward the bid. The midpoint sits between them and favors neither. If your worksheet records only the midpoint, you cannot reconstruct which side you needed and how far you had to reach.
- Spread erasure. A 1-cent spread and a 15-cent spread can produce the same midpoint. The midpoint hides the cost of immediacy, which is the spread you pay to trade now.
- Phantom liquidity. Even the displayed bid or ask is only the top of a ladder with finite size. A midpoint says nothing about how many contracts rest there, so it cannot tell you whether your intended size would have been filled at that level or walked up the book.
None of this means the midpoint is useless. It is a reasonable mark for valuing a position you already hold, and a stable series for charting. The error is using a valuation mark as an execution price. Keep marked value, settlement claim, credited cash and hypothetical executable proceeds in separate columns and the mistake becomes hard to make.
The observation worksheet
Record one row per observation. Note that on Kalshi the ask you log for the yes side is implied from the opposite bid, so mark where each field came from. Public market data here needs no venue key, so a no-order observer can build this worksheet without funding an account or holding any trading secret.
- timestamp_utc: exact observation time, in UTC.
- market_ticker: the precise current ticker, strike included. Pin it, do not assume the first discovery result stays constant.
- best_bid: best displayed bid on the side you are studying.
- best_ask: best ask. On Kalshi, note whether this is a displayed value or implied as 1.00 minus the opposite side's best bid.
- midpoint: (best_bid + best_ask) / 2. Labeled as a summary, never as an execution price.
- spread: best_ask - best_bid. The immediacy cost you would pay to cross now.
- side: whether the hypothetical actor is buying (crosses to ask) or selling (crosses to bid).
- exec_assumption: the explicit rule you are testing, for example 'cross to the ask' or 'rest a limit and assume it fills'. State it; do not leave it implied.
- size_intended and size_at_level: how many contracts you want versus how many rest at the level you named. A gap here is where phantom liquidity lives.
- source: endpoint or feed, so the row is reproducible.
A worked row, with chosen inputs and explicitly hypothetical, not a market observation: suppose the best yes bid is 0.42 and the best yes ask is 0.44 (on Kalshi, the ask implied from a 0.56 best no bid). The midpoint is 0.43 and the spread is 0.02. A buyer assuming 'fill at midpoint' records 0.43. A buyer assuming 'cross to the ask' records 0.44. That one-cent-per-contract difference is the whole point: the fill assumption, not the midpoint, determines the number. Both are hypotheses until a result model and real resting size confirm them.
from decimal import Decimal
# Hypothetical inputs, not a live quote. Kalshi-style: ask implied from no bid.
best_yes_bid = Decimal("0.42")
best_no_bid = Decimal("0.56")
best_yes_ask = Decimal("1.00") - best_no_bid # implied = 0.44
midpoint = (best_yes_bid + best_yes_ask) / 2 # 0.43 (summary only)
spread = best_yes_ask - best_yes_bid # 0.02
# A buyer does not get the midpoint. Record the assumption explicitly.
buy_cross_to_ask = best_yes_ask # 0.44
sell_cross_to_bid = best_yes_bid # 0.42
# midpoint is a valuation mark, not an executable price for either side.This snippet is standalone illustrative arithmetic on chosen inputs. It is not an executed test, a live observation, or a tested fill. Treat it as a template for the columns, not as evidence about any market.
Where a simulator fits
A worksheet forces honest assumptions; a simulator applies them under a stated data, fill, fee and valuation model. Banger is a paper-research runtime for prediction-market strategies, and in its public beta live execution is not available. It consumes public Kalshi and Polymarket market data for paper testing, so you can encode a fill assumption in a strategy and inspect the recorded result instead of eyeballing a midpoint.
Treat the output as evidence under that model, not as proof of real execution. A paper fill at a resting limit is an assumption the engine records, not a guarantee that a counterparty would have traded with you. When quotes are missing a price fallback can apply, and a reported-volume quantity cap is not full book depth. So the simulator does not resolve the phantom-liquidity question for you; it just makes your assumption explicit and auditable. Inspect the actual result model rather than trusting a single mark.
Keep the columns apart
If you take one habit from this: never let the midpoint occupy the same column as the price you claim you could have traded at. Log the bid, log the ask, log the spread, log the side, and write down the exact fill rule you are testing. The midpoint stays a summary. The executable quote stays a hypothesis until a result model and real resting size back it up.
Start from the primary source for how the book is shaped before you trust any derived number. Kalshi's orderbook responses guide documents the bids-only structure and the yes/no implied-ask conversion. If you want to turn a worksheet into a repeatable paper experiment, you can explore paper research at bangertrades.com/sign-up. No promise of fills or returns, just a model you can inspect.