ftshare-lab/ftshare-skill/etf-candlesticks

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

单只 ETF 历史日/周/月/年 K 线 GET 接口(market.ft.tech,etf-candlesticks)。用户问某只 ETF 的日/周/月/年 K 线、开高低收、前/后复权、日 K/周 K/月 K/年 K 时使用。必填 --symbol、--interval-unit、--since-ts-millis、--until-ts-millis;可选 --adjust-kind、--limit。分钟级 K 线请用 etf-minutes。

Install

npx vskill@latest install ftshare-lab/ftshare-skill/etf-candlesticks

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/etf-candlesticks.

ETF K 线 - 查询单只 ETF 历史 K 线(etf-candlesticks)

1. 接口描述

项目说明
接口名称查询单只 ETF 历史 K 线
外部接口GET /api/v1/market/data/etf-candlesticks
请求方式GET(query 参数)
适用场景获取指定 ETF 的日/周/月/年 K 线,含开高低收、成交量、成交额;支持前复权 / 后复权 / 不复权。仅接受 ETF 标的
与 etf-ohlcs(GET daec/history/ohlcs,YYYYMMDD 日期区间,仅日/周/月)区别:本接口走 GET query 参数,参数为毫秒时间戳,支持日/周/月/年 K,是统一的 candlesticks 契约。分钟级 K 线请使用 etf-minutes 子 skill。

2. 请求参数

参数名类型是否必填描述取值示例备注
symbolstring是ETF 代码(带市场后缀)510300.XSHG、159915.XSHE也接受 .SH/.SZ 短后缀;非 ETF 标的当前返回系统错误
interval_unitstring是周期单位dayday/week/month/year(大小写不敏感,不支持 minute)
adjust_kindstring否复权类型forwardnone(默认,不复权)/forward(前复权)/backward(后复权)
since_ts_millisint是开始时间戳(毫秒)1756700000000与 until 的跨度不得超过 12 个自然月
until_ts_millisint是结束时间戳(毫秒)1756791000000-
limitint否返回条数上限5不传时返回请求时间范围内的全部数据

3. 响应说明

返回裸数组,每根 K 线包含:

字段名类型说明单位
openstring开盘价元
highstring最高价元
lowstring最低价元
closestring收盘价(或最新价)元
ts_millisint收盘时间戳毫秒
ts_millis_openint开盘时间戳毫秒
turnoverstring成交额元
volumeint64成交量份

4. 调用方式

通过主目录 run.py 调用:

bash
python <RUN_PY> etf-candlesticks --symbol 510300.XSHG --interval-unit day --since-ts-millis 1756700000000 --until-ts-millis 1756791000000 --limit 5
python <RUN_PY> etf-candlesticks --symbol 510300.XSHG --interval-unit week --adjust-kind forward --since-ts-millis 1756700000000 --until-ts-millis 1756791000000 --limit 100

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

直接执行 handler(调试)
bash
python scripts/handler.py --symbol 510300.XSHG --interval-unit day --until-ts-millis 1756791000000 --limit 5

5. 注意事项

  • symbol、interval_unit、since_ts_millis、until_ts_millis 必填。
  • symbol 必须是 ETF 代码,格式 {代码}.{市场};非 ETF 标的当前外部接口返回系统错误。
  • 本接口不支持分钟周期:interval_unit=minute 会返回参数错误(提示使用 /etf_minutes),分钟数据请使用 etf-minutes 子 skill。
  • 时间跨度最多 12 个自然月;需要更长历史时按窗口分段多次调用。
  • 默认不复权(none),forward 前复权、backward 后复权(取值大小写不敏感)。
  • 价格字段 JSON 中为字符串以避免精度丢失。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
65
Repository forks
14
7-day trend score
26

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ftshare-lab/ftshare-skill/etf-candlesticks/badge)](https://verified-skill.com/skills/ftshare-lab/ftshare-skill/etf-candlesticks)

Something wrong with this skill or its page? Tell us.