Merged
Conversation
This commit addresses critical issues in the ITCH 4.1 message parsing and processing logic by aligning the implementation with the correct ITCH 4.1 specification. Key fixes: - Fixed message struct formats to match ITCH 4.1 binary layout (removed stock_locate and tracking_number fields that belong to ITCH 5.0) - Corrected timestamp handling to use embedded 4-byte seconds since midnight format instead of split high/low format - Updated order reference fields to use 8-byte format (Q) instead of 4-byte format (I) as per ITCH 4.1 spec - Fixed all message classes: SystemEventMessage, StockDirectoryMessage, AddOrderMessage, OrderExecutedMessage, TradeMessage, etc. - Updated all tests to match corrected message formats and removed references to ITCH 5.0-specific fields - All 41 ITCH 4.1 tests now pass (15 message tests + 16 processor tests + 10 reader tests) The changes ensure the ITCH 4.1 implementation correctly parses real market data files by using the proper binary message structures as defined in the ITCH 4.1 specification. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit addresses critical issues in the ITCH 4.1 message parsing and processing logic by aligning the implementation with the correct ITCH 4.1 specification. Key fixes: - Fixed message struct formats to match ITCH 4.1 binary layout (removed stock_locate and tracking_number fields that belong to ITCH 5.0) - Corrected timestamp handling to use embedded 4-byte seconds since midnight format instead of split high/low format - Updated order reference fields to use 8-byte format (Q) instead of 4-byte format (I) as per ITCH 4.1 spec - Fixed all message classes: SystemEventMessage, StockDirectoryMessage, AddOrderMessage, OrderExecutedMessage, TradeMessage, etc. - Updated all tests to match corrected message formats and removed references to ITCH 5.0-specific fields - All 41 ITCH 4.1 tests now pass (15 message tests + 16 processor tests + 10 reader tests) The changes ensure the ITCH 4.1 implementation correctly parses real market data files by using the proper binary message structures as defined in the ITCH 4.1 specification. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Rename methods to match ITCH50Writer conventions - write_message() -> process_message() - _flush_buffer() -> _write_messages() - finalize() -> close() - Add order tracking logic for messages without stock field - Track order references from Add Order messages - Only include execution/cancel/delete messages for tracked orders - Maintain matches set for trade-related messages - System and Timestamp messages always written regardless of symbol filter - Update sample code to use new process_message() method 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
src/meatpy/itch41/):samples/itch41/):tests/test_itch41_*.py):Test plan
🤖 Generated with Claude Code