接口:hk_index_description
描述:记录香港股票指数的基本资料
限量:单次最大50000
数据更新频率:日
数据更新时间:7:00-23:00
输入参数
| 名称 | 类型 | 必选 | 描述 |
|---|---|---|---|
| code | str | N | 证券的唯一编码,后缀为交易场所 887751.WI |
输出参数
| 名称 | 类型 | 默认显示 | 描述 |
|---|---|---|---|
| s_info_windcode | str | Y | |
| s_info_code | str | Y | |
| s_info_name | str | Y | |
| s_info_compname | str | Y | |
| s_info_exchmarket | str | Y | |
| s_info_index_baseper | str | Y | |
| s_info_index_basept | float | Y | |
| s_info_listdate | str | Y | |
| s_info_index_style | str | Y | |
| s_info_index_ename | str | Y | |
| weight_type | str | Y | |
| weighting_method_start_date | str | Y | |
| weighting_method_end_date | str | Y | |
| component_stocks_num | float | Y | |
| index_region_code | float | Y | |
| index_category_code | float | Y | |
| exponential_scale_code | float | Y | |
| weight_type_code | float | Y | |
| market_own_code | float | Y | |
| income_processing_method | float | Y | |
| expire_date | str | Y | |
| index_category_type | str | Y | |
| index_intro | None | Y |
表信息
| 表中文名 | 表名 | 说明 |
|---|---|---|
| 香港股票指数基本资料(增量) | HKIndexDescriptionZL | 记录香港股票指数的基本资料 |
安装Python包
pip install dcube
导入datacube
import dcube as dc
用token初始化pro接口
pro = dc.pro_api('your token')
数据调取
df = pro.query('hk_index_description', code='887751.WI', fields='s_info_windcode,s_info_name,weight_type')
或者
df = pro.hk_index_description(code='887751.WI')