akshare-a-shares

Retrieve China A-share market data from local AKShare modules.

33|6|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Yrzhe/claude-skills --skill akshare-a-shares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: akshare-a-shares
Source: https://github.com/Yrzhe/claude-skills/tree/main/plugins/akshare-a-shares
Command: npx skills add https://github.com/Yrzhe/claude-skills --skill akshare-a-shares

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables fast retrieval of China A-share market data using a local AKShare source, allowing you to access real-time quotes, historical K-line data (daily/weekly/monthly), minute-level intraday data (1/5/15/30/60), and adjusted data, as well as shareholder counts and CNINFO disclosures without relying on external web services.

Core Features & Use Cases

  • Real-time A-share quotes, historical daily/weekly/monthly K-lines, and intraday minute data from a local AKShare setup.
  • Access shareholder numbers and CNINFO disclosure information, with built-in scripts to export CSV/JSON or inline Python calls.
  • Use cases include rapid market screening, backtesting with historical data, and automated data exports for research.
  • Default data source prioritizes East Money interfaces; switch to Sina endpoints when specified.

Quick Start

Use the akshare-a-shares skill to quickly fetch A-share data via the included scripts, for example:

  • python3 scripts/akshare_fetch.py spot --source em --format csv
  • python3 scripts/akshare_fetch.py hist --symbol 600519 --period daily --start 20200101 --end 20251231 --format csv
  • python3 scripts/akshare_fetch.py min --symbol 000001 --period 5 --start "2024-12-01 09:30:00" --end "2024-12-02 15:00:00" --format csv
  • python3 scripts/akshare_fetch.py gdhs --when 最新 --format csv
  • python3 scripts/akshare_fetch.py cninfo --symbol 000001 --market 沪深京 --category 年报 --start 20230101 --end 20241231 --format csv

Frequently Asked Questions about akshare-a-shares

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch historical A-share K-line data for backtesting?

To fetch historical A-share K-line data, you can use the provided scripts to retrieve daily, weekly, or monthly history from local AKShare sources and export it as CSV or JSON for backtesting.

Can I retrieve real-time China A-share quotes without external web services?

Yes, you can retrieve real-time China A-share quotes directly from a local AKShare setup, prioritizing East Money interfaces by default without relying on external web services.

What's the best way to export minute-level intraday A-share data?

The best way to export minute-level intraday A-share data is using the built-in Python scripts to fetch 1, 5, 15, 30, or 60-minute intervals from local AKShare and output CSV format.

Does this approach support accessing CNInfo disclosures and shareholder counts?

Yes, this approach supports accessing CNInfo disclosure information and shareholder counts through built-in scripts, allowing you to filter by market, category, and date ranges.

Do I need pandas and requests installed to query local A-share market data?

Yes, you need pandas and requests installed as dependencies, along with the local AKShare module, to properly execute the scripts and query A-share market data.

Can I switch data sources from East Money to Sina endpoints for A-share data?

Yes, you can switch data sources from the default East Money interfaces to Sina endpoints by specifying the source parameter when running the A-share data retrieval scripts.