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
+66
View File
@@ -0,0 +1,66 @@
Date,Dividends
2013-12-20,0.927000
2020-09-10,0.346000
2017-03-14,0.007000
2023-12-22,0.455000
2024-09-12,0.023000
2007-09-25,0.039000
2010-06-22,0.026000
2011-06-21,0.035000
2022-09-15,0.012000
2010-09-24,0.020000
2016-09-15,0.017000
2021-09-09,0.015000
2016-03-15,0.014000
2016-12-19,0.638000
2023-06-15,0.031000
2025-12-23,0.809000
2009-09-22,0.018000
2015-03-17,0.016000
2015-09-15,0.024000
2015-12-21,0.415000
2009-12-22,0.124000
2017-09-14,0.031000
2024-12-23,1.222000
2019-03-12,0.014000
2026-03-25,0.008000
2012-06-19,0.041000
2013-09-26,0.019000
2014-12-19,1.056000
2007-12-26,0.184000
2021-12-23,0.859000
2025-09-11,0.023000
2009-06-23,0.040000
2017-12-20,0.481000
2020-12-23,0.268000
2019-06-11,0.047000
2024-06-13,0.024000
2010-12-29,0.332000
2014-09-18,0.032000
2016-06-14,0.044000
2022-06-09,0.025000
2025-06-12,0.036000
2008-06-24,0.030000
2013-03-19,0.020000
2014-06-17,0.030000
2014-03-18,0.019000
2018-09-12,0.031000
2022-12-23,0.193000
2009-03-24,0.013000
2010-04-27,0.053000
2011-09-20,0.024000
2018-12-20,0.724000
2026-06-24,0.032000
2012-12-21,0.500000
2015-06-16,0.046000
2017-06-13,0.046000
2008-12-22,0.086000
2011-12-21,0.506000
2018-03-13,0.016000
2018-06-12,0.053000
2019-09-12,0.034000
2008-03-25,0.033000
2012-09-11,0.025000
2013-06-25,0.024000
2008-09-23,0.037000
2019-12-23,0.865000
1 Date Dividends
2 2013-12-20 0.927000
3 2020-09-10 0.346000
4 2017-03-14 0.007000
5 2023-12-22 0.455000
6 2024-09-12 0.023000
7 2007-09-25 0.039000
8 2010-06-22 0.026000
9 2011-06-21 0.035000
10 2022-09-15 0.012000
11 2010-09-24 0.020000
12 2016-09-15 0.017000
13 2021-09-09 0.015000
14 2016-03-15 0.014000
15 2016-12-19 0.638000
16 2023-06-15 0.031000
17 2025-12-23 0.809000
18 2009-09-22 0.018000
19 2015-03-17 0.016000
20 2015-09-15 0.024000
21 2015-12-21 0.415000
22 2009-12-22 0.124000
23 2017-09-14 0.031000
24 2024-12-23 1.222000
25 2019-03-12 0.014000
26 2026-03-25 0.008000
27 2012-06-19 0.041000
28 2013-09-26 0.019000
29 2014-12-19 1.056000
30 2007-12-26 0.184000
31 2021-12-23 0.859000
32 2025-09-11 0.023000
33 2009-06-23 0.040000
34 2017-12-20 0.481000
35 2020-12-23 0.268000
36 2019-06-11 0.047000
37 2024-06-13 0.024000
38 2010-12-29 0.332000
39 2014-09-18 0.032000
40 2016-06-14 0.044000
41 2022-06-09 0.025000
42 2025-06-12 0.036000
43 2008-06-24 0.030000
44 2013-03-19 0.020000
45 2014-06-17 0.030000
46 2014-03-18 0.019000
47 2018-09-12 0.031000
48 2022-12-23 0.193000
49 2009-03-24 0.013000
50 2010-04-27 0.053000
51 2011-09-20 0.024000
52 2018-12-20 0.724000
53 2026-06-24 0.032000
54 2012-12-21 0.500000
55 2015-06-16 0.046000
56 2017-06-13 0.046000
57 2008-12-22 0.086000
58 2011-12-21 0.506000
59 2018-03-13 0.016000
60 2018-06-12 0.053000
61 2019-09-12 0.034000
62 2008-03-25 0.033000
63 2012-09-11 0.025000
64 2013-06-25 0.024000
65 2008-09-23 0.037000
66 2019-12-23 0.865000