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":"1276.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1747963800,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":54.05,"fiftyTwoWeekHigh":95.2,"fiftyTwoWeekLow":51.3,"regularMarketDayHigh":56.0,"regularMarketDayLow":53.8,"regularMarketVolume":2511539,"longName":"Jiangsu Hengrui Pharmaceuticals Co.,Ltd","shortName":"HENGRUI PHARMA","chartPreviousClose":57.6,"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","ytd","max"]},"timestamp":[1747963800,1748223000,1748309400,1748395800,1748482200,1748568600,1748827800,1748914200,1749000600,1749087000,1749173400,1749432600,1749519000,1749605400,1749691800,1749778200,1750037400,1750123800,1750210200,1750296600,1750383000,1750642200,1750728600,1750815000,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],"indicators":{"quote":[{"open":[57.599998474121094,54.25,53.20000076293945,54.900001525878906,57.5,57.04999923706055,57.29999923706055,57.79999923706055,56.95000076293945,58.0,57.5,57.54999923706055,58.70000076293945,59.5,58.54999923706055,59.29999923706055,57.5,59.400001525878906,56.900001525878906,57.45000076293945,57.900001525878906,56.29999923706055,55.849998474121094,57.70000076293945,58.45000076293945,56.150001525878906,55.29999923706055,55.099998474121094,55.79999923706055,57.0,59.150001525878906,59.400001525878906,61.20000076293945,69.4000015258789,72.5,72.0,75.0,73.4000015258789,70.25,72.5,72.4000015258789,72.4000015258789,72.5,72.94999694824219,73.0,75.30000305175781,86.6500015258789,81.0,79.3499984741211,79.80000305175781,74.30000305175781,79.69999694824219,81.0,80.4000015258789,78.9000015258789,77.5],"high":[59.0,55.150001525878906,55.79999923706055,57.5,57.5,58.400001525878906,57.79999923706055,58.04999923706055,58.349998474121094,58.20000076293945,58.349998474121094,59.20000076293945,59.900001525878906,59.79999923706055,59.599998474121094,59.70000076293945,59.75,59.75,57.70000076293945,57.70000076293945,58.5,56.5,57.79999923706055,58.5,58.45000076293945,56.25,55.29999923706055,56.45000076293945,57.29999923706055,59.29999923706055,59.5,61.900001525878906,71.1500015258789,75.25,78.75,78.80000305175781,75.94999694824219,74.9000015258789,72.44999694824219,76.69999694824219,73.19999694824219,74.0999984741211,73.44999694824219,74.80000305175781,73.0,85.3499984741211,87.80000305175781,83.25,81.80000305175781,80.5,79.44999694824219,81.19999694824219,81.8499984741211,80.6500015258789,78.9000015258789,78.5999984741211],"close":[55.150001525878906,53.70000076293945,54.900001525878906,57.5,57.5,58.0,57.70000076293945,56.5,57.900001525878906,56.95000076293945,57.54999923706055,59.04999923706055,59.45000076293945,58.29999923706055,59.29999923706055,57.79999923706055,59.5,56.79999923706055,57.45000076293945,56.900001525878906,56.29999923706055,55.849998474121094,57.70000076293945,58.5,55.599998474121094,55.349998474121094,53.79999923706055,55.400001525878906,57.0,59.20000076293945,59.400001525878906,60.20000076293945,69.5999984741211,74.55000305175781,72.19999694824219,74.6500015258789,71.94999694824219,70.25,71.69999694824219,73.0,72.4000015258789,71.8499984741211,72.0,72.94999694824219,68.05000305175781,84.75,81.80000305175781,79.3499984741211,78.8499984741211,75.0999984741211,79.0,81.0,80.5,78.80000305175781,76.69999694824219,77.5999984741211],"volume":[82663811,12877980,5303918,8740409,5643467,4514928,1204104,2638200,5205950,2156370,4161995,4809633,2670120,2081195,2823836,2013290,3101158,2221574,1293632,1264400,1269329,1658226,1733655,1698099,2814519,1423082,2632188,2433876,1599600,3033894,898000,5137512,10678012,9432566,7827794,5780298,4735602,4050850,4227878,5656223,2756810,3692150,2495855,4801494,7567132,19328833,11953095,6386600,6729800,5071542,6206611,3943580,2861264,2663869,4456647,2839200],"low":[55.150001525878906,52.5,53.0,54.599998474121094,55.599998474121094,56.79999923706055,56.099998474121094,56.25,56.900001525878906,56.54999923706055,56.5,56.95000076293945,58.5,58.29999923706055,57.75,57.79999923706055,57.400001525878906,56.5,56.5,56.29999923706055,56.29999923706055,55.0,55.849998474121094,57.099998474121094,55.599998474121094,55.099998474121094,53.54999923706055,54.54999923706055,55.400001525878906,57.0,58.20000076293945,59.0,60.25,68.80000305175781,71.5,72.0,71.55000305175781,70.0999984741211,70.0999984741211,72.0,71.0,71.5,71.25,72.5,67.44999694824219,72.0,80.5,78.0,77.30000305175781,75.0,73.19999694824219,78.5,79.3499984741211,77.05000305175781,74.80000305175781,76.0]}],"adjclose":[{"adjclose":[54.958377838134766,53.5134162902832,54.70924758911133,57.300209045410156,57.300209045410156,57.7984733581543,57.499515533447266,56.30368423461914,57.698822021484375,56.75212097167969,57.35003662109375,58.844825744628906,59.24343490600586,58.09743118286133,59.093955993652344,57.59916687011719,59.29326248168945,56.60264205932617,57.25038528442383,56.70229721069336,56.10437774658203,55.655941009521484,57.499515533447266,58.29673767089844,55.40681076049805,55.15768051147461,53.613067626953125,55.2075080871582,56.80194854736328,58.99430465698242,59.19361114501953,59.99082946777344,69.35816955566406,74.29096984863281,71.94913482666016,74.390625,71.69999694824219,70.00591278076172,71.45086669921875,72.74635314941406,72.1484375,71.60034942626953,71.74983215332031,72.69652557373047,67.81356048583984,84.45552825927734,81.51577758789062,79.07428741455078,78.5760269165039,74.83905792236328,78.72550964355469,80.71855926513672,80.22029876708984,78.52620697021484,76.4334945678711,77.33036804199219]}]}}],"error":null}} |