akshare-finance
AKShare财经数据接口库封装,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等金融产品的基本面数据、实时和历史行情数据、衍生数据。
Skill by aifinlab
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aifinlab-akshare-finance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/akshare-finance
What's inside
- Skill name
akshare-finance- Description
- AKShare财经数据接口库封装,提供股票、期货、期权、基金、外汇、债券、指数、加密货币等金融产品的基本面数据、实时和历史行情数据、衍生数据。
- License
- Apache-2.0
- Instructions
- 155 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- _meta.json
- README.md · references/
- crypto_price.py · scripts/
- macro_data.py · scripts/
- stock_price.py · scripts/
SKILL.md (first lines)
# AKShare财经数据技能
## 快速开始
```bash
# 安装依赖
pip install akshare pandas
# 测试安装
python -c "import akshare; print(akshare.__version__)"
```
## 核心功能
### 1. 股票行情
```python
import akshare as ak
# A股实时行情
stock_zh_a_spot_em() # 东方财富A股
# 股票K线数据
stock_zh_kline(symbol="000001", period="daily", adjust="qfq")
# 港股行情
stock_hk_spot_em() # 港股实时
# 美股
stock_us_spot() # 美股实时
```
### 2. 宏观经济
```python
# GDP数据
macro_china_gdp() # 中国GDP
# CPI通胀
macro_china_cpi() # 中国CPI
# PMI采购经理指数
macro_china_pmi() # 中国PMI
# 货币供应量
macro_china_m2() # M2广义货币
```
### 3. 加密货币
```python
# 币种列表
crypto_binance_symbols() # 币安交易对
# 实时价格
crypto_binance_btc_usdt_spot() # BTC/USDT
# K线数据
crypto_binance_btc_usdt_kline(period="daily")
```
### 4. 外汇贵金属
```python
# 外汇汇率
forex_usd_cny() # 美元兑人民币
# 贵金属
metals_shibor() # 上海银行间拆借利率
# 金银价格
metals_gold() # 国际金价
```
### 5. 财务数据
```python
# 股票基本面
stock_fundamental(symbol="000001") # 基本面数据
# 估值指标
stock_valuation(symbol="000001") # PE、PB等
# 盈利能力
stock_profit_em(symbol="000001")
```
## 常用组合
### 投资组合监控
```python
import akshare as ak
import pandas as pd
# 监控自选股
tickers = ["000001", "000002", "600519"]
for ticker in tickers:
df = ak.stock_zh_kline(symbol=ticker, period="daily", adjust="qfq", start_date="20240101")
latest = df.iloc[-1]
print(f"{ticker}: 收盘价={latest['close']}, 涨跌幅={latest['pct_chg']}%")
```
### 市场概览
```python
# A股大盘
index_zh_a_spot() # 大盘指数
# 涨跌幅排行
stock_zh_a_spot_em()[['代码', '名称', '涨跌幅']].sort_values('涨跌幅', ascending=False)
```
## 注意事项
1. **数据来源**: 公开财经网站,仅用于学术研究
2. **商业风险**: 投资有风险,决策需谨慎
3. **更新频率**: 实时数据可能有延迟
4. **数据验证**: 建议多数据源交叉验证From aifinlab/FinClaw, Apache-2.0.
More from aifinlab/FinClaw
- 0.461score
a-share-capital-allocation
aifinlab
A股资本配置/再投资分析/资本支出与股东回报评估。当用户说"资本配置"、"capital allocation"、"回购"、"增发"、"并购"、"钱怎么花的"、"XX在做什么并购"、"定增"、"再融资"、"股份回购"、"资本开支"、"资本配置策略"、"资本配置分析"、"CAPEX"、"股东回报"时触发。MUST…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-concept
aifinlab
A股概念板块/题材分析/热点概念追踪。当用户说"概念板块"、"题材"、"热点板块"、"概念股"、"XX概念"、"AI概念"、"新能源概念"、"XX板块有哪些股票"、"今天什么板块涨了"、"风口"、"概念板块分析"、"热点题材"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-material-check-accident-insurance-assistant
aifinlab
���û���Ҫ�����������������������ṹ������Ԥ���������Լ�顢�¹����֤�����顢��ҽ����ƥ���顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-board-analysis
aifinlab
A股涨跌停板分析/连板追踪/涨停板统计。当用户说"涨停"、"跌停"、"涨停板"、"连板"、"打板"、"炸板"、"涨停分析"、"今天多少家涨停"、"连板股"、"首板"、"二板"、"三板"、"涨停原因"、"XX涨停了"、"涨停板分析"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-competitive-moat
aifinlab
A股企业护城河/竞争优势分析/竞争壁垒评估。当用户说"护城河"、"竞争优势"、"moat"、"壁垒"、"XX的护城河是什么"、"竞争力分析"、"可持续竞争优势"、"品牌溢价"、"转换成本"、"网络效应"、"护城河分析"、"竞争壁垒"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-comps
aifinlab
A股可比公司分析/行业估值对标。当用户说"可比公司"、"估值对标"、"行业估值"、"comps"、"comparable company"、"同行对比"、"XX跟同行比怎么样"、"XX板块估值"、"可比公司分析"、"comps analysis"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-audit-assistant
aifinlab
���û���Ҫ�ѷ�ɢ�����������������ʺ�������ˡ����ˡ�������˻��ڲ�����ʹ�õİ���ժҪʱʹ�ñ� skill�������ڻ������������顢�¹ʾ���˵���������¼��סԺ���ϡ���Ժ��¼�����֤������鱨�桢�������桢����…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-customer-service-assistant
aifinlab
���û���Ҫ�����ⰸ�����ϡ����̼�¼������״̬�������ڵ��ͨ��Ϣ�������ʺϿͷ������������Ա����Ӫ֧����Աʹ�õİ���ժҪʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-material-check-life-insurance-assistant
aifinlab
���û���Ҫ���������������������ṹ������Ԥ���������Լ�顢������ʵ������ԭ�����֤�����顢�����˺��������ʸ����ϼ�顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-autocorrelation
aifinlab
A股自相关/序列相关性/收益率自相关结构分析。当用户说"自相关"、"autocorrelation"、"序列相关"、"收益率预测性"、"动量还是反转"、"自相关系数"、"ACF"、"PACF"、"Ljung-Box"、"收益率是否可预测"、"随机游走检验"时触发。MUST USE when user asks…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-cash-flow
aifinlab
A股现金流分析/自由现金流质量评估。当用户说"现金流"、"自由现金流"、"FCF"、"cash flow"、"经营现金流"、"XX的现金流怎么样"、"收现比"、"净现比"、"资本开支"、"现金流量表"、"现金流分析"、"现金流质量"时触发。MUST USE when user asks about cash…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-convertible-bond
aifinlab
A股可转债分析/转债策略/可转债估值与筛选。当用户提到"可转债"或"转债"就触发。关键词:"可转债"、"转债"、"convertible bond"、"转股"、"转股价值"、"双低策略"、"强赎"、"XX转债怎么样"、"可转债打新"、"转债溢价率"、"转债分析"、"可转债筛选"、"转债到期收益率"、"YTM"、"下修…
SkillDFreshness: D★ 261Claude Code +9
Signals
- Stars
- 261
- Forks
- 39
- Open issues
- 2
- Last commit (this folder)
- Mar 26, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/aifinlab/FinClaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aifinlab
- 0.461score
claims-material-check-accident-insurance-assistant
aifinlab
���û���Ҫ�����������������������ṹ������Ԥ���������Լ�顢�¹����֤�����顢��ҽ����ƥ���顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-autocorrelation
aifinlab
A股自相关/序列相关性/收益率自相关结构分析。当用户说"自相关"、"autocorrelation"、"序列相关"、"收益率预测性"、"动量还是反转"、"自相关系数"、"ACF"、"PACF"、"Ljung-Box"、"收益率是否可预测"、"随机游走检验"时触发。MUST USE when user asks…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-audit-assistant
aifinlab
���û���Ҫ�ѷ�ɢ�����������������ʺ�������ˡ����ˡ�������˻��ڲ�����ʹ�õİ���ժҪʱʹ�ñ� skill�������ڻ������������顢�¹ʾ���˵���������¼��סԺ���ϡ���Ժ��¼�����֤������鱨�桢�������桢����…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-case-summary-customer-service-assistant
aifinlab
���û���Ҫ�����ⰸ�����ϡ����̼�¼������״̬�������ڵ��ͨ��Ϣ�������ʺϿͷ������������Ա����Ӫ֧����Աʹ�õİ���ժҪʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
claims-material-check-life-insurance-assistant
aifinlab
���û���Ҫ���������������������ṹ������Ԥ���������Լ�顢������ʵ������ԭ�����֤�����顢�����˺��������ʸ����ϼ�顢�����嵥����������ǰ����ʶ��ʱʹ�ñ�…
SkillDFreshness: D★ 261Claude Code +9 - 0.461score
a-share-board-analysis
aifinlab
A股涨跌停板分析/连板追踪/涨停板统计。当用户说"涨停"、"跌停"、"涨停板"、"连板"、"打板"、"炸板"、"涨停分析"、"今天多少家涨停"、"连板股"、"首板"、"二板"、"三板"、"涨停原因"、"XX涨停了"、"涨停板分析"时触发。MUST USE when user asks about…
SkillDFreshness: D★ 261Claude Code +9
Cite this page
akshare-finance skill. Agent Mart. https://agentmart.dev/skills/aifinlab-akshare-finance (last updated 2026-10-24)