How the NASDAQ Stock Exchange Works
If you’ve ever listened to the financial reports on the news or personally traded stocks, you know that there are places called stock exchanges. For example, you’ve probably heard of the NASDAQ stock exchange, also known simply as the NASDAQ, which stands for National Association of Securities Dealers Automated Quotations System. It’s the place where people go to buy and sell shares of stock.
But have you ever wondered how a stock exchange actually works? It uses remarkable and highly reliable computer systems to handle the exchange of stocks between buyers and sellers, and to set opening and closing prices. In this article, we’ll take a high-level view of the different services and techniques that the NASDAQ stock market uses for those transactions. For starters, where do all of these stock shares come from? The shares of stocks being bought and sold belong to the companies listed on the NASDAQ exchange. To take a step back: if a company wants to go public, it chooses the exchange where it will be listed — that is, where it will sell its shares. Several thousand companies have chosen NASDAQ.
But if you look at the NASDAQ MarketSite Tower from 20,000 feet, you realize that the apparently simple act of providing a stock exchange actually has three separate components:
- The interface — The place where broker dealers and market makers gain access to the system.
- The matching engine — A computer that connects buyers and sellers when their prices match.
- Quote services — Data feeding the buy and sell price quotes that NASDAQ provides.
There are many other services provided inside the exchange, of course, including MarketSite broadcasting, record keeping, and backup services. But the three services described above are the most important. Let’s look at each of them in detail.
Quote Services, Interfaces and Matching Engines
Buyers and sellers electronically enter their trades with their broker dealers, and those trades come into the NASDAQ system through hundreds of computers (one computer for each broker dealer).
The trades then make their way to the matching engine, which, on the NASDAQ exchange, is a single, highly reliable computer. It’s where the actual trading takes place.
Here’s a simple way to conceive of the matching engine. Imagine there’s a company listed on the NASDAQ exchange — call it the ABC company. Inside the matching engine, there’s a place to hold all of the pending trades for ABC. Let’s say three people want to sell their shares of stock in the ABC company. They place their orders as follows:
|
Customer 1: sell 50 shares for $15.40 Customer 2: sell 200 shares for $15.25 Customer 3: sell 100 shares for $15.20 |
Now imagine that there are four people who want to buy shares of the ABC company. The list looks like this:
|
Customer A: buy 100 shares for $15.15 Customer B: buy 200 shares for $15.10 Customer C: buy 150 shares for $15.00 Customer D: buy 75 shares for $14.95 |
Right now there are no matches. The lowest price on the sell side is $15.20, and the highest price on the buy side is $15.15. The difference between the lowest selling price and the highest buying price is called the spread. In a widely traded stock, it’s usually only a penny or two. In a low-volume stock, the spread can grow much larger. Because of the spread here, these trades are going to sit in these lists waiting for a match to come along.
Now let’s imagine that Customer A sends in a new sell order. He wants to buy 50 shares for $15.25. Instead, he’ll get the stock for $15.20 from Customer 3, because that’s the lowest price available in the list of sellers. The 100 shares available at the $15.20 sale price will be split — 50 shares will remain in the list, while the other 50 will complete the transaction. Customer 3 is happy because he got the price he wanted, and Customer A is happy because he got a small discount.
The matching engine is doing this kind of thing across thousands of listed stocks, and millions of matches are handled by the matching engine every day. Once the match is made, information about the completed transaction flows out of the matching engine and goes back to the broker dealers of the buyer and seller. Information also flows to the quote servers so that anyone who’s interested can see what happened.
This is a highly simplified explanation, of course, In reality, because of the number of people trading, the system takes thousands of computers and brokers to implement, and the process gets very complicated very quickly.
Information obtained from howstuffworks.com
Check out the website for a short 3 minute video on the inside scoop of the NASDQ works.
Check out my next posting to find out How The FED Works.

December 31st, 2007 at 1:27 pm
I enjoy reading your stuff
December 31st, 2007 at 2:52 pm
Interesting stuff, thanks for creating this site
January 31st, 2008 at 1:32 pm
I found your blog via Google while searching for stock trades and your post regarding How the NASDAQ Stock Exchange Works looks very interesting to me. I just wanted to say that the quality of your site is exceptional. On top of all that it really complements the content that is provided by your site.
February 14th, 2008 at 11:41 pm
I found your blog via Google while searching for real time stock quotes and your post regarding How the NASDAQ Stock Exchange Works looks very interesting to me. I just wanted to say that the quality of your site is exceptional. On top of all that it really complements the content that is provided by your site.
March 31st, 2008 at 5:06 am
I couldn’t understand some parts of this article How the NASDAQ Stock Exchange Works, but I guess I just need to check some more resources regarding this, because it sounds interesting.