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":"2410.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1724117400,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":6.88,"fiftyTwoWeekHigh":25.75,"fiftyTwoWeekLow":6.32,"regularMarketDayHigh":7.08,"regularMarketDayLow":6.69,"regularMarketVolume":1912000,"longName":"TYK Medicines, Inc","shortName":"TYK MEDICINES-B","chartPreviousClose":14.48,"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":[1724117400,1724203800,1724290200,1724376600,1724635800,1724722200,1724808600,1724895000,1724981400,1725240600,1725327000,1725413400,1725499800,1725845400,1725931800,1726018200,1726104600,1726191000,1726450200,1726536600,1726709400,1726795800,1727055000,1727141400,1727227800,1727314200,1727400600,1727659800,1727832600,1727919000,1728005400,1728264600,1728351000,1728437400,1728523800,1728869400,1728955800,1729042200,1729128600,1729215000,1729474200,1729560600,1729647000,1729733400,1729819800,1730079000,1730165400,1730251800,1730338200,1730424600,1730683800,1730770200,1730856600,1730943000,1731029400],"indicators":{"quote":[{"close":[13.699999809265137,16.15999984741211,19.520000457763672,21.600000381469727,20.5,23.0,22.100000381469727,21.649999618530273,21.600000381469727,20.799999237060547,24.850000381469727,25.700000762939453,28.399999618530273,30.799999237060547,32.099998474121094,32.0,32.0,31.899999618530273,29.950000762939453,31.399999618530273,30.700000762939453,28.549999237060547,29.950000762939453,29.850000381469727,29.799999237060547,30.700000762939453,31.649999618530273,31.950000762939453,33.900001525878906,31.149999618530273,31.799999237060547,31.700000762939453,29.299999237060547,31.549999237060547,32.150001525878906,32.95000076293945,32.70000076293945,32.5,32.650001525878906,33.20000076293945,32.70000076293945,32.400001525878906,31.399999618530273,29.899999618530273,30.950000762939453,30.899999618530273,30.25,29.75,29.25,23.25,20.0,19.559999465942383,20.0,19.8799991607666,25.5],"low":[12.859999656677246,13.039999961853027,16.5,19.559999465942383,19.739999771118164,20.0,22.0,21.200000762939453,20.549999237060547,20.350000381469727,21.049999237060547,23.5,25.25,26.950000762939453,29.299999237060547,31.0,30.5,30.950000762939453,27.549999237060547,28.399999618530273,29.649999618530273,28.200000762939453,28.75,28.5,28.75,29.049999237060547,29.799999237060547,30.549999237060547,30.0,30.5,30.0,30.100000381469727,29.299999237060547,29.0,31.149999618530273,31.100000381469727,31.799999237060547,31.450000762939453,31.25,31.799999237060547,31.899999618530273,31.049999237060547,30.700000762939453,29.899999618530273,29.899999618530273,29.649999618530273,28.950000762939453,28.799999237060547,28.5,23.25,19.700000762939453,19.559999465942383,19.559999465942383,19.84000015258789,19.8799991607666],"high":[15.960000038146973,17.200000762939453,19.760000228881836,23.100000381469727,21.600000381469727,23.350000381469727,24.200000762939453,22.100000381469727,21.649999618530273,21.450000762939453,24.950000762939453,25.799999237060547,28.600000381469727,31.0,32.5,33.900001525878906,32.5,34.349998474121094,31.899999618530273,31.5,31.100000381469727,29.950000762939453,29.950000762939453,29.899999618530273,29.799999237060547,32.0,31.75,34.0,37.0,34.0,32.20000076293945,32.0,31.549999237060547,31.549999237060547,33.599998474121094,33.599998474121094,33.25,32.70000076293945,33.29999923706055,33.20000076293945,33.20000076293945,33.0,31.899999618530273,30.899999618530273,30.950000762939453,30.950000762939453,30.5,30.25,29.899999618530273,29.0,23.25,21.600000381469727,20.950000762939453,21.100000381469727,25.5],"open":[14.479999542236328,13.899999618530273,16.5,19.979999542236328,21.600000381469727,20.049999237060547,23.0,21.649999618530273,21.049999237060547,21.100000381469727,22.100000381469727,23.549999237060547,25.700000762939453,28.399999618530273,31.100000381469727,32.099998474121094,32.0,32.45000076293945,31.899999618530273,30.0,31.100000381469727,29.549999237060547,29.399999618530273,29.5,29.299999237060547,29.799999237060547,30.0,31.0,31.5,34.0,30.899999618530273,31.799999237060547,31.549999237060547,29.5,31.549999237060547,32.150001525878906,32.599998474121094,32.599998474121094,32.0,32.95000076293945,33.20000076293945,33.0,31.899999618530273,30.700000762939453,29.899999618530273,30.950000762939453,30.5,30.25,29.75,28.75,22.950000762939453,21.049999237060547,20.100000381469727,20.5,19.8799991607666],"volume":[3187500,853500,470500,437500,182000,182000,334000,171500,70500,145500,403500,491500,153940,374000,184000,72000,34000,155500,134000,47400,11000,100500,12000,112000,112500,134500,98000,102500,136500,130000,135000,111500,128000,155000,116500,153500,154500,117500,108500,103000,117500,105000,109500,110000,110500,112000,338500,102500,111000,123500,105000,113500,105500,101000,52500]}],"adjclose":[{"adjclose":[13.699999809265137,16.15999984741211,19.520000457763672,21.600000381469727,20.5,23.0,22.100000381469727,21.649999618530273,21.600000381469727,20.799999237060547,24.850000381469727,25.700000762939453,28.399999618530273,30.799999237060547,32.099998474121094,32.0,32.0,31.899999618530273,29.950000762939453,31.399999618530273,30.700000762939453,28.549999237060547,29.950000762939453,29.850000381469727,29.799999237060547,30.700000762939453,31.649999618530273,31.950000762939453,33.900001525878906,31.149999618530273,31.799999237060547,31.700000762939453,29.299999237060547,31.549999237060547,32.150001525878906,32.95000076293945,32.70000076293945,32.5,32.650001525878906,33.20000076293945,32.70000076293945,32.400001525878906,31.399999618530273,29.899999618530273,30.950000762939453,30.899999618530273,30.25,29.75,29.25,23.25,20.0,19.559999465942383,20.0,19.8799991607666,25.5]}]}}],"error":null}} |