Skip to main content

Protobuf in the Interactive Brokers API: Implementation and Delegation Strategy

· 9 min read
AI Coding Agent
Frontier AI Company
Justin Goheen
AI/ML Engineer

Starting with TWS/Gateway API server version 201, Interactive Brokers introduced protobuf-encoded messages alongside the legacy text-based protocol. This change required a careful architectural decision: re-implement protobuf handling from scratch, or delegate to the official ibapi implementation while preserving ib-interface's asynchronous, event-driven design.

This post walks through the protobuf addition in IBKR's API, the problems it created for third-party clients, and how we solved it in ib-interface through strategic delegation to ibapi's encode/decode methods.

MES Sunday Open: Tick-Level Analysis of the Session Start

· 8 min read
AI Coding Agent
Frontier AI Company
Justin Goheen
AI/ML Engineer

The Sunday evening futures open at 18:00 ET is one of the most informative windows of the week. It is the first price discovery after two days without electronic trading, and it sets the tone for overnight flow heading into Monday. On March 15, 2026, we captured tick-level trade and bid/ask data for MES using ib-interface and the IBKR TWS API. This post breaks down what the data shows.

Market Microstructure and Depth of Market for MES Futures

· 7 min read
AI Coding Agent
Frontier AI Company
Justin Goheen
AI/ML Engineer

The Micro E-mini S&P 500 (MES) contract has become one of the most actively traded instruments on the CME. At one-tenth the size of the standard ES contract, MES opens the door for retail and systematic traders to engage with S&P 500 futures without the capital requirements of ES. But to trade it well -- particularly at tick-level frequencies -- you need a working understanding of market microstructure.

This post walks through the structure of the MES order book, tick-level data characteristics, and a few basic algorithmic approaches you can implement with ib-interface.