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
4.8 KiB
JSON
1 line
4.8 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2526.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1774834200,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":326.0,"fiftyTwoWeekHigh":428.0,"fiftyTwoWeekLow":178.0,"regularMarketDayHigh":341.2,"regularMarketDayLow":317.6,"regularMarketVolume":76320,"longName":"Hangzhou Diagens Biotechnology Co., Ltd.","shortName":"DIAGENS-B","chartPreviousClose":219.0,"priceHint":3,"currentTradingPeriod":{"pre":{"timezone":"HKT","start":1781485200,"end":1781487000,"gmtoffset":28800},"regular":{"timezone":"HKT","start":1781487000,"end":1781511000,"gmtoffset":28800},"post":{"timezone":"HKT","start":1781511000,"end":1781511000,"gmtoffset":28800}},"dataGranularity":"1d","range":"","validRanges":["1d","5d","1mo","3mo","ytd","max"]},"timestamp":[1774834200,1774920600,1775007000,1775093400,1775611800,1775698200,1775784600,1776043800,1776130200,1776216600,1776303000,1776389400,1776648600,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,1780277400,1780363800,1780450200,1780536600,1780623000,1780882200,1780968600,1781055000,1781141400,1781227800,1781487000],"indicators":{"quote":[{"close":[209.60000610351562,198.0,246.1999969482422,234.0,273.0,299.0,300.0,291.0,277.0,269.3999938964844,283.0,282.20001220703125,293.0,288.3999938964844,289.3999938964844,283.20001220703125,286.0,277.79998779296875,269.20001220703125,271.0,288.0,331.0,338.0,318.0,315.0,330.0,298.79998779296875,299.79998779296875,343.6000061035156,310.79998779296875,300.6000061035156,311.79998779296875,305.3999938964844,298.20001220703125,307.6000061035156,350.0,377.6000061035156,380.0,372.3999938964844,355.0,332.0,323.0,328.0,320.3999938964844,315.0,309.3999938964844,311.0,315.0,318.3999938964844,325.3999938964844,326.0],"volume":[2240320,478590,720186,467650,605180,834554,365270,196950,236100,121650,351302,150600,260686,198100,252610,118550,110500,221350,148992,106900,118060,252546,140470,130800,145250,177900,269300,429400,330940,129500,61000,136300,89000,257450,78500,194844,281800,116300,86050,117250,107610,87500,70958,62540,106960,53800,24390,19452,75160,24240,76320],"open":[219.0,215.0,200.0,245.0,242.0,276.0,299.0,300.0,294.0,280.79998779296875,265.20001220703125,282.0,282.0,303.0,288.6000061035156,292.0,283.20001220703125,286.0,277.79998779296875,275.20001220703125,279.0,295.0,331.0,339.0,320.0,327.0,329.6000061035156,309.20001220703125,303.3999938964844,350.0,310.0,300.6000061035156,314.0,305.3999938964844,304.3999938964844,308.0,362.3999938964844,392.3999938964844,394.6000061035156,379.0,370.0,357.79998779296875,313.79998779296875,321.79998779296875,325.0,300.3999938964844,309.3999938964844,311.0,315.0,320.0,340.0],"high":[226.0,215.0,250.0,259.0,276.0,306.0,312.0,314.79998779296875,302.0,283.6000061035156,291.0,287.3999938964844,308.0,303.0,306.0,299.0,290.6000061035156,286.0,277.79998779296875,277.6000061035156,290.6000061035156,343.0,342.79998779296875,345.0,329.20001220703125,334.3999938964844,329.6000061035156,309.20001220703125,365.0,350.0,311.3999938964844,315.0,316.3999938964844,305.3999938964844,322.0,350.0,428.0,392.3999938964844,394.6000061035156,379.0,370.0,357.79998779296875,335.20001220703125,325.0,325.0,317.20001220703125,315.0,330.0,321.0,332.0,341.20001220703125],"low":[191.0,178.0,190.0,195.0,240.0,266.79998779296875,280.20001220703125,285.0,275.0,264.0,265.20001220703125,261.0,278.0,284.6000061035156,278.0,278.3999938964844,275.79998779296875,268.0,262.79998779296875,267.3999938964844,268.3999938964844,286.0,325.0,310.6000061035156,310.79998779296875,309.0,286.0,277.6000061035156,293.0,305.0,294.20001220703125,289.20001220703125,295.20001220703125,295.6000061035156,300.0,308.0,355.0,359.3999938964844,367.0,341.0,327.6000061035156,307.20001220703125,313.79998779296875,316.20001220703125,301.0,298.20001220703125,304.79998779296875,302.20001220703125,309.0,317.6000061035156,317.6000061035156]}],"adjclose":[{"adjclose":[209.60000610351562,198.0,246.1999969482422,234.0,273.0,299.0,300.0,291.0,277.0,269.3999938964844,283.0,282.20001220703125,293.0,288.3999938964844,289.3999938964844,283.20001220703125,286.0,277.79998779296875,269.20001220703125,271.0,288.0,331.0,338.0,318.0,315.0,330.0,298.79998779296875,299.79998779296875,343.6000061035156,310.79998779296875,300.6000061035156,311.79998779296875,305.3999938964844,298.20001220703125,307.6000061035156,350.0,377.6000061035156,380.0,372.3999938964844,355.0,332.0,323.0,328.0,320.3999938964844,315.0,309.3999938964844,311.0,315.0,318.3999938964844,325.3999938964844,326.0]}]}}],"error":null}} |