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
+53
View File
@@ -0,0 +1,53 @@
Date,Dividends
2021-09-23,0.124000
2021-12-14,1.564000
2014-06-17,0.137000
2015-06-16,0.135000
2015-09-22,0.127000
2015-12-10,0.131000
2018-12-10,4.016000
2020-09-17,0.162000
2023-09-28,0.121000
2016-12-08,0.275000
2017-12-11,1.838000
2018-03-20,0.152000
2023-12-13,1.416000
2024-06-27,0.178000
2016-09-20,0.138000
2019-09-19,0.217000
2020-03-19,0.094000
2021-06-24,0.148000
2022-12-14,4.808000
2023-03-23,0.121000
2022-09-22,0.167000
2024-09-26,0.180000
2017-06-20,0.126000
2017-09-19,0.167000
2018-06-19,0.172000
2018-09-18,0.178000
2020-06-18,0.120000
2021-03-25,0.143000
2024-12-12,4.926000
2025-09-25,0.154000
2014-03-18,0.169000
2014-09-16,0.114000
2019-12-13,7.577000
2022-06-23,0.168000
2024-03-28,0.153000
2025-12-11,4.045000
2012-12-03,0.431000
2013-12-02,0.489000
2020-12-11,0.397000
2025-03-27,0.152000
2025-06-26,0.153000
2026-06-25,0.171000
2015-03-17,0.118000
2016-03-22,0.138000
2019-03-19,0.137000
2019-06-20,0.170000
2022-03-24,0.125000
2023-06-22,0.121000
2014-12-01,0.121000
2016-06-21,0.117000
2017-03-21,0.053000
2026-03-26,0.155000
1 Date Dividends
2 2021-09-23 0.124000
3 2021-12-14 1.564000
4 2014-06-17 0.137000
5 2015-06-16 0.135000
6 2015-09-22 0.127000
7 2015-12-10 0.131000
8 2018-12-10 4.016000
9 2020-09-17 0.162000
10 2023-09-28 0.121000
11 2016-12-08 0.275000
12 2017-12-11 1.838000
13 2018-03-20 0.152000
14 2023-12-13 1.416000
15 2024-06-27 0.178000
16 2016-09-20 0.138000
17 2019-09-19 0.217000
18 2020-03-19 0.094000
19 2021-06-24 0.148000
20 2022-12-14 4.808000
21 2023-03-23 0.121000
22 2022-09-22 0.167000
23 2024-09-26 0.180000
24 2017-06-20 0.126000
25 2017-09-19 0.167000
26 2018-06-19 0.172000
27 2018-09-18 0.178000
28 2020-06-18 0.120000
29 2021-03-25 0.143000
30 2024-12-12 4.926000
31 2025-09-25 0.154000
32 2014-03-18 0.169000
33 2014-09-16 0.114000
34 2019-12-13 7.577000
35 2022-06-23 0.168000
36 2024-03-28 0.153000
37 2025-12-11 4.045000
38 2012-12-03 0.431000
39 2013-12-02 0.489000
40 2020-12-11 0.397000
41 2025-03-27 0.152000
42 2025-06-26 0.153000
43 2026-06-25 0.171000
44 2015-03-17 0.118000
45 2016-03-22 0.138000
46 2019-03-19 0.137000
47 2019-06-20 0.170000
48 2022-03-24 0.125000
49 2023-06-22 0.121000
50 2014-12-01 0.121000
51 2016-06-21 0.117000
52 2017-03-21 0.053000
53 2026-03-26 0.155000