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
+60
View File
@@ -0,0 +1,60 @@
Date,Dividends
2012-09-20,0.076000
2026-03-26,0.063000
2013-09-19,0.060000
2017-12-06,1.683000
2020-12-11,0.445000
2021-03-25,0.066000
2022-09-22,0.053000
2026-06-25,0.063000
2015-12-04,1.270000
2019-03-21,0.044000
2025-09-25,0.066000
2017-09-21,0.087000
2020-06-18,0.074000
2020-09-17,0.072000
2023-06-22,0.068000
2025-12-11,2.039000
2013-03-21,0.069000
2014-06-19,0.061000
2017-03-23,0.088000
2021-09-23,0.056000
2022-03-24,0.052000
2023-12-13,1.646000
2017-06-22,0.111000
2018-09-20,0.076000
2019-12-13,0.752000
2024-12-12,2.998000
2014-12-04,1.800000
2020-03-19,0.073000
2023-03-23,0.067000
2019-06-20,0.087000
2024-06-27,0.073000
2013-06-20,0.076000
2013-12-05,2.203000
2016-09-22,0.067000
2012-12-06,0.076000
2023-09-28,0.068000
2019-09-19,0.040000
2022-06-23,0.051000
2012-03-22,0.070000
2016-12-05,0.986000
2018-06-21,0.082000
2024-09-26,0.078000
2014-09-18,0.068000
2018-03-22,0.066000
2022-12-14,1.210000
2015-09-24,0.056000
2021-06-24,0.060000
2021-12-14,3.145000
2024-03-28,0.070000
2012-06-21,0.068000
2014-03-20,0.049000
2015-06-18,0.066000
2025-06-26,0.073000
2012-12-27,0.062000
2016-06-23,0.080000
2025-03-27,0.073000
2015-03-19,0.069000
2016-03-24,0.048000
2018-12-06,1.381000
1 Date Dividends
2 2012-09-20 0.076000
3 2026-03-26 0.063000
4 2013-09-19 0.060000
5 2017-12-06 1.683000
6 2020-12-11 0.445000
7 2021-03-25 0.066000
8 2022-09-22 0.053000
9 2026-06-25 0.063000
10 2015-12-04 1.270000
11 2019-03-21 0.044000
12 2025-09-25 0.066000
13 2017-09-21 0.087000
14 2020-06-18 0.074000
15 2020-09-17 0.072000
16 2023-06-22 0.068000
17 2025-12-11 2.039000
18 2013-03-21 0.069000
19 2014-06-19 0.061000
20 2017-03-23 0.088000
21 2021-09-23 0.056000
22 2022-03-24 0.052000
23 2023-12-13 1.646000
24 2017-06-22 0.111000
25 2018-09-20 0.076000
26 2019-12-13 0.752000
27 2024-12-12 2.998000
28 2014-12-04 1.800000
29 2020-03-19 0.073000
30 2023-03-23 0.067000
31 2019-06-20 0.087000
32 2024-06-27 0.073000
33 2013-06-20 0.076000
34 2013-12-05 2.203000
35 2016-09-22 0.067000
36 2012-12-06 0.076000
37 2023-09-28 0.068000
38 2019-09-19 0.040000
39 2022-06-23 0.051000
40 2012-03-22 0.070000
41 2016-12-05 0.986000
42 2018-06-21 0.082000
43 2024-09-26 0.078000
44 2014-09-18 0.068000
45 2018-03-22 0.066000
46 2022-12-14 1.210000
47 2015-09-24 0.056000
48 2021-06-24 0.060000
49 2021-12-14 3.145000
50 2024-03-28 0.070000
51 2012-06-21 0.068000
52 2014-03-20 0.049000
53 2015-06-18 0.066000
54 2025-06-26 0.073000
55 2012-12-27 0.062000
56 2016-06-23 0.080000
57 2025-03-27 0.073000
58 2015-03-19 0.069000
59 2016-03-24 0.048000
60 2018-12-06 1.381000