Freeze stale (Yahoo-empty) tickers: snapshot final series in overrides/frozen/
230 tickers whose Yahoo chart responses now come back without a timestamp array (terminated/merged funds): goget overwrites the .json on every pass while ohlc.Conv skips the write, leaving the old CSVs as the last known series. Snapshot them into overrides/frozen/ (git-tracked, audited in reports/stale-funds.md) and make data.py prefer the frozen copies and ignore any future data-root rewrite/delete for those symbols, so the final series survives future goget runs. The cache manifest now covers the overrides dir too; incremental refresh skips data-root files of frozen symbols.
This commit is contained in:
@@ -57,7 +57,10 @@ def reload(d: pathlib.Path) -> D.Bundle:
|
||||
def main() -> int:
|
||||
# fast watcher for the background-refresh test below
|
||||
D.WATCH_INTERVAL, D.REFRESH_CADENCE = 0.2, 0.0
|
||||
# synthetic root: no frozen overrides
|
||||
tmp = pathlib.Path(tempfile.mkdtemp(prefix="fdatatest-"))
|
||||
D.FROZEN_DIR = tmp / "frozen"
|
||||
D.FROZEN_DIR.mkdir()
|
||||
root, cache = tmp / "stocks", tmp / "cache"
|
||||
root.mkdir()
|
||||
d = {"root": root, "cache": cache}
|
||||
|
||||
Reference in New Issue
Block a user