[Interactive Brokers] Unrepresentable fractional trade sizes log at WARN once per tick (99.7% of session log)

Author: Artur-SulejCreated Sep 8, 2026Updated Sep 29, 2026

Bug Report

Confirmation

  • I've re-read the relevant sections of the documentation.
  • I've searched existing issues and discussions to avoid duplicates.
  • I've reviewed or skimmed the source code (or examples) to confirm the behavior is not by design.
  • I've tested this issue using a recent pre-release or development wheel (2.0.0rcN, dev develop, or a nightly) and can still reproduce it.

Tested on 2.0.0rc4. The relevant code is identical on develop HEAD, at the same line numbers.

Expected behavior

Dropping an IB trade print whose size cannot be represented at the instrument's size precision is expected and intended behavior. It was introduced deliberately in #4022, which fixed #3951, and that PR logs the drop at debug level in the Python market data path:

"Adds a shared quantity conversion helper for IB market data paths, so invalid sizes are debug-logged and skipped before constructing Nautilus QuoteTick or TradeTick objects."

The v2 Rust adapter should treat the same condition the same way. This is a common, expected condition on US equities: FINRA-reported odd lots and fractional share fills appear continuously in the consolidated tape.

Actual behavior

The v2 Rust adapter logs every dropped print at WARN, once per tick.

In a single regular trading session on five US equities (AAPL, NVDA, TSLA, AMD, SNDK), this produced:

1,603,188 WARN lines out of 1,607,952 total  (99.7% of the log)
284 MB session log

Every line has the same shape:

2026-09-04T13:29:33.838997000Z [WARN] ORB-001.nautilus_interactive_brokers::data::core::streams:
Failed to parse trade tick: quantity size=0.63462 cannot be represented with precision=0

The wording is also misleading. "Failed to parse trade tick" reads like a decode failure, when the condition is a deliberate, sanctioned drop of a print that carries no actionable size for a whole-share instrument.

At this volume the log is effectively unusable for diagnosing anything else, and the disk cost is non-trivial for an unattended session.

Steps to reproduce

  1. Subscribe to tick-by-tick AllLast trades for any liquid US equity with size_precision=0 (AAPL, NVDA, TSLA).
  2. Hold the subscription through a regular trading session.
  3. Every FINRA odd lot or fractional share print produces one WARN line.

Code snippets or logs

crates/adapters/interactive_brokers/src/data/core_streams.rs (v2.0.0rc4 and develop HEAD, same lines):

rust
// line 1273, trade path
Err(e) => tracing::warn!("Failed to parse trade tick: {:?}", e),

// line 1053, quote path
Err(e) => tracing::warn!("Failed to parse quote tick: {:?}", e),

The error originates in crates/adapters/interactive_brokers/src/data/parse.rs, where checked_quantity(size, size_precision) rejects the sub-increment size.

Suggested fix

Log this specific condition at debug!, matching the level chosen in #4022 for the equivalent Python path, and reword it so it does not read as a parse failure. For example:

Dropping trade print for {instrument_id}: size={size} not representable at size_precision={precision}

Genuine parse failures, which are not expected during normal operation, should keep warn!. That distinction is what makes the current single log site problematic: it collapses an expected, high-frequency condition and a real error into the same level.

If a per-tick log line is wanted at all, a periodic aggregate ("dropped N unrepresentable prints for X in the last minute") would preserve the signal without the volume. I am happy to open a PR.

Specifications

  • OS platform: macOS-26.6.2-arm64-arm-64bit-Mach-O
  • Python version: 3.13.15
  • nautilus_trader version: 2.0.0rc4
  • Installed from: PyPI wheel
  • Adapter/venue: Interactive Brokers (TWS paper, API v178)

Source: nautechsystems/nautilus_trader