078f56998b
Request:
- Adjust archivist after the audit findings and update historical data.
Changes:
- Teach the archivist skill to close audit-discovered gaps in priority order.
- Add scripts/archive_price_performance.py for due D1/D5/D20/D60 price-performance backfills.
- Document the price-performance backfill command in README.
- Archive raw Yahoo Finance chart responses under repo-relative data/raw/{ticker}/ paths.
- Populate price_performance with D1/D5/D20/D60 checkpoints and refresh source_refs, sync_runs, sync_tasks, and ticker_sync_state snapshots.
Execution:
- Ran .venv/bin/python scripts/archive_price_performance.py --as-of 2026-06-15T10:00:00Z.
- Selected 291 due price-performance tickers.
- Archived 273 price-history sources and wrote 1063 price-performance rows.
- Re-ran .venv/bin/python scripts/archive_hkex_documents.py --as-of 2026-06-15T10:05:00Z for the remaining open T0/T1 tasks; no additional completed T0/T1 stages resulted.
Verification:
- Compiled the new price-performance script.
- Ran git diff --check.
- Checked SQLite integrity and foreign keys.
- Confirmed database row counts match CSV snapshots.
- Verified all 979 source_refs use valid repo-relative paths, have files, have hashes, and SHA256 hashes match.
- Confirmed no generated Python caches or SQLite transient files remain.
Next useful context:
- price_performance now has 1063 rows: D1 273, D5 272, D20 267, D60 251.
- Remaining due price-performance gaps are 18 tickers where Yahoo history was unavailable or the request failed.
- T0/T1 gaps remain at T0 93 and T1 77; T2 grey-market remains unresolved pending a reproducible source strategy.
1 line
3.1 KiB
JSON
1 line
3.1 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2476.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1776735000,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":415.0,"fiftyTwoWeekHigh":475.0,"fiftyTwoWeekLow":290.0,"regularMarketDayHigh":416.2,"regularMarketDayLow":383.0,"regularMarketVolume":3863791,"shortName":"VGT","chartPreviousClose":330.0,"priceHint":3,"currentTradingPeriod":{"pre":{"timezone":"HKT","end":1781487000,"start":1781485200,"gmtoffset":28800},"regular":{"timezone":"HKT","end":1781511000,"start":1781487000,"gmtoffset":28800},"post":{"timezone":"HKT","end":1781511000,"start":1781511000,"gmtoffset":28800}},"dataGranularity":"1d","range":"","validRanges":["1d","5d","1mo","3mo","ytd","max"]},"timestamp":[1776735000,1776821400,1776907800,1776994200,1777253400,1777339800,1777426200,1777512600,1777858200,1777944600,1778031000,1778117400,1778203800,1778463000,1778549400,1778635800,1778722200,1778808600,1779067800,1779154200,1779240600,1779327000,1779413400,1779759000,1779845400,1779931800,1780018200],"indicators":{"quote":[{"low":[302.0,310.0,310.6000061035156,305.79998779296875,306.6000061035156,297.6000061035156,290.0,312.0,320.20001220703125,318.0,318.20001220703125,323.20001220703125,324.0,350.0,372.20001220703125,368.20001220703125,353.0,330.3999938964844,337.79998779296875,358.0,350.3999938964844,342.6000061035156,357.79998779296875,400.0,429.6000061035156,426.0,419.0],"close":[315.0,336.79998779296875,317.79998779296875,315.6000061035156,307.0,300.0,321.0,319.3999938964844,320.6000061035156,319.0,320.6000061035156,330.0,345.3999938964844,392.6000061035156,374.0,385.0,354.3999938964844,340.0,368.79998779296875,371.20001220703125,351.20001220703125,346.20001220703125,403.6000061035156,437.20001220703125,436.79998779296875,438.20001220703125,426.0],"open":[330.0,310.0,337.0,315.79998779296875,315.6000061035156,310.0,297.0,326.79998779296875,326.0,319.0,321.0,325.0,325.20001220703125,352.0,410.0,372.0,396.0,360.0,338.3999938964844,365.0,370.20001220703125,360.79998779296875,358.0,404.20001220703125,442.0,430.20001220703125,450.0],"high":[336.20001220703125,345.0,341.0,324.6000061035156,324.0,315.0,328.0,328.0,337.0,328.0,330.0,336.0,356.79998779296875,396.0,410.0,389.0,398.20001220703125,363.0,377.3999938964844,383.0,378.79998779296875,365.79998779296875,405.0,450.0,469.6000061035156,455.0,475.0],"volume":[33822392,10169031,6068484,3905646,3378700,3844873,6339518,1819652,3504202,1493861,3894053,4446806,5383233,6890858,3953559,3849471,4106231,3551397,7248397,5395730,4687386,4363401,9062011,7950325,5511168,5000239,5622455]}],"adjclose":[{"adjclose":[315.0,336.79998779296875,317.79998779296875,315.6000061035156,307.0,300.0,321.0,319.3999938964844,320.6000061035156,319.0,320.6000061035156,330.0,345.3999938964844,392.6000061035156,374.0,385.0,354.3999938964844,340.0,368.79998779296875,371.20001220703125,351.20001220703125,346.20001220703125,403.6000061035156,437.20001220703125,436.79998779296875,438.20001220703125,426.0]}]}}],"error":null}} |