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
+35
View File
@@ -0,0 +1,35 @@
Date,Dividends
2012-12-13,0.440000
2022-12-15,0.684000
1998-11-23,1.021000
2002-11-21,0.126000
2017-12-14,0.870000
1996-12-11,0.162000
2008-12-18,1.491000
2004-12-09,0.320000
2018-12-13,1.463000
2024-12-12,0.616000
2025-12-11,0.599000
1995-12-13,1.043000
2003-11-20,0.109000
2020-12-10,0.085000
2007-12-13,4.426000
2010-12-16,0.160000
2005-12-15,1.591000
2016-11-28,0.336000
1992-12-16,0.250000
1993-12-15,0.230000
2009-12-17,0.117000
2014-12-18,1.572000
2021-12-16,0.346000
1994-12-14,1.059000
1999-11-19,0.486000
2019-12-12,0.452000
2013-12-19,0.729000
2015-12-17,1.080000
2001-11-15,0.165000
2006-12-14,3.920000
2011-12-15,0.126000
2023-12-14,0.495000
1997-11-18,3.440000
2000-11-17,1.011000
1 Date Dividends
2 2012-12-13 0.440000
3 2022-12-15 0.684000
4 1998-11-23 1.021000
5 2002-11-21 0.126000
6 2017-12-14 0.870000
7 1996-12-11 0.162000
8 2008-12-18 1.491000
9 2004-12-09 0.320000
10 2018-12-13 1.463000
11 2024-12-12 0.616000
12 2025-12-11 0.599000
13 1995-12-13 1.043000
14 2003-11-20 0.109000
15 2020-12-10 0.085000
16 2007-12-13 4.426000
17 2010-12-16 0.160000
18 2005-12-15 1.591000
19 2016-11-28 0.336000
20 1992-12-16 0.250000
21 1993-12-15 0.230000
22 2009-12-17 0.117000
23 2014-12-18 1.572000
24 2021-12-16 0.346000
25 1994-12-14 1.059000
26 1999-11-19 0.486000
27 2019-12-12 0.452000
28 2013-12-19 0.729000
29 2015-12-17 1.080000
30 2001-11-15 0.165000
31 2006-12-14 3.920000
32 2011-12-15 0.126000
33 2023-12-14 0.495000
34 1997-11-18 3.440000
35 2000-11-17 1.011000