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
+102
View File
@@ -0,0 +1,102 @@
Date,Dividends
2019-05-23,0.030000
2019-07-25,0.030000
2020-06-25,0.010000
2021-12-29,0.010000
2023-06-12,0.056000
2024-03-11,0.104000
2026-05-20,0.015000
2026-06-17,0.069000
2017-10-26,0.040000
2018-04-26,0.030000
2018-06-28,0.030000
2019-10-24,0.030000
2016-06-28,0.047000
2016-10-27,0.041000
2016-12-16,0.318000
2017-08-29,0.040000
2017-11-28,0.040000
2018-01-25,0.030000
2018-08-30,0.030000
2019-04-25,0.030000
2020-04-23,0.010000
2025-03-10,0.143000
2025-12-18,0.103000
2015-11-24,0.010000
2018-07-26,0.030000
2019-09-26,0.031000
2019-11-21,0.030000
2020-07-23,0.011000
2020-08-27,0.010000
2020-11-19,0.010000
2025-11-18,0.031000
2021-10-21,0.010000
2016-05-26,0.044000
2016-08-29,0.042000
2016-09-28,0.035000
2017-03-29,0.040000
2018-09-27,0.030000
2026-02-18,0.030000
2016-02-25,0.041000
2016-07-27,0.053000
2017-01-26,0.040000
2017-09-27,0.040000
2018-05-24,0.030000
2018-11-29,0.030000
2021-01-21,0.041000
2021-05-27,0.021000
2021-07-29,0.021000
2022-03-07,0.116000
2023-09-11,0.133000
2023-12-20,0.196000
2023-03-13,0.064000
2026-04-15,0.040000
2017-02-23,0.040000
2017-06-28,0.040000
2018-10-25,0.029000
2018-12-18,0.119000
2020-01-23,0.030000
2020-12-21,0.333000
2021-03-25,0.040000
2021-11-18,0.011000
2026-03-18,0.070000
2019-02-21,0.030000
2019-03-28,0.028000
2020-02-20,0.050000
2016-01-28,0.021000
2018-02-22,0.030000
2019-01-24,0.030000
2020-09-24,0.010000
2020-10-22,0.010000
2021-08-26,0.021000
2025-10-14,0.034000
2018-03-29,0.034000
2019-12-18,0.068000
2021-06-24,0.023000
2022-06-06,0.071000
2022-12-21,0.750000
2025-09-08,0.116000
2019-12-27,0.022000
2022-09-12,0.073000
2025-06-09,0.113000
2016-03-29,0.041000
2017-05-25,0.040000
2017-12-18,0.457000
2019-06-27,0.030000
2020-03-26,0.023000
2024-06-10,0.071000
2026-07-15,0.011000
2016-04-27,0.035000
2017-04-26,0.040000
2019-08-29,0.030000
2021-09-23,0.020000
2015-12-17,0.040000
2016-11-29,0.040000
2017-07-27,0.040000
2020-05-28,0.010000
2021-02-25,0.040000
2021-04-29,0.041000
2021-12-21,0.152000
2024-09-09,0.204000
2024-12-19,0.141000
2026-01-21,0.031000
1 Date Dividends
2 2019-05-23 0.030000
3 2019-07-25 0.030000
4 2020-06-25 0.010000
5 2021-12-29 0.010000
6 2023-06-12 0.056000
7 2024-03-11 0.104000
8 2026-05-20 0.015000
9 2026-06-17 0.069000
10 2017-10-26 0.040000
11 2018-04-26 0.030000
12 2018-06-28 0.030000
13 2019-10-24 0.030000
14 2016-06-28 0.047000
15 2016-10-27 0.041000
16 2016-12-16 0.318000
17 2017-08-29 0.040000
18 2017-11-28 0.040000
19 2018-01-25 0.030000
20 2018-08-30 0.030000
21 2019-04-25 0.030000
22 2020-04-23 0.010000
23 2025-03-10 0.143000
24 2025-12-18 0.103000
25 2015-11-24 0.010000
26 2018-07-26 0.030000
27 2019-09-26 0.031000
28 2019-11-21 0.030000
29 2020-07-23 0.011000
30 2020-08-27 0.010000
31 2020-11-19 0.010000
32 2025-11-18 0.031000
33 2021-10-21 0.010000
34 2016-05-26 0.044000
35 2016-08-29 0.042000
36 2016-09-28 0.035000
37 2017-03-29 0.040000
38 2018-09-27 0.030000
39 2026-02-18 0.030000
40 2016-02-25 0.041000
41 2016-07-27 0.053000
42 2017-01-26 0.040000
43 2017-09-27 0.040000
44 2018-05-24 0.030000
45 2018-11-29 0.030000
46 2021-01-21 0.041000
47 2021-05-27 0.021000
48 2021-07-29 0.021000
49 2022-03-07 0.116000
50 2023-09-11 0.133000
51 2023-12-20 0.196000
52 2023-03-13 0.064000
53 2026-04-15 0.040000
54 2017-02-23 0.040000
55 2017-06-28 0.040000
56 2018-10-25 0.029000
57 2018-12-18 0.119000
58 2020-01-23 0.030000
59 2020-12-21 0.333000
60 2021-03-25 0.040000
61 2021-11-18 0.011000
62 2026-03-18 0.070000
63 2019-02-21 0.030000
64 2019-03-28 0.028000
65 2020-02-20 0.050000
66 2016-01-28 0.021000
67 2018-02-22 0.030000
68 2019-01-24 0.030000
69 2020-09-24 0.010000
70 2020-10-22 0.010000
71 2021-08-26 0.021000
72 2025-10-14 0.034000
73 2018-03-29 0.034000
74 2019-12-18 0.068000
75 2021-06-24 0.023000
76 2022-06-06 0.071000
77 2022-12-21 0.750000
78 2025-09-08 0.116000
79 2019-12-27 0.022000
80 2022-09-12 0.073000
81 2025-06-09 0.113000
82 2016-03-29 0.041000
83 2017-05-25 0.040000
84 2017-12-18 0.457000
85 2019-06-27 0.030000
86 2020-03-26 0.023000
87 2024-06-10 0.071000
88 2026-07-15 0.011000
89 2016-04-27 0.035000
90 2017-04-26 0.040000
91 2019-08-29 0.030000
92 2021-09-23 0.020000
93 2015-12-17 0.040000
94 2016-11-29 0.040000
95 2017-07-27 0.040000
96 2020-05-28 0.010000
97 2021-02-25 0.040000
98 2021-04-29 0.041000
99 2021-12-21 0.152000
100 2024-09-09 0.204000
101 2024-12-19 0.141000
102 2026-01-21 0.031000