接口:cb_price_chg
描述:获取可转债转股价变动
限量:单次最大2000,总量不限制
权限:用户需要至少2000积分才可以调取,但有流量控制,5000积分以上无限制,积分越多权限越大,具体请参阅积分获取办法 
输入参数
| 名称 | 类型 | 必选 | 描述 | 
|---|---|---|---|
| ts_code | str | Y | 转债代码,支持多值输入 | 
输出参数
| 名称 | 类型 | 默认显示 | 描述 | 
|---|---|---|---|
| ts_code | str | Y | 转债代码 | 
| bond_short_name | str | Y | 转债简称 | 
| publish_date | str | Y | 公告日期 | 
| change_date | str | Y | 变动日期 | 
| convert_price_initial | float | Y | 初始转股价格 | 
| convertprice_bef | float | Y | 修正前转股价格 | 
| convertprice_aft | float | Y | 修正后转股价格 | 
安装Python包
pip install dcube导入datacube
import dcube as dc用token初始化pro接口
pro = dc.pro_api('your token')
数据调取
df = pro.query('cb_price_chg', ts_code='113556.SH', fields='ts_code,bond_short_name,change_date,convert_price_initial,convertprice_bef,convertprice_aft')或者
df = pro.cb_price_chg(ts_code='113556.SH')数据示例
 ts_code bond_short_name change_date convert_price_initial convertprice_bef convertprice_aft
0  113556.SH    至纯转债    20191220           29.4700             None             None
1  113556.SH    至纯转债    20200629           29.4700          29.4700          29.3800
2  128110.SZ    永兴转债    20200609           17.1600             None             None
3  128114.SZ    正邦转债    20200617           16.0900             None             None