Skip to content

MeatPy Logo

MeatPy

MeatPy is a Python framework for processing financial market data, specifically designed for limit order book reconstruction and analysis. It provides efficient tools for handling high-frequency trading data formats like NASDAQ ITCH.

Key Features

  • Limit Order Book Processing: Complete reconstruction and analysis of limit order books
  • ITCH Support: Full implementation for NASDAQ ITCH 4.1 and 5.0 formats
  • Event-Driven Architecture: Extensible framework for real-time market data processing
  • Type Safety: Modern Python typing for robust financial data handling
  • Multiple Output Formats: Support for CSV, Parquet, and custom formats

Who is it for?

MeatPy was originally developed for academic research in high-frequency trading. It is also suitable for backtesting trading strategies and learning about market microstructure. The framework is designed to be flexible and extensible, making it a good fit for both researchers and developers working with other limit order book data formats.

What is it not for?

MeatPy is not a trading platform or a high-frequency trading engine. Instead, it focuses on the processing and analysis of historical market data. Also, it is not intended for use in production systems without further development and testing. In any case, you probably would not want to use it for real-time application as it is not fast enough for that purpose.

Architecture Overview

MeatPy is built around several core components:

  • MarketProcessor: Abstract base class for processing market messages
  • LimitOrderBook: Core data structure representing the order book state
  • MessageReader: Interface for reading different market data formats
  • Event Handlers: Observer pattern for handling market events and recording data

What's Next?

Academic Papers using MeatPy

Credits

MeatPy was created by Vincent Grégoire and Charles Martineau. Seoin Kim and Javad YaAli provided valuable research assistance on the project.

Funding

MeatPy development benefited from the financial support of IVADO