FTShare K-Line Data for Openclaw

A comprehensive A-share market data tool for retrieving historical K-line patterns and minute-by-minute price movements.

shawn92
v1.0.2
Mar 17, 2026
52
1.8k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ftshare-kline-data

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ftshare-kline-data using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is FTShare K-Line Data?

FTShare K-Line Data is a specialized suite of Openclaw Skills designed to provide developers and AI agents with high-fidelity financial data for the Chinese A-share market. Powered by non-convex technology (market.ft.tech), this skill acts as a unified entry point for querying daily, weekly, monthly, and yearly OHLC (Open, High, Low, Close) data, alongside critical technical indicators like MA5, MA10, and MA20.

Beyond historical K-lines, the skill enables deep intraday analysis through minute-level price tracking. Whether you are building a trading assistant or a market research bot, Openclaw Skills like this one provide the raw JSON data needed to generate professional-grade charts and trend analysis directly within an AI workflow.

FTShare K-Line Data Use Cases

  • Analyzing historical price trends for specific A-share stocks (e.g., 688295.XSHG).
  • Generating technical indicator reports including Moving Averages (MA5/10/20).
  • Visualizing intraday price movements with minute-by-minute data.
  • Comparing current trading day performance against previous closing prices.
  • Researching volume and turnover trends over custom time horizons.

How FTShare K-Line Data Works

  1. The AI agent identifies the user's intent, such as a request for historical K-lines or real-time trends.
  2. The system locates the unified entry point using the absolute path of the SKILL.md file and maps it to the run.py script.
  3. The agent selects the appropriate sub-skill: stock-ohlcs for period data or stock-prices for minute-level data.
  4. A subprocess call is made to run.py with the necessary parameters (ticker symbol, time span, limits).
  5. The skill fetches data via HTTP GET from market.ft.tech with the required X-Client-Name headers.
  6. The resulting JSON payload is parsed and presented to the user as a formatted table or insight summary.

FTShare K-Line Data Setup

To integrate this into your environment, ensure you have Python installed and access to the Openclaw Skills directory.

# Example of querying 50 days of K-line data
python run.py stock-ohlcs --stock 688295.XSHG --span DAY1 --limit 50

# Example of querying intraday minute-level prices
python run.py stock-prices --stock 000001.XSHG --since TODAY

FTShare K-Line Data Data Schema & Taxonomy

The skill returns structured JSON data categorized by the sub-skill used:

Data Type Fields Included
OHLC Data Open, High, Low, Close, Volume, Turnover, MA5, MA10, MA20
Price Data Minute-level Price, Average Price, Volume, Turnover, Timestamp
Metadata Previous Close, Current Trading Day Status, Stock Ticker

FTShare K-Line Data Advanced Features

  • Support for multiple time spans including DAY1, WEEK1, MONTH1, and YEAR1.
  • Flexible look-back periods for intraday data using FIVE_DAYS_AGO or custom TRADE_DAYS_AGO(n).
  • High-precision millisecond timestamping for accurate time-series alignment.
  • Integrated Moving Average calculations (MA5/10/20) provided directly by the API response.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*