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.1 KiB
JSON
1 line
7.1 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"8637.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1719883800,"regularMarketTime":1781510396,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":3.84,"fiftyTwoWeekHigh":4.3,"fiftyTwoWeekLow":0.81,"regularMarketDayHigh":3.9,"regularMarketDayLow":3.8,"regularMarketVolume":81000,"longName":"Metasurface Technologies Holdings Limited","shortName":"METASURFACE","chartPreviousClose":1.66,"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":[1719883800,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":[1.4700000286102295,1.2400000095367432,1.2300000190734863,1.190000057220459,1.0700000524520874,0.9800000190734863,1.1100000143051147,1.2400000095367432,1.309999942779541,1.2899999618530273,1.2300000190734863,1.2899999618530273,1.309999942779541,1.3200000524520874,1.350000023841858,1.3200000524520874,1.3600000143051147,1.2799999713897705,1.25,1.2400000095367432,1.25,1.2400000095367432,1.2000000476837158,1.2200000286102295,1.100000023841858,1.1799999475479126,1.1799999475479126,1.1699999570846558,1.159999966621399,1.1699999570846558,1.1100000143051147,1.1100000143051147,1.0800000429153442,1.090000033378601,1.1399999856948853,1.1100000143051147,1.1100000143051147,1.100000023841858,1.1100000143051147,1.1200000047683716,1.1100000143051147,1.100000023841858,1.0800000429153442,1.100000023841858,1.0199999809265137,1.0399999618530273,1.0199999809265137,1.0099999904632568,0.9700000286102295,0.9399999976158142,0.8999999761581421,0.9100000262260437,0.8999999761581421,0.9100000262260437,0.9100000262260437,0.9200000166893005,0.9399999976158142],"open":[1.659999966621399,1.5199999809265137,1.2999999523162842,1.350000023841858,1.2300000190734863,1.0800000429153442,1.1100000143051147,1.2699999809265137,1.3899999856948853,1.440000057220459,1.3300000429153442,1.309999942779541,1.309999942779541,1.399999976158142,1.350000023841858,1.3899999856948853,1.3700000047683716,1.3600000143051147,1.2899999618530273,1.2799999713897705,1.2899999618530273,1.2799999713897705,1.2100000381469727,1.2200000286102295,1.2100000381469727,1.2000000476837158,1.1799999475479126,1.1699999570846558,1.1799999475479126,1.1699999570846558,1.159999966621399,1.1100000143051147,1.1200000047683716,1.1799999475479126,1.149999976158142,1.1399999856948853,1.1100000143051147,1.1200000047683716,1.1100000143051147,1.149999976158142,1.1200000047683716,1.1200000047683716,1.100000023841858,1.1100000143051147,1.090000033378601,1.0399999618530273,1.059999942779541,1.0099999904632568,0.9900000095367432,0.9599999785423279,0.9399999976158142,0.9200000166893005,0.9599999785423279,0.9100000262260437,0.9300000071525574,0.9300000071525574,0.9399999976158142],"high":[1.7699999809265137,1.600000023841858,1.399999976158142,1.350000023841858,1.2300000190734863,1.1200000047683716,1.2899999618530273,1.3700000047683716,1.4600000381469727,1.440000057220459,1.350000023841858,1.440000057220459,1.409999966621399,1.4299999475479126,1.409999966621399,1.399999976158142,1.399999976158142,1.3600000143051147,1.340000033378601,1.2899999618530273,1.2999999523162842,1.2899999618530273,1.2599999904632568,1.2899999618530273,1.2999999523162842,1.2000000476837158,1.2799999713897705,1.2400000095367432,1.2200000286102295,1.2200000286102295,1.159999966621399,1.2000000476837158,1.159999966621399,1.1799999475479126,1.1799999475479126,1.1699999570846558,1.1799999475479126,1.1799999475479126,1.190000057220459,1.2000000476837158,1.1399999856948853,1.1200000047683716,1.1399999856948853,1.1399999856948853,1.100000023841858,1.0700000524520874,1.059999942779541,1.0199999809265137,0.9900000095367432,0.9900000095367432,0.9800000190734863,0.9599999785423279,0.9599999785423279,0.9300000071525574,0.949999988079071,0.9700000286102295,0.9700000286102295],"close":[1.4700000286102295,1.2999999523162842,1.309999942779541,1.2000000476837158,1.0800000429153442,1.100000023841858,1.25,1.340000033378601,1.4299999475479126,1.3799999952316284,1.3200000524520874,1.340000033378601,1.3899999856948853,1.3700000047683716,1.3899999856948853,1.3700000047683716,1.3799999952316284,1.2999999523162842,1.309999942779541,1.25,1.2999999523162842,1.25,1.2599999904632568,1.2599999904632568,1.1699999570846558,1.1799999475479126,1.2300000190734863,1.2200000286102295,1.2200000286102295,1.1799999475479126,1.1299999952316284,1.1299999952316284,1.1299999952316284,1.149999976158142,1.1699999570846558,1.149999976158142,1.1799999475479126,1.1799999475479126,1.190000057220459,1.1200000047683716,1.1200000047683716,1.100000023841858,1.1399999856948853,1.1399999856948853,1.090000033378601,1.059999942779541,1.0299999713897705,1.0099999904632568,0.9700000286102295,0.9900000095367432,0.9700000286102295,0.9599999785423279,0.9100000262260437,0.9300000071525574,0.949999988079071,0.9599999785423279,0.9599999785423279],"volume":[21203000,4680000,3037000,1777000,1429000,2386000,1848000,1672000,1500000,632000,487000,378000,549000,333000,101000,148000,77000,299000,296000,270000,95000,77000,190000,92000,304000,44000,48000,64000,155000,36000,127000,50000,71000,96000,12000,92000,27000,229000,93000,60000,45000,45000,97000,52000,103000,20000,60000,18000,46000,77000,100000,125000,34000,10000,57000,34000,62000]}],"adjclose":[{"adjclose":[1.4700000286102295,1.2999999523162842,1.309999942779541,1.2000000476837158,1.0800000429153442,1.100000023841858,1.25,1.340000033378601,1.4299999475479126,1.3799999952316284,1.3200000524520874,1.340000033378601,1.3899999856948853,1.3700000047683716,1.3899999856948853,1.3700000047683716,1.3799999952316284,1.2999999523162842,1.309999942779541,1.25,1.2999999523162842,1.25,1.2599999904632568,1.2599999904632568,1.1699999570846558,1.1799999475479126,1.2300000190734863,1.2200000286102295,1.2200000286102295,1.1799999475479126,1.1299999952316284,1.1299999952316284,1.1299999952316284,1.149999976158142,1.1699999570846558,1.149999976158142,1.1799999475479126,1.1799999475479126,1.190000057220459,1.1200000047683716,1.1200000047683716,1.100000023841858,1.1399999856948853,1.1399999856948853,1.090000033378601,1.059999942779541,1.0299999713897705,1.0099999904632568,0.9700000286102295,0.9900000095367432,0.9700000286102295,0.9599999785423279,0.9100000262260437,0.9300000071525574,0.949999988079071,0.9599999785423279,0.9599999785423279]}]}}],"error":null}} |