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
7.0 KiB
JSON
1 line
7.0 KiB
JSON
{"chart":{"result":[{"meta":{"currency":"HKD","symbol":"1334.HK","exchangeName":"HKG","fullExchangeName":"HKSE","instrumentType":"EQUITY","firstTradeDate":1720575000,"regularMarketTime":1781510940,"hasPrePostMarketData":false,"gmtoffset":28800,"timezone":"HKT","exchangeTimezoneName":"Asia/Hong_Kong","regularMarketPrice":1.03,"fiftyTwoWeekHigh":2.65,"fiftyTwoWeekLow":0.9,"regularMarketDayHigh":1.1,"regularMarketDayLow":0.99,"regularMarketVolume":912500,"longName":"Ruichang International Holdings Limited","shortName":"RUICHANG INTL","chartPreviousClose":1.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","3mo","6mo","1y","2y","ytd","max"]},"timestamp":[1720575000,1720661400,1720747800,1721007000,1721093400,1721179800,1721266200,1721352600,1721611800,1721698200,1721784600,1721871000,1721957400,1722216600,1722303000,1722389400,1722475800,1722562200,1722821400,1722907800,1722994200,1723080600,1723167000,1723426200,1723512600,1723599000,1723685400,1723771800,1724031000,1724117400,1724203800,1724290200,1724376600,1724635800,1724722200,1724808600,1724895000,1724981400,1725240600,1725327000,1725413400,1725499800,1725845400,1725931800,1726018200,1726104600,1726191000,1726450200,1726536600,1726709400,1726795800,1727055000,1727141400,1727227800,1727314200,1727400600],"indicators":{"quote":[{"volume":[39965000,10805000,4147500,1390000,1797500,1390000,4042500,6312500,3697500,1257500,2607500,2602500,947500,2012500,390000,1152500,2345000,487500,797500,450000,800000,500000,337500,370000,107500,17500,212500,57500,1480000,590000,332500,72500,377500,487500,472500,387500,540000,637500,402500,502500,470000,320000,337500,855000,1097500,880000,1085000,742500,1852500,482500,230000,142500,900000,405000,362500,265000],"open":[1.2999999523162842,1.2400000095367432,1.149999976158142,1.2300000190734863,1.159999966621399,1.1200000047683716,1.1399999856948853,1.2300000190734863,1.2899999618530273,1.3200000524520874,1.2999999523162842,1.159999966621399,1.0800000429153442,1.1200000047683716,1.1100000143051147,1.0800000429153442,1.0399999618530273,1.0299999713897705,0.9800000190734863,0.949999988079071,0.9200000166893005,0.8600000143051147,0.8500000238418579,0.7699999809265137,0.8399999737739563,0.8600000143051147,0.8299999833106995,0.9599999785423279,0.9700000286102295,1.0700000524520874,1.059999942779541,1.0499999523162842,1.0499999523162842,1.0399999618530273,1.100000023841858,1.0499999523162842,1.0399999618530273,1.0499999523162842,1.0199999809265137,1.0,0.9300000071525574,0.9700000286102295,0.9599999785423279,1.0,0.9900000095367432,0.9599999785423279,1.0,0.9900000095367432,0.9900000095367432,1.0499999523162842,1.059999942779541,1.0399999618530273,1.0399999618530273,1.0,1.0,0.949999988079071],"low":[1.159999966621399,1.0299999713897705,1.1200000047683716,1.1200000047683716,1.090000033378601,1.1200000047683716,1.1200000047683716,1.190000057220459,1.2699999809265137,1.2599999904632568,1.100000023841858,1.0499999523162842,1.0499999523162842,1.0700000524520874,1.0700000524520874,1.0199999809265137,1.0,0.9700000286102295,0.9100000262260437,0.8799999952316284,0.8399999737739563,0.8199999928474426,0.800000011920929,0.7699999809265137,0.8299999833106995,0.8199999928474426,0.8299999833106995,0.8899999856948853,0.9700000286102295,1.059999942779541,1.0499999523162842,1.0299999713897705,1.0,1.0399999618530273,1.0499999523162842,1.0499999523162842,1.0399999618530273,1.0,0.9900000095367432,0.9200000166893005,0.9300000071525574,0.9399999976158142,0.9599999785423279,0.9700000286102295,0.949999988079071,0.949999988079071,0.949999988079071,0.9900000095367432,0.9700000286102295,1.0199999809265137,1.0299999713897705,1.0099999904632568,0.9800000190734863,0.949999988079071,0.949999988079071,0.9100000262260437],"high":[1.5499999523162842,1.2599999904632568,1.2599999904632568,1.2599999904632568,1.190000057220459,1.1699999570846558,1.2799999713897705,1.3600000143051147,1.3700000047683716,1.3300000429153442,1.2999999523162842,1.159999966621399,1.1200000047683716,1.149999976158142,1.149999976158142,1.100000023841858,1.0800000429153442,1.0299999713897705,0.9800000190734863,1.0199999809265137,0.9300000071525574,0.8799999952316284,0.8500000238418579,0.8600000143051147,0.9100000262260437,0.8600000143051147,0.8799999952316284,0.9599999785423279,1.1100000143051147,1.1100000143051147,1.0700000524520874,1.0499999523162842,1.0499999523162842,1.090000033378601,1.1100000143051147,1.090000033378601,1.090000033378601,1.0499999523162842,1.0399999618530273,1.0299999713897705,1.0199999809265137,0.9900000095367432,1.0299999713897705,1.0199999809265137,1.0099999904632568,1.0,1.0199999809265137,1.0299999713897705,1.0700000524520874,1.0700000524520874,1.0700000524520874,1.0399999618530273,1.059999942779541,1.0,1.0,0.949999988079071],"close":[1.2000000476837158,1.1299999952316284,1.2000000476837158,1.1699999570846558,1.1100000143051147,1.149999976158142,1.2300000190734863,1.2899999618530273,1.309999942779541,1.2899999618530273,1.1799999475479126,1.090000033378601,1.100000023841858,1.1399999856948853,1.0800000429153442,1.059999942779541,1.0299999713897705,0.9900000095367432,0.949999988079071,0.9100000262260437,0.8899999856948853,0.8500000238418579,0.8100000023841858,0.8399999737739563,0.8399999737739563,0.8500000238418579,0.8799999952316284,0.9100000262260437,1.0700000524520874,1.0700000524520874,1.0499999523162842,1.0499999523162842,1.0199999809265137,1.0800000429153442,1.0800000429153442,1.0700000524520874,1.0700000524520874,1.0399999618530273,0.9900000095367432,0.9700000286102295,0.9900000095367432,0.9900000095367432,1.0,1.0,0.9700000286102295,1.0,0.9700000286102295,0.9900000095367432,1.0499999523162842,1.0499999523162842,1.0399999618530273,1.0299999713897705,1.0099999904632568,1.0,0.949999988079071,0.9300000071525574]}],"adjclose":[{"adjclose":[1.1443405151367188,1.0775872468948364,1.1443405151367188,1.1157318353652954,1.058514952659607,1.096659541130066,1.172948956489563,1.230165958404541,1.2492382526397705,1.230165958404541,1.1252681016921997,1.0394426584243774,1.0489788055419922,1.0871233940124512,1.0299063920974731,1.010833978652954,0.9822255373001099,0.9440808892250061,0.9059361815452576,0.8677915334701538,0.8487191200256348,0.8105745315551758,0.7724298238754272,0.8010382652282715,0.8010382652282715,0.8105745315551758,0.83918297290802,0.8677915334701538,1.0203702449798584,1.0203702449798584,1.0012978315353394,1.0012978315353394,0.9726893305778503,1.0299063920974731,1.0299063920974731,1.0203702449798584,1.0203702449798584,0.9917616844177246,0.9440808892250061,0.9250085353851318,0.9440808892250061,0.9440808892250061,0.9536170363426208,0.9536170363426208,0.9250085353851318,0.9536170363426208,0.9250085353851318,0.9440808892250061,1.0012978315353394,1.0012978315353394,0.9917616844177246,0.9822255373001099,0.9631531834602356,0.9536170363426208,0.9059361815452576,0.8868638277053833]}]}}],"error":null}} |