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.1 KiB
JSON
1 line
6.1 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2396.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1766367000,"regularMarketTime":1781510274,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":4.6,"fiftyTwoWeekHigh":37.2,"fiftyTwoWeekLow":4.22,"regularMarketDayHigh":4.8,"regularMarketDayLow":4.22,"regularMarketVolume":21400,"longName":"B&K Corp Ltd","shortName":"B&K CORP-B","chartPreviousClose":33.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":[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,1773106200,1773192600,1773279000],"indicators":{"quote":[{"volume":[4989600,2257000,0,313200,643800,0,705320,600600,689800,421200,469200,230000,658800,284600,124200,269800,145200,405800,116400,156200,156200,47400,39400,100200,54800,114800,123200,98600,153400,98800,42600,35800,108200,94800,115400,46800,17000,0,26600,24200,23400,35600,17200,39000,60000,30800,40400,25800,34200,80600,59200,74800,99400],"low":[27.0,21.81999969482422,22.020000457763672,21.0,17.68000030517578,16.170000076293945,15.800000190734863,13.619999885559082,11.899999618530273,11.640000343322754,11.329999923706055,11.899999618530273,12.010000228881836,12.699999809265137,12.25,11.8100004196167,11.5,10.869999885559082,10.9399995803833,10.75,10.510000228881836,10.40999984741211,10.5,10.199999809265137,10.180000305175781,9.979999542236328,9.789999961853027,9.130000114440918,8.989999771118164,8.800000190734863,8.800000190734863,8.779999732971191,8.920000076293945,9.4399995803833,10.0,9.329999923706055,9.199999809265137,9.380000114440918,9.170000076293945,9.319999694824219,9.010000228881836,9.0,9.0600004196167,9.050000190734863,8.899999618530273,8.890000343322754,8.800000190734863,8.479999542236328,8.5,8.279999732971191,8.0,8.289999961853027,7.909999847412109],"open":[33.79999923706055,26.6200008392334,22.020000457763672,21.979999542236328,21.0,16.170000076293945,16.200000762939453,16.299999237060547,13.699999809265137,11.989999771118164,12.0,12.239999771118164,12.380000114440918,13.329999923706055,12.800000190734863,12.989999771118164,11.90999984741211,11.430000305175781,11.100000381469727,10.8100004196167,11.25,10.550000190734863,10.699999809265137,10.5,10.6899995803833,10.180000305175781,10.0600004196167,9.680000305175781,9.25,9.0,9.199999809265137,9.0,9.09000015258789,9.4399995803833,10.220000267028809,9.510000228881836,9.40999984741211,9.380000114440918,9.380000114440918,9.319999694824219,9.010000228881836,9.319999694824219,9.079999923706055,9.130000114440918,9.0600004196167,9.430000305175781,8.90999984741211,8.819999694824219,8.510000228881836,8.739999771118164,8.520000457763672,8.680000305175781,8.5],"high":[37.20000076293945,26.700000762939453,22.020000457763672,24.0,21.0,16.170000076293945,17.469999313354492,16.34000015258789,13.869999885559082,12.84000015258789,12.6899995803833,12.529999732971191,13.649999618530273,13.600000381469727,12.869999885559082,12.989999771118164,11.90999984741211,11.600000381469727,11.65999984741211,11.220000267028809,11.25,10.930000305175781,10.710000038146973,10.5,10.6899995803833,10.800000190734863,10.0600004196167,9.699999809265137,9.25,9.199999809265137,9.260000228881836,9.079999923706055,9.890000343322754,10.390000343322754,10.880000114440918,10.0,9.529999732971191,9.380000114440918,9.380000114440918,9.649999618530273,9.670000076293945,9.319999694824219,9.210000038146973,9.199999809265137,9.489999771118164,9.430000305175781,9.09000015258789,9.1899995803833,8.75,8.739999771118164,8.699999809265137,8.680000305175781,8.5],"close":[27.0,21.899999618530273,22.020000457763672,21.15999984741211,17.90999984741211,16.170000076293945,16.020000457763672,13.699999809265137,12.0,11.800000190734863,12.239999771118164,12.380000114440918,13.15999984741211,12.800000190734863,12.5,11.899999618530273,11.680000305175781,10.9399995803833,11.0,10.970000267028809,10.569999694824219,10.710000038146973,10.5,10.199999809265137,10.199999809265137,10.0600004196167,9.800000190734863,9.350000381469727,9.069999694824219,9.199999809265137,9.260000228881836,8.869999885559082,9.420000076293945,10.289999961853027,10.149999618530273,9.5,9.300000190734863,9.380000114440918,9.329999923706055,9.649999618530273,9.350000381469727,9.079999923706055,9.130000114440918,9.300000190734863,9.220000267028809,8.90999984741211,8.819999694824219,8.600000381469727,8.739999771118164,8.449999809265137,8.300000190734863,8.40999984741211,8.100000381469727]}],"adjclose":[{"adjclose":[27.0,21.899999618530273,22.020000457763672,21.15999984741211,17.90999984741211,16.170000076293945,16.020000457763672,13.699999809265137,12.0,11.800000190734863,12.239999771118164,12.380000114440918,13.15999984741211,12.800000190734863,12.5,11.899999618530273,11.680000305175781,10.9399995803833,11.0,10.970000267028809,10.569999694824219,10.710000038146973,10.5,10.199999809265137,10.199999809265137,10.0600004196167,9.800000190734863,9.350000381469727,9.069999694824219,9.199999809265137,9.260000228881836,8.869999885559082,9.420000076293945,10.289999961853027,10.149999618530273,9.5,9.300000190734863,9.380000114440918,9.329999923706055,9.649999618530273,9.350000381469727,9.079999923706055,9.130000114440918,9.300000190734863,9.220000267028809,8.90999984741211,8.819999694824219,8.600000381469727,8.739999771118164,8.449999809265137,8.300000190734863,8.40999984741211,8.100000381469727]}]}}],"error":null}} |