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
2019-06-24,0.096000
2021-09-20,0.064000
2024-09-23,0.205000
2023-06-20,0.136000
2019-12-23,0.102000
2020-09-21,0.079000
2022-12-19,0.155000
2022-06-21,0.157000
2024-06-24,0.159000
2025-06-23,0.075000
2018-06-19,0.061000
2019-09-23,0.089000
2021-06-21,0.058000
2024-03-18,0.175000
2025-12-22,0.103000
2019-03-19,0.087000
2020-06-22,0.076000
2022-03-21,0.106000
2020-03-23,0.097000
2021-03-22,0.070000
2024-12-23,0.200000
2020-12-21,0.101000
2023-03-20,0.119000
2025-09-22,0.135000
2018-09-25,0.135000
2025-03-24,0.042000
2022-09-19,0.209000
2023-09-18,0.157000
2023-12-18,0.083000
2026-03-23,0.148000
2026-06-22,0.186000
2018-03-16,0.030000
2018-12-26,0.122000
2021-12-20,0.086000
1 Date Dividends
2 2019-06-24 0.096000
3 2021-09-20 0.064000
4 2024-09-23 0.205000
5 2023-06-20 0.136000
6 2019-12-23 0.102000
7 2020-09-21 0.079000
8 2022-12-19 0.155000
9 2022-06-21 0.157000
10 2024-06-24 0.159000
11 2025-06-23 0.075000
12 2018-06-19 0.061000
13 2019-09-23 0.089000
14 2021-06-21 0.058000
15 2024-03-18 0.175000
16 2025-12-22 0.103000
17 2019-03-19 0.087000
18 2020-06-22 0.076000
19 2022-03-21 0.106000
20 2020-03-23 0.097000
21 2021-03-22 0.070000
22 2024-12-23 0.200000
23 2020-12-21 0.101000
24 2023-03-20 0.119000
25 2025-09-22 0.135000
26 2018-09-25 0.135000
27 2025-03-24 0.042000
28 2022-09-19 0.209000
29 2023-09-18 0.157000
30 2023-12-18 0.083000
31 2026-03-23 0.148000
32 2026-06-22 0.186000
33 2018-03-16 0.030000
34 2018-12-26 0.122000
35 2021-12-20 0.086000