← Back to Skills Marketplace
shawn92

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

by Shawn92 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
568
Downloads
51
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install ftshare-kline-data
Description
非凸科技 A 股 K 线数据技能集。覆盖日/周/月/年线 OHLC K 线查询、以及单只股票一分钟级分时价格查询(market.ft.tech)。用户询问 A 股某只股票的历史 K 线、开高低收、成交量成交额、均线(MA5/MA10/MA20),或当日/多日分时、分时图数据时使用。
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ftshare-kline-data
  3. After installation, invoke the skill by name or use /ftshare-kline-data
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug ftshare-kline-data
Version 1.0.2
License MIT-0
All-time Installs 2
Active Installs 1
Total Versions 3
Frequently Asked Questions

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

非凸科技 A 股 K 线数据技能集。覆盖日/周/月/年线 OHLC K 线查询、以及单只股票一分钟级分时价格查询(market.ft.tech)。用户询问 A 股某只股票的历史 K 线、开高低收、成交量成交额、均线(MA5/MA10/MA20),或当日/多日分时、分时图数据时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 568 downloads so far.

How do I install Skills of A-share kline data released by ft.tech.?

Run "/install ftshare-kline-data" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

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

Yes, Skills of A-share kline data released by ft.tech. is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Skills of A-share kline data released by ft.tech. support?

Skills of A-share kline data released by ft.tech. is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

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

It is built and maintained by Shawn92 (@shawn92); the current version is v1.0.2.

💬 Comments