← Back to Skills Marketplace
wsyy002

A-Share Stock Data API

by wsyy002 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
41
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install astock-api
Description
A股实时行情、K线技术指标、资金流向、财务数据查询。支持任意A股代码,返回结构化数据。
README (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交易助手的实时行情接口
  • 每日复盘自动生成数据
Usage Guidance
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install astock-api
  3. After installation, invoke the skill by name or use /astock-api
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug astock-api
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is A-Share Stock Data API?

A股实时行情、K线技术指标、资金流向、财务数据查询。支持任意A股代码,返回结构化数据。 It is an AI Agent Skill for Claude Code / OpenClaw, with 41 downloads so far.

How do I install A-Share Stock Data API?

Run "/install astock-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is A-Share Stock Data API free?

Yes, A-Share Stock Data API is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does A-Share Stock Data API support?

A-Share Stock Data API is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created A-Share Stock Data API?

It is built and maintained by wsyy002 (@wsyy002); the current version is v1.0.0.

💬 Comments