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