Market hours: no late open after CME full-day holidays (2019-12-25, 2020-01-01, 2022-12-26, 2023-01-02), so the 18:00 ET reopening session is dropped
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp, json
- Lĩnh vực
- data, fintech-quant
Hướng nghiên cứu
Bắt đầu tại Data/market-hours/market-hours-database.json, xác định các mục Future-cme-NQ và Future-cme-MNQ, sau đó tìm các root CME khác dùng chung các ngày lễ này; so sánh chúng với mục lateOpens ngày 2025-01-20. Đọc cách MarketHoursDatabaseJsonConverter hợp nhất holidays và lateOpens để các mục mở cửa lại lúc 18:00 New York / 17:00 Chicago mới được chấp nhận. Hoàn tất nghĩa là bốn ngày không còn là ClosedAllDay và history probe của issue trả về các bar 18:00-24:00 ET.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Expected Behavior
On a CME Group full-day holiday after which Globex reopens at 17:00 CT (18:00 ET) for the next trade date, the market-hours database should give the futures entries a late open at that time, as Future-cme-MNQ and Future-cme-NQ already do for 1/20/2025 (lateOpens 18:00, New York). LEAN then serves the reopening session the store holds.
Actual Behavior
Future-cme-[*] lists these dates under holidays, and Future-cme-NQ / Future-cme-MNQ carry no early close or late open on them, so MarketHoursDatabaseJsonConverter adds each one to the entry's holidays and the whole exchange day resolves ClosedAllDay. History and the data feed then drop the 18:00-24:00 ET reopening session, although the store has it (dataTimeZone: UTC; the bars are 23:00 UTC onward in the holiday's own file and 00:00-05:00 UTC in the next day's file):
| date | future/cme/minute/nq/<date>_trade.zip |
session in the file |
|---|---|---|
| 2019-12-25 | 60 bars | from 23:00 UTC (18:00 ET) |
| 2020-01-01 | 70 bars | from 23:00 UTC |
| 2022-12-26 | 63 bars | from 23:00 UTC |
| 2023-01-02 | 64 bars | from 23:00 UTC |
future/cme/minute/mnq/20230102_trade.zip is the same (60 bars from 23:00 UTC). A member reported that a minute request for MNQ over 2023-01-02 18:00-24:00 ET returns no bars while 2023-01-03 00:00 ET onward returns data, and that the exchange hours show 2023-01-02 closed.
Checked on Data/market-hours/market-hours-database.json at master adac927f6 for NQ and MNQ only; other CME Group roots with a Globex reopening on these dates are likely affected the same way.
Potential Solution
Add lateOpens entries for the reopening on these dates (18:00 for the New York entries, 17:00 for the Chicago ones) on the affected futures entries, so the converter treats them as trading days for the evening session while expiry rules still skip them as bank holidays.
Reproducing the Problem
from AlgorithmImports import *
class LateOpenProbe(QCAlgorithm):
def initialize(self):
self.set_start_date(2023, 1, 3)
self.set_end_date(2023, 1, 3)
future = self.add_future(Futures.Indices.MICRO_NASDAQ_100_E_MINI, Resolution.MINUTE, extended_market_hours=True, fill_forward=False)
history = self.history(future.symbol, datetime(2023, 1, 2, 18), datetime(2023, 1, 3, 0, 15), Resolution.MINUTE)
self.log(f"bars 2023-01-02 18:00 to 2023-01-03 00:15 ET: {len(history)}")
hours = future.exchange.hours
self.log(f"2023-01-02 open: {hours.is_date_open(datetime(2023, 1, 2), True)}")
System Information
LEAN master adac927f6.
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- Ngôn ngữ chính
- C#
- Star
- 22.6k
- Fork
- 5.4k
- Merge trung bình
- 11 giờ 27 phút
- Pull request đã merge (30 ngày)
- 106
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của QuantConnect/Lean
-
priority:p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
QuantConnect/Lean#10216 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantConnect/Lean#10206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
QuantConnect/Lean#10199 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
QuantConnect/Lean#10198 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
QuantConnect/Lean#10197 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của QuantConnect/Lean
Issue tương tự
-
area-Tools-ILLink untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
dotnet/runtime#138255 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 2 ngày
-
area-fundamentals bug untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
dotnet/extensions#7979 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
[Core] IPlatformServices.PrefersDarkTheme: the desktop's theme as the signed-in user sees itĐang mởarea: core bug help wanted ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ZaidX88/sluice#265 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày