Insider trading readers subtract a day from explicit FileDate timestamps

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

@quantconnect-kronos đang làm issue này rồi.

Từ ngày 17/11/2026.

  • #19 của @quantconnect-kronos — đang mở

Đá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
90/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

Bắt đầu với các biểu thức phân tích trong QuiverInsiderTrading.cs và QuiverInsiderTradingUniverse.cs, sau đó kiểm tra quá trình tuần tự hóa của downloader được đề cập trong issue. Thêm kiểm thử hồi quy cho cả hai reader bằng các hàng được cung cấp; cập nhật assertion hiện có về định dạng gọn. Công việc hoàn tất khi các dấu thời gian FileDate được cung cấp rõ ràng được giữ nguyên trong cả hai reader và các kiểm thử chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

kronos:skip priority:P2

Problem

QuiverInsiderTrading.Reader and QuiverInsiderTradingUniverse.Reader subtract one day from FileDate even when the CSV explicitly supplies the filing timestamp. This makes the reported filing time one day earlier than the stored value, affecting filters and intervals based on FileDate.

This is present on master at b9f250fc550bf963b71a0b0050000f17d23f0c0b; it is independent of legacy column-count handling.

Synthetic reproduction

With a read date of 2026-05-08, parse these current-layout rows using the corresponding readers:

20260508,20260507093000,20260507,P,150.25,100,500,A,D,Example Person,CEO,T,T,F,
AAPL R735QTJ8XC9X,AAPL,20260507093000,20260507,P,150.25,100,500,A,D,Example Person,CEO,T,T,F,

For the per-ticker reader, use an AAPL SubscriptionDataConfig; the universe reader accepts a null config.

Both readers return:

Expected FileDate: 2026-05-07 09:30:00
Actual FileDate:   2026-05-06 09:30:00

Verified with two local NUnit cases against the base readers: both fail with exactly that expected/actual difference.

Cause and required outcome

  • QuiverInsiderTrading.cs:167 and QuiverInsiderTradingUniverse.cs:150 on the cited commit apply .AddDays(-1) to the result of the entire parse-or-fallback expression.
  • DataProcessing/QuiverInsiderTradingDataDownloader.cs:119–124 serializes a non-omitted filing timestamp directly, without a compensating day offset.
  • FileDate is documented as the time the transaction was filed and became publicly available. The separate Time/EndTime convention does not require altering this supplied timestamp.

Preserve explicitly supplied filing timestamps in both readers and add regression coverage. Existing compact-format coverage currently asserts the shifted per-ticker value and will need to reflect the corrected behavior. Suggestion: apply any intended fallback adjustment only to the missing-value branch, not to an explicit timestamp.

Priority is P2 because the verified impact is limited to this metadata field; evidence of broader user impact 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.