Skip to content
All library documents

How a Limit Order Book Is Built from ITCH Messages

Article Quant Q&A · Author: Debarya Dutta

Summary

The document distinguishes a limit order book from a general order book and explains the main steps involved in reconstructing one from Nasdaq ITCH data. A limit order book aggregates resting buy and sell interest by price, so building it from raw feed data requires interpreting the message stream and applying each order event to the book state. The answer identifies parsing the ITCH messages and constructing the resulting book as separate technical challenges.

The discussion notes that an R package called orderbook was associated with NYSE TAQ data, which is a different data source from ITCH. It points readers toward a Nasdaq book data service as a possible resource. The answer is brief and does not provide implementation details, a data schema, or performance measurements; it emphasizes that a performant reconstruction system can be substantial work.

Key ideas

  • A limit order book represents aggregated latent buy and sell demand at different prices.
  • Reconstructing a book from ITCH requires parsing raw messages and updating the book state.
  • A package designed for NYSE TAQ data may not be suitable for Nasdaq ITCH reconstruction.
  • Efficient order book construction can be a substantial engineering task.

Tags

Full text
# Order book Limit Order book


# Order book Limit Order book












I am trying to make a Limit Order book from an ITCH file using r. what is the basic difference between orderbook and limit orderbook? R has a package for orderbook I think

## Answer by Geneidy (score 1)

https://quant.stackexchange.com/a/16823

If memory serves correctly, the cran package "orderbook" was for NYSE's TAQ (Transactions and Quotes) database.

the limit order book is the aggregation of latent demand in the market. For you to construct the limit order book you face a few (!) challenges. 1) Parsing itch raw messages (casting in the case of version 5.0) and 2) constructing the actual book. This is a substantial challenge if you seek a performant system.

To my knowledge, if you seek to analyze the nasdaq book in a cost effective manner from R, check out Lobster (https://lobster.wiwi.hu-berlin.de/)

Have a blast!

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.