You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Real-time data processing for E-mini contracts and low-volume periods (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]>
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[project]
2
2
name = "project-x-py"
3
-
version = "3.1.7"
3
+
version = "3.1.8"
4
4
description = "High-performance Python SDK for futures trading with real-time WebSocket data, technical indicators, order management, and market depth analysis"
0 commit comments