Got something to say to this podcast? Send a voicemail, and you might hear yourself on the next episode! In this episode, we trace what really happens between you pressing "buy" and owning the shares. Your order lands in an order book, competes with thousands of others under price-time priority, and gets matched against the best available counterparty - or waits, partially fills, or gets repriced in a fast-moving market. Key takeaways: - Market orders guarantee speed; limit orders guarantee price - you can't have both - The bid-ask spread is the visible cost of every trade you make - Partial fills and price improvement are normal, not errors - Understanding the order book explains slippage on volatile days Disclaimer: Educational content only - not financial advice. The hosts are AI-generated. Nothing here is a recommendation to buy or sell anything. Speak to a licensed professional about your own situation.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
The $80 price tag on your trading screen is, well, it's basically an illusion. Yeah, it really is. It's just this historical snapshot of a past reality. And the exact moment you try to touch it, you know it changes. So welcome to today's Deep Dive. We are opening up a really fascinating stack of notes on the hidden inner workings of Canadian financial markets. Which is, that's a topic a lot of people think they understand, but the mechanics are wild. Completely wild. And our mission today is to essentially slow
down time for you. We are going to look at the exact millisecond by millisecond journey of a stock order. We want to uncover all that invisible plumbing that dictates what actually happens in the digital ether between the moment you press buy and the moment your order is actually filled. Right, because that journey is far more complex and frankly perilous than most investors realize. I mean, pressing that button sets off this massive chain reaction across multiple systems. Oh, for sure. You've got algorithmic routing networks, matching engines, all of it operating in literally
fractions of a heartbeat. And they're constantly weighing these competing priorities that you never even see on your screen. And to really ground this in reality, we have to start with this highly relatable frustration. It's something almost everyone who has ever traded a stock has probably experienced. Oh, yeah. The four cent mystery. Exactly. So you look at a stock on your screen, the price says $80. You press buy for 500 shares. But then a few seconds later, your confirmation screen pops up and it says your average cost was $80 and four cents. Right. Which
is I mean, that's a $20 difference on the total trade. It's not going to bankrupt you, but it is just incredibly irritating. So OK. Let's unpack this. How does that happen when you are looking right at the $80 price tag when you clicked your mouse? Well, it's easy to forget that a quote on a screen isn't like a locked -in price. It's just a historical snapshot. Right. It's looking backward. Exactly. It's essentially a photograph of the market taken milliseconds ago. To really visualize this, we need to briefly break down what that quote actually represents. It's showing you the best bid and the best ask at that specific
moment. Okay. So the bid is the highest price any buyer is currently willing to pay. And the ask, which is obviously what you care about when you are buying, is the lowest price any seller is currently willing to accept. Right. But that photograph is not a promise. And it certainly isn't reserved for you just because you happen to be looking at it on your screen. And crucially, depending on the data feed you are using, that snapshot might be surprisingly incomplete. Very much so. Even with a real -time feed, most retail platforms only show you the top. of the order
book. They show you the best price available, but they do not show you the volume. Right. The depth is totally hidden. Yeah. So you might see an ask of $80, but there might only be, say, 10 shares actually sitting on the shelf at that price. When you are trying to buy 500 shares, that missing volume data is the absolute crux of this whole 4 -cent mystery. Exactly. And to solve that mystery mathematically, we really have to trace your order's exact path from the very beginning. So, the first stage happens in
the milliseconds right before your order even hits the public market. We call this the validation phase. I always think of this step as like an automated bouncer at a nightclub. That's a perfect way to picture it. Because before you can even get near the dance floor, this digital bouncer grabs your order and strictly enforces the house rules. Like, do you actually have the buying power in your account to cover this trade? Is the ticker symbol even valid or did you, you know, make a typo? Right. Are there any specific trading restrictions on your account. Exactly. And this all happens in microseconds, but it
is a rigid gate. If you have miscalculated your cash and you try to buy more than you can afford, the bouncer just rejects your order instantly. You do not get into the club. But assuming you do pass the bouncer, the journey immediately hits a fork in the road. This is the routing phase. And most people just assume that if they're buying a Canadian stock, their order just goes straight to the Toronto Stock Exchange. Right. The TSX. Yeah. but Canada has a highly fragmented market structure. There are actually multiple alternative marketplaces and exchanges all trading
the exact same securities simultaneously. So once you're past the bouncer, your order goes to the market. But the market isn't just one place. It's a whole street of clubs, and they're all playing the exact same music. Right. And your brokers' algorithms have to instantly decide which of those clubs to send your order to. Now they have a regulatory obligation to seek best execution for you. But whenever there are routing choices in finance, there are usually, well, structural friction points. So let's dig into the conflict of interest here. Because brokers
have financial incentives to send orders to specific venues, right? Yes. This raises an important question about market plumbing. Best execution is not just a simple mandate to find the absolute lowest price. It's this nuanced balancing act. Regulators actually require brokers to weigh price, speed, the certainty that the execution will happen, and the overall cost of the trade. OK. And that last factor, the overall cost, is where the broker's own financial realities kind of collide with your trade. Wait, so how does
that tension mechanically work behind the scenes? Like, how does a broker make money off routing? Well, it really comes down to fee structures, specifically the maker -taker model that a lot of exchanges use. So exchanges want to attract liquidity. They want people posting orders on their books. Makes sense. So they will often pay a rebate to the participant who makes or provides that liquidity, and they will charge a fee to the participant who takes or removes that liquidity. Oh, I see. So when you submit a market order to buy immediately, you are taking
liquidity. Your broker has to pay a fee to the exchange to execute that trade but different exchanges charge different fees and Some even use inverted models where they might actually pay the broker a rebate for bringing that taker order to their venue Okay, so this means there is a live ongoing tug -of -war between routing the order to the absolute cheapest path for the brokers bottom line and Finding the absolute best execution for you the client exactly Now, it is heavily monitored and regulated by compliance
departments, but that friction is literally baked right into the architecture of the system. Right. And the outcome requires algorithmic judgment, which inherently means that two different brokers might route the exact same order in slightly different ways. OK, so let's follow the order past that routing decision. The broker has navigated the fees. They've picked a destination. The order finally hits the matching engine. It arrives at the public order book. Here we go. And this is the exact moment where that initial $80 versus
$80 .04 mystery is mathematically solved. We can actually look at the numbers from the sources. Yes. This is where theory meets the reality of supply and demand. So your order for 500 shares hits the book. The matching engine looks at the ask side, the sellers. It turns out there are exactly 200 shares being offered by sellers out there at exactly $80. OK. but that is the entire supply at that specific price point. The next available batch of shares, let's say there are 300 of them just sitting there, are being offered
by sellers who are demanding $80 .05. Okay, and because you submitted a market order, meaning you instructed the broker to prioritize speed and just buy the shares right now at whatever the going rate is, the matching engine just becomes this hungry machine. Right. It just wants to fill the order. So it eats up those 200 cheap shares at $80, but your order isn't satisfied. You still need 300 more shares. So the machine simply climbs up the ladder to the next available price on the shelf. It forces you to buy those remaining 300 shares at the higher price of $80
.05. Exactly. And when you blend that mathematical reality together, taking 200 at $80 and 300 at $80 .05, your average cost comes out to exactly $80 .03. Ah, there it is. Yep. Add in a tiny bit of real -world transactional friction or fractional rounding within the clearing process, and your confirmation receipt spits out $80 .04. Here's where it gets really interesting. This reveals a core market dynamic that honestly every investor needs to internalize. You got a worse
price on the second half of your order precisely because you bought the first half. Yes. Your own order consumed the available supply and actively moved the price against you. This is market impact. People tend to visualize the market as this infinite ocean of shares available at the quoted price, but it's actually a shallow pool. And when you jump in with a large order, you displace the water. That's a great analogy. Institutional investors actually spend millions of dollars on sophisticated algorithms designed entirely to hide their market impact. They slice massive
orders into tiny pieces over days or even weeks. Right, to avoid making a splash. Exactly. Retail investors, on the other hand, often just click buy and absorb the impact all at once. Now, for a 500 -share order of a massive, highly liquid stock like a major Canadian telecom or a bank, market impact is just that 4 -cent annoyance. The pool is deep enough that your splash barely registers. But… But… Apply that exact same matching engine logic to an illiquid stock, and the outcome is absolutely devastating. Yeah, this takes us
right into the danger zone. The sources outline a scenario on the venture exchange that really illustrates this perfectly. So instead of a shallow pool, think of an illiquid market like trying to buy 500 tickets to a sold out concert from scalpers outside the venue. OK, I like this. You look at your screen and the quoted price for the small cap stock is $4. You put in a market order for 500 shares. And because it's a thin market, there is very little volume resting on the order book. Right. So you walk up to the first scalper, and he has 50 shares at $4. You
buy them. But he's out. To get the rest of your shares, you have to walk further down the street. The next scalper has 100 shares, but he wants $4 .10. Ouch. The guy next to him has 200 shares, but he is demanding $4 .50. And beyond him, there is absolutely no one else selling until you hit the $5 mark. And remember, the market order instruction is absolute. You told the system to fill the order regardless of cost. Right. So the matching engine dutifully marches down the street. It eats the 50 shares at four, the 100 at 410, and
the 200 at 450. It still needs 150 more shares to complete the lot. So it reaches way up the ladder and buys the final block at $5 each. It's crazy. You wanted a stock you thought was trading at $4. But your average cost across the whole execution turns out to be $4 .40. That is a 10 % invisible tax you paid simply for using the wrong order type in a thin market. Because you traded certainty of price for certainty of execution. In a liquid market with tight spreads, that trade -off is usually fine. But the moment you step
into something thin, you absolutely must flip that priority using a limit order. Right. Because a limit order changes the instruction entirely. You are telling the broker, I care about the price more than I care about actually getting the shares. In that concert scalper scenario, if you set your limit order at $4 .10, you are drawing a hard, impenetrable line in the sand. Mechanically, the engine eats the 50 shares of $4. It takes the 100 shares at 410, and then it abruptly halts. It just stops? It just stops.
Because the next available shares are at 450, which violates your limit, the engine stops matching. You secure 150 shares at excellent prices, And the remaining 350 shares of your order just rest on the book. Unfilled. Broadcasting to the market that you were a willing buyer, but only at 410 or better. Now, I can hear the frustration from people who just want to buy their full position and go on with their day. Seeing a partially filled order can feel like the system is broken. But doesn't that mean my order might just sit
there forever? It might. But we really need to reframe how we view that. An unfilled order is not a loss or a failure. It is an outcome you actively chose. It's a protective boundary doing exactly the job you hired it to do. Okay, that makes a lot of sense. It requires discipline, though. If the stock runs away and you never get those remaining shares, you still retain total control. You can always go into your account, reassess the situation, and raise your limit price if you truly want the position. What you
absolutely cannot do is unbuy a $4 stock that you accidentally paid $5 for. So true. Once a market order executes and sweeps the book, the capital is gone. Wow. Okay, so we have survived the mechanics of the public order book, but this assumes your order even makes it to that public street of scalpers or the main exchange. The plumbing gets incredibly opaque here, even for seasoned traders, because a massive chunk of these orders never actually leave the broker's building. The sources dive into a complication called internalization. This is a major structural
reality of modern trading. When you hit buy, your broker's routing algorithm might decide not to send your order to the TSX or any public venue. Instead, they internalize the trade. Meaning they keep it in -house. Exactly. They fill your order by matching it internally against their own proprietary inventory of shares, or they cross it against a sell order from another one of their own retail clients. The entire transaction executes inside a closed loop. So why do they do this? I have to assume it comes back to the
fee structures we talked about earlier. Oh, it absolutely does. By crossing the trade internally, the broker bypasses the public exchange entirely, which means they don't have to pay those taker fees we discussed. Sneaky. Furthermore, they can often capture a fraction of the bid -ask spread for themselves. Now, regulations stipulate that if they internalize your trade, they generally have to provide you with a slight price improvement over the public quote, or at least match the best available price. So you might get a fraction of a cent better deal. But the macro consequence
is that your order never interacted with the public order book. It never contributed to the public discovery of price. And we'll circle back to why that matters in a moment. But first, I want to touch on order protection. If I'm using a limit order and brokers are dealing with all these different venues and internal systems, what stops a broker from giving me a terrible fill just because it's cheaper for them? Like how does speed and algorithmic trading play into protecting my order? So for a standard retail order, the microsecond speed advantage of high frequency trading isn't really what makes or
breaks your trade. What matters is a regulatory framework in Canada called the Order Protection Rule. Okay. It is a genuine safety net. The rule is essentially designed to prevent trade -throughs. Meaning my broker can't execute my trade at an inferior price on one venue if a better price is actively flashing on a neighboring venue. Precisely. If your broker routes you to venue A, where the ask is $80, But venue B is simultaneously offering shares at $79 .95. The automated systems
are required to route around the inferior price and secure that $79 .95 for you. Oh, wow. That's actually really good. It is. Now, order protection does not magically eliminate market impact. If your order is large enough, you will still eat through the combined books across venues. But it guarantees you aren't being systematically gouged by poor routing choices when a better deal is publicly available. That is surprisingly reassuring. So we've covered the where and the how, but there's a crucial when outlined in the
sources, the morning chaos. I assume the extreme volatility right at the 930 a .m. opening bell is basically a bottleneck of overnight news and queued up breakfast orders all trying to squeeze through the door at the exact same time. That is exactly what creates the bottleneck. And the mechanics of how the market handles that bottleneck are fascinating. Because the market has been closed for over 15 hours, a massive imbalance of buy and sell orders has built up. To resolve this, exchanges run what is called the morning cross or an opening auction. It's a really complex
algorithmic process that calculates a single clearing price designed to execute as many of those queued up orders as possible the moment the market opens. But once that initial cross happens and the bell rings, it doesn't just instantly smooth out into a normal trading day, does it? No, not at all. The immediate aftermath is highly volatile. Market makers, the institutional firms whose job is to provide liquidity by constantly offering to buy and sell, they are very cautious in those first few minutes. They do not want
to get run over by toxic overnight flow or massive institutional shifts reacting to an earnings report. Makes sense. So mechanically, they widen their spreads. The gap between the bid and the ask expands dramatically, and price discovery swings wildly until the buying and selling pressure finds an equilibrium. Which means if you send a market order into that environment at 9 .31 a .m., you are basically asking for maximum market impact in a moment of minimum liquidity. If we connect this to the bigger picture, it's just
a bad idea. Yeah. The takeaway here is incredibly straightforward. If you are a long -term investor, buying a stock you plan to hold for five years, there is absolutely zero reason for you to dive into that morning bottleneck. Just wait an hour. Let the morning cross settle. Let the market makers tighten their spreads back up. Let the pricing stabilize. Waiting that one hour cost you absolutely nothing, and it systematically protects you from getting caught in a massive temporary price spike. It really is the easiest, most actionable way to protect your capital without
needing a degree in market microstructure. So what does this all mean? If we zoom out from the matching engines and the routing algorithms, what is the ultimate toolkit you should walk away with today? I think we can distill this entire deep dive into four critical takeaways. Number one, the screen price is a quote, not a reservation. It is a historical snapshot that rarely shows you the true volume sitting behind the price. Right. Number two, if you place a large order, you are going to eat through the order book. You will fill at progressively worse
prices. That is market impact. and it is a self -inflicted wound. Number three, market orders trade price certainty for execution certainty. That is fine for massive, highly liquid stocks, but it is incredibly dangerous for thin, small -cap stocks where scalpers control the street. And number four, an unfilled limit order is not a failure. You cannot un -buy a bad price. An unfilled order is the exact protective boundary you asked for. Those principles will absolutely
save you significant capital over a lifetime of investing. But before we sign off, I do want to leave you with something to mull over regarding internalization. We discussed how brokers match retail orders internally to save fees, shielding those trades from the public exchange. Right, the invisible trading. Think about the long -term systemic implication of that. The public quote you see on your screen, that $80 price tag, is supposed to represent the true intersection of public supply and demand. But if millions of
retail trades are systematically removed from the visible market and executed in the dark, they stop interacting with the public order book. Okay. So if the visible market is constantly losing volume to private internal pools, how might that invisible trading eventually warp the accuracy of the public quote? If everyone is swimming in private pools, is the depth of the public pool truly representative of reality anymore? Man, that is a genuinely unsettling thought to carry forward. It suggests that the
$80 anchor we started this whole journey with might become even less reliable as the underlying plumbing continues to evolve in the dark. Yeah, something to think about. For sure. Thank you for joining us on this custom -tailored deep dive. Mastering these hidden mechanics is the ultimate shortcut to being a truly informed market participant. The next time you look at a stock and the screen says $80, you won't just see a price tag. You'll know exactly what is waiting for you beneath the surface.
Got something to say to this podcast? Send a voicemail, and you might hear yourself on the next episode! Most advisor misconduct does not start as a deliberate fraud - it drifts in through small compromises. This...
Got something to say to this podcast? Send a voicemail, and you might hear yourself on the next episode! Insider trading is not limited to chief executives in boardrooms. This episode explains how Canadian rules apply...
Got something to say to this podcast? Send a voicemail, and you might hear yourself on the next episode! If an investment dealer fails, your assets are not supposed to disappear with it. This episode explains how client...
Got something to say to this podcast? Send a voicemail, and you might hear yourself on the next episode! Deposit insurance protects your bank deposits if a member institution fails - but only up to clear limits. This...
Got something to say to this podcast? Send a voicemail, and you might hear yourself on the next episode! Suitability sits on two pillars: knowing the client and knowing the product. This episode covers the Know Your...