When an electronic market reopens in the morning how exactly are all the bids (including market orders from both sides) handled?

A good answer should include a description of the process the exchange uses to determine the outcome, that is orders executed and at what price.

Consider for example the following order book: enter image description here


1 Answer 1


When an order is placed, it receives a time stamp. The time stamp determines the priority of an order on the order book. Earlier orders at a given price are executed before later orders at that price. This occurs for buy orders and for sell orders.

It's worth knowing that cancel/replace orders where you lower the number of shares/contracts in an order do not lose their time priority. However, you cannot cancel/replace with a larger number of shares in your order because that effectively let's you cut in line and prevent others from trading.

  • 1
    This answer answer explains the ordinary functioning of a market that is already open, but it does not explain how the situation at the opening of the market is handled and does not talk about market orders from both sides.
    – hkBst
    Apr 14, 2020 at 8:00
  • 2
    Actually it does. See, the timestamp (or serial number) is done ON ENTERING THE ORDER and per definition nothing enters the ticker plant in parallel (because at the end it is a serial process). So you DO have a serial order to build a book upon. THE OPENING price otoh depends - on exchange. Time not to ask on an internet forum but RTFM - every exchange documents this and it varies, at least possibly by country.
    – TomTom
    Apr 14, 2020 at 11:43
  • It depends on the specific exchange and their procedures. Opening procedures are described in their rule-book. It is possible for a cancel-replace increasing the number of shares to occupy two positions in the order book at that price-level, and would depend on the matching engine's programming. Market-on-open orders are a bad idea in general...
    – xirt
    Apr 29, 2020 at 5:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .