agentsclimarketplace

Convertible bond candlesticks batch

Skill FTShare-Lab/FTShare-skills/ftshare-market-data/sub-skills/convertible-bond-candlesticks-batch

批量获取多只可转债 K 线 POST 接口(market.ft.tech,convertible-bond-candlesticks/batch)。用户问多只可转债的 K 线、批量可转债日 K/周 K/月 K/年 K 时使用。必填 --symbols、--interval-unit、--until-ts-millis;可选 --interval-value、--adjust-kind、--since-ts-millis、--limit。From its SKILL.md

Install
npx -y skills add FTShare-Lab/FTShare-skills --skill convertible-bond-candlesticks-batch

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

2 things to look at

  • runs commandsInstructs the agent to run 2 commands, including `python <RUN_PY> convertible-bond-candlesticks-batch --symbols 113027.SH,123001.SZ --interval-unit Day --until-ts-millis 1756791000000 --limit 2` and 1 more.
  • fetches URLsInstructs the agent to fetch 1 URL, including POST /api/v1/market/data/convertible-bond-candlesticks/batch.

SKILL.md

3.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it

批量可转债 K 线 - 批量查询多只可转债 K 线(convertible-bond-candlesticks/batch)

1. 接口描述

项目说明
接口名称批量查询多只可转债 K 线
外部接口POST /api/v1/market/data/convertible-bond-candlesticks/batch
请求方式POST(JSON body)
适用场景一次拉取多只可转债的分/日/周/月/年 K 线。响应为嵌套数组 [[symbol, K线数组], ...]。仅接受可转债标的,任一 symbol 非可转债时整体返回系统错误

2. 请求参数

参数名类型是否必填描述取值示例备注
symbolsstring[]可转债代码列表113027.SH,123001.SZ逗号分隔;响应统一规范化为长后缀
interval_unitstring周期单位DayMinute/Day/Week/Month/Year
interval_valueint间隔数值1默认 1;Minute+5 表示 5 分钟 K 线
adjust_kindstring复权类型ForwardNone(默认)/Forward(前复权)/Backward(后复权)
since_ts_millisint开始时间戳(毫秒)1756700000000分钟 K 线与 until 跨度 ≤3 天
until_ts_millisint结束时间戳(毫秒)1756791000000-
limitint每个标的返回条数上限2未传 since 和 limit 时每个标的默认最多返回 50 根

3. 响应说明

响应为二元数组列表,每项结构为 [symbol, K线数组]

字段名类型说明
[0]string可转债代码;响应统一使用长市场后缀
[1]array该标的的 K 线数组,字段同单只接口

K 线单根字段同 convertible-bond-candlesticks:open / high / low / close / ts_millis / ts_millis_open / turnover / volume。

4. 调用方式

python <RUN_PY> convertible-bond-candlesticks-batch --symbols 113027.SH,123001.SZ --interval-unit Day --until-ts-millis 1756791000000 --limit 2
python <RUN_PY> convertible-bond-candlesticks-batch --symbols 113027.SH,113028.SH --interval-unit Week --adjust-kind Forward --until-ts-millis 1756791000000 --limit 4

<RUN_PY> 为主 SKILL.md 同级 run.py 的绝对路径。输出 JSON,请求头已内置 X-Client-Name: ft-claw

5. 注意事项

  • symbolsinterval_unituntil_ts_millis 必填。
  • symbols 用逗号分隔;任一非可转债标的当前外部接口返回系统错误,不静默过滤。
  • 响应中的 symbol 会规范化为长市场后缀(.XSHG/.XSHE)。
  • 分钟 K 线(interval_unit=Minute)的 since/until 跨度硬限制 ≤3 天。
  • interval_value 仅在 interval_unit=Minute 时生效:不传或传 1 为 1 分钟 K,传 5/15/30/60/120 为对应多分钟 K;其他周期忽略该字段。
  • 多分钟 K 按北京时间的每个交易日分别聚合,不跨交易日;以 5 分钟 K 为例,首根为 09:30—09:35,开高低收取区间首根开盘价、最高价、最低价、末根收盘价,成交量和成交额按区间求和。
  • 默认不复权(None),Forward 前复权、Backward 后复权。
  • 价格字段 JSON 中为字符串以避免精度丢失。

What ships with it: 2 files

5.4 KB alongside SKILL.md, 2 of them executable

scripts/

Keep looking

Skills are one crate of 325,949. 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.