1
Quick Start

How the stock market actually works in 60 seconds


Video walkthrough of how the stock market actually works coming soon


Most people picture the stock market as a physical place, a trading floor with people shouting orders. In reality, it's mostly a matching engine, software built to pair buyers and sellers at the best available price, with speed measured in millionths of a second.


Every price you see is the result of the most recent trade, the last agreed-upon point where a buyer and a seller both said yes. Prices move constantly because that agreement keeps getting renegotiated, thousands of times a second across thousands of stocks, whether or not anyone is watching that specific ticker at that exact moment.


Liquidity is the quiet force behind how smoothly any of this works. A stock with lots of active buyers and sellers trades close to a fair price with minimal friction. A stock with few participants can swing wildly on comparatively tiny amounts of volume, which is exactly where a routine trade can quietly turn into an expensive one.


This skill breaks down what's happening inside an exchange, how prices really form, and why liquidity matters more than most investors ever stop to consider, right up until they trade something thinly held.


A matching engine, not a trading floor


The stock market is mostly software matching buyers and sellers at the best available price. Every price is the last agreed trade. Liquidity determines how smoothly that matching happens.


Like a real-time matchmaking queue instead of a lobby full of shouting players: the system pairs you up instantly, and how many other players are online determines how smooth that pairing feels.


2
Deep Dive

What's happening inside an exchange


Every trade begins with an order, and even a simple market order sets a lot of hidden machinery in motion. The stock market feels abstract from the outside, mostly because the actual mechanics are invisible unless you go looking for them.



widget
Total global stock market value
$128T

the global stock market was worth $128 trillion as of early 2025

widget
Speed of a modern trade execution
<1ms

modern exchanges match buy and sell orders in under one millisecond

widget
S&P 500 investors over 10 years
94%

of 10-year S&P 500 holding periods have ended with a positive return


The order book: where buyers and sellers meet


An exchange maintains an order book for every listed stock, a running list of buy orders and sell orders at different prices, constantly updating as new interest arrives from every direction. Buyers post the price they're willing to pay. Sellers post the price they're willing to accept. When a buy order and a sell order match, a trade executes. The last traded price then updates immediately across every screen displaying that stock, whether anyone is watching it at that exact moment or not.


The SEC's own guidance on how stock markets work describes this matching process as continuous throughout the trading day. The order book constantly updates as new orders arrive and existing ones get filled or canceled.


Zoom out for a second. The whole market runs on four forces:



Why prices move even when you're not trading


A stock's price isn't a fixed number waiting for you to check it. It's the outcome of an ongoing negotiation happening continuously among every participant in the market, most of whom you'll never see or know about.


News, earnings, economic data, and shifting sentiment all pull that negotiation in different directions, sometimes within seconds. The price you see reflects the very last trade that happened, which might be milliseconds old by the time it reaches your screen.


The bid-ask spread: the cost of trading now


Every stock has two prices at once. The bid is the highest price a buyer will pay, and the ask is the lowest price a seller will accept. The small gap between them is the bid-ask spread, and crossing it is the real cost of trading right now.


On a heavily traded name that gap is often just a cent or two, barely noticeable. On a thinly traded stock it can be far wider, so you buy a little above fair value and sell a little below it. That spread is a cost you pay on every round trip, even when no visible commission is attached. It quietly adds up the more often you move in and out of a position.


Liquidity: the real MVP behind every trade


Liquidity describes how easily an asset can be bought or sold without meaningfully moving its price. A stock like Microsoft trades so heavily that a typical retail order barely registers against the massive daily volume, keeping the bid-ask spread tight and execution smooth.


A thinly traded small-cap stock behaves completely differently. Fewer participants means a single moderately sized order can move the price meaningfully. The gap between the best buy and sell price also widens, making every trade more expensive in practice, whether or not that cost ever shows up as an explicit fee.


Here's how all the pieces connect, from your tap to a live price:



Who provides that liquidity


Market makers play a central role, continuously posting buy and sell quotes and committing their own capital to keep markets moving even when natural buyers and sellers aren't matched at that exact moment. On some exchanges this is a formal, obligated job. The NYSE's designated market makers, for example, are required to keep quoting and help keep trading orderly in the stocks they cover. Even so, liquidity can dry up fast during periods of extreme stress. That is exactly when spreads widen most and execution quality suffers, often right when investors need it to hold up the most.


None of this machinery is visible from a typical trading app, and it's not meant to be. But the exchange, the order book, and the liquidity behind any given stock are exactly what separate a clean, predictable fill from a trade that quietly costs more than the screen ever suggested it would.


Key takeaways:


  1. The stock market is mostly a matching engine, continuously pairing buy and sell orders at the best available price.


  1. Every displayed price reflects the most recent trade, an agreement that keeps getting renegotiated constantly.


  1. Liquidity determines how smoothly a trade executes, and it can dry up fastest exactly when you need it most.


3
Use Case

The liquidity trap in a quiet order book


Bullma had always traded large, well-known stocks and ETFs, never giving liquidity a second thought. Orders filled instantly, close to the price she expected, every single time. It felt like a solved problem she didn't need to think about.


Then she got curious about a small, obscure company she'd read about, trading at a fraction of the daily volume of her usual holdings. She placed a market order for a modest amount, expecting the same smooth experience she always got.


The fill came back noticeably worse than the price she'd seen right before clicking. Her order alone had been large enough, relative to the stock's thin order book, to move the price against her. What felt like a rounding error on her usual trades became a real, measurable cost on this one.


Curious, she tried selling a portion the next day. The bid-ask spread was wide enough that she lost a noticeable chunk just crossing it, even though the stock's actual value hadn't meaningfully changed between the two trades.


Bullma didn't stop investing in smaller companies entirely. She just started checking average daily volume before placing any order, and switched to limit orders on anything outside her usual, heavily traded names. She treated liquidity as a real cost to plan around, instead of an invisible assumption she'd never tested.


Your three-step plan for trading with liquidity in mind


You don't need to avoid smaller stocks entirely to handle this well, and liquidity is easy to check once you know to look for it. What matters is treating it as a real factor, not an invisible assumption.


1. Check average daily volume before placing a sizable order. A stock trading a fraction of your usual holdings' volume deserves extra caution, regardless of how promising the underlying story sounds. Thin daily volume is the clearest warning sign to slow down and size carefully.


2. Use limit orders on anything outside heavily traded names. A limit order protects you from the exact slippage that thin liquidity is most likely to produce during a large or fast-moving trade. That risk is worst when nobody else is quoting a reasonable price on the other side of the book at that moment.


3. Check a stock's actual liquidity profile before assuming it trades exactly like the usual large-cap holdings you're already comfortable with. Use the Stoxcraft Screener to compare average volume and spread across different stocks before sizing any position.


The price is just the last agreement


"A quiet order book can turn a routine trade into an expensive lesson."

— Stoxcraft


"Every individual is led by an invisible hand to promote an end which was no part of his intention."

— Adam Smith


Ready to see if you'd have spotted the liquidity trap Bullma missed? Test what you just learned.

question
Skill Check
Test what you just learned
A couple of quick questions to lock in what you covered here, then straight on to the next skill.
1 of 3 questions
What is the order book in a stock exchange?
Stylized low-poly bull character wearing a graduation cap and holding a glowing certificate, celebrating skill completion in the Stoxcraft Academy.