Agent skill

Efinance Data

by aifinlab in aifinlab/FinClaw

efinance 中国金融市场数据获取工具,封装 A 股行情、资金流向、龙虎榜、十大股东、业绩报表、基金净值持仓、可转债、期货等数据接口。当用户需要获取 A 股实时行情、个股资金流、主力动向、龙虎榜、十大股东变动、业绩数据、基金净值或持仓、可转债或期货行情时使用此 skill。也适用于需要中国金融市场数据来支撑投研分析、个股研究、行业对比、资产配置等场景。与 akshare-finance…

Apache-2.0Auto-check passed

Install Efinance Data

skills CLI
$ npx skills add aifinlab/FinClaw --skill efinance-data -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aifinlab/FinClaw efinance-data --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aifinlab/FinClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/efinance-data .claude/skills/efinance-data && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
efinance-data
GitHub stars
254
Token cost
~1.1k tokens
SKILL.md length
159 words
Files
6 (incl. scripts, references)
Skills in repo
74
Repo updated
First seen
Licence
Apache-2.0

At a glance

efinance 中国金融市场数据获取工具,封装 A 股行情、资金流向、龙虎榜、十大股东、业绩报表、基金净值持仓、可转债、期货等数据接口。当用户需要获取 A 股实时行情、个股资金流、主力动向、龙虎榜、十大股东变动、业绩数据、基金净值或持仓、可转债或期货行情时使用此 skill。也适用于需要中国金融市场数据来支撑投研分析、个股研究、行业对比、资产配置等场景。与 akshare-finance…

  • Works in 5 steps: 数据来源:公开财经网站(东方财富等),仅限学术研究和个人使用 → 请求频率:避免高频循环调用,建议间隔 0.5-1 秒 → 交易时间外:实时行情在非交易时段返回上一交易日数据 → …
  • SKILL.md covers 定位, 何时使用, 依赖 and 脚本一览, plus 6 more sections
  • Runs Python scripts from its folder; calls python and pip

What it does

Efinance Data is an agent skill from aifinlab/FinClaw. efinance 中国金融市场数据获取工具,封装 A 股行情、资金流向、龙虎榜、十大股东、业绩报表、基金净值持仓、可转债、期货等数据接口。当用户需要获取 A 股实时行情、个股资金流、主力动向、龙虎榜、十大股东变动、业绩数据、基金净值或持仓、可转债或期货行情时使用此 skill。也适用于需要中国金融市场数据来支撑投研分析、个股研究、行业对比、资产配置等场景。与 akshare-finance 互补,efinance 在资金流分层(主力/大单/超大单)和实时行情字段丰富度上更有优势。

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/api_reference.md`, `scripts/bond_data.py` and `scripts/fund_data.py`).

The licence is Apache-2.0.

Example prompts

  • “/efinance-data”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 数据来源:公开财经网站(东方财富等),仅限学术研究和个人使用
  2. 请求频率:避免高频循环调用,建议间隔 0.5-1 秒
  3. 交易时间外:实时行情在非交易时段返回上一交易日数据
  4. 数据延迟:免费数据可能有 15 分钟延迟,不适用于实盘交易
  5. 接口稳定性:基于网页爬虫,上游网站改版可能导致接口暂时不可用

What it can do on your machine

Read from SKILL.md and the folder at commit 9e62862. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Efinance Data loads about 1.1k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 159 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aifinlab/FinClaw at commit 9e62862, republished under its Apache-2.0 licence (© aifinlab). 159 words, ~1,064 tokens.

Download SKILL.mdSave it as .claude/skills/efinance-data/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
efinance-data
description
efinance 中国金融市场数据获取工具,封装 A 股行情、资金流向、龙虎榜、十大股东、业绩报表、基金净值持仓、可转债、期货等数据接口。当用户需要获取 A 股实时行情、个股资金流、主力动向、龙虎榜、十大股东变动、业绩数据、基金净值或持仓、可转债或期货行情时使用此 skill。也适用于需要中国金融市场数据来支撑投研分析、个股研究、行业对比、资产配置等场景。与 akshare-finance 互补,efinance 在资金流分层(主力/大单/超大单)和实时行情字段丰富度上更有优势。

efinance 中国金融市场数据工具

定位

efinance-data 是一个数据获取工具层 skill,为投研分析类 skill 提供底层数据支撑。它封装了 efinance 库的核心接口,覆盖 A 股、基金、可转债、期货四大品类。

数据来源为东方财富等公开财经网站,完全免费,无需注册或 API Key。

何时使用

  • 用户要查某只股票的实时行情、历史K线
  • 用户要看个股资金流向(主力净流入、大单、超大单)
  • 用户要查龙虎榜、十大股东、业绩报表
  • 用户要获取基金净值、重仓股、行业分布
  • 用户需要可转债行情或期货行情
  • 其他投研 skill 需要数据输入时,作为数据源调用

依赖

bash
pip install efinance pandas

运行脚本前确认依赖已安装。如果 import efinance 报错,先执行上述安装命令。

脚本一览

所有脚本位于本 skill 的 scripts/ 目录,输出均为 JSON 格式。

脚本用途核心命令
stock_data.py股票数据realtime / history / info / holders / bill / billboard / performance
fund_data.py基金数据history / position / industry / manager / period / info / codes
bond_data.py可转债数据realtime / history / info / all_info / bill
futures_data.py期货数据realtime / history / info

股票数据 (stock_data.py)

实时行情
bash
# 全市场 A 股实时行情(5800+ 只)
python stock_data.py realtime

# 指定股票
python stock_data.py realtime --code 000001,600519,000858

返回字段:代码、名称、最新价、涨跌幅、换手率、动态市盈率、总市值、流通市值等。

历史K线
bash
# 日线(默认)
python stock_data.py history --code 600519

# 周线 / 月线
python stock_data.py history --code 600519 --period weekly
python stock_data.py history --code 600519 --period monthly

# 分钟级
python stock_data.py history --code 600519 --period 5min

# 指定时间范围
python stock_data.py history --code 600519 --start 20250101 --end 20251231

支持周期:daily / weekly / monthly / 5min / 15min / 30min / 60min

个股基本信息
bash
python stock_data.py info --code 000001

返回:净利润、总市值、流通市值、所处行业、市盈率(动)、市净率、ROE、毛利率、净利率。

十大股东
bash
python stock_data.py holders --code 000001

返回:股东名称、持股数、持股比例、增减、变动率。

资金流向
bash
# 最近30天资金流
python stock_data.py bill --code 000001

# 最近60天
python stock_data.py bill --code 000001 --days 60

# 当日分时资金流
python stock_data.py today_bill --code 000001

返回字段包括:主力净流入、小单净流入、中单净流入、大单净流入、超大单净流入,以及各项占比。这是 efinance 相对其他数据源的核心优势——资金流分层非常细致。

龙虎榜
bash
python stock_data.py billboard

返回:上榜股票、上榜日期、龙虎榜净买额、买入额、卖出额、上榜原因、机构买卖解读。

业绩报表
bash
python stock_data.py performance

返回全市场最新业绩:营收、净利润、同比增长、每股收益、ROE、毛利率等。

其他
bash
# 股东人数
python stock_data.py holder_number --code 000001

# 所属板块
python stock_data.py board --code 000001

# 逐笔成交
python stock_data.py deals --code 000001

# 最新IPO信息
python stock_data.py ipo

基金数据 (fund_data.py)

bash
# 基金净值历史
python fund_data.py history --code 005827

# 批量获取多只基金
python fund_data.py history_multi --code 005827,110011,161725

# 基金重仓股
python fund_data.py position --code 005827

# 基金行业分布
python fund_data.py industry --code 005827

# 基金经理
python fund_data.py manager --code 005827

# 阶段涨幅(近1月/3月/1年等)
python fund_data.py period --code 005827

# 基金基本信息
python fund_data.py info --code 005827

# 基金代码列表
python fund_data.py codes

可转债数据 (bond_data.py)

bash
# 可转债实时行情
python bond_data.py realtime

# 历史K线
python bond_data.py history --code 123456

# 全部可转债基本信息
python bond_data.py all_info

# 单只基本信息
python bond_data.py info --code 123456

# 资金流向
python bond_data.py bill --code 123456

注意:可转债实时行情接口偶尔因上游数据源问题返回错误,建议加 try/except 处理。

期货数据 (futures_data.py)

bash
# 期货实时行情
python futures_data.py realtime

# 历史K线
python futures_data.py history --code 棕榈油2509

# 期货品种信息
python futures_data.py info

与 akshare-finance 的关系

两个 skill 互补使用:

数据需求优先用原因
资金流向(主力/大单分层)efinance-data分层更细致
实时行情(含PE/市值)efinance-data一次返回字段更全
龙虎榜(含解读)efinance-data包含机构买卖成功率解读
财务三表(资产负债/利润/现金流)akshare-financeefinance 无此接口
北向资金 / 融资融券akshare-financeefinance 无此接口
宏观经济(GDP/CPI/PMI)akshare-financeefinance 无此接口
估值指标详细历史akshare-financePE/PB 历史序列

当一个数据源出错时,可尝试用另一个获取相同数据作为备用。

注意事项

  1. 数据来源:公开财经网站(东方财富等),仅限学术研究和个人使用
  2. 请求频率:避免高频循环调用,建议间隔 0.5-1 秒
  3. 交易时间外:实时行情在非交易时段返回上一交易日数据
  4. 数据延迟:免费数据可能有 15 分钟延迟,不适用于实盘交易
  5. 接口稳定性:基于网页爬虫,上游网站改版可能导致接口暂时不可用

更多 API 细节见 references/api_reference.md。

© aifinlab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/efinance-data of aifinlab/FinClaw.

  • SKILL.md
  • references/api_reference.md
  • scripts/bond_data.py
  • scripts/fund_data.py
  • scripts/futures_data.py
  • scripts/stock_data.py

Open the folder on GitHubat commit 9e62862

Compare with similar skills

Efinance Data next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Efinance Data compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Efinance Data this skillaifinlab/FinClaw254—~1.1kAutomated safety check: PassApache-2.0
Dragon Tiger List Analyzerwbh604/UZI-Skill7.1k—~265Automated safety check: PassMIT
Pharma Daily Reportdaymade/claude-code-skills1.4k—~662Automated safety check: PassMIT
Uziagentpit-io/hunter-community570—~224Automated safety check: PassMIT
Jqdatasdklzwme/finance-quant-skills435—~927Automated safety check: PassNone
AI Intelligence Investigatorredfox-data/redfox-community425—~803Automated safety check: PassNone

Similar skills

  • Analyzes a stock's Dragon Tiger List (龙虎榜) appearances, identifies hot-money seats, weighs institutions against them and compares peers in the same sector.

    7.1k GitHub stars~265 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Pharma Daily Report

    daymade/claude-code-skills

    生成 A 股医药行业日报:从新浪财经抓取 20 只核心医药股实时行情,分析 7 大细分赛道排名、涨跌榜 TOP 3、资金流向,然后通过飞书发送富文本日报。

    1.4k GitHub stars~662 tokensUpdated today
    Auto-check passed
  • Uzi

    agentpit-io/hunter-community

    A 股、港股与美股的投研总调度技能,覆盖深度研究、快速扫描、投委会评审、游资/龙虎榜(LHB)分析、杀猪盘识别、估值测算、IC 投资备忘录,以及 Bloomberg 风格的 HTML 报告。

    570 GitHub stars~224 tokensUpdated 3 days ago
    Business, Finance & HRAuto-check passed
  • Jqdatasdk

    lzwme/finance-quant-skills

    聚宽(JoinQuant)本地数据 SDK,提供 A 股行情、历史K线、财务数据、指标数据等,与聚宽官网数据同源。当用户提及 jqdatasdk、聚宽数据、需要获取A股数据,或已注册聚宽账号时使用。与 baostock(免费)和 tushare(数据最全)不同,jqdatasdk 需注册聚宽账号获取 Token,适合已在使用聚宽平台的用户。本地数据获取请用本技能,聚宽官网策略开发请用…

    435 GitHub stars~927 tokensUpdated 14 days ago
    Business, Finance & HRAuto-check passed
  • AI Intelligence Investigator

    redfox-data/redfox-community

    深度A股情报调查与分析工具,支持A股情报调查、竞品分析、舆情监测、人物背景调查、信息交叉验证,生成结构化调查报告。当用户需要调查A股公司/行业/概念、调查竞品、追踪热点事件、了解人物背景、验证信息真实性时使用。触发词:A股情报、股票调查、财报分析、概念追踪、资金流向、情报调查、竞品分析、舆情调查、背景调查、信息验证、多源搜索。

    425 GitHub stars~803 tokensUpdated today
    Auto-check passed
  • Hithink Market Query

    hiboys/ExploreFinance

    获取股票、ETF、指数等实时价格、涨跌幅、成交量、主力资金流向、大小单、技术指标等行情数据,支持自然语言问句输入,返回相关行情数据结果。当用户询问股票价格、ETF行情、指数行情、涨跌幅、成交量、资金流向、技术指标等行情数据查询问题时,必须使用此技能。

    365 GitHub stars~2k tokensUpdated 3 mo ago
    Business, Finance & HRAuto-check passed

More from aifinlab/FinClaw

All 74 skills in this repo
  • Bank Corporate Credit Dd

    aifinlab/FinClaw

    A skill your agent uses when the user asks for help with corporate credit due diligence, enterprise credit investigation, pre-loan review, borrower analysis, document collection, management…

    254 GitHub stars~952 tokensUpdated 4 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate-risk monitoring assistant for enterprise litigation/penalty/enforcement scanning (处罚/诉讼/被执行/失信等).

    254 GitHub stars~751 tokensUpdated 4 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate client operating-volatility monitoring assistant (经营监测/指标波动/预警解释).

    254 GitHub stars~605 tokensUpdated 4 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank post-loan visit follow-up assistant to turn visit notes/materials into a structured memo (摘要/关键更新/风险观察/用途核验/行动项).

    254 GitHub stars~544 tokensUpdated 4 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit issue-list assistant (问题清单/补件清单/催办台账).

    254 GitHub stars~487 tokensUpdated 4 mo ago
    Auto-check passed
  • A skill your agent uses when you need a bank corporate credit approval-opinion drafting assistant (审批意见/条款建议/有条件同意).

    254 GitHub stars~549 tokensUpdated 4 mo ago
    Auto-check passed

Questions about Efinance Data

What does Efinance Data do?

efinance 中国金融市场数据获取工具,封装 A 股行情、资金流向、龙虎榜、十大股东、业绩报表、基金净值持仓、可转债、期货等数据接口。当用户需要获取 A 股实时行情、个股资金流、主力动向、龙虎榜、十大股东变动、业绩数据、基金净值或持仓、可转债或期货行情时使用此 skill。也适用于需要中国金融市场数据来支撑投研分析、个股研究、行业对比、资产配置等场景。与 akshare-finance…. Efinance Data is an agent skill from aifinlab/FinClaw.

How do I install Efinance Data in Claude Code?

Run `npx skills add aifinlab/FinClaw --skill efinance-data -a claude-code`. Or copy the skill folder (skills/efinance-data in aifinlab/FinClaw) into .claude/skills/efinance-data in your project. Claude Code loads it when a task matches its description.

How do I install Efinance Data in Codex?

Run `npx skills add aifinlab/FinClaw --skill efinance-data -a codex`. Or copy the skill folder (skills/efinance-data in aifinlab/FinClaw) into .agents/skills/efinance-data in your project. Codex loads it when a task matches its description.

Can I use Efinance Data in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aifinlab/FinClaw --skill efinance-data -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/efinance-data, .gemini/skills/efinance-data, .github/skills/efinance-data and .opencode/skills/efinance-data in your project.

What does Efinance Data need to run?

Going by SKILL.md and its folder, Efinance Data needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3.

Does Efinance Data access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Efinance Data safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Efinance Data use?

Efinance Data is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Efinance Data use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Efinance Data?

Skills that share tags, products or a category with Efinance Data: Dragon Tiger List Analyzer (wbh604/UZI-Skill, 7.1k stars), Pharma Daily Report (daymade/claude-code-skills, 1.4k stars), Uzi (agentpit-io/hunter-community, 570 stars) and Jqdatasdk (lzwme/finance-quant-skills, 435 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Efinance Data?

aifinlab (a GitHub user) maintains it in aifinlab/FinClaw, which has 254 GitHub stars. The repository holds 74 skills in this directory. The repository was last updated on May 13, 2026.

Source: aifinlab/FinClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.