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":"2507.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1720747800,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":36.46,"fiftyTwoWeekHigh":76.5,"fiftyTwoWeekLow":30.9,"regularMarketDayHigh":38.78,"regularMarketDayLow":36.14,"regularMarketVolume":962100,"longName":"Cirrus Aircraft Limited","shortName":"CIRRUS","chartPreviousClose":27.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","ytd","max"]},"timestamp":[1720747800,1721007000,1721093400,1721179800,1721266200,1721352600,1721611800,1721698200,1721784600,1721871000,1721957400,1722216600,1722303000,1722389400,1722475800,1722562200,1722821400,1722907800,1722994200,1723080600,1723167000,1723426200,1723512600,1723599000,1723685400,1723771800,1724031000,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],"indicators":{"quote":[{"open":[27.5,27.399999618530273,24.5,25.0,25.549999237060547,25.0,24.649999618530273,24.799999237060547,25.0,24.200000762939453,24.0,24.399999618530273,23.799999237060547,24.700000762939453,28.0,27.5,27.299999237060547,27.399999618530273,26.5,27.5,27.5,25.399999618530273,24.299999237060547,23.600000381469727,25.049999237060547,24.5,23.549999237060547,23.600000381469727,23.299999237060547,22.0,22.049999237060547,18.5,17.799999237060547,18.5,19.979999542236328,18.68000030517578,18.600000381469727,18.1200008392334,18.65999984741211,20.850000381469727,20.0,20.0,19.280000686645508,21.950000762939453,19.639999389648438,19.899999618530273,20.5,20.75,20.5,20.399999618530273,19.959999084472656,19.760000228881836,19.799999237060547,19.0,19.200000762939453],"high":[27.5,27.399999618530273,26.0,26.100000381469727,26.149999618530273,25.049999237060547,25.200000762939453,25.0,25.0,24.5,24.5,24.399999618530273,25.0,28.200000762939453,28.0,28.350000381469727,28.299999237060547,27.399999618530273,27.549999237060547,27.549999237060547,27.5,25.600000381469727,24.299999237060547,25.149999618530273,25.100000381469727,24.5,24.399999618530273,24.0,23.299999237060547,22.200000762939453,22.049999237060547,18.559999465942383,19.600000381469727,20.649999618530273,20.200000762939453,19.0,18.84000015258789,18.5,21.0,20.850000381469727,20.5,20.399999618530273,19.899999618530273,21.950000762939453,20.149999618530273,21.399999618530273,21.850000381469727,20.799999237060547,21.450000762939453,21.149999618530273,19.959999084472656,21.149999618530273,20.049999237060547,19.600000381469727,19.5],"close":[27.5,25.5,25.700000762939453,25.149999618530273,25.049999237060547,24.649999618530273,24.799999237060547,24.700000762939453,24.200000762939453,24.0,24.399999618530273,24.200000762939453,24.75,28.200000762939453,27.5,27.5,27.399999618530273,27.0,27.549999237060547,27.5,25.600000381469727,24.850000381469727,23.600000381469727,25.049999237060547,24.600000381469727,23.75,23.600000381469727,23.299999237060547,22.149999618530273,22.049999237060547,19.100000381469727,17.799999237060547,18.860000610351562,19.979999542236328,18.68000030517578,18.600000381469727,18.68000030517578,18.5,20.850000381469727,20.450000762939453,20.5,20.0,19.899999618530273,20.0,20.149999618530273,20.5,20.75,20.799999237060547,20.75,19.959999084472656,19.760000228881836,19.780000686645508,18.959999084472656,19.200000762939453,18.979999542236328],"low":[26.049999237060547,24.75,23.600000381469727,22.200000762939453,24.700000762939453,24.0,24.350000381469727,24.549999237060547,24.049999237060547,23.700000762939453,23.549999237060547,23.700000762939453,23.649999618530273,24.149999618530273,27.0,26.950000762939453,27.0,26.950000762939453,26.5,27.25,25.0,23.5,23.600000381469727,23.549999237060547,24.0,23.75,23.549999237060547,23.299999237060547,21.600000381469727,22.0,18.799999237060547,17.5,17.780000686645508,18.5,18.479999542236328,17.780000686645508,18.1200008392334,17.760000228881836,18.65999984741211,20.0,20.0,19.31999969482422,19.280000686645508,19.780000686645508,19.459999084472656,19.81999969482422,20.0,20.149999618530273,20.200000762939453,19.579999923706055,19.0,19.5,17.760000228881836,18.540000915527344,18.540000915527344],"volume":[6391409,907400,767550,1580400,151600,112000,156400,64800,120400,106200,133000,69200,108008,284000,161800,156900,180700,90600,81600,148700,15600,17400,200,5100,5500,9600,9500,11900,34400,19000,43300,54200,28200,68400,20500,79500,7100,9500,52300,33900,24500,12900,3600,7600,11300,164900,178600,174100,165400,177800,174300,28000,165300,41800,154500]}],"adjclose":[{"adjclose":[26.96769905090332,25.006410598754883,25.20254135131836,24.663185119628906,24.565120697021484,24.172863006591797,24.31995964050293,24.22189712524414,23.73157501220703,23.535446166992188,23.927701950073242,23.73157501220703,24.27092742919922,27.654150009155273,26.96769905090332,26.96769905090332,26.869632720947266,26.47737693786621,27.0167293548584,26.96769905090332,25.104475021362305,24.368993759155273,23.1431884765625,24.565120697021484,24.12383270263672,23.290285110473633,23.1431884765625,22.848995208740234,21.721254348754883,21.62318992614746,18.73029327392578,17.455453872680664,18.494937896728516,19.593257904052734,18.318422317504883,18.239971160888672,18.318422317504883,18.14190673828125,20.44641876220703,20.054161071777344,20.103193283081055,19.612871170043945,19.514806747436523,19.612871170043945,19.759967803955078,20.103193283081055,20.34835433959961,20.397384643554688,20.34835433959961,19.573644638061523,19.377517700195312,19.397130966186523,18.593000411987305,18.828357696533203,18.612613677978516]}]}}],"error":null}} |