接口:cfutures_cont_pro
描述:记录中国期货标准合约的属性信息
限量:单次最大100000
数据更新频率:日
数据更新时间:随Wind同步更新
输入参数
| 名称 | 类型 | 必选 | 描述 |
|---|---|---|---|
| code | str | N | 代码CU0507.SHF |
输出参数
| 名称 | 类型 | 默认显示 | 描述 |
|---|---|---|---|
| s_info_windcode | str | Y | |
| s_info_code | str | Y | |
| s_info_name | str | Y | |
| s_info_tunit | str | Y | |
| s_info_punit | float | Y | |
| s_info_mfprice | str | Y | |
| s_info_ftmargins | str | Y | |
| s_info_cdmonths | str | Y | |
| s_info_thours | str | Y | |
| s_info_ltdated | str | Y | |
| s_info_ddate | str | Y | |
| s_info_cemultiplier | float | Y | |
| s_info_listdate | str | Y | |
| s_info_delistdate | str | Y | |
| s_info_exname | str | Y | |
| s_info_dmean | str | Y | |
| s_info_dsite | str | Y | |
| s_info_ltdatehour | str | Y | |
| s_info_cevalue | str | Y | |
| s_info_maxpricefluct | str | Y | |
| s_info_poslimit | str | Y | |
| s_info_udlsecode | str | Y | |
| fs_info_punit | str | Y | |
| s_info_rtd | float | Y | |
| s_sub_typcode | float | Y | |
| contract_id | str | Y | |
| s_info_type_code | float | Y | |
| s_info_udlsewindcode | str | Y | |
| settlement_method_code | float | Y | |
| payment_dt_desc | str | Y | |
| trade_method_code | float | Y | |
| blocktrade_minsize_desc | str | Y | |
| settle_lastday_desc | str | Y | |
| is_simulation | float | Y | |
| sec_id | str | Y | |
| s_info_name_eng | str | Y |
表信息
| 表中文名 | 表名 | 说明 |
|---|---|---|
| 中国期货标准合约属性 | CFuturesContPro | 记录中国期货标准合约的属性信息 |
安装Python包
pip install dcube
导入datacube
import dcube as dc
用token初始化pro接口
pro = dc.pro_api('your token')
数据调取
df = pro.query('cfutures_cont_pro', code='CU0507.SHF', fields='s_info_windcode,s_info_code,s_info_name,s_info_tunit,s_info_punit')
或者
df = pro.cfutures_cont_pro(code='CU0507.SHF')