Akshare Stock logo

Akshare Stock

Community
DAnonyvinciT
akshare-stock

使用 AKShare 库获取和分析中国 A 股市场数据。AKShare 是免费开源的 Python 金融数据接口库,无需注册或 Token。支持:股票实时行情、历史K线、财务报表、估值指标、资金流向、技术指标、定时任务等。当用户需要获取 A 股股价、分析个股基本面、查询财务数据、计算技术指标、分析资金流向时使用此 skill。

Overview

PublisherDAnonyvinciT
Repositoryakshare-stock-skill
Skill nameakshare-stock
Stars
60
Forks
15
Bundled files
15
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 15 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by DAnonyvinciT on GitHub. Read the source before you install it.

Installation

Install the Akshare Stock AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/DAnonyvinciT/akshare-stock-skill/tree/main/akshare-stock
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DAnonyvinciT/akshare-stock-skill.git /tmp/akshare-stock-skill
mkdir -p .claude/skills
cp -r /tmp/akshare-stock-skill/akshare-stock .claude/skills/akshare-stock
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Akshare Stock in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Akshare Stock on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Akshare Stock is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

AKShare A股数据分析 Skill

使用 AKShare 库获取中国 A 股市场数据并进行分析。AKShare 是免费开源的金融数据接口,无需注册或 Token。

快速开始

环境准备

bash
pip install akshare pandas numpy pyyaml

使用脚本

bash
cd e:\AIproJect\A_Share\.agent\skills\akshare-stock\scripts

# 智能投资分析(推荐)
python analyze_investment.py 002475

# 实时行情
python get_realtime_quote.py 002475

# 历史K线
python get_history_kline.py 002475 --days 60

# 技术指标
python calc_technical.py 002475

# 综合分析报告
python stock_analyzer.py 002475 -o report.md

脚本列表

数据获取脚本

脚本功能示例
get_realtime_quote.py实时行情python get_realtime_quote.py 002475
get_history_kline.py历史K线python get_history_kline.py 002475 --days 60
get_valuation.py估值指标python get_valuation.py 002475
get_fund_flow.py资金流向python get_fund_flow.py 002475 --days 10
get_financial.py财务数据python get_financial.py 002475
get_shareholders.py股东信息python get_shareholders.py 002475
get_dividend.py分红数据python get_dividend.py 002475

分析脚本

脚本功能说明
analyze_investment.py智能投资分析多维度评分 + 投资建议
calc_technical.py技术指标计算MA/MACD/RSI/KDJ/BOLL
stock_analyzer.py综合分析报告合并所有数据的完整报告

工具脚本

脚本功能说明
cache_manager.py数据缓存SQLite 本地缓存
scheduler.py定时任务自动获取数据和生成报告

核心功能

1. 智能投资分析

bash
python analyze_investment.py 002475

自动分析:

  • 📊 估值分析(PE/PB/股息率)
  • 📈 成长性分析(营收/利润增速)
  • 💵 资金面分析(主力资金流向)
  • 📉 技术面分析(均线/MACD/RSI)
  • 综合评分 + 投资建议

2. 技术指标

bash
python calc_technical.py 002475

支持指标:

  • MA: 5/10/20/60日均线
  • MACD: DIF, DEA, MACD柱
  • RSI: 6/12/24日
  • KDJ: K, D, J
  • BOLL: 上轨/中轨/下轨

3. 数据缓存

自动缓存避免重复请求:

  • 实时行情:1分钟
  • 日K线:1小时
  • 财务数据:7天
  • 股东数据:30天

4. 定时任务

bash
# 立即执行
python scheduler.py --run-now

# 后台运行调度器
python scheduler.py

配置 config.yaml 设置监控股票和执行时间。

输出格式

所有脚本默认输出 Markdown 格式,可直接预览或保存:

bash
python analyze_investment.py 002475 -o 分析报告.md

文件结构

akshare-stock/
├── SKILL.md                 # 本文档
├── config.yaml              # 配置文件
├── references/
│   ├── api_reference.md     # API 参考
│   └── official_docs.md     # 官方文档索引
└── scripts/
    ├── analyze_investment.py   # 智能分析
    ├── calc_technical.py       # 技术指标
    ├── cache_manager.py        # 数据缓存
    ├── scheduler.py            # 定时任务
    ├── stock_analyzer.py       # 综合分析
    ├── get_realtime_quote.py   # 实时行情
    ├── get_history_kline.py    # 历史K线
    ├── get_valuation.py        # 估值指标
    ├── get_fund_flow.py        # 资金流向
    ├── get_financial.py        # 财务数据
    ├── get_shareholders.py     # 股东信息
    └── get_dividend.py         # 分红数据

参考资源

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Akshare Stock AI skill do?

使用 AKShare 库获取和分析中国 A 股市场数据。AKShare 是免费开源的 Python 金融数据接口库,无需注册或 Token。支持:股票实时行情、历史K线、财务报表、估值指标、资金流向、技术指标、定时任务等。当用户需要获取 A 股股价、分析个股基本面、查询财务数据、计算技术指标、分析资金流向时使用此 skill。

Why use Akshare Stock on TypingMind?

Because you install it once and use it with any model. Akshare Stock is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Akshare Stock in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/DAnonyvinciT/akshare-stock-skill/tree/main/akshare-stock. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Akshare Stock?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Akshare Stock?

As many as you like. As long as a model supports skills, you can use Akshare Stock with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Akshare Stock AI skill free?

Yes. It is published on GitHub by DAnonyvinciT under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇