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.4 KiB
JSON
1 line
6.4 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"1497.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1702344600,"regularMarketTime":1781494469,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":6.9,"fiftyTwoWeekHigh":8.78,"fiftyTwoWeekLow":4.84,"regularMarketDayHigh":6.96,"regularMarketDayLow":6.96,"regularMarketVolume":400,"longName":"Xiamen Yan Palace Bird's Nest Industry Co., Ltd.","shortName":"YAN PALACE","chartPreviousClose":10.5,"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","2y","5y","ytd","max"]},"timestamp":[1702344600,1702431000,1702517400,1702603800,1702863000,1702949400,1703035800,1703122200,1703208600,1703640600,1703727000,1703813400,1704159000,1704245400,1704331800,1704418200,1704677400,1704763800,1704850200,1704936600,1705023000,1705282200,1705368600,1705455000,1705541400,1705627800,1705887000,1705973400,1706059800,1706146200,1706232600,1706491800,1706578200,1706664600,1706751000,1706837400,1707096600,1707183000,1707269400,1707355800,1707442200,1707874200,1707960600,1708047000,1708306200,1708392600,1708479000,1708565400,1708651800,1708911000,1708997400,1709083800,1709170200,1709256600],"indicators":{"quote":[{"close":[9.699999809265137,9.0,9.300000190734863,9.5,9.449999809265137,9.199999809265137,9.0,7.900000095367432,7.579999923706055,8.5,9.020000457763672,9.0,9.0600004196167,9.470000267028809,9.5,9.149999618530273,8.970000267028809,9.069999694824219,9.149999618530273,9.550000190734863,9.6899995803833,9.630000114440918,9.880000114440918,9.5,9.699999809265137,9.710000038146973,9.489999771118164,9.449999809265137,9.350000381469727,9.6899995803833,9.5,9.699999809265137,9.720000267028809,9.800000190734863,9.699999809265137,9.460000038146973,9.390000343322754,9.619999885559082,9.800000190734863,9.800000190734863,9.800000190734863,10.920000076293945,10.479999542236328,11.0600004196167,10.260000228881836,10.600000381469727,10.520000457763672,10.4399995803833,10.239999771118164,10.720000267028809,10.680000305175781,10.5,10.380000114440918,10.039999961853027],"volume":[11365600,3122800,1439610,742000,775600,928800,505200,963600,908800,910800,895600,1688400,238000,320000,149600,120800,205200,190400,89200,360800,211600,0,139600,217600,129200,103200,93600,34800,94400,166800,212000,294400,181600,296800,158000,264400,277600,250400,284400,242400,0,656400,510800,322000,271600,234800,220000,232000,237600,246000,238000,224000,253600,265200],"low":[9.619999885559082,8.479999542236328,8.699999809265137,9.029999732971191,9.069999694824219,9.100000381469727,8.989999771118164,7.800000190734863,6.849999904632568,7.800000190734863,8.600000381469727,9.0,8.710000038146973,8.850000381469727,9.420000076293945,9.0600004196167,8.760000228881836,8.920000076293945,8.979999542236328,8.989999771118164,9.449999809265137,9.630000114440918,9.609999656677246,9.489999771118164,9.390000343322754,9.600000381469727,9.210000038146973,9.359999656677246,9.300000190734863,9.239999771118164,9.40999984741211,9.329999923706055,9.399999618530273,9.350000381469727,9.489999771118164,9.420000076293945,9.350000381469727,9.390000343322754,9.550000190734863,9.600000381469727,9.800000190734863,9.680000305175781,10.15999984741211,10.300000190734863,10.140000343322754,10.15999984741211,10.34000015258789,10.399999618530273,10.100000381469727,10.199999809265137,10.600000381469727,10.220000267028809,10.34000015258789,10.020000457763672],"high":[10.699999809265137,9.670000076293945,9.479999542236328,9.5,9.5,9.4399995803833,9.270000457763672,8.970000267028809,8.050000190734863,8.5,9.15999984741211,9.680000305175781,9.25,9.680000305175781,9.579999923706055,9.5,9.270000457763672,9.300000190734863,9.279999732971191,9.649999618530273,9.6899995803833,9.630000114440918,9.960000038146973,9.789999961853027,9.699999809265137,9.800000190734863,9.5,9.510000228881836,9.460000038146973,9.699999809265137,9.680000305175781,9.699999809265137,9.75,9.800000190734863,9.699999809265137,9.6899995803833,9.5600004196167,9.739999771118164,9.979999542236328,9.859999656677246,9.800000190734863,11.300000190734863,11.399999618530273,11.100000381469727,11.0,10.65999984741211,10.720000267028809,10.680000305175781,10.4399995803833,10.800000190734863,10.899999618530273,10.680000305175781,10.520000457763672,10.579999923706055],"open":[10.5,9.649999618530273,9.0,9.300000190734863,9.5,9.279999732971191,9.270000457763672,8.619999885559082,8.0,7.809999942779541,8.600000381469727,9.300000190734863,9.149999618530273,9.0600004196167,9.420000076293945,9.5,9.069999694824219,8.970000267028809,9.010000228881836,9.0,9.449999809265137,9.630000114440918,9.960000038146973,9.789999961853027,9.399999618530273,9.699999809265137,9.5,9.489999771118164,9.359999656677246,9.300000190734863,9.59000015258789,9.489999771118164,9.699999809265137,9.699999809265137,9.699999809265137,9.6899995803833,9.359999656677246,9.390000343322754,9.619999885559082,9.789999961853027,9.800000190734863,9.789999961853027,11.0,10.460000038146973,11.0,10.180000305175781,10.34000015258789,10.399999618530273,10.279999732971191,10.199999809265137,10.739999771118164,10.680000305175781,10.380000114440918,10.5600004196167]}],"adjclose":[{"adjclose":[8.662778854370117,8.037630081176758,8.305550575256348,8.484164237976074,8.4395112991333,8.216242790222168,8.037630081176758,7.055253028869629,6.76947021484375,7.591094970703125,8.055490493774414,8.037630081176758,8.09121322631836,8.45737361907959,8.484164237976074,8.171589851379395,8.01083755493164,8.100144386291504,8.171589851379395,8.528818130493164,8.653847694396973,8.600263595581055,8.823531150817871,8.484164237976074,8.662778854370117,8.671709060668945,8.475234031677246,8.4395112991333,8.350205421447754,8.653847694396973,8.484164237976074,8.662778854370117,8.68064022064209,8.75208568572998,8.662778854370117,8.448441505432129,8.3859281539917,8.59133243560791,8.75208568572998,8.75208568572998,8.75208568572998,9.752324104309082,9.359373092651367,9.87735366821289,9.162899017333984,9.46654224395752,9.395095825195312,9.323650360107422,9.145036697387695,9.573710441589355,9.53798770904541,9.37723445892334,9.27006721496582,8.966423034667969]}]}}],"error":null}} |