Commit Graph

6 Commits

Author SHA1 Message Date
62d11abb9d Keep existing event CSVs when a download carries no events of that kind
Yahoo stopped returning capitalGain events for some funds (2026); a blind
os.Create + write of an empty event set overwrote the only copy of that
history. When the new download has zero rows of an event kind and the
existing CSV has data rows, keep the existing file. (gmp/f data.py also
falls back to overrides/event-backup/ as a second line of defense.)
2026-08-31 21:29:29 -04:00
gmp
584ec8753c Merge pull request 'Format dates in the exchange timezone; sort and dedup events' (#1) from tz-and-event-ordering into main
Reviewed-on: #1
2026-08-31 19:28:49 -04:00
882486c040 Format dates in the exchange timezone; sort and dedup events
- Dates were formatted with time.Unix (machine local zone), shifting the
  trading day by one for any exchange in a different timezone. Use
  meta.exchangeTimezoneName (IANA), falling back to meta.gmtoffset,
  then UTC.
- Dividend/capital-gain/split CSVs were emitted in random order (JSON
  object iteration). Sort rows by date.
- Yahoo occasionally emits the same chart timestamp twice; keep the
  last occurrence (this drops the spurious CVSIX 2008-12-18 0.292 row
  whose date is duplicated by the real 0.641 distribution).
- nil volume no longer panics (prints 0).
- Missing dividend/cap-gain amount still reports an error.
2026-08-31 16:08:10 -04:00
78f7858240 cmd: drop unused imports 2026-08-31 16:05:20 -04:00
714064615e Change name of dividend csv file. 2024-11-15 18:01:20 -05:00
83f41a0659 initial commit 2024-11-14 21:36:06 -05:00