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
+71
View File
@@ -0,0 +1,71 @@
Date,Dividends
2008-03-25,0.035000
2008-12-31,0.002000
2021-09-09,0.024000
2022-06-09,0.032000
2025-03-13,0.006000
2018-03-13,0.025000
2012-06-19,0.051000
2013-03-19,0.022000
2014-06-17,0.033000
2014-09-18,0.035000
2015-12-21,0.516000
2016-03-15,0.015000
2017-03-14,0.013000
2021-06-10,0.022000
2024-09-12,0.026000
2025-09-11,0.025000
2016-09-15,0.020000
2009-03-24,0.023000
2020-12-23,0.268000
2008-12-22,0.064000
2010-06-22,0.031000
2010-12-29,0.138000
2015-03-17,0.017000
2015-06-16,0.051000
2015-09-15,0.027000
2017-12-20,0.815000
2023-12-22,0.620000
2018-09-12,0.039000
2020-03-12,0.001000
2009-06-23,0.042000
2013-06-25,0.027000
2013-09-26,0.020000
2017-06-13,0.055000
2018-12-20,0.857000
2022-09-15,0.014000
2008-09-23,0.042000
2009-12-22,0.167000
2023-09-14,0.011000
2007-09-25,0.039000
2016-12-19,0.693000
2019-12-23,0.893000
2022-12-23,0.161000
2010-09-24,0.023000
2011-06-21,0.042000
2011-12-21,0.316000
2012-12-21,0.428000
2014-12-19,0.595000
2019-03-12,0.020000
2020-09-10,0.323000
2024-06-13,0.030000
2016-06-14,0.047000
2023-06-15,0.034000
2026-06-24,0.032000
2019-09-12,0.041000
2025-06-12,0.031000
2011-09-20,0.028000
2012-09-11,0.027000
2013-12-20,0.574000
2017-09-14,0.053000
2018-06-12,0.063000
2019-06-11,0.056000
2026-03-25,0.015000
2007-12-26,0.138000
2014-03-18,0.020000
2021-12-23,0.976000
2024-12-23,1.204000
2025-12-23,0.749000
2009-09-22,0.021000
2008-06-24,0.040000
2020-06-11,0.017000
1 Date Dividends
2 2008-03-25 0.035000
3 2008-12-31 0.002000
4 2021-09-09 0.024000
5 2022-06-09 0.032000
6 2025-03-13 0.006000
7 2018-03-13 0.025000
8 2012-06-19 0.051000
9 2013-03-19 0.022000
10 2014-06-17 0.033000
11 2014-09-18 0.035000
12 2015-12-21 0.516000
13 2016-03-15 0.015000
14 2017-03-14 0.013000
15 2021-06-10 0.022000
16 2024-09-12 0.026000
17 2025-09-11 0.025000
18 2016-09-15 0.020000
19 2009-03-24 0.023000
20 2020-12-23 0.268000
21 2008-12-22 0.064000
22 2010-06-22 0.031000
23 2010-12-29 0.138000
24 2015-03-17 0.017000
25 2015-06-16 0.051000
26 2015-09-15 0.027000
27 2017-12-20 0.815000
28 2023-12-22 0.620000
29 2018-09-12 0.039000
30 2020-03-12 0.001000
31 2009-06-23 0.042000
32 2013-06-25 0.027000
33 2013-09-26 0.020000
34 2017-06-13 0.055000
35 2018-12-20 0.857000
36 2022-09-15 0.014000
37 2008-09-23 0.042000
38 2009-12-22 0.167000
39 2023-09-14 0.011000
40 2007-09-25 0.039000
41 2016-12-19 0.693000
42 2019-12-23 0.893000
43 2022-12-23 0.161000
44 2010-09-24 0.023000
45 2011-06-21 0.042000
46 2011-12-21 0.316000
47 2012-12-21 0.428000
48 2014-12-19 0.595000
49 2019-03-12 0.020000
50 2020-09-10 0.323000
51 2024-06-13 0.030000
52 2016-06-14 0.047000
53 2023-06-15 0.034000
54 2026-06-24 0.032000
55 2019-09-12 0.041000
56 2025-06-12 0.031000
57 2011-09-20 0.028000
58 2012-09-11 0.027000
59 2013-12-20 0.574000
60 2017-09-14 0.053000
61 2018-06-12 0.063000
62 2019-06-11 0.056000
63 2026-03-25 0.015000
64 2007-12-26 0.138000
65 2014-03-18 0.020000
66 2021-12-23 0.976000
67 2024-12-23 1.204000
68 2025-12-23 0.749000
69 2009-09-22 0.021000
70 2008-06-24 0.040000
71 2020-06-11 0.017000