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.6 KiB
JSON
1 line
1.6 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"1779.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1780623000,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":142.8,"fiftyTwoWeekHigh":158.0,"fiftyTwoWeekLow":116.1,"regularMarketDayHigh":145.9,"regularMarketDayLow":136.1,"regularMarketVolume":180050,"shortName":"LONGBIO-B","chartPreviousClose":144.3,"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":[{"close":[131.8000030517578,124.0,139.8000030517578,137.5,141.89999389648438,143.89999389648438,142.8000030517578],"low":[126.4000015258789,116.0999984741211,124.0999984741211,133.1999969482422,136.5,141.39999389648438,136.10000610351562],"volume":[4011200,572200,788638,287100,166850,141518,180050],"open":[144.3000030517578,130.0,124.0999984741211,134.5,136.5,141.60000610351562,140.0],"high":[158.0,133.10000610351562,146.3000030517578,143.60000610351562,143.3000030517578,146.0,145.89999389648438]}],"adjclose":[{"adjclose":[131.8000030517578,124.0,139.8000030517578,137.5,141.89999389648438,143.89999389648438,142.8000030517578]}]}}],"error":null}} |