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.7 KiB
JSON
1 line
6.7 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2516.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1703208600,"regularMarketTime":1781510313,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":1.21,"fiftyTwoWeekHigh":1.44,"fiftyTwoWeekLow":0.48,"regularMarketDayHigh":1.21,"regularMarketDayLow":1.2,"regularMarketVolume":1692000,"longName":"FAR International Holdings Group Company Limited","shortName":"FAR INTL","chartPreviousClose":1.3,"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","5y","ytd","max"]},"timestamp":[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,1710120600],"indicators":{"quote":[{"low":[0.9100000262260437,0.8899999856948853,0.8899999856948853,0.9300000071525574,0.9599999785423279,0.9399999976158142,0.9100000262260437,0.949999988079071,0.9300000071525574,0.9399999976158142,0.9100000262260437,0.8100000023841858,0.8500000238418579,0.8700000047683716,0.7799999713897705,0.7699999809265137,0.7799999713897705,0.800000011920929,0.800000011920929,0.8199999928474426,0.8299999833106995,0.8199999928474426,0.7799999713897705,0.7300000190734863,0.699999988079071,0.6299999952316284,0.5600000023841858,0.5899999737739563,0.5600000023841858,0.5799999833106995,0.6100000143051147,0.6000000238418579,0.6299999952316284,0.6100000143051147,0.6000000238418579,0.5899999737739563,0.6000000238418579,0.5899999737739563,0.6100000143051147,0.6700000166893005,0.6600000262260437,0.6100000143051147,0.6200000047683716,0.6499999761581421,0.6200000047683716,0.6600000262260437,0.6499999761581421,0.6200000047683716,0.6200000047683716,0.6100000143051147,0.6000000238418579,0.6100000143051147],"open":[1.2999999523162842,1.0099999904632568,0.9200000166893005,0.9300000071525574,0.9800000190734863,1.0399999618530273,0.9700000286102295,0.9599999785423279,0.9800000190734863,0.9800000190734863,0.9300000071525574,0.9200000166893005,0.8899999856948853,0.8700000047683716,0.8600000143051147,0.7799999713897705,0.7799999713897705,0.800000011920929,0.949999988079071,0.8500000238418579,0.8500000238418579,0.8500000238418579,0.8100000023841858,0.8199999928474426,0.7200000286102295,0.6600000262260437,0.6499999761581421,0.6200000047683716,0.5799999833106995,0.5799999833106995,0.6200000047683716,0.6299999952316284,0.6299999952316284,0.6100000143051147,0.6499999761581421,0.6100000143051147,0.6200000047683716,0.6000000238418579,0.6499999761581421,0.6899999976158142,0.6700000166893005,0.6800000071525574,0.6700000166893005,0.6499999761581421,0.6600000262260437,0.699999988079071,0.6800000071525574,0.6700000166893005,0.6399999856948853,0.6299999952316284,0.6299999952316284,0.6100000143051147],"high":[1.3200000524520874,1.0199999809265137,1.0299999713897705,1.0,1.0499999523162842,1.0499999523162842,0.9700000286102295,1.0,0.9800000190734863,1.0099999904632568,0.9599999785423279,0.9300000071525574,0.8999999761581421,0.8700000047683716,0.8799999952316284,0.8299999833106995,0.8100000023841858,0.9700000286102295,0.9800000190734863,0.8700000047683716,0.8600000143051147,0.8500000238418579,0.8299999833106995,0.8199999928474426,0.7699999809265137,0.7300000190734863,0.6499999761581421,0.6499999761581421,0.6299999952316284,0.6600000262260437,0.6499999761581421,0.6399999856948853,0.6299999952316284,0.6700000166893005,0.6499999761581421,0.6299999952316284,0.6200000047683716,0.6600000262260437,0.7599999904632568,0.7300000190734863,0.6899999976158142,0.7200000286102295,0.6800000071525574,0.6899999976158142,0.699999988079071,0.75,0.7099999785423279,0.6700000166893005,0.6600000262260437,0.6299999952316284,0.6399999856948853,0.6299999952316284],"close":[1.0,0.8899999856948853,0.9300000071525574,0.9700000286102295,1.0399999618530273,0.9599999785423279,0.9700000286102295,0.9800000190734863,0.9700000286102295,0.949999988079071,0.9200000166893005,0.8999999761581421,0.8600000143051147,0.8700000047683716,0.7799999713897705,0.800000011920929,0.8100000023841858,0.9300000071525574,0.8500000238418579,0.8299999833106995,0.8399999737739563,0.8299999833106995,0.8299999833106995,0.7300000190734863,0.699999988079071,0.6299999952316284,0.6399999856948853,0.5899999737739563,0.6200000047683716,0.6499999761581421,0.6399999856948853,0.6299999952316284,0.6299999952316284,0.6499999761581421,0.6100000143051147,0.6299999952316284,0.6100000143051147,0.6499999761581421,0.699999988079071,0.6899999976158142,0.6800000071525574,0.6399999856948853,0.6600000262260437,0.6800000071525574,0.699999988079071,0.6800000071525574,0.6700000166893005,0.6399999856948853,0.6299999952316284,0.6299999952316284,0.6299999952316284,0.6299999952316284],"volume":[37100000,10120000,10436000,9036000,8396000,9040000,8128000,8620000,7116000,6412000,9260000,10644000,9324000,0,9628000,7284000,2944000,7964000,4872000,1776000,932000,384000,4020000,2324000,904000,584000,1988000,576000,1040000,3152000,1020000,656000,0,572000,732000,220000,520000,864000,6112000,2924000,544000,1428000,804000,832000,9484000,8856000,848000,1172000,280000,364000,580000,924000]}],"adjclose":[{"adjclose":[1.0,0.8899999856948853,0.9300000071525574,0.9700000286102295,1.0399999618530273,0.9599999785423279,0.9700000286102295,0.9800000190734863,0.9700000286102295,0.949999988079071,0.9200000166893005,0.8999999761581421,0.8600000143051147,0.8700000047683716,0.7799999713897705,0.800000011920929,0.8100000023841858,0.9300000071525574,0.8500000238418579,0.8299999833106995,0.8399999737739563,0.8299999833106995,0.8299999833106995,0.7300000190734863,0.699999988079071,0.6299999952316284,0.6399999856948853,0.5899999737739563,0.6200000047683716,0.6499999761581421,0.6399999856948853,0.6299999952316284,0.6299999952316284,0.6499999761581421,0.6100000143051147,0.6299999952316284,0.6100000143051147,0.6499999761581421,0.699999988079071,0.6899999976158142,0.6800000071525574,0.6399999856948853,0.6600000262260437,0.6800000071525574,0.699999988079071,0.6800000071525574,0.6700000166893005,0.6399999856948853,0.6299999952316284,0.6299999952316284,0.6299999952316284,0.6299999952316284]}]}}],"error":null}} |