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
+39
View File
@@ -0,0 +1,39 @@
Date,Dividends
2025-03-24,0.773000
2016-03-18,0.479000
2016-09-16,0.557000
2019-12-23,0.723000
2017-09-15,0.569000
2023-06-20,0.794000
2025-12-22,0.972000
2025-09-22,0.912000
2018-03-16,0.459000
2019-03-18,0.476000
2022-12-19,0.780000
2016-06-17,0.477000
2022-06-21,0.777000
2023-12-18,0.819000
2023-09-18,0.821000
2018-09-24,0.602000
2018-12-24,0.654000
2023-03-20,0.724000
2024-09-23,0.915000
2024-12-23,0.862000
2025-06-23,0.923000
2026-03-23,0.817000
2026-06-22,0.973000
2020-03-23,0.551000
2020-06-22,0.484000
2021-12-20,0.469000
2021-03-22,0.747000
2017-12-15,5.997000
2018-06-18,0.586000
2019-06-24,0.604000
2021-06-21,0.540000
2022-03-21,0.612000
2022-09-19,0.798000
2024-03-18,0.775000
2024-06-24,0.910000
2019-09-23,0.613000
2020-09-21,0.338000
2020-12-21,0.684000
1 Date Dividends
2 2025-03-24 0.773000
3 2016-03-18 0.479000
4 2016-09-16 0.557000
5 2019-12-23 0.723000
6 2017-09-15 0.569000
7 2023-06-20 0.794000
8 2025-12-22 0.972000
9 2025-09-22 0.912000
10 2018-03-16 0.459000
11 2019-03-18 0.476000
12 2022-12-19 0.780000
13 2016-06-17 0.477000
14 2022-06-21 0.777000
15 2023-12-18 0.819000
16 2023-09-18 0.821000
17 2018-09-24 0.602000
18 2018-12-24 0.654000
19 2023-03-20 0.724000
20 2024-09-23 0.915000
21 2024-12-23 0.862000
22 2025-06-23 0.923000
23 2026-03-23 0.817000
24 2026-06-22 0.973000
25 2020-03-23 0.551000
26 2020-06-22 0.484000
27 2021-12-20 0.469000
28 2021-03-22 0.747000
29 2017-12-15 5.997000
30 2018-06-18 0.586000
31 2019-06-24 0.604000
32 2021-06-21 0.540000
33 2022-03-21 0.612000
34 2022-09-19 0.798000
35 2024-03-18 0.775000
36 2024-06-24 0.910000
37 2019-09-23 0.613000
38 2020-09-21 0.338000
39 2020-12-21 0.684000