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
6.2 KiB
JSON
1 line
6.2 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2546.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1766107800,"regularMarketTime":1781510165,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":14.07,"fiftyTwoWeekHigh":21.98,"fiftyTwoWeekLow":7.7,"regularMarketDayHigh":14.32,"regularMarketDayLow":13.63,"regularMarketVolume":357000,"longName":"Xizang Zhihui Mining Co., Ltd.","shortName":"ZHIHUI MINING","chartPreviousClose":10.8,"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":[1766107800,1766367000,1766453400,1766539800,1766971800,1767058200,1767144600,1767317400,1767576600,1767663000,1767749400,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],"indicators":{"quote":[{"high":[10.920000076293945,8.649999618530273,8.960000038146973,9.020000457763672,10.399999618530273,9.699999809265137,10.100000381469727,10.359999656677246,9.890000343322754,9.739999771118164,9.899999618530273,9.75,9.720000267028809,9.460000038146973,9.630000114440918,9.649999618530273,9.260000228881836,10.119999885559082,10.399999618530273,10.380000114440918,11.800000190734863,12.949999809265137,15.5,16.56999969482422,15.949999809265137,15.399999618530273,15.630000114440918,15.899999618530273,14.869999885559082,15.890000343322754,16.31999969482422,15.949999809265137,14.65999984741211,15.489999771118164,15.40999984741211,15.5,16.200000762939453,19.399999618530273,18.010000228881836,18.600000381469727,18.65999984741211,17.969999313354492,17.75,17.200000762939453,17.209999084472656,21.979999542236328,20.200000762939453,19.5,19.709999084472656,18.469999313354492,17.5],"open":[10.800000190734863,8.600000381469727,8.010000228881836,9.020000457763672,9.0,8.899999618530273,10.100000381469727,10.010000228881836,9.890000343322754,9.510000228881836,9.600000381469727,9.699999809265137,9.720000267028809,9.420000076293945,9.079999923706055,9.600000381469727,9.260000228881836,9.220000267028809,9.899999618530273,10.109999656677246,9.829999923706055,11.600000381469727,13.199999809265137,14.949999809265137,14.5,14.9399995803833,15.029999732971191,14.800000190734863,14.869999885559082,14.800000190734863,15.789999961853027,15.949999809265137,14.100000381469727,14.279999732971191,14.979999542236328,14.5,15.229999542236328,16.100000381469727,18.010000228881836,18.030000686645508,18.1200008392334,17.899999618530273,17.43000030517578,17.190000534057617,16.5,16.299999237060547,20.100000381469727,19.5,18.600000381469727,18.360000610351562,17.5],"volume":[30390200,4531400,2385000,0,2786182,1151000,0,997000,675000,649000,428000,398000,262000,700000,321000,302000,105000,2052000,493000,233000,990900,1894000,2847000,1458000,877000,627000,1069000,852200,1086000,583000,548000,823000,378000,379000,333500,467000,579000,1143000,0,467000,360000,506000,289000,329000,251000,1914000,487000,235000,267000,206000,317800],"low":[8.0,7.699999809265137,7.820000171661377,9.020000457763672,9.0,8.800000190734863,10.100000381469727,9.600000381469727,9.210000038146973,9.300000190734863,9.600000381469727,9.600000381469727,9.229999542236328,9.0,9.079999923706055,9.180000305175781,9.100000381469727,9.010000228881836,9.699999809265137,9.619999885559082,9.779999732971191,11.199999809265137,12.699999809265137,14.5,14.5,14.75,14.15999984741211,14.270000457763672,13.770000457763672,14.800000190734863,15.699999809265137,14.0,14.010000228881836,14.279999732971191,14.5,14.079999923706055,15.100000381469727,15.479999542236328,18.010000228881836,17.020000457763672,17.610000610351562,17.280000686645508,17.079999923706055,16.399999618530273,15.5,16.299999237060547,18.209999084472656,18.510000228881836,18.360000610351562,17.5,16.09000015258789],"close":[8.600000381469727,8.010000228881836,8.579999923706055,9.020000457763672,9.529999732971191,9.4399995803833,10.100000381469727,9.890000343322754,9.510000228881836,9.600000381469727,9.6899995803833,9.720000267028809,9.420000076293945,9.069999694824219,9.470000267028809,9.260000228881836,9.25,9.899999618530273,10.079999923706055,9.890000343322754,11.600000381469727,12.899999618530273,14.949999809265137,14.949999809265137,14.930000305175781,15.039999961853027,15.15999984741211,15.329999923706055,14.65999984741211,15.399999618530273,15.930000305175781,15.0,14.520000457763672,15.0,14.5,15.300000190734863,16.100000381469727,18.690000534057617,18.010000228881836,17.139999389648438,17.899999618530273,17.420000076293945,17.290000915527344,16.479999542236328,16.229999542236328,20.100000381469727,19.690000534057617,18.59000015258789,18.360000610351562,17.559999465942383,17.399999618530273]}],"adjclose":[{"adjclose":[8.531364440917969,7.946073532104492,8.511524200439453,8.948013305664062,9.45394229888916,9.364660263061523,10.019393920898438,9.81106948852539,9.434102058410645,9.523384094238281,9.612665176391602,9.642426490783691,9.344820022583008,8.997612953186035,9.394421577453613,9.186097145080566,9.176177024841309,9.820988655090332,9.999552726745605,9.81106948852539,11.50742244720459,12.797046661376953,14.83068561553955,14.83068561553955,14.810845375061035,14.919967651367188,15.039010047912598,15.207653045654297,14.543000221252441,15.277093887329102,15.802865028381348,14.880287170410156,14.404117584228516,14.880287170410156,14.38427734375,15.177892684936523,15.971508026123047,18.54083824157715,17.86626434326172,17.003206253051758,17.75714111328125,17.280973434448242,17.15201187133789,16.348474502563477,16.1004695892334,19.939584732055664,19.532855987548828,18.441635131835938,18.213472366333008,17.41985511779785,17.261133193969727]}]}}],"error":null}} |