The two markets
There's a primary market where companies first issue shares (IPOs and direct listings) and a secondary market where those shares trade among investors. When people say 'the stock market', they almost always mean the secondary market.
Major exchanges
The vast majority of US trading happens on two venues.
- →NYSE — New York Stock Exchange. Mostly older industrial names plus large-caps.
- →Nasdaq — primarily technology and biotech.
- →BATS / IEX — alternative venues that compete on routing and fairness.
- →Internationally: LSE (London), Euronext (EU), TSE (Tokyo), HKEX (Hong Kong).
How prices form
Each stock has a continuously updated bid (highest buyer) and ask (lowest seller). When they match, a trade happens. Market makers and high-frequency firms fill the gap by quoting both sides; their profit is the spread.