Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job has been terminated due to a temporary spike in resource usage and may be restarted later.
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

日期
string
时间
string
开盘
float64
最高
float64
最低
float64
收盘
float64
成交量
int64
成交额
int64
2000-06-09
09:45
24
24.24
24
24.08
1,858
4,482,226
2000-06-09
10:00
24.05
24.07
24
24
1,911
4,590,575
2000-06-09
10:15
24
24.01
23.91
23.91
1,162
2,782,903
2000-06-09
10:30
23.91
23.99
23.91
23.96
700
1,676,791
2000-06-09
10:45
23.96
23.99
23.94
23.94
1,016
2,435,051
2000-06-09
11:00
23.93
23.94
23.91
23.92
841
2,012,642
2000-06-09
11:15
23.9
23.91
23.86
23.88
1,425
3,405,111
2000-06-09
11:30
23.88
23.9
23.75
23.75
1,429
3,404,872
2000-06-09
13:15
23.76
23.76
23.51
23.65
2,435
5,754,753
2000-06-09
13:30
23.68
23.7
23.6
23.6
1,279
3,022,464
2000-06-09
13:45
23.6
23.62
23.59
23.62
1,237
2,919,478
2000-06-09
14:00
23.62
23.65
23.59
23.61
1,537
3,629,041
2000-06-09
14:15
23.61
23.68
23.6
23.6
1,776
4,196,405
2000-06-09
14:30
23.6
23.66
23.6
23.62
1,301
3,072,420
2000-06-09
14:45
23.59
23.62
23.51
23.51
2,537
5,982,337
2000-06-09
15:00
23.55
23.58
23.53
23.55
2,064
4,862,751
2000-06-12
09:45
23.5
23.54
23.39
23.4
1,844
4,324,260
2000-06-12
10:00
23.4
23.45
23.39
23.42
1,702
3,983,517
2000-06-12
10:15
23.42
23.72
23.42
23.55
1,304
3,070,673
2000-06-12
10:30
23.55
23.55
23.48
23.51
1,558
3,664,374
2000-06-12
10:45
23.51
23.55
23.48
23.55
791
1,859,732
2000-06-12
11:00
23.55
23.6
23.42
23.42
1,478
3,471,743
2000-06-12
11:15
23.42
23.5
23.42
23.5
670
1,572,837
2000-06-12
11:30
23.49
23.49
23.45
23.48
754
1,769,304
2000-06-12
13:15
23.46
23.49
23.44
23.47
859
2,015,689
2000-06-12
13:30
23.46
23.48
23.44
23.44
584
1,370,015
2000-06-12
13:45
23.44
23.44
23.4
23.42
1,138
2,664,431
2000-06-12
14:00
23.42
23.42
23.4
23.41
995
2,329,266
2000-06-12
14:15
23.41
23.44
23.4
23.42
1,192
2,790,345
2000-06-12
14:30
23.42
23.43
23.39
23.41
1,899
4,444,485
2000-06-12
14:45
23.41
23.68
23.4
23.68
1,623
3,811,157
2000-06-12
15:00
23.65
23.69
23.55
23.62
1,181
2,790,847
2000-06-13
09:45
23.68
23.9
23.68
23.8
1,144
2,724,211
2000-06-13
10:00
23.8
23.86
23.71
23.85
1,236
2,944,039
2000-06-13
10:15
23.87
23.89
23.85
23.88
1,656
3,952,189
2000-06-13
10:30
23.88
24
23.88
23.99
2,424
5,808,185
2000-06-13
10:45
23.98
24
23.88
23.9
1,698
4,067,316
2000-06-13
11:00
23.92
23.92
23.82
23.88
718
1,713,310
2000-06-13
11:15
23.83
23.89
23.8
23.84
842
2,006,169
2000-06-13
11:30
23.81
23.84
23.78
23.8
553
1,316,367
2000-06-13
13:15
23.8
23.84
23.76
23.79
1,007
2,396,911
2000-06-13
13:30
23.76
23.77
23.71
23.75
659
1,564,955
2000-06-13
13:45
23.76
23.76
23.7
23.7
923
2,189,627
2000-06-13
14:00
23.71
23.74
23.7
23.73
885
2,098,563
2000-06-13
14:15
23.75
23.8
23.73
23.78
650
1,545,151
2000-06-13
14:30
23.78
23.78
23.73
23.73
954
2,265,861
2000-06-13
14:45
23.73
23.75
23.7
23.75
1,515
3,594,791
2000-06-13
15:00
23.72
23.84
23.71
23.84
1,011
2,401,673
2000-06-14
09:45
24
24.15
23.98
24
5,820
13,984,638
2000-06-14
10:00
24
24.35
24
24.35
9,567
23,116,526
2000-06-14
10:15
24.35
24.42
24.22
24.42
15,102
36,767,784
2000-06-14
10:30
24.44
24.67
24.44
24.59
24,932
61,141,409
2000-06-14
10:45
24.59
24.62
24.46
24.6
11,934
29,306,178
2000-06-14
11:00
24.56
24.59
24.35
24.36
4,554
11,147,491
2000-06-14
11:15
24.39
24.39
24.3
24.38
1,994
4,853,998
2000-06-14
11:30
24.38
24.4
24.35
24.4
1,370
3,340,390
2000-06-14
13:15
24.41
24.5
24.35
24.35
5,097
12,449,824
2000-06-14
13:30
24.37
24.38
24.3
24.31
2,867
6,981,862
2000-06-14
13:45
24.29
24.34
24.27
24.29
2,276
5,530,322
2000-06-14
14:00
24.28
24.36
24.28
24.33
2,418
5,876,166
2000-06-14
14:15
24.33
24.36
24.3
24.34
1,245
3,028,421
2000-06-14
14:30
24.34
24.39
24.27
24.28
1,678
4,081,818
2000-06-14
14:45
24.28
24.3
24.25
24.25
1,679
4,077,045
2000-06-14
15:00
24.25
24.25
24.15
24.18
2,623
6,346,735
2000-06-15
09:45
24.3
24.34
24.18
24.19
2,299
5,580,557
2000-06-15
10:00
24.2
24.27
24.15
24.26
1,868
4,521,232
2000-06-15
10:15
24.26
24.3
24.25
24.28
1,804
4,378,496
2000-06-15
10:30
24.29
24.35
24.29
24.34
2,136
5,196,613
2000-06-15
10:45
24.35
24.55
24.33
24.5
4,097
10,028,468
2000-06-15
11:00
24.5
24.5
24.4
24.41
3,405
8,333,083
2000-06-15
11:15
24.4
24.4
24.38
24.38
1,045
2,548,467
2000-06-15
11:30
24.38
24.4
24.35
24.35
833
2,029,906
2000-06-15
13:15
24.35
24.36
24.3
24.3
1,581
3,844,792
2000-06-15
13:30
24.29
24.32
24.27
24.32
1,046
2,541,196
2000-06-15
13:45
24.3
24.34
24.29
24.32
1,262
3,067,859
2000-06-15
14:00
24.32
24.35
24.3
24.33
1,601
3,894,306
2000-06-15
14:15
24.33
24.34
24.3
24.3
1,277
3,105,393
2000-06-15
14:30
24.32
24.36
24.3
24.36
1,765
4,294,896
2000-06-15
14:45
24.36
24.38
24.33
24.35
1,802
4,388,968
2000-06-15
15:00
24.35
24.39
24.34
24.36
2,318
5,647,701
2000-06-16
09:45
24.45
24.5
24.3
24.31
2,038
4,972,142
2000-06-16
10:00
24.32
24.37
24.3
24.3
1,409
3,427,280
2000-06-16
10:15
24.29
24.3
24.2
24.22
1,718
4,162,223
2000-06-16
10:30
24.22
24.25
24.21
24.21
1,102
2,670,190
2000-06-16
10:45
24.22
24.25
24.2
24.2
864
2,092,400
2000-06-16
11:00
24.21
24.22
24.15
24.15
2,010
4,862,894
2000-06-16
11:15
24.2
24.2
24.11
24.12
949
2,292,568
2000-06-16
11:30
24.12
24.15
24.11
24.13
1,083
2,613,537
2000-06-16
13:15
24.13
24.13
24.09
24.1
1,250
3,014,132
2000-06-16
13:30
24.09
24.1
24.06
24.07
926
2,229,453
2000-06-16
13:45
24.08
24.1
24.05
24.07
1,131
2,723,315
2000-06-16
14:00
24.08
24.08
24.05
24.05
1,302
3,133,366
2000-06-16
14:15
24.07
24.07
24
24
2,917
7,008,631
2000-06-16
14:30
24.02
24.02
23.89
23.94
2,080
4,982,812
2000-06-16
14:45
23.96
24.03
23.95
23.95
3,575
8,579,252
2000-06-16
15:00
23.95
24
23.95
23.97
1,257
3,014,954
2000-06-19
09:45
24
24.15
23.81
23.85
1,097
2,630,356
2000-06-19
10:00
23.87
23.87
23.8
23.83
1,127
2,684,298
2000-06-19
10:15
23.83
23.85
23.75
23.8
1,013
2,411,481
2000-06-19
10:30
23.78
23.8
23.7
23.73
1,540
3,653,591
End of preview.

stock_dataset

中文 | English

中文

本数据集以未压缩的原始文件保存两类股票数据,保留原有目录结构和文件内容,可以直接按目录下载使用。

目录 内容 文件数 原始字节数
qlib/cn_data/ A 股原生 Qlib provider,含 CSI300、CSI500、CSI1000 历史股票池定义 61,008 707,180,289
qlib/us_data/ 美股原生 Qlib provider,含 SP500 股票池及基准 3,744 59,236,967
qlib/hk_data/ 港股原生 Qlib provider,含 HSI90 股票池及 HKHSI 基准 1,604 15,714,170
A股分钟/2000-2024/ 2000—2024 年 A 股 1、5、15、30、60 分钟 CSV 行情 309,495 216,090,239,948
合计 375,851 216,872,371,374

数据文件合计约 201.98 GiB。分钟数据五种频率各有 61,899 个 CSV 文件。数据快照日期为 2026-10-29。

目录结构

qlib/
  cn_data/{calendars,instruments,features,...}
  us_data/{calendars,instruments,features,...}
  hk_data/{calendars,instruments,features,...}
A股分钟/2000-2024/<年份>/<1分钟|5分钟|15分钟|30分钟|60分钟>/<股票>.csv
metadata/
  manifest.json
  files.jsonl
  data_notes.md
scripts/
  download.py
  verify_download.py

Qlib 包含原生交易日历、股票池、features/<代码>/*.bin 行情字段、基准及 provider 说明。中证三个股票池共用 cn_data。日期范围、字段和数据情况见 数据说明。

下载与使用

完整下载:

hf download OxFengyuan/stock_dataset --repo-type dataset --local-dir stock_dataset

下载所需的一类数据(脚本需要 huggingface_hub):

python3 scripts/download.py --collection qlib --destination ./stock_dataset
python3 scripts/download.py --collection minutes --destination ./stock_dataset
python3 scripts/download.py --repo-id OpenFinMind/stock_dataset --collection qlib --destination ./stock_dataset

下载完成即可直接读取 CSV,或将 ./stock_dataset/qlib/cn_data、us_data、hk_data 分别作为 qlib.init(provider_uri=...) 的 provider 目录。下载全部数据需要约 202 GiB 数据空间,另为下载缓存和元数据预留空间。

文件清单与校验

总体清单 记录各目录文件数和字节数;逐文件清单 记录每个数据文件的相对路径、字节数及 SHA256。

python3 scripts/verify_download.py --repo ./stock_dataset --collection all

--collection qlib 或 --collection minutes 可单独校验一类数据。

English

This dataset stores two collections as uncompressed original files, preserving their directory structure and contents. Download the desired directories and use the files directly.

Directory Contents Files Original bytes
qlib/cn_data/ Native A-share Qlib provider, including historical CSI300, CSI500, and CSI1000 universe definitions 61,008 707,180,289
qlib/us_data/ Native US Qlib provider, including the SP500 universe and benchmark 3,744 59,236,967
qlib/hk_data/ Native Hong Kong Qlib provider, including the HSI90 universe and HKHSI benchmark 1,604 15,714,170
A股分钟/2000-2024/ A-share CSV market data for 2000–2024 at 1-, 5-, 15-, 30-, and 60-minute frequencies 309,495 216,090,239,948
Total 375,851 216,872,371,374

The data files total approximately 201.98 GiB. Each minute frequency contains 61,899 CSV files. The data snapshot date is 2026-10-29.

Directory structure

qlib/
  cn_data/{calendars,instruments,features,...}
  us_data/{calendars,instruments,features,...}
  hk_data/{calendars,instruments,features,...}
A股分钟/2000-2024/<year>/<1分钟|5分钟|15分钟|30分钟|60分钟>/<stock>.csv
metadata/
  manifest.json
  files.jsonl
  data_notes.md
scripts/
  download.py
  verify_download.py

Each Qlib provider contains native trading calendars, universe definitions, features/<symbol>/*.bin fields, benchmarks, and provider documentation. The three CSI universes share cn_data. See data notes for dates, fields, and coverage details.

Download and use

Download the full repository:

hf download OxFengyuan/stock_dataset --repo-type dataset --local-dir stock_dataset

Download one collection using the repository script (requires huggingface_hub):

python3 scripts/download.py --collection qlib --destination ./stock_dataset
python3 scripts/download.py --collection minutes --destination ./stock_dataset
python3 scripts/download.py --repo-id OpenFinMind/stock_dataset --collection qlib --destination ./stock_dataset

Read the CSV files directly, or pass ./stock_dataset/qlib/cn_data, us_data, or hk_data as the provider directory to qlib.init(provider_uri=...). Allow approximately 202 GiB for all data files, plus space for download caches and metadata.

Inventory and verification

The collection manifest records file counts and byte totals. The per-file inventory records each data file's relative path, byte size, and SHA256.

python3 scripts/verify_download.py --repo ./stock_dataset --collection all

Use --collection qlib or --collection minutes to verify one collection.

Downloads last month
39