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.8 KiB
JSON
1 line
6.8 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2502.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1703035800,"regularMarketTime":1781493395,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":0.57,"fiftyTwoWeekHigh":0.84,"fiftyTwoWeekLow":0.34,"regularMarketDayHigh":0.57,"regularMarketDayLow":0.57,"regularMarketVolume":2000,"longName":"Henan Jinyuan Hydrogenated Chemicals Co., Ltd.","shortName":"JINYUAN HCHEM","chartPreviousClose":1.06,"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","5y","ytd","max"]},"timestamp":[1703035800,1703122200,1703208600,1703640600,1703727000,1703813400,1704159000,1704245400,1704331800,1704418200,1704677400,1704763800,1704850200,1704936600,1705023000,1705282200,1705368600,1705455000,1705541400,1705627800,1705887000,1705973400,1706059800,1706146200,1706232600,1706491800,1706578200,1706664600,1706751000,1706837400,1707096600,1707183000,1707269400,1707355800,1707442200,1707874200,1707960600,1708047000,1708306200,1708392600,1708479000,1708565400,1708651800,1708911000,1708997400,1709083800,1709170200,1709256600,1709515800,1709602200,1709688600,1709775000,1709861400],"indicators":{"quote":[{"open":[1.059999942779541,0.8700000047683716,0.9599999785423279,0.9100000262260437,0.9100000262260437,0.9100000262260437,0.949999988079071,0.9100000262260437,0.9599999785423279,0.9800000190734863,1.0399999618530273,1.0,0.9700000286102295,0.9599999785423279,0.949999988079071,0.9800000190734863,0.9300000071525574,0.9599999785423279,0.9300000071525574,0.9300000071525574,0.9200000166893005,0.8600000143051147,0.8600000143051147,0.8899999856948853,0.8999999761581421,0.8500000238418579,0.8600000143051147,0.8700000047683716,0.8799999952316284,0.8799999952316284,0.8799999952316284,0.8799999952316284,0.8799999952316284,0.8600000143051147,0.8799999952316284,0.8799999952316284,0.8500000238418579,0.8399999737739563,0.8399999737739563,0.8100000023841858,0.7900000214576721,0.800000011920929,0.8299999833106995,0.8100000023841858,0.8299999833106995,0.8399999737739563,0.7900000214576721,0.800000011920929,0.8199999928474426,0.800000011920929,0.8100000023841858,0.8199999928474426,0.8100000023841858],"close":[0.8700000047683716,0.9599999785423279,0.8999999761581421,0.9100000262260437,0.9100000262260437,0.949999988079071,0.9200000166893005,0.9599999785423279,0.9800000190734863,1.0399999618530273,1.0,1.0,0.9599999785423279,0.949999988079071,0.949999988079071,0.9800000190734863,0.9800000190734863,0.9300000071525574,0.9399999976158142,0.9200000166893005,0.8899999856948853,0.8600000143051147,0.8899999856948853,0.8999999761581421,0.8999999761581421,0.8600000143051147,0.8600000143051147,0.8600000143051147,0.8799999952316284,0.8899999856948853,0.8799999952316284,0.8999999761581421,0.8700000047683716,0.8700000047683716,0.8799999952316284,0.8500000238418579,0.8399999737739563,0.8500000238418579,0.8100000023841858,0.7900000214576721,0.800000011920929,0.8299999833106995,0.8100000023841858,0.8299999833106995,0.8399999737739563,0.800000011920929,0.800000011920929,0.8100000023841858,0.800000011920929,0.8100000023841858,0.8199999928474426,0.8100000023841858,0.8100000023841858],"high":[1.090000033378601,1.0800000429153442,1.0099999904632568,0.9300000071525574,0.9800000190734863,0.949999988079071,0.949999988079071,0.9800000190734863,1.0199999809265137,1.0499999523162842,1.0800000429153442,1.0299999713897705,1.0,0.9800000190734863,0.9900000095367432,0.9800000190734863,0.9800000190734863,0.9599999785423279,0.9399999976158142,0.9300000071525574,0.9200000166893005,0.8799999952316284,0.9100000262260437,0.9100000262260437,0.8999999761581421,0.8899999856948853,0.8899999856948853,0.8899999856948853,0.8999999761581421,0.9200000166893005,0.9200000166893005,0.8999999761581421,0.8899999856948853,0.8799999952316284,0.8799999952316284,0.8799999952316284,0.8500000238418579,0.8600000143051147,0.8500000238418579,0.8100000023841858,0.8100000023841858,0.8299999833106995,0.8299999833106995,0.8299999833106995,0.8399999737739563,0.8600000143051147,0.8299999833106995,0.8199999928474426,0.8199999928474426,0.8100000023841858,0.8199999928474426,0.8199999928474426,0.8199999928474426],"low":[0.8700000047683716,0.8100000023841858,0.8700000047683716,0.8999999761581421,0.8999999761581421,0.8999999761581421,0.8999999761581421,0.8999999761581421,0.9599999785423279,0.9800000190734863,0.9900000095367432,0.949999988079071,0.949999988079071,0.9399999976158142,0.9100000262260437,0.9800000190734863,0.9200000166893005,0.9200000166893005,0.9300000071525574,0.800000011920929,0.8700000047683716,0.8600000143051147,0.8399999737739563,0.8700000047683716,0.8399999737739563,0.8299999833106995,0.8600000143051147,0.8500000238418579,0.8799999952316284,0.8799999952316284,0.8600000143051147,0.8799999952316284,0.8700000047683716,0.8500000238418579,0.8799999952316284,0.8399999737739563,0.8399999737739563,0.8399999737739563,0.800000011920929,0.7900000214576721,0.7799999713897705,0.800000011920929,0.800000011920929,0.8100000023841858,0.8199999928474426,0.7900000214576721,0.7799999713897705,0.800000011920929,0.800000011920929,0.800000011920929,0.8100000023841858,0.8100000023841858,0.8100000023841858],"volume":[46140000,25805000,7942000,1828000,3742000,2050000,25154000,2116000,2314000,4704000,2808000,3452000,2546000,3232000,3456000,0,7812000,1980000,300000,1542000,944000,554000,582000,362000,466000,950000,476000,1792000,856000,1410000,8704000,1034000,288000,502000,0,172000,120000,150000,810000,510000,660000,398000,376000,268000,384000,402000,670000,534000,142000,424000,450000,228000,380000]}],"adjclose":[{"adjclose":[0.8448512554168701,0.9322496652603149,0.8739840388298035,0.8836950063705444,0.8836950063705444,0.9225387573242188,0.8934059739112854,0.9322496652603149,0.9516715407371521,1.0099371671676636,0.9710934162139893,0.9710934162139893,0.9322496652603149,0.9225387573242188,0.9225387573242188,0.9516715407371521,0.9516715407371521,0.9031168818473816,0.9128277897834778,0.8934059739112854,0.8642731308937073,0.8351403474807739,0.8642731308937073,0.8739840388298035,0.8739840388298035,0.8351403474807739,0.8351403474807739,0.8351403474807739,0.8545622229576111,0.8642731308937073,0.8545622229576111,0.8739840388298035,0.8448512554168701,0.8448512554168701,0.8545622229576111,0.8254294395446777,0.8157184720039368,0.8254294395446777,0.7865856885910034,0.7671638131141663,0.7768747210502625,0.8060075044631958,0.7865856885910034,0.8060075044631958,0.8157184720039368,0.7768747210502625,0.7768747210502625,0.7865856885910034,0.7768747210502625,0.7865856885910034,0.7962965965270996,0.7865856885910034,0.7865856885910034]}]}}],"error":null}} |