INSIDE THE MACHINE · EP. 2
Between the Click: How Your Order Travels 17 Systems in 50ms
How Markets Really Work — Episode 2
| Listen on Spotify | Watch on YouTube |
Also available on Apple Podcasts · Amazon Music · iHeart Radio
You click buy. In the next fifty milliseconds, your order touches seventeen separate systems before it returns to your screen as a fill confirmation. Most of the time it works perfectly. On May 6, 2010, it did not — and the Dow fell nearly a thousand points in thirteen minutes.
This is Episode 2 of Inside the Machine: How Markets Really Work — the series covering the hidden infrastructure behind every market you trade.
What Actually Happens Between Click and Fill
Most traders believe the journey is simple: you press buy, the order goes to the exchange, you get filled. The reality involves a chain of systems, each with its own logic, its own risk checks, and its own potential failure point.
Your order starts at your platform’s order management system, which validates your parameters — sufficient margin, instrument availability, acceptable order size. If anything fails here, you receive a rejection before the order leaves your broker’s infrastructure.
Assuming validation passes, your order enters routing logic. This is the first significant decision: where does the order go? In US equities, orders can route to the NYSE, NASDAQ, BATS, IEX, or alternative trading systems. In forex, to an ECN aggregating multiple liquidity providers or directly to a bank’s dealing desk. As covered in Episode 1, payment for order flow means retail equity orders often route to wholesale market makers rather than directly to exchanges. The route your order takes determines who fills it and at what price.
From routing, your order travels across the network. For co-located infrastructure, this means feet of cable. For retail orders, it means tens of milliseconds of network transit across real physical distances. The speed of light through glass fibre is approximately two-thirds its speed in a vacuum — on a London-to-New-York route, physics imposes a minimum round-trip latency of roughly 70 milliseconds regardless of technology.
The order reaches the exchange matching engine — the algorithm that matches buys with sells and produces fills. Orders match on price-time priority: the best price fills first, and among equal prices, the earliest order wins. Your limit order at 1.0850 fills before another at 1.0850 placed one microsecond later.
Post-match, the trade enters clearing and settlement — the DTCC inserts itself as central counterparty, guaranteeing both sides of the trade. Your fill confirmation travels back through the same chain in reverse.
Seventeen systems. Fifty milliseconds. One click.
The Flash Crash: When the Chain Broke
On May 6, 2010, a large mutual fund began selling approximately 75,000 E-mini S&P 500 futures contracts — worth around $4.5 billion — through a volume-calibrated algorithm. The faster the market traded, the faster it sold. This created a feedback loop.
As the algorithm sold, volume increased — partly caused by the algorithm itself. The algorithm responded by accelerating. As prices fell, other algorithms detected momentum and began selling. Volume increased further. The original algorithm sold faster still.
Market makers — the firms continuously quoting bids and asks — detected conditions outside their normal parameters. Their risk systems flagged the situation. One by one, they withdrew their quotes. The bids that had made the order book look deep simply disappeared.
Between 2:41 and 2:44 — three minutes — the Dow Jones Industrial Average fell 600 points. Accenture, a company worth tens of billions, briefly traded at one cent. Other stocks traded at $100,000 per share. The matching engines were functioning perfectly — they matched every available order at whatever price was available. The problem was not the matching engines. The problem was that the normal participants providing liquidity had left the market.
At 2:45, the CME activated a brief pause in E-mini trading. The feedback loop broke. When trading resumed, prices recovered almost immediately. By end of day, markets had returned to near opening levels — but the structural vulnerability was now visible to everyone.
What This Means for Your Trading
Time of day matters more than most traders acknowledge. The first fifteen to thirty minutes after open sees concentrated institutional order flow, wider spreads, and thinner market depth. The probability of slippage — your order filling worse than expected — is higher at the open and close than in the mid-session. This is not a reason to never trade the open. It is a reason to size positions appropriately for the actual liquidity conditions that exist at those times.
News events change the chain’s behaviour. In the seconds after a major data release — non-farm payrolls, an FOMC decision, a central bank statement — order flow spikes dramatically. Market makers widen spreads or withdraw temporarily. The chain continues to function, but the fills it produces reflect stressed conditions: wider spreads, more slippage, more uncertainty. Traders caught by surprise at these moments typically did not account for what the chain actually delivers under stress.
Understand what you are choosing between with limit and market orders. A market order tells the chain to fill you at whatever price is available. In deep, liquid conditions, that price is very close to the last traded price. In a thin market, at a volatile moment, or immediately after a large order has consumed the available bids — the price can be meaningfully worse. A limit order caps your execution price but does not guarantee a fill. The choice is not preference. It is a decision about which risk you are more willing to accept: not filling, or filling at a price you did not intend.
The Method Connection
Understanding the order routing chain is part of the execution layer of the Method pillar — knowing not just what to trade and when, but how the infrastructure between your decision and your fill operates, and how to account for its behaviour under different market conditions.
Chapters 28–35 of The Complete Trader’s Edge cover execution mechanics and the full cost structure of trading. The free M·M·M Assessment will identify whether execution quality awareness is a current gap in your approach.
Frequently Asked Questions
How long does it take for a stock order to execute?
In modern electronic markets, a retail equity order typically executes within 50 to 100 milliseconds from submission. This includes validation at your broker, routing to the execution venue, matching at the exchange engine, and confirmation returning to your platform. In practice, your platform may display the confirmation slightly later due to data feed latency, but the actual fill occurs in milliseconds.
What is price-time priority in order matching?
Price-time priority is the rule most exchanges use to determine which orders fill first. The order offering the best price — the highest bid or lowest ask — fills first. When multiple orders exist at the same price, the one submitted earliest fills first. This means that if you place a limit order at a price where others already have orders, you are behind them in the queue and will only fill if their orders are exhausted first.
What caused the Flash Crash of 2010?
The Flash Crash on May 6, 2010 resulted from a feedback loop between a large automated selling programme in E-mini S&P 500 futures and the response of other market participants. As prices fell, algorithmic market makers withdrew their quotes simultaneously — removing the liquidity that had made the market appear stable. With no bids available to catch sell orders, prices fell to absurd levels before a brief trading pause broke the feedback loop and prices recovered.
Why does time of day affect trade execution quality?
Execution quality varies throughout the trading session because liquidity provision is not uniform. At the open and close, large institutional orders are concentrated, bid-ask spreads are wider, and market depth is thinner. During the mid-session, order flow is more dispersed, competition among market makers is greater, and spreads tend to be tighter. Trading at the open or close is not inherently worse, but position sizes and stop distances should reflect the higher-friction conditions that actually exist at those times.
What is the difference between a market order and a limit order?
A market order instructs your broker to fill you immediately at the best available price, guaranteeing execution but not price. A limit order specifies the maximum price you will pay (for a buy) or minimum price you will accept (for a sell), guaranteeing price but not execution. Market orders risk significant slippage in volatile or illiquid conditions. Limit orders risk not filling at all if the market does not reach your specified price.
The Complete Trader’s Edge
Execution quality, order routing, and understanding the full cost of every trade are part of the Method pillar. The book covers the complete execution framework across Part 2.




