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

オープン 初心者向け
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
data

調査の方向性

QuiverCNBC.cs、QuiverCNBCsUniverse.cs、QuiverInsiderTrading.cs、QuiverInsiderTradingUniverse.cs のフォールバック分岐を調べ、その後、日付が空の reader に関する名前付きテストを確認してください。AdviceDate と FileDate の値が空の場合はアップロード日を返し、明示的な日付、Time、EndTime は現在の動作を維持することを確認してください。テストでは各データセットの両方の reader を対象にしてください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
0
フォーク
3
平均マージ
39分
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QuantConnect/Lean.DataSource.QuiverQuant のほかの issue

QuantConnect/Lean.DataSource.QuiverQuant の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。