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
2022-06-21,0.417000
2023-03-20,0.421000
2023-12-18,0.650000
2025-12-22,0.717000
2026-06-22,0.762000
2016-09-16,0.323000
2018-12-24,0.423000
2021-03-22,0.377000
2021-12-20,0.497000
2023-09-18,0.477000
2024-06-24,0.529000
2016-03-18,0.314000
2018-03-16,0.281000
2019-09-23,0.405000
2020-06-22,0.363000
2023-06-20,0.499000
2024-09-23,0.557000
2024-12-23,0.816000
2025-03-24,0.508000
2017-09-15,0.321000
2017-12-15,4.110000
2018-06-18,0.360000
2020-12-21,0.591000
2021-06-21,0.374000
2022-03-21,0.378000
2022-09-19,0.465000
2022-12-19,0.591000
2025-09-22,0.607000
2016-06-17,0.307000
2025-06-23,0.583000
2020-03-23,0.406000
2020-09-21,0.317000
2026-03-23,0.577000
2018-09-24,0.376000
2019-03-18,0.334000
2019-06-24,0.385000
2019-12-23,0.662000
2024-03-18,0.459000
1 Date Dividends
2 2022-06-21 0.417000
3 2023-03-20 0.421000
4 2023-12-18 0.650000
5 2025-12-22 0.717000
6 2026-06-22 0.762000
7 2016-09-16 0.323000
8 2018-12-24 0.423000
9 2021-03-22 0.377000
10 2021-12-20 0.497000
11 2023-09-18 0.477000
12 2024-06-24 0.529000
13 2016-03-18 0.314000
14 2018-03-16 0.281000
15 2019-09-23 0.405000
16 2020-06-22 0.363000
17 2023-06-20 0.499000
18 2024-09-23 0.557000
19 2024-12-23 0.816000
20 2025-03-24 0.508000
21 2017-09-15 0.321000
22 2017-12-15 4.110000
23 2018-06-18 0.360000
24 2020-12-21 0.591000
25 2021-06-21 0.374000
26 2022-03-21 0.378000
27 2022-09-19 0.465000
28 2022-12-19 0.591000
29 2025-09-22 0.607000
30 2016-06-17 0.307000
31 2025-06-23 0.583000
32 2020-03-23 0.406000
33 2020-09-21 0.317000
34 2026-03-23 0.577000
35 2018-09-24 0.376000
36 2019-03-18 0.334000
37 2019-06-24 0.385000
38 2019-12-23 0.662000
39 2024-03-18 0.459000