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
5.7 KiB
JSON
1 line
5.7 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"1318.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1733794200,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":59.3,"fiftyTwoWeekHigh":115.0,"fiftyTwoWeekLow":55.4,"regularMarketDayHigh":63.75,"regularMarketDayLow":58.8,"regularMarketVolume":2429283,"longName":"Mao Geping Cosmetics Co., Ltd.","shortName":"MAO GEPING","chartPreviousClose":47.65,"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","ytd","max"]},"timestamp":[1733794200,1733880600,1733967000,1734053400,1734312600,1734399000,1734485400,1734571800,1734658200,1734917400,1735003800,1735263000,1735522200,1735608600,1735781400,1735867800,1736127000,1736213400,1736299800,1736386200,1736472600,1736731800,1736818200,1736904600,1736991000,1737077400,1737336600,1737423000,1737509400,1737595800,1737682200,1737941400,1738027800,1738546200,1738632600,1738719000,1738805400,1738891800,1739151000,1739237400,1739323800,1739410200,1739496600,1739755800,1739842200,1739928600,1740015000,1740101400,1740360600,1740447000,1740533400,1740619800,1740706200],"indicators":{"quote":[{"high":[57.20000076293945,54.95000076293945,58.650001525878906,60.599998474121094,58.5,58.5,61.599998474121094,61.70000076293945,60.79999923706055,57.599998474121094,55.5,58.900001525878906,58.25,58.75,58.0,60.20000076293945,59.70000076293945,58.599998474121094,59.0,59.29999923706055,62.54999923706055,60.54999923706055,59.29999923706055,58.70000076293945,58.849998474121094,59.599998474121094,64.25,67.9000015258789,69.5,71.4000015258789,73.94999694824219,73.5,71.4000015258789,76.19999694824219,77.0,74.5,71.44999694824219,73.8499984741211,72.05000305175781,71.8499984741211,74.8499984741211,74.80000305175781,76.5999984741211,76.80000305175781,74.0,77.0,75.0,74.69999694824219,73.0,72.0999984741211,76.0,79.0,79.0],"open":[47.650001525878906,52.099998474121094,51.349998474121094,58.0,56.29999923706055,54.5,58.599998474121094,59.0,59.599998474121094,57.29999923706055,55.5,55.0,56.5,58.75,57.5,57.79999923706055,59.0,56.900001525878906,57.349998474121094,56.400001525878906,58.20000076293945,60.099998474121094,59.0,57.599998474121094,57.599998474121094,58.04999923706055,59.0,61.95000076293945,67.4000015258789,69.44999694824219,67.5999984741211,72.4000015258789,71.4000015258789,69.0,76.0,73.5,70.69999694824219,69.30000305175781,72.05000305175781,71.8499984741211,69.75,74.5999984741211,73.0,76.5,71.9000015258789,73.1500015258789,75.0,74.69999694824219,72.80000305175781,70.80000305175781,70.0,73.0,78.19999694824219],"close":[52.599998474121094,51.95000076293945,58.0,55.599998474121094,54.650001525878906,58.5,61.0,59.599998474121094,56.25,56.45000076293945,55.5,57.20000076293945,57.849998474121094,58.75,57.79999923706055,59.0,56.900001525878906,58.20000076293945,56.400001525878906,58.150001525878906,60.25,59.0,57.599998474121094,58.25,58.0,59.0,61.95000076293945,67.44999694824219,68.0,68.0999984741211,72.44999694824219,70.80000305175781,71.4000015258789,74.5999984741211,73.44999694824219,70.69999694824219,69.3499984741211,72.05000305175781,70.75,69.44999694824219,73.9000015258789,72.25,76.5,71.9000015258789,73.9000015258789,74.19999694824219,72.80000305175781,72.5999984741211,72.0,70.80000305175781,73.0,78.0,75.3499984741211],"volume":[83646270,5932282,7478290,5795460,3680450,2344401,2955337,2506300,1794500,1227001,0,1971701,531400,0,1290842,1644296,1479800,1043800,653600,1690400,2663900,1022100,1855800,765500,936400,754600,2360720,2232780,2059300,1860900,1047474,1071300,0,1413750,1398700,1912500,1880360,1552722,1706200,1194700,1717700,889800,1139700,1438300,1391070,1168800,804300,1546480,1134300,1883600,3070700,2126400,1221200],"low":[47.650001525878906,51.150001525878906,50.5,55.0,53.599998474121094,53.5,57.5,58.099998474121094,55.79999923706055,55.20000076293945,55.5,52.0,56.04999923706055,58.75,55.5,56.54999923706055,56.79999923706055,55.900001525878906,56.400001525878906,55.70000076293945,57.400001525878906,57.75,56.599998474121094,56.349998474121094,57.45000076293945,57.650001525878906,59.0,61.650001525878906,66.55000305175781,67.30000305175781,67.5999984741211,70.0,71.4000015258789,68.19999694824219,72.80000305175781,69.80000305175781,67.6500015258789,68.6500015258789,69.3499984741211,69.30000305175781,69.44999694824219,71.9000015258789,72.25,71.44999694824219,71.05000305175781,73.0,72.69999694824219,72.0,70.5,68.94999694824219,69.55000305175781,72.0,74.19999694824219]}],"adjclose":[{"adjclose":[51.383026123046875,50.74806594848633,56.6580924987793,54.31361389160156,53.385597229003906,57.146522521972656,59.58868408203125,58.221073150634766,54.948577880859375,55.143951416015625,54.2159309387207,55.8765983581543,56.511558532714844,57.39073944091797,56.46271896362305,57.634952545166016,55.58354187011719,56.85346603393555,55.09511184692383,56.80461883544922,58.85603713989258,57.634952545166016,56.2673454284668,56.902305603027344,56.6580924987793,57.634952545166016,60.51670455932617,65.88945007324219,66.42672729492188,66.5244140625,70.77376556396484,69.16194915771484,69.74806213378906,72.8740234375,71.7506332397461,69.06426239013672,67.74549102783203,70.3830337524414,69.11310577392578,67.84317779541016,72.19022369384766,70.57839965820312,74.73006439208984,70.23649597167969,72.19022369384766,72.4832763671875,71.11567687988281,70.92030334472656,70.33418273925781,69.16194915771484,71.31105041503906,76.19536590576172,73.60667419433594]}]}}],"error":null}} |