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.4 KiB
JSON
1 line
4.4 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2513.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1767835800,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":1457.0,"fiftyTwoWeekHigh":1993.0,"fiftyTwoWeekLow":116.1,"regularMarketDayHigh":1620.0,"regularMarketDayLow":1261.0,"regularMarketVolume":5528562,"longName":"Knowledge Atlas Tech Joint","shortName":"KNOWLEDGE ATLAS","chartPreviousClose":120.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","6mo","ytd","max"]},"timestamp":[1767835800,1767922200,1768181400,1768267800,1768354200,1768440600,1768527000,1768786200,1768872600,1768959000,1769045400,1769131800,1769391000,1769477400,1769563800,1769650200,1769736600,1769995800,1770082200,1770168600,1770255000,1770341400,1770600600,1770687000,1770773400,1770859800,1770946200,1771205400,1771551000,1771810200,1771896600,1771983000,1772069400,1772155800,1772415000,1772501400,1772587800,1772674200,1772760600,1773019800,1773106200,1773192600,1773279000,1773365400,1773624600,1773711000,1773797400,1773883800,1773970200,1774229400,1774315800,1774402200,1774488600,1774575000],"indicators":{"quote":[{"high":[135.0,165.0,258.0,225.1999969482422,222.60000610351562,243.0,263.0,250.0,232.1999969482422,217.0,209.60000610351562,205.0,224.1999969482422,244.60000610351562,233.1999969482422,252.0,234.8000030517578,246.60000610351562,253.0,237.0,231.0,208.60000610351562,287.79998779296875,344.0,354.0,443.0,496.0,502.5,725.0,672.5,698.0,666.0,600.0,592.0,610.0,625.0,578.0,551.5,553.5,583.0,697.0,708.0,633.5,582.0,615.0,639.5,765.0,738.0,690.0,633.5,655.0,760.0,790.0,696.0],"open":[120.0,137.1999969482422,182.3000030517578,220.39999389648438,194.6999969482422,212.0,233.8000030517578,245.0,232.0,208.0,209.60000610351562,205.0,192.0,223.0,233.1999969482422,230.60000610351562,228.0,226.1999969482422,230.0,235.0,222.60000610351562,207.0,214.0,278.0,333.0,339.79998779296875,422.0,502.5,534.0,625.0,575.5,591.0,580.5,540.0,550.5,568.0,534.0,526.0,509.0,513.0,648.0,629.0,625.0,551.5,545.0,609.0,625.0,710.0,683.0,600.0,618.0,685.0,780.0,684.0],"volume":[17518159,6908145,9421009,4117444,5821301,3436595,4242273,2363775,2642614,1707360,1208921,1317505,3131935,3321494,1284174,2974195,1156013,1791910,2544481,1116794,938707,1177111,4530724,3427046,3120272,6813071,5238296,0,5266887,5397566,5089620,2819983,1858203,3914912,1719691,4402599,2355798,2023341,1380878,4377154,7467565,4619682,3103968,3044232,3778080,2314464,4439353,2511730,1980638,1783482,1821358,3312577,1879730,1687128],"low":[116.0999984741211,137.1999969482422,165.10000610351562,176.0,189.0,206.0,228.0,220.1999969482422,197.5,200.0,196.10000610351562,190.6999969482422,185.0,214.0,221.0,224.0,216.60000610351562,219.0,229.8000030517578,222.1999969482422,210.60000610351562,198.0,214.0,277.3999938964844,306.79998779296875,318.79998779296875,408.0,502.5,532.5,540.0,525.0,555.5,553.0,482.0,544.0,526.5,500.0,497.0,505.0,481.20001220703125,587.0,600.0,545.5,519.0,543.5,593.5,624.0,646.0,615.0,571.0,595.0,663.0,683.0,641.5],"close":[131.5,158.60000610351562,208.39999389648438,181.8000030517578,216.0,241.0,250.0,224.0,207.39999389648438,204.0,202.60000610351562,192.0,217.0,233.39999389648438,228.0,227.0,226.1999969482422,224.60000610351562,243.1999969482422,227.1999969482422,216.1999969482422,203.1999969482422,276.79998779296875,317.79998779296875,312.3999938964844,402.0,485.0,502.5,725.0,560.0,628.0,560.5,556.5,575.0,550.0,528.0,510.0,520.0,532.0,575.0,649.0,609.5,555.5,530.0,605.0,621.5,742.5,659.0,630.5,590.0,655.0,760.0,684.0,668.0]}],"adjclose":[{"adjclose":[131.5,158.60000610351562,208.39999389648438,181.8000030517578,216.0,241.0,250.0,224.0,207.39999389648438,204.0,202.60000610351562,192.0,217.0,233.39999389648438,228.0,227.0,226.1999969482422,224.60000610351562,243.1999969482422,227.1999969482422,216.1999969482422,203.1999969482422,276.79998779296875,317.79998779296875,312.3999938964844,402.0,485.0,502.5,725.0,560.0,628.0,560.5,556.5,575.0,550.0,528.0,510.0,520.0,532.0,575.0,649.0,609.5,555.5,530.0,605.0,621.5,742.5,659.0,630.5,590.0,655.0,760.0,684.0,668.0]}]}}],"error":null}} |