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
+92
View File
@@ -0,0 +1,92 @@
Date,Dividends
2009-09-18,0.010000
2013-03-15,0.009000
2015-03-20,0.045000
2021-09-17,0.087000
2024-03-15,0.112000
2008-09-19,0.010000
2016-09-16,0.062000
2019-03-15,0.065000
2019-06-21,0.100000
2020-03-20,0.090000
2022-06-17,0.090000
2025-12-19,0.147000
2006-12-15,0.011000
2005-12-16,0.057000
2014-12-19,0.059000
2017-03-17,0.035000
2017-12-15,0.077000
2005-03-18,0.008000
2011-09-16,0.019000
2009-06-19,0.010000
2013-09-20,0.041000
2022-12-16,0.139000
2023-09-15,0.100000
2023-12-15,0.112000
2009-12-18,0.021000
2018-12-21,0.088000
2024-06-21,0.105000
2016-03-18,0.049000
2004-03-19,0.005000
2008-06-20,0.015000
2009-03-20,0.005000
2018-03-16,0.044000
2025-09-19,0.137000
2003-12-19,0.007000
2007-12-21,0.029000
2010-03-19,0.010000
2015-06-19,0.042000
2016-12-16,0.072000
2019-09-20,0.094000
2019-12-20,0.402200
2021-12-17,0.109000
2004-06-18,0.002000
2011-12-16,0.033000
2016-06-17,0.054000
2021-03-19,0.062000
2010-12-17,0.032000
2005-09-16,0.009000
2008-03-20,0.010000
2014-09-19,0.036000
2015-12-29,0.005000
2021-06-18,0.071000
2022-03-18,0.070000
2022-09-16,0.100000
2004-09-17,0.006000
2024-12-20,0.168000
2023-12-28,0.016000
2006-06-16,0.008000
2007-03-16,0.009000
2010-06-18,0.015000
2011-03-18,0.010000
2011-06-17,0.026000
2012-03-16,0.021000
2017-09-15,0.054000
2004-12-17,0.090000
2024-09-20,0.113000
2008-12-19,0.022000
2013-12-20,0.052000
2017-06-16,0.063000
2018-09-21,0.076000
2020-12-18,0.104100
2006-03-17,0.014000
2012-12-21,0.082000
2013-06-21,0.035000
2025-06-20,0.118000
2026-03-20,0.111000
2005-06-17,0.010000
2007-06-15,0.006000
2007-09-21,0.015000
2012-06-15,0.026000
2015-09-18,0.050000
2018-06-15,0.072000
2023-03-17,0.100000
2023-06-16,0.090000
2006-09-15,0.011000
2020-06-19,0.073000
2025-03-21,0.091000
2026-06-18,0.143000
2014-03-21,0.079000
2014-06-20,0.047000
2020-09-18,0.091000
2010-09-17,0.014000
1 Date Dividends
2 2009-09-18 0.010000
3 2013-03-15 0.009000
4 2015-03-20 0.045000
5 2021-09-17 0.087000
6 2024-03-15 0.112000
7 2008-09-19 0.010000
8 2016-09-16 0.062000
9 2019-03-15 0.065000
10 2019-06-21 0.100000
11 2020-03-20 0.090000
12 2022-06-17 0.090000
13 2025-12-19 0.147000
14 2006-12-15 0.011000
15 2005-12-16 0.057000
16 2014-12-19 0.059000
17 2017-03-17 0.035000
18 2017-12-15 0.077000
19 2005-03-18 0.008000
20 2011-09-16 0.019000
21 2009-06-19 0.010000
22 2013-09-20 0.041000
23 2022-12-16 0.139000
24 2023-09-15 0.100000
25 2023-12-15 0.112000
26 2009-12-18 0.021000
27 2018-12-21 0.088000
28 2024-06-21 0.105000
29 2016-03-18 0.049000
30 2004-03-19 0.005000
31 2008-06-20 0.015000
32 2009-03-20 0.005000
33 2018-03-16 0.044000
34 2025-09-19 0.137000
35 2003-12-19 0.007000
36 2007-12-21 0.029000
37 2010-03-19 0.010000
38 2015-06-19 0.042000
39 2016-12-16 0.072000
40 2019-09-20 0.094000
41 2019-12-20 0.402200
42 2021-12-17 0.109000
43 2004-06-18 0.002000
44 2011-12-16 0.033000
45 2016-06-17 0.054000
46 2021-03-19 0.062000
47 2010-12-17 0.032000
48 2005-09-16 0.009000
49 2008-03-20 0.010000
50 2014-09-19 0.036000
51 2015-12-29 0.005000
52 2021-06-18 0.071000
53 2022-03-18 0.070000
54 2022-09-16 0.100000
55 2004-09-17 0.006000
56 2024-12-20 0.168000
57 2023-12-28 0.016000
58 2006-06-16 0.008000
59 2007-03-16 0.009000
60 2010-06-18 0.015000
61 2011-03-18 0.010000
62 2011-06-17 0.026000
63 2012-03-16 0.021000
64 2017-09-15 0.054000
65 2004-12-17 0.090000
66 2024-09-20 0.113000
67 2008-12-19 0.022000
68 2013-12-20 0.052000
69 2017-06-16 0.063000
70 2018-09-21 0.076000
71 2020-12-18 0.104100
72 2006-03-17 0.014000
73 2012-12-21 0.082000
74 2013-06-21 0.035000
75 2025-06-20 0.118000
76 2026-03-20 0.111000
77 2005-06-17 0.010000
78 2007-06-15 0.006000
79 2007-09-21 0.015000
80 2012-06-15 0.026000
81 2015-09-18 0.050000
82 2018-06-15 0.072000
83 2023-03-17 0.100000
84 2023-06-16 0.090000
85 2006-09-15 0.011000
86 2020-06-19 0.073000
87 2025-03-21 0.091000
88 2026-06-18 0.143000
89 2014-03-21 0.079000
90 2014-06-20 0.047000
91 2020-09-18 0.091000
92 2010-09-17 0.014000