← 返回 Skills 市场
shawn92

Skills of A-share kline data released by ft.tech.

作者 Shawn92 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
568
总下载
51
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install ftshare-kline-data
功能描述
非凸科技 A 股 K 线数据技能集。覆盖日/周/月/年线 OHLC K 线查询、以及单只股票一分钟级分时价格查询(market.ft.tech)。用户询问 A 股某只股票的历史 K 线、开高低收、成交量成交额、均线(MA5/MA10/MA20),或当日/多日分时、分时图数据时使用。
使用说明 (SKILL.md)

FT AI A 股 K 线数据 Skills

本 skill 是 FTShare-kline-data统一路由入口

根据用户问题,从下方「能力总览」匹配对应子 skill,然后通过 run.py 执行并解析响应。

所有接口均以 https://market.ft.tech/app 为基础域名,使用 HTTP GET,并携带请求头 X-Client-Name: ft-web


调用方式(唯一规则)

run.py 与本文件(SKILL.md)位于同一目录。执行时:

  1. 取本文件的绝对路径,将末尾 /SKILL.md 替换为 /run.py,得到 \x3CRUN_PY>
  2. 调用:python \x3CRUN_PY> \x3C子skill名> [参数...]
# 示例(\x3CRUN_PY> 为实际绝对路径)
python \x3CRUN_PY> stock-ohlcs --stock 688295.XSHG --span DAY1 --limit 50
python \x3CRUN_PY> stock-ohlcs --stock 000001.SZ --span WEEK1
python \x3CRUN_PY> stock-prices --stock 000001.XSHG --since TODAY

run.py 内部通过 __file__ 自定位,无论安装在何处都能正确找到各子 skill 的脚本。


能力总览

1. 单只股票 OHLC K 线

  • stock-ohlcs:查询单只 A 股股票在指定周期、时间范围内的 K 线数据,含开高低收、成交量、成交额,以及 MA5/MA10/MA20 均线。必填参数:--stock(如 688295.XSHG)、--span(DAY1/WEEK1/MONTH1/YEAR1);可选参数:--limit(返回条数上限)、--until_ts_ms(截止时间戳毫秒)。

2. 单只股票分时价格(一分钟级别)

  • stock-prices:查询单只 A 股股票在指定时间范围内的分时数据(一分钟一根),用于分时图、当日/多日走势;含该分钟价格、成交量、成交额、均价、时间戳;响应含昨收与当前交易日。必填参数:--stock;时间起点二选一:--since(TODAY / FIVE_DAYS_AGO / TRADE_DAYS_AGO(n))或 --since_ts_ms(毫秒时间戳)。

使用流程

  1. 记录本文件绝对路径,将 /SKILL.md 替换为 /run.py 得到 \x3CRUN_PY>
  2. 理解用户意图,从「能力总览」匹配对应子 skill 名称。
  3. (可选)读取 \x3CRUN_PY> 同级目录 sub-skills/\x3C子skill名>/SKILL.md 了解接口详情与参数。
  4. 执行python \x3CRUN_PY> \x3C子skill名> [参数...],获取 JSON 输出。
  5. 解析并输出:以表格或要点形式展示给用户。

子 skill 与用户问法示例

用户问法示例 子 skill 名
「688295.XSHG 最近 50 根日线是什么?」 stock-ohlcs
「查看某只股票的历史 K 线数据」 stock-ohlcs
「某股票的开盘价、最高价、最低价、收盘价」 stock-ohlcs
「某股票的周线 K 线」 stock-ohlcs
「某股票的月线走势」 stock-ohlcs
「某股票的年线数据」 stock-ohlcs
「某股票最近成交量和成交额是多少?」 stock-ohlcs
「某股票的 MA5/MA10/MA20 均线」 stock-ohlcs
「查询某股票截止某时间点前的 K 线」 stock-ohlcs
「某股票今天/当日分时」 stock-prices
「某股票分钟级分时、分时图数据」 stock-prices
「某股票从五日前起的分时」 stock-prices
「某股票从 N 个交易日前起的走势」 stock-prices
安全使用建议
This skill appears to do exactly what it claims: run local Python handlers that fetch data from market.ft.tech and return JSON. Before installing, confirm you trust the external domain (market.ft.tech) because the handlers make outbound HTTPS requests to it; if you have network controls or privacy concerns, consider blocking or auditing those requests. Also note the skill runs Python scripts via subprocess (normal for this packaging) and will print errors to stderr on HTTP failures. No credentials are requested.
功能分析
Type: OpenClaw Skill Name: ftshare-kline-data Version: 1.0.2 The skill bundle is a legitimate tool for querying A-share stock K-line and price data from the 'market.ft.tech' API. The code uses standard Python libraries (urllib, subprocess) to fetch financial data and dispatch commands to sub-skill handlers (handler.py). No evidence of data exfiltration, malicious execution, or prompt injection was found; the logic is consistent with the stated purpose of providing stock market information.
能力评估
Purpose & Capability
Name/description describe fetching OHLC and minute-level A‑share data; included handlers make HTTPS GET requests to https://market.ft.tech/app/api/v2/... and transform timestamps. The required resources (none) and code behavior align with this purpose.
Instruction Scope
SKILL.md and run.py restrict behavior to locating and invoking the bundled sub-skill handlers. Handlers only call the documented endpoints, parse responses, convert timestamps, and print JSON. There are no instructions to read unrelated files, env vars, or transmit data to other endpoints.
Install Mechanism
No install spec or external downloads; the package is instruction-plus-source only. Nothing is written to disk beyond the included files and no external installers are invoked.
Credentials
The skill requests no environment variables, secrets, or config paths. HTTP requests include a static header (X-Client-Name: ft-web) but no API keys or tokens.
Persistence & Privilege
Skill does not request always:true or system-wide changes. It runs as a normal, user-invoked skill (autonomous invocation allowed by default but not combined with other red flags). Handlers do not modify other skills or global config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ftshare-kline-data
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ftshare-kline-data 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
v1.0.2 优化提示词,工具k线返回时间由时间戳修改为北京时间。
v1.0.1
ftshare-kline-data 1.0.1 - No file changes detected in this release. - No updates or modifications to functionality or documentation. - Behavior is identical to the previous version.
v1.0.0
FTShare-kline-data v1.0.0 initial release. - Provides unified access to A 股 (China A-shares) historical OHLC K-line data (daily/weekly/monthly/yearly) and minute-level intraday price data. - Supports queries for price, volume, amount, and key moving averages (MA5/MA10/MA20). - Includes two main sub-skills: stock-ohlcs (K-line) and stock-prices (minute-level intraday). - Standardized CLI invocation and sub-skill routing for flexible deployment. - Detailed usage instructions and user query mapping included in documentation.
元数据
Slug ftshare-kline-data
版本 1.0.2
许可证 MIT-0
累计安装 2
当前安装数 1
历史版本数 3
常见问题

Skills of A-share kline data released by ft.tech. 是什么?

非凸科技 A 股 K 线数据技能集。覆盖日/周/月/年线 OHLC K 线查询、以及单只股票一分钟级分时价格查询(market.ft.tech)。用户询问 A 股某只股票的历史 K 线、开高低收、成交量成交额、均线(MA5/MA10/MA20),或当日/多日分时、分时图数据时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 568 次。

如何安装 Skills of A-share kline data released by ft.tech.?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ftshare-kline-data」即可一键安装,无需额外配置。

Skills of A-share kline data released by ft.tech. 是免费的吗?

是的,Skills of A-share kline data released by ft.tech. 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skills of A-share kline data released by ft.tech. 支持哪些平台?

Skills of A-share kline data released by ft.tech. 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skills of A-share kline data released by ft.tech.?

由 Shawn92(@shawn92)开发并维护,当前版本 v1.0.2。

💬 留言讨论