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

Offen Anfängerfreundlich
#23 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
82/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
csharp
Bereich
data

Rechercherichtung

Untersuche die Fallback-Zweige in QuiverCNBC.cs, QuiverCNBCsUniverse.cs, QuiverInsiderTrading.cs und QuiverInsiderTradingUniverse.cs und prüfe anschließend die benannten Tests für Reader mit leerem Datum. Stelle sicher, dass leere Werte für AdviceDate und FileDate das Upload-Datum zurückgeben, während explizite Datumsangaben, Time und EndTime ihr aktuelles Verhalten beibehalten; die Tests sollten für jeden Datensatz beide Reader abdecken.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C#
Sterne
0
Forks
3
Ø Merge
39 Min.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus QuantConnect/Lean.DataSource.QuiverQuant

Alle Issues in QuantConnect/Lean.DataSource.QuiverQuant

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.