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
+30
View File
@@ -0,0 +1,30 @@
Date,Dividends
2023-12-14,0.357000
2016-11-28,2.101000
2018-12-13,1.727000
2011-12-15,0.058000
2017-12-14,2.005000
2025-12-11,0.352000
2001-11-15,0.050000
2003-12-30,0.025000
2005-12-15,2.081000
2014-12-18,5.397000
1999-11-19,3.913000
2006-12-14,3.917000
1997-11-18,0.168000
2010-12-16,0.056000
2021-12-16,0.181000
2024-12-12,0.246000
2008-12-18,0.253000
2004-12-09,0.243000
2012-12-13,3.033000
2015-12-17,0.118000
2019-12-12,0.290000
1998-11-23,0.760000
2002-11-21,0.023000
2003-11-20,0.077000
2007-12-13,3.431000
2009-12-17,0.072000
2013-12-19,2.168000
2022-12-15,0.153000
2000-11-17,1.447000
1 Date Dividends
2 2023-12-14 0.357000
3 2016-11-28 2.101000
4 2018-12-13 1.727000
5 2011-12-15 0.058000
6 2017-12-14 2.005000
7 2025-12-11 0.352000
8 2001-11-15 0.050000
9 2003-12-30 0.025000
10 2005-12-15 2.081000
11 2014-12-18 5.397000
12 1999-11-19 3.913000
13 2006-12-14 3.917000
14 1997-11-18 0.168000
15 2010-12-16 0.056000
16 2021-12-16 0.181000
17 2024-12-12 0.246000
18 2008-12-18 0.253000
19 2004-12-09 0.243000
20 2012-12-13 3.033000
21 2015-12-17 0.118000
22 2019-12-12 0.290000
23 1998-11-23 0.760000
24 2002-11-21 0.023000
25 2003-11-20 0.077000
26 2007-12-13 3.431000
27 2009-12-17 0.072000
28 2013-12-19 2.168000
29 2022-12-15 0.153000
30 2000-11-17 1.447000