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
2016-06-17,0.249000
2024-03-18,0.318000
2024-06-24,0.357000
2026-06-22,0.462000
2023-03-20,0.441000
2018-03-19,0.227000
2018-12-24,0.297000
2020-06-22,0.283000
2020-12-21,0.331000
2022-03-21,0.321000
2019-12-23,0.388000
2021-12-20,0.285000
2022-12-19,0.456000
2023-09-18,0.305000
2025-06-23,0.416000
2019-06-24,0.315000
2023-12-18,0.419000
2024-09-23,0.402000
2025-03-24,0.400000
2019-03-18,0.269000
2019-09-23,0.303000
2020-03-23,0.301000
2024-12-23,0.465000
2025-12-22,0.445000
2025-09-22,0.407000
2026-03-23,0.492000
2016-09-16,0.288000
2018-09-24,0.268000
2020-09-21,0.175000
2021-06-21,0.267000
2022-09-19,0.418000
2018-06-18,0.287000
2023-06-20,0.468000
2016-03-18,0.256000
2017-09-15,0.329000
2017-12-15,4.787000
2021-03-22,0.352000
2022-06-21,0.400000
1 Date Dividends
2 2016-06-17 0.249000
3 2024-03-18 0.318000
4 2024-06-24 0.357000
5 2026-06-22 0.462000
6 2023-03-20 0.441000
7 2018-03-19 0.227000
8 2018-12-24 0.297000
9 2020-06-22 0.283000
10 2020-12-21 0.331000
11 2022-03-21 0.321000
12 2019-12-23 0.388000
13 2021-12-20 0.285000
14 2022-12-19 0.456000
15 2023-09-18 0.305000
16 2025-06-23 0.416000
17 2019-06-24 0.315000
18 2023-12-18 0.419000
19 2024-09-23 0.402000
20 2025-03-24 0.400000
21 2019-03-18 0.269000
22 2019-09-23 0.303000
23 2020-03-23 0.301000
24 2024-12-23 0.465000
25 2025-12-22 0.445000
26 2025-09-22 0.407000
27 2026-03-23 0.492000
28 2016-09-16 0.288000
29 2018-09-24 0.268000
30 2020-09-21 0.175000
31 2021-06-21 0.267000
32 2022-09-19 0.418000
33 2018-06-18 0.287000
34 2023-06-20 0.468000
35 2016-03-18 0.256000
36 2017-09-15 0.329000
37 2017-12-15 4.787000
38 2021-03-22 0.352000
39 2022-06-21 0.400000