akshare-stock

akshare-stock is a skill for Claude Code, Codex from DAnonyvinciT/akshare-stock-skill. It costs 100 tokens per session (1,298 once invoked), scanned A, original, MIT.

A Python-based skill for retrieving and analysing data about Chinese A-share stocks. AKShare is a free, open-source Python library that provides market and financial data without registration or an access token.

In plain words
What is it for?
Getting real-time prices, historical candlesticks, valuation and financial data, shareholder and dividend information, fund flows, technical indicators, and analysis reports.
Why use it?
It brings common stock data and calculations into repeatable scripts instead of requiring manual lookups and spreadsheet work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Getting real-time prices, historical candlesticks, valuation and financial data, shareholder and dividend information, fund flows, technical indicators, and analysis reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danonyvincit/akshare-stock-skill/akshare-stock
Install

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.

Any agent
npx skills add DAnonyvinciT/akshare-stock-skill --skill akshare-stock
Clone the repo
git clone --depth 1 https://github.com/DAnonyvinciT/akshare-stock-skill

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for akshare-stock

README.md
[![agentmods](https://agentmods.dev/badge/skills/danonyvincit/akshare-stock-skill/akshare-stock/github.svg)](https://agentmods.dev/skills/danonyvincit/akshare-stock-skill/akshare-stock)
Your own site
<a href="https://agentmods.dev/skills/danonyvincit/akshare-stock-skill/akshare-stock"><img src="https://agentmods.dev/badge/skills/danonyvincit/akshare-stock-skill/akshare-stock/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.

agentmods 80×15 button for akshare-stock

Your own site · 80×15
<a href="https://agentmods.dev/skills/danonyvincit/akshare-stock-skill/akshare-stock"><img src="https://agentmods.dev/badge/skills/danonyvincit/akshare-stock-skill/akshare-stock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,298 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.01298
Opus 5 $0.00050 $0.00649
Sonnet 5 $0.00020 $0.00260
Haiku 4.5 $0.00010 $0.00130

Measured 13d ago against content hash 5d41ed6a6296, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

akshare-stock 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 13d ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/analyze_investment.py, scripts/cache_manager.py, scripts/calc_technical.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

akshare-stock/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AKShare A股数据分析 Skill

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

快速开始

环境准备

pip install akshare pandas numpy pyyaml

使用脚本

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. 智能投资分析

python analyze_investment.py 002475

自动分析:

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

2. 技术指标

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. 定时任务

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

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

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

输出格式

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

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

Read the full file on GitHub · 154 lines

Changes

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.

  1. 13d ago First seen · 154 lines · 100 tokens per session scan A 5d41ed6a6296

Subscribe to this mod's changes

akshare-stock is a skill published in the GitHub repository DAnonyvinciT/akshare-stock-skill (58 stars, last pushed 8mo ago), licensed MIT. It adds 100 tokens to every session and 1,298 once invoked, about $0.0005 per session on Opus 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.

Related

Other skills, from other repositories

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens

reading-receipt

An image-reading workflow for extracting structured information from receipts, invoices, and hometown-tax donation certificates. It can first extract text from PDFs and otherwise read their images.

kazukinagata/shinkoku · 64 tokens