CNBC and insider trading readers return the day before the upload date for an empty AdviceDate/FileDate
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
- 82/100
Hướng nghiên cứu
Kiểm tra các nhánh fallback trong QuiverCNBC.cs, QuiverCNBCsUniverse.cs, QuiverInsiderTrading.cs và QuiverInsiderTradingUniverse.cs, sau đó xem lại các bài kiểm thử có tên dành cho reader có ngày trống. Xác nhận rằng các giá trị AdviceDate và FileDate trống trả về ngày tải lên, trong khi ngày tường minh, Time và EndTime giữ nguyên hành vi hiện tại; các bài kiểm thử cần bao quát cả hai reader cho từng tập dữ liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
When the downloaders omit the date column because it equals the upload date, the readers' fallback returns the upload date minus one day instead of the upload date.
DataProcessing/QuiverCNBCDataDownloader.cs:114-118leavesAdviceDateempty when the advice date equals the upload date, with the comment "Reader falls back to uploadedDate in that case".DataProcessing/QuiverInsiderTradingDataDownloader.cs:119-123leavesFileDateempty when its calendar day equals the upload date, with the comment "Reader falls back to uploadedDate, preserving the day".- The readers return
uploadedDate.AddDays(-1)for an empty column:QuiverCNBC.cs,QuiverCNBCsUniverse.cs,QuiverInsiderTrading.cs,QuiverInsiderTradingUniverse.cs(after #22 and #19; onmasterthe offset is applied to the whole expression, with the same result for an empty column).
Reproduction
A CNBC row uploaded on 2026-05-08 with advice date 2026-05-08 is written as:
20260508,,0,Example Person,catalyst
Expected AdviceDate: 2026-05-08
Actual AdviceDate: 2026-05-07
The insider trading readers do the same for a filing on its upload day: FileDate comes back one day before it.
Required outcome
An empty AdviceDate / FileDate column reads back as the upload date the downloader omitted it for, in both readers of each dataset. Time / EndTime and explicit values stay as they are. Tests Reader_EmptyAdviceDateFallsBackToUploadedMinusOne, UniverseReader_EmptyAdviceDateFallsBackToDateMinusOne and the insider trading empty-FileDate tests assert the current shifted value and would change.
Suggestion: drop the .AddDays(-1) from the fallback branch once #22 and #19 are merged.
Priority is P2: the impact is a one-day error in a metadata field on rows whose date equals the upload day; evidence of algorithms relying on these fields would raise it.
- Ngôn ngữ chính
- C#
- Star
- 0
- Fork
- 3
- Merge trung bình
- 39 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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.DataSource.QuiverQuant
-
CNBC readers subtract a day from explicit AdviceDate valuesCó thể đã có người làm @quantconnect-kronos đã nhận hôm nay. Đang mởkronos:develop:working priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Insider trading readers subtract a day from explicit FileDate timestampsCó thể đã có người làm @quantconnect-kronos đã nhận 3 ngày trước. Đang mởpriority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
QuantConnect/Lean.DataSource.QuiverQuant#17 · 1 bình luận ·
-
priority:P2
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Tất cả issue của QuantConnect/Lean.DataSource.QuiverQuant
Issue tương tự
-
area:jobads-cv bug FE mvp P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
klasolsson81/jobbliggaren#2271 ·
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 74/100
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 64/100
resend/resend-dotnet#185 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug IronPython Python 3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pyrevitlabs/pyRevit#4184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
yusei36/KeePassPasskey#66 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày