CNBC and insider trading readers return the day before the upload date for an empty AdviceDate/FileDate

Đang mở Phù hợp với người mới
#23 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
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
Lĩnh vực
data

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ả

priority:P2

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-118 leaves AdviceDate empty when the advice date equals the upload date, with the comment "Reader falls back to uploadedDate in that case".
  • DataProcessing/QuiverInsiderTradingDataDownloader.cs:119-123 leaves FileDate empty 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; on master the 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của QuantConnect/Lean.DataSource.QuiverQuant

Tất cả issue của QuantConnect/Lean.DataSource.QuiverQuant

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.