What Happens When You Tap “Buy”? How the Stock Market Works Behind Your App

Ever wonder what happens after you tap buy? Learn the hidden mechanics of stock exchanges, market hours, and the true cost of "commission-free" trading.

What Happens When You Tap “Buy”? How the Stock Market Works Behind Your App

Understanding how stock markets actually operate – not just that prices go up and down, but why and through what mechanism – changes how you read financial news, place trades, and respond to volatility. This hub covers the infrastructure: exchanges, market makers, liquidity, and the systems that maintain order when markets move violently.

The Exchange Infrastructure

A stock exchange provides the infrastructure for trading: listing standards that companies must meet, systems that match buy and sell orders, and rules governing pricing and disclosure. Exchanges don't set stock prices – they create the environment where prices emerge from supply and demand.

NYSE (New York Stock Exchange, founded 1792) is the world's largest exchange by market capitalization of listed companies. It lists approximately 2,800 companies and maintains a physical trading floor in lower Manhattan – though most transactions now route electronically. NYSE listings tend toward established, profitable businesses: Walmart, Coca-Cola, JPMorgan Chase, Disney.

NASDAQ (launched 1971) is fully electronic – no physical trading floor. It lists approximately 3,300 companies with a significant concentration in technology: Apple, Microsoft, Amazon, Tesla, Nvidia. NASDAQ's electronic infrastructure handles extremely high trading volumes with minimal latency, which suits fast-moving technology stocks.

OTC (Over-the-Counter) markets are where companies that don't meet NYSE or NASDAQ listing requirements trade. OTC stocks carry lower disclosure requirements, wider spreads, and meaningfully higher risk. Most investors are better off avoiding OTC-listed securities entirely.

You never interact directly with exchanges. Your broker routes orders automatically to the appropriate exchange or to a market maker. The exchange matches orders and executes trades – the entire sequence typically completes within a second.

Market Hours and the Importance of Trading Windows

U.S. stock markets operate from 9:30 AM to 4:00 PM Eastern Time, Monday through Friday, excluding federal holidays. Orders placed outside those hours queue for the next session if they're market orders, or can be placed as limit orders for extended hours trading.

Pre-market (4:00 AM to 9:30 AM ET) and after-hours (4:00 PM to 8:00 PM ET) trading exists at most major brokerages, but carries important caveats: volume is dramatically lower, bid-ask spreads widen substantially (a $0.04 spread during regular hours can become $0.50 at 7:00 AM), and prices can move sharply on minimal activity.

Gap risk: News released after hours – earnings reports, FDA decisions, management changes – causes stocks to open the following morning at a significantly different price than the previous close. Investors holding positions overnight experience the full gap without the ability to react during it. A market order placed at 9:00 PM accepts whatever price materializes at the 9:30 AM open, which may differ substantially from where the stock closed.

The volatility windows: The first and last 15 to 30 minutes of the regular session see the highest concentration of institutional order flow, widest spreads, and greatest slippage risk. Midday trading (roughly 10:00 AM to 3:30 PM ET) tends to be calmer, with more predictable fills on market orders for liquid stocks.

Market Makers: The Invisible Counterpart

When you tap "buy" on a liquid stock and the order fills within a second, a market maker is typically on the other side. Market makers are firms – Citadel Securities, Virtu Financial, and Jane Street are the largest – that continuously quote two prices for every stock they cover: the bid (they'll buy from you) and the ask (they'll sell to you). The ask is always higher than the bid.

Market makers ensure that investors can buy or sell at any moment during market hours without needing to find a matching counterpart in real time.

How they profit: The spread between bid and ask is the market maker's compensation. Apple with a $0.04 spread trading 50 million shares daily would represent roughly $2 million in total spread value available across all market participants if captured on every share – in practice, the amount realized by any single market maker is lower. Multiplied across thousands of stocks, major market-making operations generate billions annually.

Payment for order flow: Most retail brokers sell the right to execute retail orders to market makers – a practice called PFOF. The market maker captures the spread; the broker earns revenue without charging explicit commissions. "Commission-free" trading is subsidized by the implicit spread cost. On liquid large-cap stocks during regular hours, this arrangement works adequately – spreads are negligible and execution is fast.

Liquidity: The Variable That Determines True Trading Cost

Liquidity describes how quickly and easily you can convert an investment into cash at a price close to its quoted value.

Why it matters more than most investors realize: A stock "priced at $2.50" with a bid of $2.20 and an ask of $2.80 imposes a 24% round-trip cost before the price moves at all. An investor who buys at $2.80 and immediately tries to sell receives $2.20 – a 21% loss from the spread alone. The first number (24%) is the spread as a percentage of the mid-price; the second (21%) is the loss as a percentage of what you actually paid.

On Apple with a $0.04 spread on a $180 stock, the round-trip cost is approximately 0.02%. On a thinly traded stock with a $0.40 spread on an $8 stock, the round-trip cost is 5%. The difference is 250x – yet most investors treat both as essentially the same transaction.

Measuring liquidity:

Average daily trading volume tells you how many shares change hands per day. Stocks trading more than 1 million shares daily are generally liquid – your order is a small fraction of total activity. Stocks below 100,000 shares daily are thinly traded – your order may represent a significant fraction and can move the price against you.

Bid-ask spread as a percentage of the mid-price expresses the cost of immediate liquidity. Target stocks with spreads below 0.5% of price.

A practical screening filter: Before buying any stock, check daily average volume (minimum 1 million shares) and spread percentage (maximum 0.5%). Stocks failing either criterion impose transaction costs that make the investment harder to justify regardless of the fundamental story.

How Prices Form: Supply, Demand, and Continuous Auctions

Every stock has two prices at any moment: the bid (highest price a buyer will pay) and the ask (lowest price a seller will accept). The continuous auction between buyers and sellers produces the prices you see on financial platforms.

More buyers than sellers pushes prices up. More sellers than buyers pushes prices down. Every price represents the most recent transaction between a willing buyer and a willing seller – no institution sets stock prices unilaterally.

Short-term price movements reflect news, earnings reports, economic data, and sentiment shifts – most of which resolve quickly and tell you little about the underlying business's long-term value. Long-term price direction tracks actual earnings growth and business performance more reliably.

Bull and bear markets describe the broad directional trend over sustained periods. A bull market is a 20%-plus rise from a recent low, typically accompanied by economic growth and investor confidence. A bear market is a 20%-plus decline from a recent high, typically accompanied by economic contraction. Since 1950, bull markets have averaged four to five years; bear markets have averaged nine to twelve months.

Investors who stayed invested through both phases earned approximately 10% annually since 1950. Those who sold during bear markets and waited for more favorable conditions to re-enter historically earned 3 to 5 percentage points less annually (based on studies of investor timing behavior and S&P 500 returns since 1950) – a gap that compounds enormously over decades.

Short Selling: The Other Direction

Most investors buy stocks expecting prices to rise. Short sellers profit from declines. Understanding short selling explains market dynamics that affect stocks you hold, even if you never short a stock yourself.

The mechanics: you borrow shares, sell them immediately at the current price, and hold the cash. To close the position, you buy shares back and return them. If the price declined, you profit. If it rose, you absorb the loss – with no ceiling on potential loss.

Short squeezes: When a heavily shorted stock rises, short sellers must buy shares to limit losses. That buying increases demand, pushing the price higher, forcing more short sellers to cover, pushing prices higher still. GameStop in January 2021 ran from approximately $20 to $483 within three weeks as retail investors coordinated purchases against a heavily shorted position that exceeded 100% of float. Melvin Capital lost 53% of fund value in January 2021 alone and required a $2.75 billion emergency infusion.

High short interest (20% or more of float) signals both significant bearish positioning and – practically – potential squeeze risk if positive news emerges. Checking short interest on heavily shorted stocks you own provides useful context for interpreting unusual price spikes.

Circuit Breakers: When Markets Pause

Markets have built-in pause mechanisms for extreme volatility.

Market-wide circuit breakers trigger at three S&P 500 decline thresholds from the prior-day close: Level 1 at 7% (15-minute halt, active before 3:25 PM ET), Level 2 at 13% (another 15-minute halt), and Level 3 at 20% (closes markets for the day). Level 1 has triggered four times – all in March 2020. Levels 2 and 3 have never triggered.

Individual stock halts (LULD) occur when a stock moves more than 5% (stocks above $3) or 10% (stocks between $0.75 and $3) within a five-minute window. Trading pauses for 5 minutes while participants assess the move. These occur daily across numerous names and are routine – not cause for alarm.

The right response: Use any halt to read the news and assess what triggered the move before the market reopens. Limit orders provide more control than market orders when trading resumes after a halt. The S&P 500 bottomed on March 23, 2020, recovered all losses by August 2020, and hit new all-time highs by early 2021. Investors who sold into the March 2020 circuit breaker days locked in losses that a holding position would have recovered within five months.

Reading Market Data Accurately

Points vs. percentages: A "600-point Dow drop" at an index level of 42,000 is 1.43%. The same 600 points at 10,000 would be 6% – four times the impact. Always convert index point moves to percentages before assessing significance.

Daily moves vs. trends: The stock market closes higher in approximately 53% to 54% of individual trading sessions. Daily movements are noise. Signal emerges over weeks, months, and years.

Market cap vs. cash: A company's market capitalization is not its cash balance. A $50 billion market cap company may hold $800 million in actual cash. If business conditions deteriorate, the company can spend only what it holds.

Benchmarking correctly: If your portfolio is concentrated in technology, the NASDAQ Composite is a more relevant benchmark than the Dow. If you hold a diversified cross-section, the S&P 500 applies. Consistently trailing the relevant benchmark by a meaningful margin over several years is information worth acting on.

This content is for educational purposes only and does not constitute investment, legal, or tax advice. Investing in securities involves risk, including possible loss of principal. Always conduct your own research and consult a licensed financial professional before making investment decisions.

Free educational guide by BreakoutBulletin.com

Go deeper: 

The mechanics covered here - exchanges, market makers, liquidity, and circuit breakers - are the invisible infrastructure behind every trade you place. For a complete picture of the market including how it gets measured and what bull and bear phases mean, the full guide connects it all.

 

How the Stock Market Works → The complete guide: indices, market phases, and how to read market data  -  www.breakoutbulletin.com/article/how-the-stock-market-works

 

 How the Stock Market Actually Works → The path of a trade from app tap to settlement  -  www.breakoutbulletin.com/article/how-the-stock-market-works-for-teens-a-simple-guide-to-buying-and-selling-stocks

 

 The Role of Market Makers → Who fills your order when no matching seller is waiting  -  www.breakoutbulletin.com/article/market-makers-explained-bid-ask-spread-liquidity

 

 Understanding Liquidity → Why thinly traded stocks are far more expensive than they appear  -  www.breakoutbulletin.com/article/liquidity-explained-stock-market-for-beginners