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.
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.
npx skills add HiThink-Tech/Financial-API --skill hithink-financegit clone --depth 1 https://github.com/HiThink-Tech/Financial-APIWrote 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.
[](https://agentmods.dev/skills/hithink-tech/financial-api/hithink-finance)<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.
<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>- Socket pass
- Snyk warn
- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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/。
工作方式
- 查询文档:仅询问接口、参数、字段或示例时,直接读取本地契约,按需加载目标页面。
- 选择接口:根据资产类别、数据类型、时间范围和返回规模,从下表进入业务目录,再读取目标单接口页或模块内接口小节。已知接口可直接定位。
- 执行请求:实际取数前读取 API 通用约定,按当前文档准备完整参数及认证。只确认会显著影响结果的缺失信息。
- 核验结果:检查 JSON 业务信封
code=0、标的覆盖、数据时间、口径和分页范围,保留空值与原记录。 - 交付证据:报告数据来源、时间/报告期、查询窗口与摘要;大结果落盘,提供路径和行数。离线文档只能证明契约,线上可用性需实际授权请求验证。
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 取数前按顺序检查,找到后复用:
- 用户通过安全输入提供的本次 Key。
- 用户级环境变量
HITHINK_FINANCE_API_KEY。 - 用户级
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。 - 已有的兼容变量
FUYAO_TOKEN、API_KEY。
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.
- agents/openai.yaml 383 B
- references/api-key-onboarding.md 5.6 KB
- references/api.md 5.3 KB
- references/api/a-share/anomaly-analysis.md 5.8 KB
- references/api/a-share/auction-opportunities.md 6.6 KB
- references/api/a-share/auction.md 5.4 KB
- references/api/a-share/calendar-trading-days.md 1.7 KB
- references/api/a-share/capital-flow.md 6.1 KB
- references/api/a-share/chip-shape.md 4.3 KB
- references/api/a-share/corporate-actions-adjustment-factors.md 3.1 KB
- references/api/a-share/dragon-tiger-department.md 5.6 KB
- references/api/a-share/financials-indicators.md 5.3 KB
- references/api/a-share/financials.md 26 KB
- references/api/a-share/high-frequency.md 5.9 KB
- references/api/a-share/hot-list-data.md 10 KB
- references/api/a-share/ipo-calendar-list.md 2.1 KB
- references/api/a-share/limit-up-data.md 13 KB
- references/api/a-share/prices.md 9.9 KB
- references/api/a-share/README.md 6.7 KB
- references/api/a-share/special-data-abnormal-monitor-list.md 2.6 KB
- references/api/a-share/special-data-dragon-tiger-list.md 5.2 KB
- references/api/a-share/special-data-dragon-tiger-stock-institution.md 5.3 KB
- references/api/a-share/special-data-limit-up-statistics.md 3.4 KB
- references/api/a-share/special-data-turnover-prediction-snapshot.md 1.9 KB
- references/api/a-share/valuations-snapshot.md 7.0 KB
- references/api/fund/companies-detail.md 1.6 KB
- references/api/fund/corporate-actions-dividends.md 2.0 KB
- references/api/fund/diagnostics-detail.md 1.6 KB
- references/api/fund/etf-flow-net-inflow-historical.md 2.0 KB
- references/api/fund/fund-backtest.md 5.5 KB
- references/api/fund/fund-financials.md 7.0 KB
- references/api/fund/fund-holders.md 4.7 KB
- references/api/fund/fund-managers.md 7.7 KB
- references/api/fund/fund-market.md 9.8 KB
- references/api/fund/fund-performance.md 8.1 KB
- references/api/fund/fund-portfolio.md 9.9 KB
- references/api/fund/fund-quota.md 3.9 KB
- references/api/fund/news-article-list.md 2.3 KB
- references/api/fund/offerings-list.md 1.4 KB
- references/api/fund/portfolio-holdings.md 2.5 KB
- references/api/fund/profile-detail.md 2.1 KB
- references/api/fund/README.md 5.8 KB
- references/api/futures/calendar-session-timeline.md 1.4 KB
- references/api/futures/calendar-trading-schedule.md 1.9 KB
- references/api/futures/fundamentals-indicators-historical.md 2.0 KB
- references/api/futures/futures-basis.md 4.6 KB
- references/api/futures/futures-contracts-extended.md 6.8 KB
- references/api/futures/futures-positions.md 10 KB
- references/api/futures/futures-prices.md 4.3 KB
- references/api/futures/futures-reference.md 4.0 KB
- references/api/futures/README.md 3.4 KB
- references/api/futures/varieties-list.md 2.5 KB
- references/api/futures/variety-plates-list.md 1.1 KB
- references/api/futures/warehouse-receipts-historical.md 1.4 KB
- references/api/hk-share/hk-share-ipo.md 6.6 KB
- references/api/hk-share/README.md 646 B
- references/api/index/a-share-index.md 12 KB
- references/api/index/baseinfo-new-concepts.md 2.4 KB
- references/api/index/README.md 1.2 KB
- references/api/market-dumps.md 5.7 KB
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.
- 18d ago Changed · -25 lines · +97 tokens per session 9e96e3c16c8e
- 2mo ago Changed · -110 lines · -35 tokens per session 29f7295359d2
- 2mo ago Changed f2fed046275f
- 2mo ago Changed · +1 lines 7ae37153f1c3
- 2mo ago Changed · +20 lines · +6 tokens per session 7e5177b37621
- 2mo ago Changed · +20 lines 5de0b3fade0c
- 3mo ago First seen · 156 lines · 87 tokens per session scan A 7541734ea045
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.
hithink-finance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hithink-financeHiThink-Tech/Financial-API | Skill | 4.7k | 3d ago | MIT | A | 155 | Codex |
| 通达信TQadambbhe/TDX-finance-mcp-plugin-v3 | Skill | 47 | 1mo ago | MIT | A | 56 | Claude Code, Codex |
| 机构持仓股东分析adambbhe/TDX-finance-mcp-plugin-v3 | Skill | 47 | 1mo ago | MIT | A | 229 | Claude Code, Codex |
| 问小达选A股adambbhe/TDX-finance-mcp-plugin-v3 | Skill | 47 | 1mo ago | MIT | A | 82 | Claude Code, Codex |
| 政策解读与受益分析adambbhe/TDX-finance-mcp-plugin-v3 | Skill | 47 | 1mo ago | MIT | A | 248 | Claude Code, Codex |
| 仓位决策adambbhe/TDX-finance-mcp-plugin-v3 | Skill | 47 | 1mo ago | MIT | A | 109 | Claude Code, Codex |
| 生成交易计划adambbhe/TDX-finance-mcp-plugin-v3 | Skill | 47 | 1mo ago | MIT | A | 64 | Claude Code, Codex |