← Back to Skills Marketplace
make453

New Akshare Stock.Bak2

by make453 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
156
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install new-akshare-stock-bak2
Description
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
README (SKILL.md)

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()

注意事项

  1. 数据仅供学术研究,不构成投资建议
  2. 接口可能因目标网站变动而失效
  3. 建议添加异常处理和重试机制
  4. 当前环境网络问题可能导致测试失败,请在本地环境测试
Usage Guidance
This skill appears to be what it says: A‑share data retrieval and simple analysis built on AkShare. Before installing or running it: 1) Run in a controlled environment (local machine or isolated container) because AkShare will make outbound network requests to fetch market data. 2) Note there are small bugs/rough edges in the code (e.g., scripts/stock_cli.py calls stock_individual_fund_flow without qualifying it with ak. and search may error if column types are unexpected) — review and test the scripts before using. 3) No credentials are requested, but treat outputs as informational only (the SKILL already warns: not investment advice). 4) If you must run this in a hosted environment, ensure network and privacy policies meet your requirements and that you trust the akshare package version you install.
Capability Analysis
Type: OpenClaw Skill Name: new-akshare-stock-bak2 Version: 1.0.0 The skill bundle is a legitimate tool for A-share stock market analysis using the AkShare library. The provided Python scripts (analyze_600323.py and scripts/stock_cli.py) and documentation (SKILL.md) focus entirely on fetching financial data, calculating technical indicators, and providing investment analysis logic without any signs of data exfiltration, malicious execution, or unauthorized access.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md examples, and the two included Python scripts all consistently implement A‑share data retrieval and analysis using the AkShare library. Required capabilities (network access to public market data) align with the stated purpose; there are no unexpected credentials, platform APIs, or unrelated binaries requested.
Instruction Scope
SKILL.md contains only instructions to install akshare and demonstrates API calls for market, historical, financial, and board data. It does not instruct reading unrelated files, accessing credentials, or sending data to external endpoints other than what AkShare itself uses to fetch market data. It also warns about network problems and suggests local testing.
Install Mechanism
No install specification is embedded (instruction-only). The SKILL.md recommends 'pip install akshare' which is a common public Python package. No downloads from unknown URLs or archive extraction are present in the skill bundle.
Credentials
The skill declares no required environment variables, no primary credential, and no config paths. The code does not attempt to read secrets or other environment variables. This is proportionate for a data‑fetching/analysis tool that uses public data sources.
Persistence & Privilege
always is false and the skill does not request persistent/system privileges or attempt to modify other skills or system-wide config. It runs as a normal, user-invocable tool and contains no autonomous persistence behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install new-akshare-stock-bak2
  3. After installation, invoke the skill by name or use /new-akshare-stock-bak2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of A股量化数据分析助手,基于AkShare库。 - 支持A股实时行情、历史K线、财务报表、板块分析、资金流向、龙虎榜、新股、融资融券等常用数据查询 - 提供常用股票代码和全面示例代码 - 附带Baostock作为备选方案 - 详细列出数据接口的注意事项与使用须知
Metadata
Slug new-akshare-stock-bak2
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is New Akshare Stock.Bak2?

A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。 It is an AI Agent Skill for Claude Code / OpenClaw, with 156 downloads so far.

How do I install New Akshare Stock.Bak2?

Run "/install new-akshare-stock-bak2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is New Akshare Stock.Bak2 free?

Yes, New Akshare Stock.Bak2 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does New Akshare Stock.Bak2 support?

New Akshare Stock.Bak2 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created New Akshare Stock.Bak2?

It is built and maintained by make453 (@make453); the current version is v1.0.0.

💬 Comments