Insider trading readers subtract a day from explicit FileDate timestamps

Aperta Adatta ai principianti
#17 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@quantconnect-kronos ci sta già lavorando.

Dal 17/11/2026.

  • #19 di @quantconnect-kronos — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
90/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
data

Direzione di ricerca

Inizia dalle espressioni di parsing in QuiverInsiderTrading.cs e QuiverInsiderTradingUniverse.cs, quindi verifica la serializzazione del downloader menzionata nell’issue. Aggiungi test di regressione per entrambi i reader usando le righe fornite e aggiorna l’asserzione esistente sul formato compatto. Il lavoro è completato quando i timestamp di FileDate forniti esplicitamente vengono mantenuti in entrambi i reader e i test passano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
0
Fork
3
Merge medio
39m
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QuantConnect/Lean.DataSource.QuiverQuant

Tutte le issue di QuantConnect/Lean.DataSource.QuiverQuant

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.