agentsclimarketplace

Cb base data

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/cb-base-data

FTShare Agent Skills for financial data and investment research workflows|金融数据 Skill 与投研业务 Skill 仓库。

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill cb-base-data

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

单只可转债基础信息(market.ft.tech)。用户问可转债基础信息、转债详情、某只可转债、转股价、转股价值、到期日、发行规模时使用。

SKILL.md

4.4 KB, as published. Nobody here has run it

单只可转债基础信息 - 查询可转债基础信息

1. 接口描述

项目说明
接口名称查询可转债基础信息
外部接口GET /api/v1/market/data/cb/cb-base-data
请求方式GET
适用场景根据转债代码获取单只可转债的完整基础信息;数据为前一交易日可转债基础数据

2. 请求参数

说明:symbol_code 为 query 参数(必填)。

参数名类型是否必填描述取值示例备注
symbol_codestring转债代码,可带交易所后缀110070.SH、110070必填

3. 响应说明

返回单条可转债基础信息;各字段均可能为 null。日期类为 YYYYMMDD 整数,金额/规模等为数值型。

{
  "cb_name": "恒逸转债",
  "full_name": "恒逸石化股份有限公司可转换公司债券",
  "cb_id": 110070,
  "stock_id": 000703,
  "bond_type": "cb",
  "value_date": 20201102,
  "maturity_date": 20261101,
  "par_value": 100,
  "conversion_price": 11.29,
  "conversion_value": 98.23,
  "conversion_premium": 1.8,
  "total_issue_size": 2000000000,
  "listed_date": 20201116
}

CbBaseDataItem 字段

字段名类型是否可为空说明单位
cb_namestring债券简称-
full_namestring债券全称-
cb_idint债券代码-
stock_idint转债对应正股代码-
exchangeint交易所-
bond_typestring债券分类:cb(可转债券)、eb(可交换债券)、STb(单独交易券)-
trade_typestring交易方式:dirty_price(全价)、clean_price(净价)-
value_dateint起息日YYYYMMDD
maturity_dateint到期日YYYYMMDD
par_valuefloat面值-
coupon_ratefloat发行票面利率-
coupon_frequencyint付息频率-
coupon_methodstring债券计息方式:stepup_rate、fixed_rate-
total_issue_sizefloat发行总规模-
de_listed_dateint债券摘牌日YYYYMMDD
conversion_start_dateint转换期起始日YYYYMMDD
conversion_end_dateint转换期截止日YYYYMMDD
redemption_pricefloat到期赎回价格-
issue_pricefloat发行价格-
call_protectionfloat强赎保护期(月计)
listed_dateint上市日,未上市为 nullYYYYMMDD
stop_trading_dateint停止交易日,未公布为 nullYYYYMMDD
conversion_coefficientfloat转股系数-
conversion_valuefloat转股价值-
conversion_premiumfloat转股溢价率-
conversion_pricefloat最新转股价-
amount_convertedint本期转债已转股金额
shares_convertedfloat本期转股股数-
remaining_amountint尚未转股的转债金额
total_amount_convertedint累计已转股金额
total_shares_convertedfloat累计转股数-
issue_methodstring发行方式-
list_announcement_dateint上市公告书发布日YYYYMMDD

4. 用法

通过主目录 run.py 调用(必填 --symbol_code):

python <RUN_PY> cb-base-data --symbol_code 110070.SH
python <RUN_PY> cb-base-data --symbol_code 110070

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。脚本输出 JSON;本接口无需额外请求头。

5. 请求示例

GET /api/v1/market/data/cb/cb-base-data?symbol_code=110070.SH

6. 注意事项

  • 数据为前一交易日可转债基础数据,具体以接口返回为准
  • 日期字段(value_date、maturity_date、listed_date 等)为 YYYYMMDD 整数,展示时按需格式化为可读日期
  • 发行总规模、转股金额等大数字展示时可按需换算单位(如万、亿)
  • 若用户只给转债名称,建议先用 cb-lists 查到对应 cb_id/交易所,再拼成 symbol_code(如 110070.SH)调用本接口

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.