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.3 KiB
JSON
1 line
6.3 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"1021.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1774834200,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":18.0,"fiftyTwoWeekHigh":25.12,"fiftyTwoWeekLow":16.2,"regularMarketDayHigh":19.19,"regularMarketDayLow":17.91,"regularMarketVolume":583600,"longName":"Guangdong Huayan Robotics Co., Ltd.","shortName":"HUAYAN ROBOTICS","chartPreviousClose":16.8,"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","ytd","max"]},"timestamp":[1774834200,1774920600,1775007000,1775093400,1775611800,1775698200,1775784600,1776043800,1776130200,1776216600,1776303000,1776389400,1776648600,1776735000,1776821400,1776907800,1776994200,1777253400,1777339800,1777426200,1777512600,1777858200,1777944600,1778031000,1778117400,1778203800,1778463000,1778549400,1778635800,1778722200,1778808600,1779067800,1779154200,1779240600,1779327000,1779413400,1779759000,1779845400,1779931800,1780018200,1780277400,1780363800,1780450200,1780536600,1780623000,1780882200,1780968600,1781055000,1781141400,1781227800,1781487000],"indicators":{"quote":[{"open":[16.799999237060547,19.0,17.950000762939453,18.5,18.979999542236328,17.68000030517578,17.84000015258789,17.049999237060547,19.68000030517578,20.559999465942383,19.969999313354492,20.5,19.979999542236328,19.799999237060547,19.5,24.079999923706055,24.100000381469727,24.3799991607666,21.600000381469727,20.5,20.360000610351562,19.829999923706055,19.780000686645508,18.690000534057617,19.1200008392334,18.25,19.799999237060547,19.030000686645508,18.100000381469727,18.0,17.850000381469727,18.170000076293945,17.700000762939453,18.010000228881836,17.420000076293945,19.18000030517578,20.799999237060547,20.739999771118164,20.639999389648438,20.479999542236328,19.510000228881836,19.65999984741211,20.459999084472656,21.31999969482422,21.100000381469727,19.5,19.8700008392334,18.889999389648438,18.299999237060547,18.600000381469727,19.06999969482422],"close":[18.399999618530273,17.299999237060547,18.670000076293945,18.270000457763672,17.670000076293945,17.920000076293945,17.010000228881836,19.579999923706055,20.399999618530273,20.239999771118164,20.5,19.899999618530273,19.799999237060547,19.389999389648438,24.079999923706055,24.219999313354492,24.3799991607666,21.360000610351562,20.5,19.899999618530273,19.610000610351562,19.760000228881836,18.690000534057617,19.1200008392334,18.200000762939453,19.81999969482422,19.030000686645508,18.1299991607666,18.0,17.850000381469727,18.170000076293945,17.780000686645508,18.010000228881836,17.329999923706055,19.18000030517578,21.540000915527344,20.68000030517578,20.600000381469727,20.479999542236328,19.510000228881836,19.65999984741211,20.459999084472656,21.420000076293945,21.100000381469727,20.700000762939453,19.8700008392334,18.889999389648438,18.399999618530273,18.600000381469727,18.850000381469727,18.0],"volume":[44789300,6462600,5764440,2416400,4556660,3160200,4138200,10426638,4932610,3042700,3694000,1620800,1718600,2153124,7698005,2697804,1864607,3167800,1814400,1224810,750200,667318,1244300,1080600,1895600,2630700,937200,1166200,911200,1519400,1309400,922494,749200,1416600,4009460,2616400,1821702,1333654,927800,1160338,605600,753000,2183400,938400,1334500,520400,704600,394200,308200,305400,583600],"high":[21.520000457763672,20.3799991607666,19.239999771118164,19.0,19.059999465942383,18.5,18.0,19.799999237060547,20.940000534057617,20.979999542236328,20.700000762939453,20.940000534057617,19.979999542236328,19.809999465942383,24.979999542236328,25.1200008392334,25.0,24.520000457763672,22.959999084472656,21.3799991607666,20.360000610351562,20.299999237060547,19.780000686645508,19.3700008392334,19.600000381469727,19.969999313354492,19.799999237060547,19.219999313354492,18.219999313354492,18.450000762939453,18.690000534057617,18.389999389648438,18.190000534057617,18.010000228881836,19.399999618530273,21.65999984741211,22.200000762939453,22.0,21.200000762939453,21.200000762939453,20.079999923706055,20.719999313354492,22.0,21.719999313354492,21.100000381469727,20.459999084472656,19.8700008392334,18.889999389648438,18.860000610351562,19.360000610351562,19.190000534057617],"low":[16.5,17.030000686645508,17.8700008392334,17.889999389648438,17.5,17.1299991607666,16.920000076293945,16.200000762939453,19.68000030517578,19.959999084472656,19.8799991607666,19.6299991607666,19.030000686645508,18.700000762939453,19.3700008392334,23.040000915527344,23.200000762939453,20.899999618530273,20.200000762939453,19.639999389648438,19.200000762939453,19.68000030517578,18.5,18.5,18.18000030517578,18.190000534057617,19.010000228881836,18.09000015258789,17.549999237060547,17.520000457763672,17.850000381469727,17.389999389648438,17.469999313354492,17.0,17.420000076293945,19.18000030517578,20.520000457763672,20.31999969482422,20.079999923706055,19.3799991607666,19.209999084472656,19.149999618530273,20.399999618530273,20.18000030517578,19.399999618530273,19.459999084472656,18.690000534057617,18.010000228881836,18.149999618530273,18.520000457763672,17.90999984741211]}],"adjclose":[{"adjclose":[18.399999618530273,17.299999237060547,18.670000076293945,18.270000457763672,17.670000076293945,17.920000076293945,17.010000228881836,19.579999923706055,20.399999618530273,20.239999771118164,20.5,19.899999618530273,19.799999237060547,19.389999389648438,24.079999923706055,24.219999313354492,24.3799991607666,21.360000610351562,20.5,19.899999618530273,19.610000610351562,19.760000228881836,18.690000534057617,19.1200008392334,18.200000762939453,19.81999969482422,19.030000686645508,18.1299991607666,18.0,17.850000381469727,18.170000076293945,17.780000686645508,18.010000228881836,17.329999923706055,19.18000030517578,21.540000915527344,20.68000030517578,20.600000381469727,20.479999542236328,19.510000228881836,19.65999984741211,20.459999084472656,21.420000076293945,21.100000381469727,20.700000762939453,19.8700008392334,18.889999389648438,18.399999618530273,18.600000381469727,18.850000381469727,18.0]}]}}],"error":null}} |