Order book – Mangrove

GlossaryMarkets and execution

Order book

Definition: An order book is an exchange's list of the unfilled buy and sell limit orders for an asset, arranged by price.

A limit order sets the worst price a trader will accept, and one that cannot be filled at once waits, or rests, in the book. Kraken, a cryptocurrency exchange, describes the order book as “a list of unfilled buy and sell limit orders” that an exchange uses “to fill market orders at the best available price” (Kraken glossary). Buy orders, called bids, form one side, and sell orders, called asks, form the other. The gap between the highest bid and the lowest ask is the bid-ask spread, a separate entry. The glossary of the Commodity Futures Trading Commission (CFTC), the US regulator of commodity derivatives such as futures, says that in an order book, bids and offers are matched “exclusively based on their price and/or the time that they arrived at the market” (CFTC glossary).

Depth is how much is waiting at each price. Kraken defines the bid depth at a given price as “the cumulative volume of current buy orders on the book at that price or higher”, and the ask depth in the same way for sell orders at that price or lower. A market order fills against resting orders, starting at the best price. For example, if the book shows sell orders for 100 units at $10.00 and 200 units at $10.05, a market order to buy 250 units would fill 100 units at $10.00 and 150 units at $10.05, an average price of $10.03.

Kraken’s application programming interface (API) offers the book at three levels of detail: Level 1, the best bid and offer; Level 2, “individual price levels with aggregated order quantities at each level”; and Level 3, “individual orders in the book with order IDs and timestamps” (Kraken API documentation). Not every market has an order book. Uniswap, a decentralized exchange, says that “instead of relying on order books” it is an automated market maker, a separate entry (Uniswap overview).

In the 1870s the New York Stock Exchange moved to continuous trading, and the specialist began to emerge. From a post on the trading floor, the specialist made a market in a stock for the specialist’s own account and kept a “limit order book” showing how much stock investors were willing to buy or sell at each price (Securities and Exchange Commission Historical Society). In a November 1993 working paper for New York University’s Stern School of Business, Allan Grody and Hugues Levecq describe Instinet, launched in 1969 for trading between brokers and institutions, as filling orders by “strict time and price priority within a consolidated limit order book”, meaning the best price first and, at the same price, the earliest order first. They also write that pilots the Toronto Stock Exchange began in the early 1970s led to its Computer-Assisted Trading System (CATS), “the first exchange-based central limit order file system” (Grody and Levecq).