Quant Memo
Core

How The Auction Book Interacts With The Continuous Book

The opening and closing auctions don't run in a vacuum — they draw on orders resting in the regular continuous book, and the moment the auction locks and prints, control hands back to continuous trading, so the two books have to be reconciled at a precise handoff instant rather than treated as fully separate systems.

Prerequisites: Imbalance-Only And Auction-Only Orders, How a Matching Engine Works

A limit order sitting in the regular book at 9:29 am, one minute before the open, doesn't vanish — it's automatically eligible to participate in the opening auction unless it's marked otherwise. The matching engine has to treat the auction and the continuous session as two modes sharing the same underlying pool of resting orders, switching from one matching logic (single clearing price) to the other (continuous price-time priority) at precisely defined moments.

The handoff, in both directions

Going into the open: eligible limit orders already resting from the prior session, plus new orders entered during the pre-open window, all feed the same auction book, and the matching engine runs the single-price auction algorithm over all of them at once. Coming out of the open: any order that wasn't fully filled in the auction, and is still valid (not marked auction-only), rolls straight into the continuous book at its original price and priority, without needing to be re-entered — the transition from auction pricing to continuous price-time matching happens instantly, in the same microsecond the print is disseminated.

Worked example: a partially filled limit order

A trader enters a buy limit order for 5,000 shares at 40.10, well before the open. The opening auction prints at 40.05, better than the trader's limit, so the exchange fills the entire order at 40.05 — auctions fill marketable orders at the single clearing price, not at the limit itself, so a buyer willing to pay 40.10 who gets a print at 40.05 is filled in full and pays the better price.

Now change the numbers: the trader's limit is 40.00, and the auction prints at 40.05. The order isn't marketable at the clearing price (it wouldn't buy at 40.05 or higher), so it fills zero shares in the auction and, one instant later, rolls into the continuous book as a resting buy limit at 40.00, waiting for the market to come to it — no re-entry required, no gap in queue priority relative to other orders that also rolled over at the same moment.

pre-open: auction book print / handoff unfilled remainder: continuous book
Orders resting before the open feed the auction; anything left unfilled at the print rolls directly into the continuous book at the same instant, with no re-entry.

What this means in practice

This shared-book design is why order entry rules (like which order types are auction-eligible) matter so much: an order's behavior at the open or close depends entirely on whether it's flagged to participate in the auction, roll over afterward, both, or neither. Algorithms that route orders around the open or close have to track this state explicitly, because a fill that "should" have happened in the auction but didn't will otherwise silently reappear as a resting order a split second later at a different mechanism's priority rules.

The auction and continuous books share the same pool of resting orders — orders feed the auction from the continuous book beforehand, and any unfilled remainder rolls back into the continuous book the instant the auction prints, with the handoff happening in a single microsecond rather than a gap.

Related concepts

Practice in interviews

Further reading

  • NYSE and Nasdaq matching engine architecture documentation
ShareTwitterLinkedIn