The order book explained: depth, spread, and liquidity

If you plan to place more than a couple of orders in your investing life, learning to read an order book pays off fast. It's the tool that shows you, in real time, who wants to buy what at which price and who wants to sell what at which price. What looks like a list of numbers is actually the most honest photograph of supply and demand for a security you'll ever see.

What is an order book?

The order book (sometimes called "DOM" for Depth of Market) is the live list of every buy and sell intent on a security, sorted by price. On the Casablanca Stock Exchange it's laid out as two columns:

  • Left: buyers ("bids"), highest price at the top, lowest at the bottom. These are the investors who want to buy at a maximum given price.
  • Right: sellers ("asks"), lowest price at the top, highest at the bottom. These are the investors who want to sell at a minimum given price.

At each price level the book also shows how much quantity is bid for or offered (sometimes per individual order, sometimes aggregated).

How do trades happen?

A trade fires when the best bid meets the best ask. Three cases:

  1. Neither side moves: the best buyer offers 199.50 MAD, the best seller asks 200 MAD. The 0.50 MAD gap is the spread. No trade until someone moves.
  2. A buyer lifts the offer: a new buyer arrives and offers 200 MAD (the seller's ask). Quantity gets matched with the seller. The stock just printed at 200 MAD.
  3. A seller hits the bid: a new seller arrives and offers 199.50 MAD (the buyer's bid). The trade fires at 199.50 MAD.

That's it. Everything else — charts, indicators, news — is interpretation around this base mechanism.

The spread: the hidden cost of buying immediately

The spread is the gap between the best bid and the best ask. It's the premium that market orders pay for "immediacy".

  • Tight spread (a few cents on a liquid name): you buy at a price very close to fair value.
  • Wide spread (several percent on a thinly-traded one): buying at market and selling straight back loses you the spread.

*Rule of thumb: if you see a spread > 1% on a stock, default to a limit order (mid-spread or more conservative) rather than a market order.*

Depth: how much your orders can absorb

The book shows quantity at each price level. That's called depth.

  • "Thick" book: lots of quantity at every level. Even big orders fill without moving the price.
  • "Thin" book: little quantity, common on small caps or in off-hours. A single chunky order can "eat" several levels and end up 1-2% higher (buying) or lower (selling) than the last quoted price.

Putting it to work

Placing a smart limit order

Before submitting, look at the book:

If you want to buy and the best ask is 200 MAD, a 199.50 MAD limit waits for a dip. On a hot name, you risk never filling. A 200 MAD limit (at the best ask) puts you at the front of the buy queue — often the right call on a liquid stock. A 200.50 MAD limit means you accept eating a little depth — fills instantly if there's enough on offer at 200 MAD.

Sizing up liquidity before investing

Before buying a meaningful amount, check the book is thick enough to absorb a SELL of the same size one day. If your buy represents several days of average volume, beware: getting out will take time and bleed through the spread.

Spotting a move

When a wall of buyers or sellers parks itself at a specific level, there's often a message — a big institutional buyer, or a nervous seller. Outsize orders sitting in the book are an advance signal pros watch.

Going further

How to invest on the Casablanca Stock Exchange — beginner guide. Limit vs market orders: which to use? Brokerage fees on the Casablanca exchange. Full financial glossary