CNBC readers subtract a day from explicit AdviceDate values

未關閉 適合新手
#20 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
88/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
csharp
領域
data

研究方向

在AdviceDate指派處閱讀QuiverCNBC.cs和QuiverCNBCsUniverse.cs,接著檢查#17如何處理內線交易讀取器中的回退邏輯。更新tests/QuiverCNBCTests.cs中的兩項精簡格式預期,以驗證明確日期會保留,且空欄位的回退邏輯維持不變;依照所述保留Time和EndTime的行為。

由索引模型根據 Issue 內容生成。

描述

priority:P2

Problem

QuiverCNBC.Reader and QuiverCNBCsUniverse.Reader apply .AddDays(-1) to the whole parse-or-fallback expression for AdviceDate. When the CSV supplies the advice date explicitly, the reader returns the day before it.

DataProcessing/QuiverCNBCDataDownloader.cs writes the advice date column (processDate) as is, with no day offset. Only when the column is empty does the reader need a fallback.

Reproduction

With a read date of 2026-05-08:

QuiverCNBC:         20260508,20260507,0,Example Person,catalyst
QuiverCNBCsUniverse: AAPL R735QTJ8XC9X,AAPL,20260507,0,Example Person,catalyst
Expected AdviceDate: 2026-05-07
Actual AdviceDate:   2026-05-06

tests/QuiverCNBCTests.cs (Reader_ParsesCompactFormat, UniverseReader_ParsesCompactFormat) currently asserts the shifted value.

Code

  • QuiverCNBC.cs: AdviceDate = (csv[1]... ?? uploadedDate).AddDays(-1)
  • QuiverCNBCsUniverse.cs: AdviceDate = (csv[2]... ?? date).AddDays(-1)

Required outcome

Explicit AdviceDate values come back as stored. The empty-column fallback and Time/EndTime stay as they are.

Suggestion: apply the offset only to the fallback branch, as #17 does for the insider trading readers' FileDate.

主要語言
C#
星號
0
分支
3
平均合併
39 分鐘
30 天內合併 PR
4

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

QuantConnect/Lean.DataSource.QuiverQuant 的其他 Issue

查看 QuantConnect/Lean.DataSource.QuiverQuant 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。