Hithink Finance Data logo

Hithink Finance Data

CommunityPopular
HiThink-Tech
hithink-finance-data

用于 Agent 通过 hithink-finance CLI 管理本地 DuckDB:初始化、同步、状态、校验、迁移、修复、清理、删除、只读 SQL、导出;远端实时数据转对应业务 skill。

Overview

PublisherHiThink-Tech
RepositoryFinancial-API
Skill namehithink-finance-data
Stars
3.6K
Forks
311
Bundled files
11
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by HiThink-Tech on GitHub. Read the source before you install it.

Installation

Install the Hithink Finance Data AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HiThink-Tech/Financial-API.git /tmp/Financial-API
mkdir -p .claude/skills
cp -r /tmp/Financial-API/hithink-finance-cli/skills/hithink-finance-data .claude/skills/hithink-finance-data
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hithink Finance Data in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hithink Finance Data on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hithink Finance Data is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

hithink-finance-data

本地数据生命周期和 SQL 入口。负责让数据可用、可校验、可导出,而不是解释所有研究结论。

前置条件表

条件操作
开始任何 CLI 调用先读取并遵循 hithink-finance-shared
不确定命令是否存在或参数是否变化运行 hithink-finance capabilities --format json,再运行 hithink-finance schema <id> --format json
需要执行下表某个命令先读取对应 reference 文件,不要只凭命令名猜参数
结果可能是全市场、分页、多标的或长区间使用命令声明的 --output <path> 落盘;远端 stdout 只返回摘要

快速决策

用户意图首选命令 / 路由
首次建库或从 dump 导入data init
增量/重新同步本地数据data sync
查看库路径和 schemadata status
质量校验data validate
迁移计划或应用data migrate
重建复权等派生数据data repair
清理下载缓存data clean
删除本地库data remove --plan 先预览
查看表/视图db describe
只读 SQL 查询db query --sql <sql>
大结果导出db export --sql <sql> --output <file>

Shortcuts

命令何时使用
data clean只清理 CLI 管理的下载缓存,不删除数据库。
data init远端初始化需要 API Key;执行前先运行 hithink-finance auth status --format json,未登录时到 https://fuyao.aicubes.cn/admin 获取 API Key 并运行 hithink-finance auth login
data migrate默认只输出迁移计划;应用迁移前让用户确认。
data remove高风险操作;先运行 --plan 报告路径和大小。
data repair用于重建派生复权因子等本地派生数据。
data status本地库不存在时用于确认默认路径和 schema 状态。
data sync需要 API Key;执行前先运行 hithink-finance auth status --format json,未登录时到 https://fuyao.aicubes.cn/admin 获取 API Key 并运行 hithink-finance auth login
data validate用于同步、迁移、研究导出前的质量门禁。
db describe查询本地 DuckDB 表和视图清单。
db export用于大结果或下游 pandas/notebook 消费。
db query只读 SQL;小结果才可直接读取 JSON。

原生命令与 schema

bash
hithink-finance capabilities --format json
hithink-finance schema <capability-id> --format json
hithink-finance data <command> --help
hithink-finance db <command> --help

使用原生命令前必须先看 schema;schema 是当前 CLI 参数契约,reference 是决策和边界补充。

权限表

命令类型要求
远端服务查询API Key 来自系统凭据库、HITHINK_FINANCE_API_KEY--api-key-stdin
本地 DuckDB 查询/导出本地库存在且 schema 兼容;可用全局 --db <path> 指定
删除、迁移、修复等有副作用操作先预览或说明影响;需要用户明确确认时才加 --yes

边界声明

  • SQL 必须只读;写入、DDL、删除或外部副作用不属于 db query
  • 删除数据库或清除数据前先用 plan/状态输出让用户确认,真正删除需要显式 --yes
  • data init / data sync 下载阶段可立即取消;数据库导入提交后会先完成复权、元数据和质量一致性收尾,再报告取消。
  • Dump 哈希在流式下载过程中计算;DuckDB 默认限制线程和内存,必要时使用 HITHINK_FINANCE_DUCKDB_THREADS / HITHINK_FINANCE_DUCKDB_MEMORY_LIMIT 做有界覆盖。
  • 数据锁仅在 EEXIST 时按锁拥有者处理;目录、权限或存储故障返回 DATA_LOCK_OPEN_FAILED,应先修复本地状态目录。
  • 查询结果很多时用 db export --output <file>,不要回显全表。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Hithink Finance Data AI skill do?

用于 Agent 通过 hithink-finance CLI 管理本地 DuckDB:初始化、同步、状态、校验、迁移、修复、清理、删除、只读 SQL、导出;远端实时数据转对应业务 skill。

Why use Hithink Finance Data on TypingMind?

Because you install it once and use it with any model. Hithink Finance Data is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hithink Finance Data in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/HiThink-Tech/Financial-API/tree/main/hithink-finance-cli/skills/hithink-finance-data. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Hithink Finance Data?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hithink Finance Data?

As many as you like. As long as a model supports skills, you can use Hithink Finance Data with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hithink Finance Data AI skill free?

Yes. It is published on GitHub by HiThink-Tech under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇