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.7 KiB
JSON
1 line
1.7 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"1081.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1780623000,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":64.2,"fiftyTwoWeekHigh":66.45,"fiftyTwoWeekLow":57.1,"regularMarketDayHigh":66.0,"regularMarketDayLow":63.35,"regularMarketVolume":1230900,"shortName":"DAJIN","chartPreviousClose":66.4,"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","ytd","max"]},"timestamp":[1780623000,1780882200,1780968600,1781055000,1781141400,1781227800,1781487000],"indicators":{"quote":[{"close":[66.4000015258789,63.0,63.400001525878906,62.599998474121094,59.900001525878906,63.95000076293945,64.19999694824219],"low":[59.04999923706055,62.20000076293945,61.29999923706055,61.54999923706055,59.79999923706055,57.099998474121094,63.349998474121094],"high":[66.44999694824219,65.80000305175781,66.0,62.900001525878906,62.349998474121094,64.94999694824219,66.0],"open":[66.4000015258789,64.4000015258789,62.79999923706055,62.0,61.5,59.900001525878906,63.79999923706055],"volume":[17946800,5166100,2108100,700300,1492900,799000,1230900]}],"adjclose":[{"adjclose":[66.4000015258789,63.0,63.400001525878906,62.599998474121094,59.900001525878906,63.95000076293945,64.19999694824219]}]}}],"error":null}} |