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
+70
View File
@@ -0,0 +1,70 @@
Date,Dividends
2022-05-27,0.020000
2024-07-30,0.039000
2026-05-28,0.033000
2021-12-16,0.192000
2026-06-29,0.034000
2021-09-29,0.013000
2021-11-29,0.017000
2022-04-28,0.019000
2023-06-29,0.037000
2025-09-29,0.036000
2026-02-26,0.032000
2026-03-30,0.037000
2021-02-25,0.013000
2025-02-27,0.032000
2025-10-30,0.040000
2026-07-30,0.038000
2020-12-30,0.021000
2022-08-30,0.027000
2023-05-30,0.033000
2024-01-30,0.022000
2024-10-30,0.039000
2024-12-30,0.067000
2025-07-30,0.042000
2025-11-26,0.032000
2025-12-30,0.047000
2026-04-29,0.036000
2026-01-29,0.033000
2021-05-27,0.014000
2022-07-28,0.025000
2022-09-29,0.025000
2022-10-28,0.028000
2023-01-30,0.019000
2025-04-29,0.039000
2021-03-30,0.017000
2023-12-28,0.053000
2024-03-27,0.034000
2021-07-29,0.015000
2024-05-30,0.038000
2024-06-27,0.031000
2025-06-27,0.036000
2021-10-28,0.015000
2022-03-30,0.023000
2023-10-30,0.036000
2024-11-27,0.033000
2021-06-29,0.016000
2023-07-28,0.033000
2023-08-30,0.037000
2024-09-27,0.033000
2022-02-25,0.014000
2023-04-27,0.029000
2023-09-28,0.032000
2024-02-28,0.030000
2024-04-29,0.037000
2025-01-30,0.035000
2023-03-30,0.034000
2023-11-29,0.040000
2025-08-28,0.035000
2021-04-29,0.015000
2021-12-30,0.022000
2022-01-28,0.011000
2023-02-27,0.028000
2025-03-28,0.037000
2021-08-30,0.014000
2022-06-29,0.023000
2021-01-28,0.012000
2022-11-29,0.031000
2022-12-29,0.043000
2024-08-29,0.035000
2025-05-29,0.038000
1 Date Dividends
2 2022-05-27 0.020000
3 2024-07-30 0.039000
4 2026-05-28 0.033000
5 2021-12-16 0.192000
6 2026-06-29 0.034000
7 2021-09-29 0.013000
8 2021-11-29 0.017000
9 2022-04-28 0.019000
10 2023-06-29 0.037000
11 2025-09-29 0.036000
12 2026-02-26 0.032000
13 2026-03-30 0.037000
14 2021-02-25 0.013000
15 2025-02-27 0.032000
16 2025-10-30 0.040000
17 2026-07-30 0.038000
18 2020-12-30 0.021000
19 2022-08-30 0.027000
20 2023-05-30 0.033000
21 2024-01-30 0.022000
22 2024-10-30 0.039000
23 2024-12-30 0.067000
24 2025-07-30 0.042000
25 2025-11-26 0.032000
26 2025-12-30 0.047000
27 2026-04-29 0.036000
28 2026-01-29 0.033000
29 2021-05-27 0.014000
30 2022-07-28 0.025000
31 2022-09-29 0.025000
32 2022-10-28 0.028000
33 2023-01-30 0.019000
34 2025-04-29 0.039000
35 2021-03-30 0.017000
36 2023-12-28 0.053000
37 2024-03-27 0.034000
38 2021-07-29 0.015000
39 2024-05-30 0.038000
40 2024-06-27 0.031000
41 2025-06-27 0.036000
42 2021-10-28 0.015000
43 2022-03-30 0.023000
44 2023-10-30 0.036000
45 2024-11-27 0.033000
46 2021-06-29 0.016000
47 2023-07-28 0.033000
48 2023-08-30 0.037000
49 2024-09-27 0.033000
50 2022-02-25 0.014000
51 2023-04-27 0.029000
52 2023-09-28 0.032000
53 2024-02-28 0.030000
54 2024-04-29 0.037000
55 2025-01-30 0.035000
56 2023-03-30 0.034000
57 2023-11-29 0.040000
58 2025-08-28 0.035000
59 2021-04-29 0.015000
60 2021-12-30 0.022000
61 2022-01-28 0.011000
62 2023-02-27 0.028000
63 2025-03-28 0.037000
64 2021-08-30 0.014000
65 2022-06-29 0.023000
66 2021-01-28 0.012000
67 2022-11-29 0.031000
68 2022-12-29 0.043000
69 2024-08-29 0.035000
70 2025-05-29 0.038000