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
1.8 KiB
JSON
1 line
1.8 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"2290.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1780623000,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":2.45,"fiftyTwoWeekHigh":4.6,"fiftyTwoWeekLow":2.36,"regularMarketDayHigh":2.72,"regularMarketDayLow":2.44,"regularMarketVolume":7622500,"longName":"Lung Fung Group Holdings Limited","shortName":"LUNG FUNG GROUP","chartPreviousClose":4.32,"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","ytd","max"]},"timestamp":[1780623000,1780882200,1780968600,1781055000,1781141400,1781227800,1781487000],"indicators":{"quote":[{"open":[4.320000171661377,2.7799999713897705,2.430000066757202,2.7200000286102295,2.950000047683716,2.75,2.7200000286102295],"volume":[85471206,26230000,20953000,9742942,4540500,3982000,7622500],"close":[2.809999942779541,2.430000066757202,2.7200000286102295,2.9600000381469727,2.75,2.7200000286102295,2.450000047683716],"low":[2.799999952316284,2.359999895095825,2.369999885559082,2.5299999713897705,2.740000009536743,2.700000047683716,2.440000057220459],"high":[4.599999904632568,2.8499999046325684,2.950000047683716,2.9700000286102295,2.950000047683716,2.880000114440918,2.7200000286102295]}],"adjclose":[{"adjclose":[2.809999942779541,2.430000066757202,2.7200000286102295,2.9600000381469727,2.75,2.7200000286102295,2.450000047683716]}]}}],"error":null}} |