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
+40
View File
@@ -0,0 +1,40 @@
Date,Dividends
2016-03-15,0.015000
2018-12-20,0.663000
2019-03-12,0.017000
2020-12-23,0.354000
2021-12-23,1.046000
2024-06-13,0.036000
2017-06-13,0.057000
2018-03-13,0.018000
2023-09-14,0.004000
2025-12-23,1.100000
2026-06-24,0.045000
2014-12-19,0.130000
2022-06-09,0.035000
2023-12-22,0.474000
2026-03-25,0.012000
2015-09-15,0.029000
2018-06-12,0.065000
2019-09-12,0.041000
2019-12-23,0.774000
2025-06-12,0.050000
2015-12-21,0.202000
2016-09-15,0.021000
2016-12-19,0.359000
2021-09-09,0.031000
2022-09-15,0.016000
2024-09-12,0.032000
2015-06-16,0.053000
2015-03-17,0.012000
2016-06-14,0.052000
2017-03-14,0.012000
2017-12-20,0.477000
2018-09-12,0.035000
2020-09-10,0.450000
2017-09-14,0.034000
2019-06-11,0.058000
2022-12-23,0.206000
2023-06-15,0.044000
2024-12-23,1.454000
2025-09-11,0.032000
1 Date Dividends
2 2016-03-15 0.015000
3 2018-12-20 0.663000
4 2019-03-12 0.017000
5 2020-12-23 0.354000
6 2021-12-23 1.046000
7 2024-06-13 0.036000
8 2017-06-13 0.057000
9 2018-03-13 0.018000
10 2023-09-14 0.004000
11 2025-12-23 1.100000
12 2026-06-24 0.045000
13 2014-12-19 0.130000
14 2022-06-09 0.035000
15 2023-12-22 0.474000
16 2026-03-25 0.012000
17 2015-09-15 0.029000
18 2018-06-12 0.065000
19 2019-09-12 0.041000
20 2019-12-23 0.774000
21 2025-06-12 0.050000
22 2015-12-21 0.202000
23 2016-09-15 0.021000
24 2016-12-19 0.359000
25 2021-09-09 0.031000
26 2022-09-15 0.016000
27 2024-09-12 0.032000
28 2015-06-16 0.053000
29 2015-03-17 0.012000
30 2016-06-14 0.052000
31 2017-03-14 0.012000
32 2017-12-20 0.477000
33 2018-09-12 0.035000
34 2020-09-10 0.450000
35 2017-09-14 0.034000
36 2019-06-11 0.058000
37 2022-12-23 0.206000
38 2023-06-15 0.044000
39 2024-12-23 1.454000
40 2025-09-11 0.032000