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
+39
View File
@@ -0,0 +1,39 @@
Date,Dividends
2015-12-17,1.865000
2016-11-28,1.257000
2023-12-14,0.769000
2024-09-27,0.204000
1997-11-18,0.824000
2003-11-20,0.138000
2004-12-09,0.789000
2019-12-12,2.665000
2021-12-16,2.909000
1996-12-11,0.251000
2002-11-21,0.242000
2017-12-14,2.603000
2012-12-13,0.996000
2018-12-13,2.703000
2024-03-27,0.180000
2000-11-17,1.244000
2001-11-15,0.196000
2009-12-17,0.293000
2024-06-27,0.177000
2024-12-30,0.178000
2025-09-29,0.220000
2026-03-30,0.210000
2005-12-15,0.547000
2010-12-16,0.225000
2011-12-15,0.846000
2013-12-19,2.712000
2025-03-28,0.198000
1999-11-19,1.814000
2006-12-14,1.809000
2008-12-18,0.961000
2025-06-27,0.218000
2026-06-29,0.221000
1998-11-23,0.416000
2007-12-13,2.111000
2014-12-18,2.991000
2022-12-15,0.425000
2020-12-10,1.276000
2025-12-30,0.209000
1 Date Dividends
2 2015-12-17 1.865000
3 2016-11-28 1.257000
4 2023-12-14 0.769000
5 2024-09-27 0.204000
6 1997-11-18 0.824000
7 2003-11-20 0.138000
8 2004-12-09 0.789000
9 2019-12-12 2.665000
10 2021-12-16 2.909000
11 1996-12-11 0.251000
12 2002-11-21 0.242000
13 2017-12-14 2.603000
14 2012-12-13 0.996000
15 2018-12-13 2.703000
16 2024-03-27 0.180000
17 2000-11-17 1.244000
18 2001-11-15 0.196000
19 2009-12-17 0.293000
20 2024-06-27 0.177000
21 2024-12-30 0.178000
22 2025-09-29 0.220000
23 2026-03-30 0.210000
24 2005-12-15 0.547000
25 2010-12-16 0.225000
26 2011-12-15 0.846000
27 2013-12-19 2.712000
28 2025-03-28 0.198000
29 1999-11-19 1.814000
30 2006-12-14 1.809000
31 2008-12-18 0.961000
32 2025-06-27 0.218000
33 2026-06-29 0.221000
34 1998-11-23 0.416000
35 2007-12-13 2.111000
36 2014-12-18 2.991000
37 2022-12-15 0.425000
38 2020-12-10 1.276000
39 2025-12-30 0.209000