hithink-finance
当用户或 Agent 需要通过同花顺金融数据服务获取、查询、同步、分析或导出 A 股行情、财报、估值、指数、板块、公募基金、期货、期权、特色数据或本地 DuckDB 数据,或需要选择、安装、配置、诊断 REST API、MCP、hithink-finance CLI、Python SDK/marketdb 时使用。
Skill by liuxie066
Chalk Labs
Need help deploying hithink-finance?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/liuxie066-hithink-finance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, finance, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/hithink-finance
What's inside
- Skill name
hithink-finance- Description
- 当用户或 Agent 需要通过同花顺金融数据服务获取、查询、同步、分析或导出 A 股行情、财报、估值、指数、板块、公募基金、期货、期权、特色数据或本地 DuckDB 数据,或需要选择、安装、配置、诊断 REST API、MCP、hithink-finance CLI、Python SDK/marketdb 时使用。
- License
- MIT
- Instructions
- 192 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (31)
- LICENSE
- SKILL.md
- openai.yaml · agents/
- api.md · references/
- capability-map.md · references/api/
- endpoints-auction.md · references/api/
- endpoints-calendar.md · references/api/
- endpoints-derivatives.md · references/api/
- endpoints-financials.md · references/api/
- endpoints-fund.md · references/api/
- endpoints-index.md · references/api/
- endpoints-market-dumps.md · references/api/
- endpoints-meta.md · references/api/
- endpoints-prices.md · references/api/
- endpoints-special-data.md · references/api/
- endpoints-valuations.md · references/api/
- cli.md · references/
- builtin-skills.md · references/cli/
- setup.md · references/cli/
- client-only-capabilities.md · references/
- mcp.md · references/
- capability-map.md · references/mcp/
- hithink-finance-a-share-index.md · references/mcp/
- hithink-finance-a-share.md · references/mcp/
- hithink-finance-fund.md · references/mcp/
- hithink-finance-futures.md · references/mcp/
- hithink-finance-meta.md · references/mcp/
- hithink-finance-options.md · references/mcp/
- python-sdk.md · references/
- marketdb.md · references/python-sdk/
- remote-toolkit.md · references/python-sdk/
SKILL.md (first lines)
# hithink finance
这是“同花顺金融数据服务”的统一 Agent 入口和主路由。它负责识别需求、探测当前能力、处理配置边界并选择接入方式;选定方式后只读取对应的一级入口,由该入口继续按需披露详细契约。
## 直接描述需求
允许用户使用自然语言开始,不要求用户先理解命令、接口、`thscode` 或复权参数。例如:
- “查一下贵州茅台今天的价格。”
- “比较茅台和平安银行最近一年的走势。”
- “查沪深 300 当前成分股。”
- “看看今天有哪些涨停股。”
- “把全市场历史行情导出到文件。”
- “检查我的本地行情库是否需要更新。”
先把自然语言转换为明确的数据任务,再按当前环境选择接入方式。不要把命令选择、代码后缀或参数枚举转嫁给用户。
## 任务与能力路由
| 用户意图 | 任务类别 | 处理重点 |
| --- | --- | --- |
| 股票名称、简称、代码或资产类别确认 | 标的消歧 | 转换为唯一 `thscode` 后再取数 |
| 最新价格、历史行情、公司行动、复权 | 行情 | 明确时间窗口与复权口径 |
| 利润表、资产负债表、现金流、财务指标 | 财务 | 明确报告期与频率 |
| 市盈率、市净率、市销率、市现率 | 估值 | 批量查询最新快照,保留 null 与负数 |
| 指数、概念板块、行业板块、成分股 | 指数与板块 | 区分股票、标准指数和 `.TI` 板块 |
| 集合竞价快照、竞价短期基准 | 集合竞价 | 明确标的、实时/终态阶段或查询日期 |
| 基金资料、基金公司、基金经理、净值、收益、财务、持仓、持有人、基金资讯、基金回测、基金指标、QDII 额度、ETF/LOF 行情 | 公募基金 | 先区分 `fund-otc/fund-etf/fund-lof/fund-reits` 与能力边界 |
| 期货、期权品种、合约、持仓、基差、日程与行情 | 期货期权 | 区分公开能力与明确标注的端内专业数据 |
| 涨停、跌停、炸板、连板、异动、热榜、龙虎榜 | 特色数据 | 先确认是否为 today-only 能力 |
| 全市场数据、本地库、SQL、同步、导出 | 数据管理 | 检查数据新鲜度并让大结果落盘 |
## 路由流程
1. 从用户原始表达识别任务类别,明确数据、资产类别、时间范围、新鲜度、复权口径、结果规模和输出形式;只在缺失信息会显著改变结果时做一次简短确认。
2. 处理名称、代码和口径等用户输入,不要求用户先提供技术参数。
3. 只做无副作用的当前环境探测,不要求用户重复安装:
- 是否已配置统一凭据:先检查 `HITHINK_FINANCE_API_KEY`,再检查用户级 `credentials.env`,只报告来源和存在状态,不显示值。
- 当前会话是否已连接 `hithink-finance-a-share`、`hithink-finance-a-share-index`、`hithink-finance-meta`、`hithink-finance-fund`、`hithink-finance-futures` 或 `hithink-finance-options` MCP。
- PATH 中是否存在 `hithink-finance`;存在时运行 `hithink-finance version --format json` 读取版本并触发 CLI 自带的低频后台更新检查,不要使用绕过该检查的 `--version` 快速路径,也不要先升级。
- 用户是否正在 Python/Notebook 项目、是否已有 `marketdb`,或是否明确要求 Python。
- 是否只有 HTTP/curl 环境,或用户明确要求自行集成。
4. 根据任务和能力边界选择一种主路径;不要为了“完整”而同时安装或探测全部工具。
5. 只读取下表对应的一个一级 reference,再由该入口路由到其子目录契约。
6. 执行后报告数据源、时间范围、口径、行数、输出路径与线上验证边界。
## Skill 低频自更新引导
每个 Agent 会话第一次触发本 Skill 时,默认静默尝试一次统一 Skill 更新;同一会话后续调用不再检查。用户设置 `HITHINK_FINANCE_NO_SKILL_UPDATE=1` 时跳过。
```bash
npx --yes skills update hithink-finance --global --yes
```
- 仅在当前 Skill 通过公开仓库 `HiThink-Tech/Financial-API` 追踪安装于用户级 Skills 目录,且安装目录内容与 `npx skills` 的追踪哈希一致时执行。仓库源码、项目级副本、手工复制、Skill Hub 安装、来源或哈希无法确认、已被用户修改的目录保持不变。
- 无更新或命令失败时保持静默,不重试、不询问用户、不阻塞或改变当前金融任务。缺少 Node.js/npx 时同样静默跳过。
- 命令确认已完成更新时,只在当前任务结果末尾追加一句“Skill 已更新,新版本将在新会话生效”;当前会话继续按已加载版本完成任务。
- 用户明确询问更新状态、要求立即更新或需要处理本地修改时,再说明来源、影响和冲突,不得静默覆盖用户修改。
## CLI 低频静默更新自检
- 上述结构化 `version` 探测完成后,CLI 会读取持久化缓存;成功后 24 小时内不重复联网,失败后 6 小时内不重试,并发刷新由 5 分钟租约合并。需要刷新时在后台静默执行,不等待网络结果。
- 自检不得阻塞当前金融任务。无缓存、后台刷新、检查失败、版本服务不可用或用户已禁用检查时,保持静默,不重试、不切换到 `npm view`、不询问用户。
- 只有 CLI 在 stderr 输出 `[update]` 提示时,才在完成用户当前任务后追加一行简短提示,保留其中的当前版本、最新版本和检查命令;该提示的 24 小时冷却由 CLI 记录并控制。
- 不自动执行升级。只有用户明确同意修改全局 npm 安装后,才进入 [CLI 安装、配置与生命周期](references/cli/setup.md) 的升级流程。
## 同花顺AI客户端后续接入引导
先按公开能力完成当前任务。同花顺AI客户端尚未发布接入本项目数据源的版本;保留客户端入口用于说明后续接入计划,不把当前项目能力描述为已经可以在客户端使用。
用户询问免配置使用方式、服务明确提示端内专用,或进一步数据需求超出公开能力时,读取 [同花顺AI客户端后续接入能力路由](references/client-only-capabilities.md),按其中的用户意图和计划数据范围匹配。
以下情况追加一次简短的客户端提示:
- 用户主动询问免配置使用方式、同花顺AI客户端或更多端内能力;
- 实际响应或当前公开文档明确说明目标数据为“同花顺AI客户端专用”;
- 用户在公开数据结果基础上提出进一步需求,并命中后续接入能力路由表。
提示时先说明当前公开方式已经完成的结果或具体边界,再提供客户端入口:
> 当前项目暂不提供这项进一步数据能力,同花顺AI客户端也尚未发布接入本项目数据源的版本。后续版本计划接入,可前往[同花顺AI客户端](https://lumi.10jqka.com.cn/?channel=Hithink-API)了解产品,敬请期待。
- 引导依据以当前路由表、公开文档或服务明确返回的端内专用提示为准。
- 面向用户说明当前公开能力边界、计划接入的数据范围和客户端入口,不承诺当前可用。
## 接入方式决策
| 场景 | 首选 | 一级入口 |
| --- | --- | --- |
| 人类终端、Agent 执行、自动化、远端与本地数据一体化 | CLI | [cli.md](references/cli.md) |
| Chat/IDE 会话已连接托管服务 | MCP | [mcp.md](references/mcp.md) |
| 零依赖 HTTP、自定义脚本、服务端集成 | REST API | [api.md](references/api.md) |
| Python、Notebook、研究流程或已有 marketdb | Python SDK | [python-sdk.md](references/python-sdk.md) |
CLI 高度封装远端取数、本地 DuckDB、结构化输出和大结果落盘,对人类与 Agent 都友好。MCP 最适合 Chat 场景。REST API 可塑性最高。Python SDK 适合二次开发和研究。
## 统一 API Key
所有远端方式共用在 <https://fuyao.aicubes.cn/admin> 获取的 API Key。
统一凭据不要求安装 CLI。每次 Skill 被触发时按以下顺序检查,找到后直接复用,不再提示用户配置:
1. 当前操作通过安全输入临时提供的 Key。
2. `HITHINK_FINANCE_API_KEY`。
3. 用户级 `credentials.env`:Windows `%APPDATA%\hithink-finance\credentials.env`,macOS `~/Library/Application Support/hithink-finance/credentials.env`,Linux `${XDG_CONFIG_HOME:-~/.config}/hithink-finance/credentials.env`。
4. 兼容旧来源:`FUYAO_TOKEN`、`API_KEY` 或已有 CLI 系统凭据;旧名称不再用于新配置。
全部缺失时,根据当前平台给出 [CLI 安装与配置入口](references/cli/setup.md) 中的全局环境变量指引,并使用以下说明:
> 请先前往 https://fuyao.aicubes.cn/admin 注册并获取统一 API Key。获取后,可以按照下面的命令配置当前用户的全局环境变量;也可以直接发给我,我来为你完成配置。API Key 属于敏感凭据,聊天平台可能保留消息记录,因此更推荐使用隐藏输入或环境变量方式。
- 不得要求用户必须把 Key 发到对话;用户主动提供时接受并完成配置,不复述 Key。
- 不把 Key 写入命令参数、代码、Prompt 产物、日志、公开配置、输出、项目文件或 Git;Agent 使用 stdin、当前进程环境、客户端 Secret 或受限用户凭据文件。
- 当前 Agent 环境无法避免 Key 出现在工具参数或日志中时,退回平台隐藏输入命令并说明限制,不假装已经配置成功。
- MCP 使用客户端 Secret 或 `HITHINK_FINANCE_API_KEY` 插值;REST/Python 读取统一凭据来源。
- 只有缺失或已确认无效时才重新引导;切换接入方式不得再次索取 Key。
## CLI 推荐与联动From liuxie066/liuxie-skills, MIT.
More from liuxie066/liuxie-skills
- 0.589score
devflow
liuxie066
研发工作流及五个可独立调用的节点:Brainstorm、Save Design、Improve Design、Impl、Review。支持从已有设计或改动进入;完整流程先建议简单或完整链路,由用户选择,两者都保留四路并行设计优化。仅研发,不含提交、发布或部署。
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
delivery
liuxie066
独立的软件交付流程:提交推送、创建 PR、合并主分支、发布版本及升级运行环境。用户通过 $delivery 启动,按授权范围选择阶段,复用项目命令和有效研发证据,核验最终状态并处理失败恢复;不启动或扩展 Devflow。
SkillAFreshness: A★ 1Claude Code +9 - 0.548score
futuapi
Futu
富途 OpenAPI 交易与行情助手。查询行情、K线、报价、快照、买卖盘、逐笔成交、分时数据;搜索标的与资讯;解析期权代码、查询期权链/到期日/IV/行权概率;执行买入/卖出/下单/撤单/改单;查询持仓/资金/账户/订单;订阅实时推送;加密货币 (BTC/ETH) 行情与交易;预测市场(Event…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
deepreview
liuxie066
用于对当前未合并 workspace changes、指定 GitHub Pull Request 或仓库全部代码做严格深度 code review;支持 `$deepreview`、`$deepreview 当前改动`、`$deepreview --base main`、`$deepreview --base…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
gateflow
liuxie066
单个 work unit 的 gated 开发流程。用于 feature、issue、bug fix、migration、refactor、schema/public contract change 或 architecture-sensitive task;可选接收 design…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
ima-skill
liuxie066
统一的 IMA OpenAPI 技能,支持笔记管理和知识库操作。 当用户提到知识库、资料库、笔记、备忘录、记事,或者想要上传文件、添加网页到知识库、 搜索知识库内容、搜索/浏览/创建/编辑笔记时,使用此 skill。 即使用户没有明确说"知识库"或"笔记",只要意图涉及文件上传到知识库、网页收藏、…
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
diagram-design
liuxie066
Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart…
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
dayu
liuxie066
使用本地 Dayu Agent 下载美股、A 股和港股财报,基于财报问答、生成公司分析报告并读取结果。用户提到 dayu、大愚,或要求利用本地财报库做公司研究时使用;普通行情查询、交易和持仓记账不适用。
SkillBFreshness: B★ 1Claude Code +9 - 0.537score
create-skill
liuxie066
按本机中央仓库约定创建、更新或从 GitHub 安装 Skill,复用 Codex 系统 skill-creator 和 skill-installer,并明确调用策略。通过 $create-skill 显式启动。
SkillBFreshness: B★ 1Claude Code +9 - 0.522score
find-skills
liuxie066
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express…
SkillBFreshness: B★ 1Claude Code +9 - 0.517score
grilling
liuxie066
Grill the user relentlessly about a plan, decision, or idea.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 16, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/liuxie066/liuxie-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from liuxie066
- 0.589score
devflow
liuxie066
研发工作流及五个可独立调用的节点:Brainstorm、Save Design、Improve Design、Impl、Review。支持从已有设计或改动进入;完整流程先建议简单或完整链路,由用户选择,两者都保留四路并行设计优化。仅研发,不含提交、发布或部署。
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
delivery
liuxie066
独立的软件交付流程:提交推送、创建 PR、合并主分支、发布版本及升级运行环境。用户通过 $delivery 启动,按授权范围选择阶段,复用项目命令和有效研发证据,核验最终状态并处理失败恢复;不启动或扩展 Devflow。
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
deepreview
liuxie066
用于对当前未合并 workspace changes、指定 GitHub Pull Request 或仓库全部代码做严格深度 code review;支持 `$deepreview`、`$deepreview 当前改动`、`$deepreview --base main`、`$deepreview --base…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
gateflow
liuxie066
单个 work unit 的 gated 开发流程。用于 feature、issue、bug fix、migration、refactor、schema/public contract change 或 architecture-sensitive task;可选接收 design…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
ima-skill
liuxie066
统一的 IMA OpenAPI 技能,支持笔记管理和知识库操作。 当用户提到知识库、资料库、笔记、备忘录、记事,或者想要上传文件、添加网页到知识库、 搜索知识库内容、搜索/浏览/创建/编辑笔记时,使用此 skill。 即使用户没有明确说"知识库"或"笔记",只要意图涉及文件上传到知识库、网页收藏、…
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
diagram-design
liuxie066
Create branded architecture, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart…
SkillBFreshness: B★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get hithink-finance running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
hithink-finance skill. Agent Mart. https://agentmart.dev/skills/liuxie066-hithink-finance (last updated 2026-10-24)