首页龙虾技能列表 › Akshare Stock Temp — 技能工具

Akshare Stock Temp — 技能工具

v1.0.0

A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。

0· 403·4 当前·5 累计
by @liguang00806 (Liguang00806)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/13
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
medium confidence
The skill is coherent with its stated purpose (wrapping AkShare to fetch A‑share market and financial data), but there are minor inconsistencies and practical risks you should be aware of before installing and running it locally.
评估建议
This skill is internally consistent: it wraps the AkShare Python library to fetch Chinese A‑share data and needs only network access and the AkShare package from PyPI. Before installing: 1) verify the publisher/source (metadata in the bundle is inconsistent: _meta.json owner/slug/version differ from registry metadata and the package has no homepage), 2) run 'pip install akshare' in a virtualenv or isolated environment and inspect/lock the akshare version, 3) be aware the included script has a bu...
详细分析 ▾
用途与能力
Name and description match the included instructions and the Python script: both use the AkShare library to fetch A‑share quotes, historical K‑lines, board/sector data, fund flows, etc. No unrelated credentials, binaries, or system paths are requested.
指令范围
SKILL.md gives concrete AkShare API calls and a Baostock fallback; it instructs installing akshare via pip and notes network dependence. The runtime instructions do not ask for unrelated files or secrets. One practical issue: the script calls a function get_fund_flow that uses an undefined name stock_individual_fund_flow (missing ak. prefix), which will raise a runtime error—this is sloppy but not malicious.
安装机制
There is no automated install spec in the bundle (instruction-only), which is lower risk. The README recommends 'pip install akshare' — this will download code from PyPI and the library will make outbound network requests to data sources. That is expected for this purpose but means you should review the akshare package/version and run in a controlled environment if concerned.
凭证需求
The skill declares no required environment variables, credentials, or config paths. The code and instructions do not attempt to read secrets or unrelated env vars. Network access is required for data retrieval, which is proportionate to the stated function.
持久化与权限
The skill does not request permanent presence (always=false) and does not modify system or other skill configs. Autonomous invocation is allowed by default (normal) but not combined with other high-risk behaviors here.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/13

Initial release of akshare-stock-temp. - Provides A股量化数据分析工具 using AkShare for real-time quotes, historical K-line, financials, sectors, fund flow, top lists, IPO, and margin trading. - Includes usage examples for each supported feature. - Lists common stock codes for convenience. - Offers a fallback guide for Baostock if AkShare installation fails. - Notes important caveats on data use and reliability.

● 无害

安装命令 点击复制

官方npx clawhub@latest install akshare-stock-temp
镜像加速npx clawhub@latest install akshare-stock-temp --registry https://cn.clawhub-mirror.com

技能文档

快速开始

安装依赖:

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

注意事项

  • 数据仅供学术研究,不构成投资建议
  • 接口可能因目标网站变动而失效
  • 建议添加异常处理和重试机制
  • 当前环境网络问题可能导致测试失败,请在本地环境测试
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务