Insider trading readers subtract a day from explicit FileDate timestamps

Aberta Para iniciantes
#17 1 comentário 0 reações 0 responsáveis Ver no GitHub

@quantconnect-kronos já está trabalhando nisso.

Desde 17/11/2026.

  • #19 de @quantconnect-kronos — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
90/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
csharp
Domínio
data

Direção de pesquisa

Comece pelas expressões de parsing em QuiverInsiderTrading.cs e QuiverInsiderTradingUniverse.cs e, em seguida, verifique a serialização do downloader mencionada na issue. Adicione cobertura de regressão para ambos os leitores usando as linhas fornecidas e atualize a asserção existente do formato compacto. A tarefa estará concluída quando os timestamps de FileDate fornecidos explicitamente forem preservados em ambos os leitores e os testes passarem.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C#
Estrelas
0
Forks
3
Merge médio
39min
PRs com merge (30d)
4

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de QuantConnect/Lean.DataSource.QuiverQuant

Todas as issues de QuantConnect/Lean.DataSource.QuiverQuant

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.