Event-history protection: backup dir, empty-download fallback, docs

Yahoo's 2026 event-feed change (capitalGain events dropped for some
funds; no events at all for terminated tickers) can wipe good event
history on re-download. Defense in depth:

- overrides/event-backup/: last-known-good copy of every dividend/
  capitalGain file (8,192 files, 58 MB); refresh with
  scripts/backup_events.py after each dump update
- data.py event_file(): frozen > data-root (while populated) > backup;
  used by panel reads, verify_official, and the double-listing scanner
- README: capital-gain files are mutual-fund-only in this dump; Yahoo
  has no LT/ST split (tax.py taxes capg at lt_rate; the per-fund split
  would come from fund-company annual tax statements or commercial feeds)
- tests: exact Timestamp .loc keys (pandas 3.x string matching returns a
  Series on large DatetimeIndex)
This commit is contained in:
gmp
2026-08-31 21:59:25 -04:00
parent e20b2e30cb
commit bb8e39605e
8198 changed files with 585233 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
Date,Dividends
2025-03-21,0.164000
2026-01-15,0.164000
2026-02-13,0.164000
2026-06-15,0.164000
2026-07-15,0.164000
2024-12-20,0.164000
2025-02-18,0.164000
2025-04-17,0.164000
2026-08-14,0.164000
2024-11-19,0.164000
2025-01-21,0.164000
2025-05-20,0.164000
2025-07-21,0.164000
2025-08-15,0.164000
2025-12-12,0.164000
2026-03-16,0.164000
2026-04-15,0.164000
2024-10-21,0.159000
2025-06-20,0.164000
2025-09-15,0.164000
2025-10-15,0.164000
2025-11-17,0.164000
2026-05-15,0.164000
1 Date Dividends
2 2025-03-21 0.164000
3 2026-01-15 0.164000
4 2026-02-13 0.164000
5 2026-06-15 0.164000
6 2026-07-15 0.164000
7 2024-12-20 0.164000
8 2025-02-18 0.164000
9 2025-04-17 0.164000
10 2026-08-14 0.164000
11 2024-11-19 0.164000
12 2025-01-21 0.164000
13 2025-05-20 0.164000
14 2025-07-21 0.164000
15 2025-08-15 0.164000
16 2025-12-12 0.164000
17 2026-03-16 0.164000
18 2026-04-15 0.164000
19 2024-10-21 0.159000
20 2025-06-20 0.164000
21 2025-09-15 0.164000
22 2025-10-15 0.164000
23 2025-11-17 0.164000
24 2026-05-15 0.164000