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.6 KiB
JSON
1 line
6.6 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2508.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1750901400,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":3.63,"fiftyTwoWeekHigh":11.0,"fiftyTwoWeekLow":3.4,"regularMarketDayHigh":3.88,"regularMarketDayLow":3.63,"regularMarketVolume":219881,"longName":"Saint Bella Group Limited","shortName":"SAINT BELLA GP","chartPreviousClose":8.45,"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","6mo","1y","ytd","max"]},"timestamp":[1750901400,1750987800,1751247000,1751419800,1751506200,1751592600,1751851800,1751938200,1752024600,1752111000,1752197400,1752456600,1752543000,1752629400,1752715800,1752802200,1753061400,1753147800,1753234200,1753320600,1753407000,1753666200,1753752600,1753839000,1753925400,1754011800,1754271000,1754357400,1754443800,1754530200,1754616600,1754875800,1754962200,1755048600,1755135000,1755221400,1755480600,1755567000,1755653400,1755739800,1755826200,1756085400,1756171800,1756258200,1756344600,1756431000,1756690200,1756776600,1756863000,1756949400,1757035800,1757295000,1757381400,1757467800,1757554200,1757640600],"indicators":{"quote":[{"low":[8.449999809265137,6.53000020980835,6.590000152587891,6.449999809265137,6.230000019073486,6.079999923706055,6.579999923706055,6.909999847412109,6.920000076293945,7.559999942779541,7.650000095367432,7.599999904632568,7.71999979019165,7.849999904632568,7.5,7.329999923706055,7.199999809265137,6.980000019073486,6.949999809265137,7.0,7.039999961853027,7.170000076293945,7.25,7.460000038146973,7.309999942779541,7.099999904632568,7.050000190734863,7.349999904632568,7.5,7.480000019073486,7.349999904632568,7.420000076293945,7.449999809265137,7.099999904632568,7.190000057220459,7.070000171661377,6.800000190734863,6.900000095367432,6.710000038146973,6.860000133514404,6.739999771118164,6.699999809265137,6.690000057220459,6.679999828338623,6.579999923706055,6.619999885559082,6.5,6.5,6.53000020980835,6.630000114440918,6.710000038146973,6.449999809265137,6.670000076293945,6.940000057220459,6.800000190734863,6.860000133514404],"open":[8.449999809265137,8.680000305175781,6.699999809265137,6.78000020980835,6.519999980926514,6.239999771118164,6.610000133514404,7.0,7.139999866485596,7.570000171661377,8.020000457763672,7.75,7.71999979019165,8.25,7.940000057220459,7.539999961853027,7.440000057220459,7.460000038146973,7.0,7.28000020980835,7.150000095367432,7.300000190734863,7.900000095367432,7.619999885559082,7.849999904632568,7.389999866485596,7.119999885559082,7.460000038146973,7.5,7.71999979019165,7.5,7.480000019073486,7.449999809265137,7.5,7.190000057220459,7.25,7.119999885559082,7.119999885559082,6.900000095367432,7.050000190734863,6.880000114440918,6.78000020980835,6.849999904632568,6.989999771118164,6.710000038146973,6.630000114440918,6.630000114440918,6.610000133514404,6.53000020980835,6.699999809265137,6.75,6.679999828338623,6.730000019073486,7.090000152587891,6.989999771118164,6.860000133514404],"close":[8.800000190734863,6.550000190734863,6.769999980926514,6.510000228881836,6.239999771118164,6.610000133514404,7.0,6.989999771118164,7.570000171661377,8.0,7.75,7.71999979019165,8.079999923706055,7.909999847412109,7.539999961853027,7.429999828338623,7.460000038146973,7.03000020980835,7.269999980926514,7.150000095367432,7.170000076293945,7.659999847412109,7.619999885559082,7.690000057220459,7.320000171661377,7.110000133514404,7.409999847412109,7.5,7.71999979019165,7.570000171661377,7.480000019073486,7.449999809265137,7.449999809265137,7.139999866485596,7.25,7.139999866485596,7.059999942779541,6.900000095367432,7.03000020980835,6.929999828338623,6.78000020980835,6.849999904632568,6.980000019073486,6.710000038146973,6.630000114440918,6.650000095367432,6.619999885559082,6.519999980926514,6.760000228881836,6.789999961853027,6.710000038146973,6.730000019073486,7.090000152587891,6.989999771118164,6.809999942779541,6.920000076293945],"volume":[94418160,38261600,8571500,7064200,5350500,7551000,4781000,3280500,4734190,7202500,5292800,1986000,3231500,2962500,4892000,1529500,1638500,2804500,2407500,1662000,1649500,4307500,5229000,5713900,3482000,1741000,1631600,1427000,1056000,1950100,1522500,672500,599000,3284000,1869000,1979500,3296600,713500,1140000,774500,710000,668900,1064000,1073000,1070500,854500,733500,587000,534000,1178000,205500,1915500,2105000,488500,452500,575500],"high":[11.0,8.680000305175781,7.190000057220459,6.849999904632568,6.699999809265137,6.760000228881836,7.070000171661377,7.28000020980835,7.690000057220459,8.170000076293945,8.199999809265137,7.929999828338623,8.130000114440918,8.399999618530273,8.149999618530273,7.579999923706055,7.53000020980835,7.519999980926514,7.550000190734863,7.320000171661377,7.320000171661377,7.699999809265137,7.980000019073486,7.860000133514404,7.949999809265137,7.460000038146973,7.480000019073486,7.550000190734863,7.71999979019165,7.889999866485596,7.539999961853027,7.619999885559082,7.619999885559082,7.679999828338623,7.420000076293945,7.25,7.119999885559082,7.119999885559082,7.099999904632568,7.130000114440918,6.909999847412109,7.050000190734863,7.059999942779541,7.010000228881836,6.75,6.789999961853027,6.699999809265137,6.670000076293945,6.800000190734863,6.900000095367432,6.869999885559082,6.880000114440918,7.309999942779541,7.199999809265137,6.949999809265137,7.119999885559082]}],"adjclose":[{"adjclose":[8.800000190734863,6.550000190734863,6.769999980926514,6.510000228881836,6.239999771118164,6.610000133514404,7.0,6.989999771118164,7.570000171661377,8.0,7.75,7.71999979019165,8.079999923706055,7.909999847412109,7.539999961853027,7.429999828338623,7.460000038146973,7.03000020980835,7.269999980926514,7.150000095367432,7.170000076293945,7.659999847412109,7.619999885559082,7.690000057220459,7.320000171661377,7.110000133514404,7.409999847412109,7.5,7.71999979019165,7.570000171661377,7.480000019073486,7.449999809265137,7.449999809265137,7.139999866485596,7.25,7.139999866485596,7.059999942779541,6.900000095367432,7.03000020980835,6.929999828338623,6.78000020980835,6.849999904632568,6.980000019073486,6.710000038146973,6.630000114440918,6.650000095367432,6.619999885559082,6.519999980926514,6.760000228881836,6.789999961853027,6.710000038146973,6.730000019073486,7.090000152587891,6.989999771118164,6.809999942779541,6.920000076293945]}]}}],"error":null}} |