hithink-finance

hithink-finance is a skill for Codex from HiThink-Tech/Financial-API. It costs 155 tokens per session (1,583 once invoked), scanned A, original, MIT.

A routing guide for accessing Chinese A-share financial data, including prices, company reports, valuations, funds, indices, sectors, and local data storage.

In plain words
What is it for?
Use it to query or export market data, financial statements, valuations, fund information, index constituents, market events, or synchronized local datasets.
Why use it?
It translates ordinary finance questions into the right data request and handles distinctions such as asset type, date range, and adjusted prices.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to query or export market data, financial statements, valuations, fund information, index constituents, market events, or synchronized local datasets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hithink-tech/financial-api/hithink-finance
About the project

HiThink-Tech/Financial-API is an official Tonghuashun service that provides A-share market data, including prices, financial statements, indices, sectors, funds and trading activity through APIs and developer tools. It serves AI agents, quantitative researchers and application developers. The catalogue add-ons help coding agents access and use this financial data.

HiThink-Tech/Financial-API · 4,715 stars · on GitHub · fuyao.aicubes.cn

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HiThink-Tech/Financial-API --skill hithink-finance
Clone the repo
git clone --depth 1 https://github.com/HiThink-Tech/Financial-API

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hithink-finance

README.md
[![agentmods](https://agentmods.dev/badge/skills/hithink-tech/financial-api/hithink-finance/github.svg)](https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance)
Your own site
<a href="https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance"><img src="https://agentmods.dev/badge/skills/hithink-tech/financial-api/hithink-finance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hithink-finance

Your own site · 80×15
<a href="https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance"><img src="https://agentmods.dev/badge/skills/hithink-tech/financial-api/hithink-finance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 155 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 22 Sept 2026
  • Snyk warn 22 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 42
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 70
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00155 $0.01583
Opus 5.5 $0.00062 $0.00633
Sonnet 5.5 $0.00031 $0.00317
Haiku 4.5 $0.00015 $0.00158

Measured 18d ago against content hash 9e96e3c16c8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hithink-finance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hithink-finance/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

hithink finance API

同花顺金融数据服务的 API Wiki 与 API Router。按用户意图定位 REST API,提供文档解读、接口选择与 HTTP 调用指引。官方服务和在线文档见 https://fuyao.aicubes.cn/。

工作方式

  1. 查询文档:仅询问接口、参数、字段或示例时,直接读取本地契约,按需加载目标页面。
  2. 选择接口:根据资产类别、数据类型、时间范围和返回规模,从下表进入业务目录,再读取目标单接口页或模块内接口小节。已知接口可直接定位。
  3. 执行请求:实际取数前读取 API 通用约定,按当前文档准备完整参数及认证。只确认会显著影响结果的缺失信息。
  4. 核验结果:检查 JSON 业务信封 code=0、标的覆盖、数据时间、口径和分页范围,保留空值与原记录。
  5. 交付证据:报告数据来源、时间/报告期、查询窗口与摘要;大结果落盘,提供路径和行数。离线文档只能证明契约,线上可用性需实际授权请求验证。

API 路由

用户意图 文档入口
名称、ticker、代码表与标的消歧 公共基础数据
A 股行情、历史 K 线、财报、估值、集合竞价、跌停/涨停/炸板池、异动、龙虎榜与 A 股新股 A 股
港股新股递表、认购、上市日历与发行详情 港股新股
指数、概念/行业/地域板块、成分股与指数行情 指数与板块
基金资料、基金公司、基金经理、净值、持仓、基金财务、基金资讯、基金回测、基金指标、QDII 额度和 ETF/LOF 行情 公募基金
期货品种、合约、持仓、仓单、基差、日程与行情 期货
期权品种、合约与行情 期权
资讯详情、快讯、公告解读、专题、异动解读与分时新闻 资讯
全市场历史数据文件、数据包与下载契约 Market Dumps

请求与结果规则

  • 接受自然语言名称或代码输入;需要唯一证券代码时先通过标的搜索消歧为 thscode,不猜市场后缀。
  • 最新快照、财报、估值和指数任务不追问复权;A 股历史行情未指定口径时采用前复权,并说明实际口径。具体接口的参数、窗口和默认值以目标契约为准。
  • 金额、数量、价格、时间戳、时区、字符串标识和分页游标保持接口原义;null、零值、负数与空数组分别处理。响应代码字段为空时保留字段、记录及分页信息。
  • 批量历史行情与三大财报每批最多 10 个原始代码,基金行情快照最多 100 个;逐接口核对共享条件、有效组、合法空组与省略项。
  • 全市场、分页全集、长时间窗口和多标的结果必须落盘;最终只展示路径、行数、窗口与摘要。认证验证使用最小有界请求。
  • 认证缺失或失效时恢复同一 Key 来源;参数错误先按契约修正,限流或上游故障有界退避。失败时报告阶段、脱敏错误、已完成的尝试和唯一下一步动作。
  • 真实数据不可用时报告原因,不用模拟数据替代;分析说明数据来源与实际验证范围,不作收益承诺。

API Key

REST、MCP、Python 可独立配置和使用 API Key;CLI 的 API Key 方式复用相同来源。实际 HTTP 取数前按顺序检查,找到后复用:

  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。

Read the full file on GitHub · 62 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · -25 lines · +97 tokens per session 9e96e3c16c8e
  2. 2mo ago Changed · -110 lines · -35 tokens per session 29f7295359d2
  3. 2mo ago Changed f2fed046275f
  4. 2mo ago Changed · +1 lines 7ae37153f1c3
  5. 2mo ago Changed · +20 lines · +6 tokens per session 7e5177b37621
  6. 2mo ago Changed · +20 lines 5de0b3fade0c
  7. 3mo ago First seen · 156 lines · 87 tokens per session scan A 7541734ea045

Subscribe to this mod's changes

hithink-finance is a skill published in the GitHub repository HiThink-Tech/Financial-API (4,715 stars, last pushed 3d ago), licensed MIT. It adds 155 tokens to every session and 1,583 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

hithink-finance compared with skills from other repositories

hithink-finance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hithink-financeHiThink-Tech/Financial-APISkill4.7k3d agoMITA155Codex
通达信TQadambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA56Claude Code, Codex
机构持仓股东分析adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA229Claude Code, Codex
问小达选A股adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA82Claude Code, Codex
政策解读与受益分析adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA248Claude Code, Codex
仓位决策adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA109Claude Code, Codex
生成交易计划adambbhe/TDX-finance-mcp-plugin-v3Skill471mo agoMITA64Claude Code, Codex