akshare-stock
Skill2 starsChanged 9 months agoMITView on GitHub
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- chalmery/skillstheir own version, first seen Sep 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- chalmery/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository120 other files it gives its agents.
- skills/proactive-agent/assets/AGENTS.mdAGENTS.md
- 1passwordSkill
- a2a-marketplaceSkill
- academic-formula-converterSkill
- adam-skillSkill
- admapixSkill
- adwhizSkill
- aetherlang-karpathy-skillSkill
- Ag-earthSkill
- Agent BrowserSkill
- agent-reachSkill
- AgentSkill
- ai-writing-assistant-cnSkill
- api-gatewaySkill
- apple-notesSkill
- apple-remindersSkill
- assistantSkill
- a-stock-analysisSkill
- autoclaw-browserSkill
- automation-workflowsSkill
- auto-updaterSkill
- baidu-searchSkill
- bear-notesSkill
- blogwatcherSkill
- blucliSkill
- bluebubblesSkill
- web-searchSkill
- camsnapSkill
- canvasSkill
- clawhubSkill
- coding-agentSkill
- daily-ai-newsSkill
- daily-ai-newsSkill
- desktop-controlSkill
- discordSkill
- docxSkill
- eightctlSkill
- elite-longterm-memorySkill
- feishu-docSkill
- feishu-driveSkill
- feishu-permSkill
- feishu-wikiSkill
- find-skillsSkill
- follow-buildersSkill
- freerideSkill
- geminiSkill
- gh-issuesSkill
- gifgrepSkill
- github-helperSkill
- githubSkill
- gogSkill
- goplacesSkill
- grok-searchSkill
- healthcheckSkill
- himalayaSkill
- humanize-ai-textSkill
- humanizerSkill
- imap-smtp-emailSkill
- imsgSkill
- kindergarten-assistantSkill
- The first 60 shown.
The file
Files
A股量化 - AkShare 数据接口
快速开始
安装依赖:
pip install akshare支持的功能
1. 实时行情查询
import akshare as ak
# 个股实时行情
stock_zh_a_spot_em()
stock_zh_a_spot_em(symbol="北证A股")2. 历史K线数据
import akshare as ak
# 日K线
stock_zh_a_hist(symbol="000001", period="daily", start_date="20240101", end_date="20241231", adjust="qfq")
# 周K线
stock_zh_a_hist(symbol="000001", period="weekly", start_date="20240101", end_date="20241231", adjust="qfq")
# 月K线
stock_zh_a_hist(symbol="000001", period="monthly", start_date="20240101", end_date="20241231", adjust="qfq")3. 财务数据
import akshare as ak
# 财务报表
stock_financial_abstract_ths(symbol="000001", indicator="按报告期")
# 主要财务指标
stock_financial_analysis_indicator(symbol="000001")4. 板块/行业分析
import akshare as ak
# 行业板块行情
stock_board_industry_name_em()
# 概念板块行情
stock_board_concept_name_em()
# 板块内个股
stock_board_industry_cons_em(symbol="半导体")5. 资金流向
import akshare as ak
# 个股资金流向
stock_individual_fund_flow(stock="000001", market="sh")
# 大单净流入
stock_individual_fund_flow(stock="000001", market="sh", symbol="大单净流入")6. 龙虎榜
import akshare as ak
# 每日龙虎榜
stock_lhb_detail_em(date="20240930")
# 机构调研
stock_zlzj_em()7. 新股/IPO
import akshare as ak
# 新股申购
stock_new_ipo_em()
# 待上市新股
stock_new_ipo_start_em()8. 融资融券
import akshare as ak
# 融资融券
stock_margin_sse(symbol="600000")
# 融资融券明细
stock_rzrq_detail_em(symbol="600000", date="20240930")常用股票代码
- 平安银行: 000001
- 贵州茅台: 600519
- 宁德时代: 300750
- 比亚迪: 002594
- 招商银行: 600036
备选方案: Baostock
如果 AkShare 安装失败,可使用 baostock(更轻量):
import baostock as bs
# 登录
lg = bs.login()
print(lg.error_msg)
# 获取历史K线
rs = bs.query_history_k_data_plus('sh.600519',
'date,code,open,high,low,close,volume',
start_date='20250101',
end_date='20251231')
data_list = []
while rs.next:
data_list.append(rs.get_row_data())
bs.logout()注意事项
- 数据仅供学术研究,不构成投资建议
- 接口可能因目标网站变动而失效
- 建议添加异常处理和重试机制
- 当前环境网络问题可能导致测试失败,请在本地环境测试
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

