Every order you send ends up at one piece of software: the matching engine. By the end of this lesson, you'll know what it does with each message, why it handles them strictly one at a time, and why that means arriving first matters more than clicking first.
1 of 6
What you'll learn
- Follow each message. The engine takes new orders, changes and cancels, one at a time.
- Trace a fill. It fills what it can, leaves the rest waiting and sends out the results.
- Know your place in line. It's set when your order reaches the engine.
- Check where your stops wait. Many platforms hold stops until they trigger.
- Expect price protection. CME Globex fills market orders only within a price band.
Exercise
- Look in your platform's or A firm that holds your trading account, passes your orders to the market and reports your trades back.More in the glossary's help pages for how An order that waits until price reaches a trigger you set, then becomes a market order (or a limit order, for a stop-limit).More in the glossary are handled.
- Find out whether your stops wait at the An organised market with one order book for each thing it lists, where everyone’s orders are matched by the same rules. CME Group is a futures exchange.More in the glossary, or on the platform's computers until they trigger (a An order a platform keeps on your computer or its own servers and only sends to the broker when price gets there. If that link breaks, it may not be sent.More in the glossary).
- Write the answer down with your A written set of rules made before trading: what you trade and when, what has to happen before a trade, where you get out, how much each trade risks and when you stop.More in the glossary.
Quick check
1. Two traders send orders for the last 2 contracts at a price. Who gets them?
2. A sell limit at 5,000.00 for 5 contracts meets only 2 bids at 5,000.00 or higher. What happens to the other 3?
3. Your platform holds your stop order on its own computers. What does that mean?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
A matching engine holds the order book and handles every new order, change and cancel strictly one at a time in the order they arrive, trading what can trade and sending out the results, so when your message arrives matters more than when you clicked.
- The The exchange’s computer that pairs buy and sell orders and records each trade.More in the glossary holds the The list of every order waiting to buy or sell a contract, and at what price.More in the glossary and takes in three kinds of message: new order, change, cancel. More: How an exchange matches orders.
- For each message it checks the book, trades what can trade, rests the rest, and sends a note to each trader involved plus a data update to everyone.
- Made-up: asks 4 at 5,000.25. Buy 2 at market: 2 trade at 5,000.25, 2 left. Sell 5 limit 5,000.00 against 2 bids there: 2 trade, 3 rest as a new offer at 5,000.00.
- Messages are handled one at a time, in arrival order. Arrival at the engine sets your place, not your click, which travels through platform, broker and network first. See Latency in trading and Delay and speed.
- An order that only fills at a price you set or better. The price is promised, but a fill isn’t.More in the glossary rest in the exchange's book. Some An order that waits until price reaches a trigger you set, then becomes a market order (or a limit order, for a stop-limit).More in the glossary are held by the exchange; many platforms hold stops and brackets themselves until triggered (An order a platform keeps on your computer or its own servers and only sends to the broker when price gets there. If that link breaks, it may not be sent.More in the glossary).
- On CME Globex, An order to buy or sell straight away at the best price available. It fills, but the price isn’t promised.More in the glossary get A limit CME Globex puts on market orders, and on stop orders it holds when they trigger. The order can fill only inside a band of prices, and anything left waits at the edge of the band as a limit order.More in the glossary: they fill only within a band, and the rest waits at its edge as a limit order.
Worked example
Made-up numbersThree messages through the engine
Made-up numbers · asks: 4 at 5,000.25, 5 at 5,000.50 · bids: 3 at 5,000.00, 6 at 4,999.75
- Buy 2 at market: 2 trade at 5,000.25; 2 left there.
- Cancel 1 bid at 5,000.00: nothing trades; 2 bids left there.
- Sell 5, limit 5,000.00: 2 trade at 5,000.00; the other 3 can't trade at 5,000.00 or better, so they rest as an offer at 5,000.00.
Two trades printed, and the best offer is now 5,000.00 with 3 contracts.
Trading is risky. You can lose money. This lesson explains how markets work. It isn't advice.