-
-
Notifications
You must be signed in to change notification settings - Fork 11
v3.1.8: Fix real-time data for E-mini contracts and low-volume periods #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updated GEMINI.md to align with the latest project standards and provide more comprehensive guidance for the Gemini model. Cleaned up and improved the module-level docstrings for the following components: - client - realtime - realtime_data_manager - position_manager The updates include: - Recommending the high-level `TradingSuite` where appropriate. - Modernizing code examples to reflect current best practices (e.g., using EventBus). - Improving clarity and removing outdated information.
…riods (v3.1.8) ## Fixed - Real-time data not being processed for E-mini contracts (NQ/ES) that resolve to different exchange symbols - Symbol matching now properly handles contract resolution (e.g., NQ→ENQ, ES→EP) - Stores both user-specified instrument and resolved symbol ID for accurate matching ## Added - Bar timer mechanism that creates empty bars during low-volume periods - Ensures consistent bar generation at regular intervals regardless of trading activity - Empty bars (volume=0) maintain price continuity using the last close price - Particularly important for low-volume contracts and after-hours trading ## Technical Details - RealtimeDataManager now tracks `instrument_symbol_id` alongside `instrument` - Symbol validation checks both original and resolved symbols - Bar timer runs periodically based on shortest configured timeframe - Empty bars are distinguishable by volume=0 This fixes issues where NQ and other E-mini contracts were not updating in real-time. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
Claude finished @TexasCoding's task —— View job PR Review Completed ✅Overall Assessment: This is a well-implemented fix for critical real-time data issues. The changes are targeted, well-documented, and maintain backward compatibility. ✅ StrengthsCore Fixes Are Sound
Code Quality
Testing & Documentation
|
|
There is a problem with the Gemini CLI PR review. Please check the action logs for details. |
- Fixed unit conversion in bar timer (units are numeric, not strings) - Removed unrelated Gemini workflow files from this PR - Units: 1=seconds, 2=minutes, 4=days, 5=weeks
|
Claude finished @TexasCoding's task —— View job PR Code Review: v3.1.8 - Fix real-time data for E-mini contracts and low-volume periodsReview SummaryI've conducted a comprehensive analysis of this PR which addresses critical real-time data processing issues for E-mini futures contracts and adds automatic bar generation during low-volume periods. Overall, this is a well-implemented fix that solves real user problems while maintaining backward compatibility. ✅ Strengths & Positive AspectsCore Fixes Are Sound
Code Quality & Architecture
User Experience Improvements
|
- Improved unit conversion with clearer mapping dictionary - Added error handling for _calculate_bar_time() failures - Added comment that single-row DataFrame creation is efficient - Store asyncio task reference to avoid warning - Don't re-raise exceptions in bar timer to maintain continuity
|
Claude finished @TexasCoding's task —— View job PR Code Review: v3.1.8 - Real-time Data FixesReview SummaryI've conducted a comprehensive analysis of this PR which addresses critical real-time data processing issues for E-mini futures contracts and adds automatic bar generation during low-volume periods. Overall, this is a well-implemented fix that solves real user problems while maintaining backward compatibility. ✅ Strengths & Positive AspectsCore Fixes Are Sound
Code Quality & Architecture
User Experience Improvements
|
- Changed from ES to MNQ in example file - MNQ provides more consistent real-time updates than ES or NQ - Improved comments explaining instrument selection
|
Claude finished @TexasCoding's task —— View job PR Code Review: v3.1.8 - Real-time Data FixesReview Summary ✅ READY FOR MERGEI've completed a comprehensive analysis of this PR which addresses critical real-time data processing issues for E-mini futures contracts and adds automatic bar generation during low-volume periods. Overall, this is a well-implemented fix that solves real user problems while maintaining backward compatibility. ✅ Strengths & Positive AspectsCore Fixes Are Sound
Code Quality & Architecture
User Experience Improvements
|
- Comprehensive release notes with bug fixes and improvements - Migration guide and example usage - Technical details for developers
|
Claude finished @TexasCoding's task —— View job PR Code Review: v3.1.8 - Real-time Data FixesReview SummaryI've conducted a comprehensive analysis of this PR which addresses critical real-time data processing issues for E-mini futures contracts and adds automatic bar generation during low-volume periods. Overall, this is a well-implemented fix that solves real user problems while maintaining backward compatibility. ✅ Strengths & Positive AspectsCore Fixes Are Sound
Code Quality & Architecture
User Experience Improvements
|
Summary
This PR fixes critical issues with real-time data processing for E-mini futures contracts (NQ/ES) and adds automatic bar generation during low-volume periods.
Problems Solved
1. E-mini Contracts Not Updating
2. No Bars During Low Volume
Changes Made
Core Fixes
instrument_symbol_idtracking in RealtimeDataManagerFiles Modified
src/project_x_py/realtime_data_manager/core.py- Added bar timer and symbol ID trackingsrc/project_x_py/realtime_data_manager/validation.py- Enhanced symbol matching logicexamples/realtime_data_manager/01_events_with_on.py- Updated exampleTesting
Version
Bumped to v3.1.8
Breaking Changes
None - fully backward compatible
🤖 Generated with Claude Code