← 返回 Skills 市场
wsyy002

A-Share Stock Data API

作者 wsyy002 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install astock-api
功能描述
A股实时行情、K线技术指标、资金流向、财务数据查询。支持任意A股代码,返回结构化数据。
使用说明 (SKILL.md)

A股数据查询 (A-Share Stock API)

通过HTTP API查询A股实时行情、技术指标、资金流向和财务数据。基于东方财富+同花顺+非凸科技多数据源聚合,单次查询返回完整字段。

可用端点(14个)

端点 说明 数据源
/v1/quote 实时行情 ftshare → mx-skills → 问财
/v1/kline K线+技术指标(MA/MACD/KDJ) 问财
/v1/flow 资金流向(主力/大单/中单/小单) mx-skills
/v1/finance 财务数据(营收/净利/增长率) mx-skills
/v1/concept 概念板块列表(486个) ftshare
/v1/limit/up 涨停池 ftshare
/v1/limit/down 跌停池 ftshare
/v1/blocktrade 大宗交易 ftshare
/v1/hk/company 港股公司信息 ftshare
/v1/macro/gdp GDP季度数据 ftshare
/v1/macro/cpi CPI月度数据 ftshare
/v1/macro/pmi PMI数据 ftshare
/v1/macro/money 货币供应量 ftshare
/v1/etf/prices ETF价格 ftshare

基础地址

https://api.jyfg.de5.net:2096

认证

请求头 X-API-Key 或 URL参数 token 携带 API Key

调用示例

# 茅台实时行情
curl "https://api.jyfg.de5.net:2096/v1/quote?code=600519&token=你的TOKEN"

# 资金流向
curl "https://api.jyfg.de5.net:2096/v1/flow?code=600207&token=你的TOKEN"

# 今日涨停池
curl "https://api.jyfg.de5.net:2096/v1/limit/up?token=你的TOKEN"

# 最新GDP数据
curl "https://api.jyfg.de5.net:2096/v1/macro/gdp?token=你的TOKEN"

# 港股腾讯信息
curl "https://api.jyfg.de5.net:2096/v1/hk/company?code=00700.HK&token=你的TOKEN"

响应格式

{
  "数据字段...": "值",
  "source": "数据来源",
  "cost_s": 0.35
}

覆盖范围

  • A股主板 (600xxx/000xxx) ✅
  • 创业板 (300xxx) ✅
  • 科创板 (688xxx) ✅
  • 港股
  • ETF
  • 宏观经济

使用场景

  • 量化策略的数据后端
  • 个人看盘工具的数据源
  • AI交易助手的实时行情接口
  • 每日复盘自动生成数据
安全使用建议
Install only if you are comfortable with this skill contacting the documented market-data API. Prefer passing any API key through the X-API-Key header instead of URL parameters, and avoid relying on the bundled default token because it is public in the skill code and may be revoked, abused, or tied to someone else’s quota.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The artifacts match the stated purpose: documentation and a Python helper call a remote A-share market-data API and return formatted quote, k-line, flow, finance, concept, ETF, macro, and related market data.
Instruction Scope
The documentation explicitly supports API keys in a URL token parameter and all curl examples use that pattern, which exposes user-supplied credentials more easily than header-based authentication.
Install Mechanism
The package contains only SKILL.md and scripts/astock_api.py, with no installer, dependency setup, background worker, or automatic execution path found.
Credentials
Outbound HTTPS requests to the documented API host are expected for this purpose, and the script does not read local files or environment secrets; however, it sends credentials in the query string.
Persistence & Privilege
The Python script embeds a default API token and automatically uses it when the user does not pass one, creating unnecessary shared-secret exposure and unclear account/quota ownership.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install astock-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /astock-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
v1.0.0 Initial release: 14 API endpoints covering A-share quotes/k-line/fund-flow/financials/concepts/limit-up-down/HK-stocks/macro-economics/ETF
元数据
Slug astock-api
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

A-Share Stock Data API 是什么?

A股实时行情、K线技术指标、资金流向、财务数据查询。支持任意A股代码,返回结构化数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 A-Share Stock Data API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install astock-api」即可一键安装,无需额外配置。

A-Share Stock Data API 是免费的吗?

是的,A-Share Stock Data API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

A-Share Stock Data API 支持哪些平台?

A-Share Stock Data API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 A-Share Stock Data API?

由 wsyy002(@wsyy002)开发并维护,当前版本 v1.0.0。

💬 留言讨论