CoolFace
Datasetpublic

q1232990/StockChina-Minute-Parquet

China Stock Market 1-Minute Bar Dataset (Parquet) This dataset provides high-frequency 1-minute historical candlestick and trading data for Chinese A-Share stocks (SSE / SZSE: .XSHE, .XSHG). Attribution & Source Credit This dataset is an optimized Parquet conversion of the original CSV dataset created by jobs-git: Original Dataset: jobs-git/StockChina-Minute Original uncompressed CSV size: ~121.5 GB across 1,450 stock symbols. Optimizations in this… See the full description on the dataset page: https://huggingface.co/datasets/q1232990/StockChina-Minute-Parquet.

sourceHugging Facecc-by-4.0updated 1mo agoView on Hugging Face
0likes299downloads
Dataset Card

China Stock Market 1-Minute Bar Dataset (Parquet)

This dataset provides high-frequency 1-minute historical candlestick and trading data for Chinese A-Share stocks (SSE / SZSE: .XSHE, .XSHG).

Attribution & Source Credit

This dataset is an optimized Parquet conversion of the original CSV dataset created by jobs-git:

Optimizations in this Version

  1. 1.Format: Apache Parquet with high-efficiency column encodings.
  2. 2.Compression: Zstandard Level 18 with specialized Parquet encoders:
  3. 3.datetime: timestamp[ms] with DELTA_BINARY_PACKED
  4. 4.volume: UInt32 with DELTA_BINARY_PACKED
  5. 5.money: UInt64 (integer turnover in RMB) with DELTA_BINARY_PACKED
  6. 6.paused: Boolean with RLE (Run-Length Encoding)
  7. 7.Prices (open, close, high, low, avg, high_limit, low_limit, pre_close, factor): Float32
  8. 8.Storage Efficiency: ~12.3x compression ratio (reduces 121.5 GB to ~9.9 GB total storage).
  9. 9.Fast Columnar Access: Supports vectorized queries and partition-level filtering.

Schema

ColumnTypeDescription
datetimetimestamp[ms]Minute timestamp (YYYY-MM-DD HH:MM:SS)
openfloat32Minute opening price
closefloat32Minute closing price
highfloat32Minute high price
lowfloat32Minute low price
volumeuint32Minute trading volume (shares)
moneyuint64Minute turnover / amount (RMB)
avgfloat32Minute volume-weighted average price (VWAP)
high_limitfloat32Daily price upper limit
low_limitfloat32Daily price lower limit
pre_closefloat32Previous day closing price
pausedboolTrading suspension status flag
factorfloat32Price adjustment factor

Quick Usage

Polars

python
import polars as pl

# Direct URL / Hugging Face streaming
url = "hf://datasets/q1232990/StockChina-Minute-Parquet/000001.XSHE.parquet"
df = pl.read_parquet(url)
print(df.head())

PyArrow

python
import pyarrow.parquet as pq
from huggingface_hub import hf_hub_download

file_path = hf_hub_download(repo_id="q1232990/StockChina-Minute-Parquet", filename="000001.XSHE.parquet", repo_type="dataset")
table = pq.read_table(file_path)
print(table.schema)

DuckDB

sql
SELECT * FROM 'hf://datasets/q1232990/StockChina-Minute-Parquet/000001.XSHE.parquet' LIMIT 10;