Publish verified Quant Lab dataset manifest and guide
Browse filesFiles changed (2)
- README.md+17-12
- dataset_manifest.json+78-24
24 unmodified lines2526272829303132333435363738394041425 unmodified lines48495051525313 unmodified lines676869707172737475767719 unmodified lines97989910010124 unmodified lines## 内容与覆盖范围本次完整快照约 **6.01 GB / 15,054 个数据文件**(另含说明与校验清单):| 数据 | 日期覆盖 | 记录数 || --- | --- | ---: || 全市场日线 | 2024-07-15 至 2026-09-08,524 个交易日 | 2,842,159 || 复权行情与因子 | 2024-07-15 至 2026-09-08,524 个交易日 | 2,914,488 || 两融证券明细 | 2025-08-27 至 2026-09-07,250 个交易日 | 1,079,096 || 已下载逐笔 | 42 只股票,80 个不同交易日,区间内并非每日均覆盖 | 401,835,082 || 资金日指标 | 43 只股票,不同股票的历史长度不同 | 3,393 |逐笔日期最早 2026-01-05、最晚 2026-07-24;该首尾范围内存在未覆盖日期,不能按连续半年理解。详细文件级覆盖与 SHA-256 见 `dataset_manifest.json`。| 目录 | 内容 || --- | --- |5 unmodified lines| `dataset_manifest.json` | 本次完整快照的文件列表、SHA-256、行数、容量与日期覆盖 |行情、两融和资金指标的覆盖范围不同,以清单为准;新上市/停牌/退市等原因可能造成个股日期缺失。逐笔只保留下载时请求的字段,不包含账户或席位身份;不能据此识别同一账户。没有包含个人 SQLite、策略定义、标注、回测记录、API Key、日志或运行锁。预览器中的 `train` 只是文件集合名称,不表示已经划分训练集/测试集。13 unmodified lines```pythonfrom app.config import Settingsfrom huggingface_hub import HfApi, snapshot_downloadsettings = Settings.from_env() # 同时加载本机 .envrepo = "lutaoyan/quant-data"revision = HfApi().repo_info(repo, repo_type="dataset").shasnapshot_download(repo, repo_type="dataset", revision=revision,local_dir=settings.data_dir,allow_patterns=["market/**", "margin/**", "raw/**", "features/**",19 unmodified lines本仓库为公开仓库,发布者已确认可公开共享;上传时需显式执行`make data-push HF_UPLOAD_FLAGS=--allow-public`。私有仓库不需要这个参数。脚本按白名单准备独立副本,上传数据后核对远端文件,再发布完整清单;可中断重跑。快照发布包含多次提交,**以发布清单的最终提交作为可使用版本**,不要选择上传中间提交。已有文件可能被更新,旧版本可以通过 commit SHA 下载;多个协作者各自保留自己的 SQLite。24 unmodified lines25262728293031323334353637383940415 unmodified lines474849505152535413 unmodified lines686970717273747576777819 unmodified lines989910010110210310410510624 unmodified lines## 内容与覆盖范围本次快照:15,063 个数据文件,6.016 GB(十进制)。| 数据 | 日期范围 | 有数据的交易日 | 行数 || --- | --- | ---: | ---: || 全市场日 K | 2024-07-15 — 2026-09-11 | 527 | 2,858,821 || 复权因子 | 2024-07-15 — 2026-09-11 | 527 | 2,931,150 || 两融汇总 | 2025-08-27 — 2026-09-07 | 250 | 750 || 两融明细 | 2025-08-27 — 2026-09-07 | 250 | 1,079,096 || 逐笔 | 20260105 — 20260724 | 80 | 401,835,082 |逐笔日期并不连续,也不代表每只股票都有上述全部日期。| 目录 | 内容 || --- | --- |5 unmodified lines| `dataset_manifest.json` | 本次完整快照的文件列表、SHA-256、行数、容量与日期覆盖 |行情、两融和资金指标的覆盖范围不同,以清单为准;新上市/停牌/退市等原因可能造成个股日期缺失。日期有分区不代表每个字段都有效;源数据中的空值和零价格原样保留,不用前值冒充成交价。回测必须检查价格有效性、成交量及可交易状态,不能把停牌或缺失记录当成可成交行情。逐笔只保留下载时请求的字段,不包含账户或席位身份;不能据此识别同一账户。没有包含个人 SQLite、策略定义、标注、回测记录、API Key、日志或运行锁。预览器中的 `train` 只是文件集合名称,不表示已经划分训练集/测试集。13 unmodified lines```pythonfrom app.config import Settingsfrom huggingface_hub import snapshot_downloadsettings = Settings.from_env() # 同时加载本机 .envrepo = "lutaoyan/quant-data"revision = "<发布完整清单的 commit SHA>" # 使用发布命令输出的 Published revisionsnapshot_download(repo, repo_type="dataset", revision=revision,local_dir=settings.data_dir,allow_patterns=["market/**", "margin/**", "raw/**", "features/**",19 unmodified lines本仓库为公开仓库,发布者已确认可公开共享;上传时需显式执行`make data-push HF_UPLOAD_FLAGS=--allow-public`。私有仓库不需要这个参数。脚本按白名单准备独立副本,上传数据后核对远端文件,再发布完整清单;可中断重跑。后续执行 `make data-sync HF_UPLOAD_FLAGS=--allow-public` 会重新生成清单,按内容校验值对比远端,只传新增或变化的文件;不会重复上传整个历史,也不会删除远端额外文件。可先执行 `make data-prepare && make data-plan` 查看本次增量文件数与字节数。上传独立副本时可以继续下载行情;下载结束且当前上传完成后,再执行一次 `data-sync` 发布新数据。快照发布包含多次提交,**以发布清单的最终提交作为可使用版本**,不要选择上传中间提交。已有文件可能被更新,旧版本可以通过 commit SHA 下载;多个协作者各自保留自己的 SQLite。
12345673003 unmodified lines301130123013301430153016301730183140 unmodified lines6159616061616162616361646282 unmodified lines124471244812449124501245112452124531245412455124561245777859 unmodified lines90317903189031990320903219032290323903243 unmodified lines903289032990330903319033290333903349033521 unmodified lines90357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903888 unmodified lines90397903989039990400904019040290403{"schema_version": 1,"dataset": "quant-lab-shared-market-data","created_at": "2026-09-11T12:13:48.651370+00:00","files": [{"path": "margin/detail/trade_date=2025-08-27/part-00000.parquet",3003 unmodified lines},{"path": "market/manifest.json","bytes": 364160,"sha256": "b16b3890a20874cb882a8e5913bfd63ffaa11683042edf17e5c5248631348b76","rows": null},{3140 unmodified lines"sha256": "22dee70c40818ca561e31586fb3ca653d6c4d998bd9ab7c5163d9539cd480833","rows": 5549},{"path": "market/stk_factor_pro/trade_date=2024-07-15/metadata.json","bytes": 869,6282 unmodified lines"sha256": "bfd4295596d50a6814beb5971e3d90d5524999286b4f91040d16e9d0cfd0a828","rows": 5549},{"path": "market/symbols/part-00000.parquet","bytes": 77056,"sha256": "316f013e0c9f1e3843f214892fd49997e03643e3d0618ff3b99a5c765129f653","rows": 5558},{"path": "raw/trades/symbol=000100/trade_date=20260723/manifest.json",77859 unmodified lines},{"path": "reference/stock_symbols.json","bytes": 652275,"sha256": "63521e540da9b5163fcbf7a4068be2db31d5fade3150149ac50deee80ad72774","rows": null},{3 unmodified lines"rows": 3393}],"total_files": 15054,"total_bytes": 6013198805,"coverage": {"margin/detail": {"files": 250,21 unmodified lines},"market/manifest.json": {"files": 1,"bytes": 364160,"rows": 0,"trading_days": 0,"first_date": null,"last_date": null},"market/screening": {"files": 524,"bytes": 260323594,"rows": 2842159,"trading_days": 524,"first_date": "2024-07-15","last_date": "2026-09-08"},"market/stk_factor_pro": {"files": 1048,"bytes": 236706711,"rows": 2914488,"trading_days": 524,"first_date": "2024-07-15","last_date": "2026-09-08"},"market/symbols": {"files": 1,"bytes": 77056,"rows": 5558,"trading_days": 0,"first_date": null,"last_date": null8 unmodified lines},"reference/stock_symbols.json": {"files": 1,"bytes": 652275,"rows": 0,"trading_days": 0,"first_date": null,12345673003 unmodified lines301130123013301430153016301730183140 unmodified lines6159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826282 unmodified lines124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251177859 unmodified lines90371903729037390374903759037690377903783 unmodified lines903829038390384903859038690387903889038921 unmodified lines90411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904428 unmodified lines90451904529045390454904559045690457{"schema_version": 1,"dataset": "quant-lab-shared-market-data","created_at": "2026-09-11T13:11:27.834084+00:00","files": [{"path": "margin/detail/trade_date=2025-08-27/part-00000.parquet",3003 unmodified lines},{"path": "market/manifest.json","bytes": 354099,"sha256": "ffe8ee157bf2152dfef3e3a35bfaaf211757e9881ada6e8906237a0ac7a1f995","rows": null},{3140 unmodified lines"sha256": "22dee70c40818ca561e31586fb3ca653d6c4d998bd9ab7c5163d9539cd480833","rows": 5549},{"path": "market/screening/trade_date=2026-09-09/part-00000.parquet","bytes": 547669,"sha256": "c4b3840636924c0f1cb5b6324454571b5bcf771b1c28ac88923d53332b538735","rows": 5550},{"path": "market/screening/trade_date=2026-09-10/part-00000.parquet","bytes": 543481,"sha256": "7a6ceaec9c4cf64459d098b32d669467a9098264c572911ecdf7c95d5ef4c5a3","rows": 5549},{"path": "market/screening/trade_date=2026-09-11/part-00000.parquet","bytes": 565160,"sha256": "5d5e9ef4f3ccea36e46c6886dec4088655639d85dadf7b3b6e022afa45170035","rows": 5563},{"path": "market/stk_factor_pro/trade_date=2024-07-15/metadata.json","bytes": 869,6282 unmodified lines"sha256": "bfd4295596d50a6814beb5971e3d90d5524999286b4f91040d16e9d0cfd0a828","rows": 5549},{"path": "market/stk_factor_pro/trade_date=2026-09-09/metadata.json","bytes": 730,"sha256": "bb6be61395a27f0c6e5a21781780f8c0c17200889766d33e0c4be9abb55c20ec","rows": null},{"path": "market/stk_factor_pro/trade_date=2026-09-09/part-00000.parquet","bytes": 461267,"sha256": "9d1aceefdabee8ab7fd723e10a99ac8637645d294e9a96cb5a1ecf0db628b41e","rows": 5550},{"path": "market/stk_factor_pro/trade_date=2026-09-10/metadata.json","bytes": 730,"sha256": "7297f9cedde031a1528b8e35e24bd29dc4353b0a686eba437a8afe23c17adfe8","rows": null},{"path": "market/stk_factor_pro/trade_date=2026-09-10/part-00000.parquet","bytes": 462144,"sha256": "dd16a7cca6f32a6d354f8af744a1fd40d68711f6f8ebb8f29745951f9da367cc","rows": 5549},{"path": "market/stk_factor_pro/trade_date=2026-09-11/metadata.json","bytes": 730,"sha256": "548efe3e0eb87b7bd181fbc261dd1d5f4c25855b7ac82b58d3e2e7152c08d970","rows": null},{"path": "market/stk_factor_pro/trade_date=2026-09-11/part-00000.parquet","bytes": 343395,"sha256": "38325ef9b4b38be8a4ebc7b0c5becbb95757334421abac7060bc4b5942072add","rows": 5563},{"path": "market/symbols/part-00000.parquet","bytes": 77106,"sha256": "ce758be115b23f88701074e810020ae3d14991ec97b477ee4b0be4df662018b5","rows": 5562},{"path": "raw/trades/symbol=000100/trade_date=20260723/manifest.json",77859 unmodified lines},{"path": "reference/stock_symbols.json","bytes": 974887,"sha256": "b45f74b83a963d4fa57c33ad445440bb0c240a5ef1121df37383476410a0069d","rows": null},{3 unmodified lines"rows": 3393}],"total_files": 15063,"total_bytes": 6016436712,"coverage": {"margin/detail": {"files": 250,21 unmodified lines},"market/manifest.json": {"files": 1,"bytes": 354099,"rows": 0,"trading_days": 0,"first_date": null,"last_date": null},"market/screening": {"files": 527,"bytes": 261979904,"rows": 2858821,"trading_days": 527,"first_date": "2024-07-15","last_date": "2026-09-11"},"market/stk_factor_pro": {"files": 1054,"bytes": 237975707,"rows": 2931150,"trading_days": 527,"first_date": "2024-07-15","last_date": "2026-09-11"},"market/symbols": {"files": 1,"bytes": 77106,"rows": 5562,"trading_days": 0,"first_date": null,"last_date": null8 unmodified lines},"reference/stock_symbols.json": {"files": 1,"bytes": 974887,"rows": 0,"trading_days": 0,"first_date": null,
README.md+17-12
dataset_manifest.json+78-24