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
+35
View File
@@ -0,0 +1,35 @@
Date,Dividends
2025-03-24,0.117000
2021-09-20,0.157000
2021-12-20,0.094000
2022-03-21,0.121000
2023-06-20,0.168000
2023-12-18,0.118000
2024-12-23,0.077000
2020-06-22,0.115000
2020-09-21,0.179000
2022-09-19,0.174000
2024-06-24,0.232000
2022-06-21,0.171000
2024-03-18,0.246000
2025-06-23,0.107000
2019-06-24,0.128000
2021-06-21,0.107000
2018-06-19,0.012000
2018-09-25,0.135000
2019-03-19,0.062000
2021-03-22,0.125000
2022-12-19,0.200000
2026-03-23,0.146000
2018-03-16,0.062000
2020-03-23,0.104000
2020-12-21,0.190000
2023-03-20,0.212000
2025-12-22,0.156000
2026-06-22,0.148000
2018-12-26,0.139000
2019-12-23,0.187000
2023-09-18,0.206000
2024-09-23,0.108000
2025-09-22,0.108000
2019-09-23,0.134000
1 Date Dividends
2 2025-03-24 0.117000
3 2021-09-20 0.157000
4 2021-12-20 0.094000
5 2022-03-21 0.121000
6 2023-06-20 0.168000
7 2023-12-18 0.118000
8 2024-12-23 0.077000
9 2020-06-22 0.115000
10 2020-09-21 0.179000
11 2022-09-19 0.174000
12 2024-06-24 0.232000
13 2022-06-21 0.171000
14 2024-03-18 0.246000
15 2025-06-23 0.107000
16 2019-06-24 0.128000
17 2021-06-21 0.107000
18 2018-06-19 0.012000
19 2018-09-25 0.135000
20 2019-03-19 0.062000
21 2021-03-22 0.125000
22 2022-12-19 0.200000
23 2026-03-23 0.146000
24 2018-03-16 0.062000
25 2020-03-23 0.104000
26 2020-12-21 0.190000
27 2023-03-20 0.212000
28 2025-12-22 0.156000
29 2026-06-22 0.148000
30 2018-12-26 0.139000
31 2019-12-23 0.187000
32 2023-09-18 0.206000
33 2024-09-23 0.108000
34 2025-09-22 0.108000
35 2019-09-23 0.134000