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 摘要。