股票数据集
收藏魔搭社区2026-05-21 更新2025-07-19 收录
下载链接:
https://modelscope.cn/datasets/HdmsX_Jinjie_Technology/stockdata
下载链接
链接失效反馈官方服务:
资源简介:
# 股票与金融数据集说明文档
## 一、数据集概述
本数据集包含多份与股票、指数及金融数据相关的CSV文件,涵盖股票关联指数、实时交易、金融数据等内容,适用于:
- 股票分析
- 金融市场研究
- 量化策略开发
为金融领域从业者和研究者提供基础数据支撑。
## 二、文件列表及说明
| 文件名 | 内容说明 |
|---------------------------------------|--------------------------------------------------------------------------|
| index_related_to_stock.csv | 存储指数与股票关联数据,可用于分析指数成分股关联、指数对股票的影响等场景 |
| real_time_trading_data_with.csv | 包含股票实时交易数据(交易时间、价格、成交量等实时行情信息) |
| stock_list.csv | 股票列表基础信息(股票代码、名称、所属板块等) |
| stock_related_to_index.csv | 记录股票与指数关联细节,辅助研究股票在指数体系中的角色与表现 |
| hs_index_list.csv | 恒生指数列表数据(成分股、基本参数等) |
| hs_index_realtime.csv | 恒生指数实时数据(实时走势、变动情况) |
| index_industry_concept_tree.csv | 指数行业概念分类体系,助力分析行业与指数关联、概念板块影响 |
| Financial_Data_20230330_20230630.csv | 2023年3月30日-2023年6月30日期间的金融数据(金融趋势回溯分析) |
## 三、数据格式与字段
- **格式**:CSV(逗号分隔)
- **编码**:建议UTF-8
- **字段示例**:
- `stock_related_to_index.csv`:股票代码、指数代码、关联权重
- `real_time_trading_data_with.csv`:交易时间戳、股票代码、成交价、成交量
## 四、数据来源与更新
- **来源**:合法合规金融数据采集渠道(金融数据供应商、公开市场数据接口等)
- **更新**:文件修改时间为最后更新时间(如`stock_related_to_index.csv`最后更新为2025/7/7)
## 五、使用方法import pandas as pd
### (一)环境准备
```bash
pip install pandas
file_path = "stock_related_to_index.csv"
try:
data = pd.read_csv(file_path)
print("数据读取成功,数据预览:")
print(data.head()) # 打印前5行数据
except FileNotFoundError:
print(f"文件 {file_path} 未找到,请检查路径")
except Exception as e:
print(f"数据读取出错:{e}")
### (一)环境准备
```bash
pip install pandas
# Stock and Financial Dataset Documentation
## 1. Dataset Overview
This dataset contains multiple CSV files related to stocks, indices and financial data, covering stock-associated indices, real-time trading, financial data and other contents. It is applicable to:
- Stock analysis
- Financial market research
- Quantitative strategy development
It provides basic data support for financial practitioners and researchers.
## 2. File List and Descriptions
| File Name | Content Description |
|-----------|---------------------|
| index_related_to_stock.csv | Stores index-stock association data, which can be used for scenarios such as analyzing the correlation between index components and the impact of indices on stocks |
| real_time_trading_data_with.csv | Contains real-time stock trading data (real-time market information including trading time, price, trading volume, etc.) |
| stock_list.csv | Basic information of stock lists (stock code, name, affiliated sector, etc.) |
| stock_related_to_index.csv | Records detailed stock-index associations to assist in researching the role and performance of stocks in the index system |
| hs_index_list.csv | Hang Seng Index list data (component stocks, basic parameters, etc.) |
| hs_index_realtime.csv | Real-time Hang Seng Index data (real-time trends, changes, etc.) |
| index_industry_concept_tree.csv | Index industry and concept classification system, which helps analyze the correlation between industries and indices and the impact of concept sectors |
| Financial_Data_20230330_20230630.csv | Financial data from March 30, 2023 to June 30, 2023 (for retrospective analysis of financial trends) |
## 3. Data Format and Fields
- **Format**: CSV (Comma-Separated Values)
- **Encoding**: UTF-8 is recommended
- **Field Examples**:
- `stock_related_to_index.csv`: Stock code, index code, association weight
- `real_time_trading_data_with.csv`: Trading timestamp, stock code, transaction price, trading volume
## 4. Data Source and Update
- **Source**: Legitimate and compliant financial data collection channels (financial data vendors, public market data APIs, etc.)
- **Update**: The file modification time is the last update time (e.g., `stock_related_to_index.csv` was last updated on 2025/7/7)
## 5. Usage Instructions
python
import pandas as pd
### (i) Environment Preparation
bash
pip install pandas
python
file_path = "stock_related_to_index.csv"
try:
data = pd.read_csv(file_path)
print("Data read successfully, data preview:")
print(data.head()) # Print the first 5 rows of data
except FileNotFoundError:
print(f"File {file_path} not found, please check the path")
except Exception as e:
print(f"Error reading data: {e}")
提供机构:
maas
创建时间:
2025-07-16
搜集汇总
数据集介绍

背景与挑战
背景概述
该数据集是一个股票与金融领域的综合性数据集,包含多个CSV文件,覆盖股票关联指数、实时交易、股票列表、恒生指数及金融数据等内容,适用于股票分析、金融市场研究和量化策略开发。数据来源于合法合规的金融数据采集渠道,格式为CSV,部分文件更新至2025年7月,为金融从业者和研究者提供基础数据支撑。
以上内容由遇见数据集搜集并总结生成



