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
+69
View File
@@ -0,0 +1,69 @@
Date,Dividends
2021-06-10,0.012000
2022-12-23,0.191000
2026-03-25,0.013000
2014-06-17,0.033000
2014-09-18,0.035000
2016-09-15,0.020000
2016-12-19,0.793000
2018-03-13,0.021000
2019-09-12,0.039000
2025-12-23,0.790000
2012-09-11,0.027000
2013-09-26,0.019000
2014-03-18,0.020000
2007-09-25,0.039000
2018-12-20,0.887000
2013-06-25,0.026000
2025-09-11,0.025000
2026-06-24,0.033000
2007-12-26,0.131000
2017-03-14,0.010000
2024-06-13,0.028000
2016-06-14,0.048000
2018-06-12,0.060000
2008-12-31,0.002000
2009-09-22,0.018000
2011-06-21,0.038000
2023-06-15,0.033000
2023-12-22,0.604000
2012-12-21,0.374000
2019-06-11,0.053000
2020-06-11,0.014000
2008-03-25,0.034000
2017-09-14,0.044000
2013-12-20,0.638000
2014-12-19,0.650000
2020-12-23,0.280000
2009-06-23,0.039000
2010-09-24,0.020000
2010-12-29,0.148000
2022-06-09,0.028000
2022-09-15,0.013000
2008-06-24,0.035000
2009-12-22,0.162000
2015-06-16,0.051000
2015-09-15,0.027000
2017-06-13,0.053000
2024-09-12,0.026000
2025-06-12,0.039000
2009-03-24,0.020000
2013-03-19,0.022000
2015-03-17,0.018000
2011-09-20,0.025000
2016-03-15,0.016000
2019-03-12,0.018000
2024-12-23,1.269000
2008-12-22,0.064000
2019-12-23,0.936000
2023-09-14,0.006000
2010-06-22,0.026000
2015-12-21,0.495000
2021-09-09,0.022000
2021-12-23,0.967000
2011-12-21,0.316000
2017-12-20,0.738000
2018-09-12,0.037000
2008-09-23,0.039000
2012-06-19,0.047000
2020-09-10,0.346000
1 Date Dividends
2 2021-06-10 0.012000
3 2022-12-23 0.191000
4 2026-03-25 0.013000
5 2014-06-17 0.033000
6 2014-09-18 0.035000
7 2016-09-15 0.020000
8 2016-12-19 0.793000
9 2018-03-13 0.021000
10 2019-09-12 0.039000
11 2025-12-23 0.790000
12 2012-09-11 0.027000
13 2013-09-26 0.019000
14 2014-03-18 0.020000
15 2007-09-25 0.039000
16 2018-12-20 0.887000
17 2013-06-25 0.026000
18 2025-09-11 0.025000
19 2026-06-24 0.033000
20 2007-12-26 0.131000
21 2017-03-14 0.010000
22 2024-06-13 0.028000
23 2016-06-14 0.048000
24 2018-06-12 0.060000
25 2008-12-31 0.002000
26 2009-09-22 0.018000
27 2011-06-21 0.038000
28 2023-06-15 0.033000
29 2023-12-22 0.604000
30 2012-12-21 0.374000
31 2019-06-11 0.053000
32 2020-06-11 0.014000
33 2008-03-25 0.034000
34 2017-09-14 0.044000
35 2013-12-20 0.638000
36 2014-12-19 0.650000
37 2020-12-23 0.280000
38 2009-06-23 0.039000
39 2010-09-24 0.020000
40 2010-12-29 0.148000
41 2022-06-09 0.028000
42 2022-09-15 0.013000
43 2008-06-24 0.035000
44 2009-12-22 0.162000
45 2015-06-16 0.051000
46 2015-09-15 0.027000
47 2017-06-13 0.053000
48 2024-09-12 0.026000
49 2025-06-12 0.039000
50 2009-03-24 0.020000
51 2013-03-19 0.022000
52 2015-03-17 0.018000
53 2011-09-20 0.025000
54 2016-03-15 0.016000
55 2019-03-12 0.018000
56 2024-12-23 1.269000
57 2008-12-22 0.064000
58 2019-12-23 0.936000
59 2023-09-14 0.006000
60 2010-06-22 0.026000
61 2015-12-21 0.495000
62 2021-09-09 0.022000
63 2021-12-23 0.967000
64 2011-12-21 0.316000
65 2017-12-20 0.738000
66 2018-09-12 0.037000
67 2008-09-23 0.039000
68 2012-06-19 0.047000
69 2020-09-10 0.346000