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
7.3 KiB
JSON
1 line
7.3 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2545.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1719970200,"regularMarketTime":1781501715,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":0.395,"fiftyTwoWeekHigh":0.77,"fiftyTwoWeekLow":0.34,"regularMarketDayHigh":0.395,"regularMarketDayLow":0.38,"regularMarketVolume":212000,"longName":"Zhonggan Communication (Group) Holdings Limited","shortName":"ZHONGGAN COMM","chartPreviousClose":0.76,"priceHint":3,"currentTradingPeriod":{"pre":{"timezone":"HKT","start":1781485200,"end":1781487000,"gmtoffset":28800},"regular":{"timezone":"HKT","start":1781487000,"end":1781511000,"gmtoffset":28800},"post":{"timezone":"HKT","start":1781511000,"end":1781511000,"gmtoffset":28800}},"dataGranularity":"1d","range":"","validRanges":["1d","5d","1mo","3mo","6mo","1y","2y","ytd","max"]},"timestamp":[1719970200,1720056600,1720143000,1720402200,1720488600,1720575000,1720661400,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],"indicators":{"quote":[{"low":[0.6499999761581421,0.6399999856948853,0.550000011920929,0.4399999976158142,0.4050000011920929,0.4399999976158142,0.38499999046325684,0.38999998569488525,0.4000000059604645,0.39500001072883606,0.3700000047683716,0.36500000953674316,0.36000001430511475,0.3499999940395355,0.35499998927116394,0.36000001430511475,0.3499999940395355,0.3499999940395355,0.33000001311302185,0.32499998807907104,0.3700000047683716,0.375,0.4050000011920929,0.3499999940395355,0.36000001430511475,0.3449999988079071,0.33500000834465027,0.33500000834465027,0.33500000834465027,0.33500000834465027,0.33500000834465027,0.3400000035762787,0.3199999928474426,0.32499998807907104,0.3050000071525574,0.3100000023841858,0.2849999964237213,0.2849999964237213,0.30000001192092896,0.3100000023841858,0.3400000035762787,0.3149999976158142,0.3199999928474426,0.3149999976158142,0.3199999928474426,0.3199999928474426,0.3199999928474426,0.3199999928474426,0.3100000023841858,0.28999999165534973,0.28999999165534973,0.29499998688697815,0.2800000011920929,0.30000001192092896,0.3149999976158142,0.3499999940395355],"open":[0.7599999904632568,0.6800000071525574,0.6899999976158142,0.550000011920929,0.4300000071525574,0.44999998807907104,0.45500001311302185,0.4000000059604645,0.4099999964237213,0.4099999964237213,0.39500001072883606,0.3700000047683716,0.38499999046325684,0.375,0.36000001430511475,0.3700000047683716,0.36500000953674316,0.36000001430511475,0.36000001430511475,0.33500000834465027,0.4000000059604645,0.3799999952316284,0.41999998688697815,0.4000000059604645,0.36500000953674316,0.36500000953674316,0.3449999988079071,0.3400000035762787,0.3400000035762787,0.3449999988079071,0.3400000035762787,0.3400000035762787,0.3499999940395355,0.33500000834465027,0.32499998807907104,0.3149999976158142,0.3100000023841858,0.28999999165534973,0.30000001192092896,0.3100000023841858,0.3400000035762787,0.33000001311302185,0.3149999976158142,0.3149999976158142,0.32499998807907104,0.3199999928474426,0.33000001311302185,0.3199999928474426,0.32499998807907104,0.3100000023841858,0.28999999165534973,0.29499998688697815,0.29499998688697815,0.30000001192092896,0.3149999976158142,0.3799999952316284],"high":[0.8299999833106995,0.7099999785423279,0.6899999976158142,0.550000011920929,0.4699999988079071,0.4749999940395355,0.4650000035762787,0.4350000023841858,0.4300000071525574,0.41499999165534973,0.4000000059604645,0.39500001072883606,0.38999998569488525,0.3799999952316284,0.375,0.375,0.3700000047683716,0.36500000953674316,0.36000001430511475,0.41499999165534973,0.4099999964237213,0.44999998807907104,0.4300000071525574,0.41499999165534973,0.38499999046325684,0.36500000953674316,0.35499998927116394,0.35499998927116394,0.3499999940395355,0.3449999988079071,0.3449999988079071,0.36500000953674316,0.35499998927116394,0.33500000834465027,0.32499998807907104,0.3199999928474426,0.3149999976158142,0.3100000023841858,0.3100000023841858,0.35499998927116394,0.36000001430511475,0.33000001311302185,0.33000001311302185,0.32499998807907104,0.33000001311302185,0.33500000834465027,0.33500000834465027,0.33000001311302185,0.33000001311302185,0.3100000023841858,0.3050000071525574,0.30000001192092896,0.30000001192092896,0.33000001311302185,0.3799999952316284,0.41499999165534973],"close":[0.6700000166893005,0.6800000071525574,0.550000011920929,0.4449999928474426,0.45500001311302185,0.45500001311302185,0.4050000011920929,0.4099999964237213,0.4099999964237213,0.4000000059604645,0.375,0.38499999046325684,0.375,0.36000001430511475,0.375,0.36500000953674316,0.36500000953674316,0.35499998927116394,0.33500000834465027,0.4000000059604645,0.3799999952316284,0.4300000071525574,0.4099999964237213,0.3700000047683716,0.36500000953674316,0.3499999940395355,0.3400000035762787,0.3400000035762787,0.3449999988079071,0.3400000035762787,0.3449999988079071,0.3499999940395355,0.33500000834465027,0.32499998807907104,0.32499998807907104,0.3100000023841858,0.29499998688697815,0.30000001192092896,0.3100000023841858,0.3400000035762787,0.3449999988079071,0.32499998807907104,0.33000001311302185,0.32499998807907104,0.32499998807907104,0.32499998807907104,0.33000001311302185,0.33000001311302185,0.3100000023841858,0.28999999165534973,0.3050000071525574,0.30000001192092896,0.30000001192092896,0.3149999976158142,0.375,0.38999998569488525],"volume":[131536000,24475000,33414000,56860000,35000000,13382000,41244000,11582000,3800000,3302000,8618000,4862000,3572000,10512000,3746000,1550000,3980000,2600000,5718000,22042000,13280000,16546000,6036000,9352000,1836000,2532000,2458000,2290000,904000,1260000,1396000,2002000,5574000,1266000,2606000,1106000,6500000,1182000,1514000,4940000,3162000,3514000,966000,1058000,1548000,1666000,1528000,1018000,1426000,1540000,758000,682000,1934000,2516000,7656500,8230000]}],"adjclose":[{"adjclose":[0.6700000166893005,0.6800000071525574,0.550000011920929,0.4449999928474426,0.45500001311302185,0.45500001311302185,0.4050000011920929,0.4099999964237213,0.4099999964237213,0.4000000059604645,0.375,0.38499999046325684,0.375,0.36000001430511475,0.375,0.36500000953674316,0.36500000953674316,0.35499998927116394,0.33500000834465027,0.4000000059604645,0.3799999952316284,0.4300000071525574,0.4099999964237213,0.3700000047683716,0.36500000953674316,0.3499999940395355,0.3400000035762787,0.3400000035762787,0.3449999988079071,0.3400000035762787,0.3449999988079071,0.3499999940395355,0.33500000834465027,0.32499998807907104,0.32499998807907104,0.3100000023841858,0.29499998688697815,0.30000001192092896,0.3100000023841858,0.3400000035762787,0.3449999988079071,0.32499998807907104,0.33000001311302185,0.32499998807907104,0.32499998807907104,0.32499998807907104,0.33000001311302185,0.33000001311302185,0.3100000023841858,0.28999999165534973,0.3050000071525574,0.30000001192092896,0.30000001192092896,0.3149999976158142,0.375,0.38999998569488525]}]}}],"error":null}} |