akshare-data

Retrieve Chinese and global financial market data through the akshare-cli command-line interface.

Updated Aug 7, 2026
One-click install
npx skills add https://github.com/Protremix/EvolvixOS --skill akshare-data-protremix
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: akshare-data
Source: https://github.com/Protremix/EvolvixOS/tree/main/knowledge/experts/stock-assistant/skills/stock-info
Command: npx skills add https://github.com/Protremix/EvolvixOS --skill akshare-data-protremix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Fetching Chinese and global financial market data (stocks, funds, futures, bonds, forex, macro indicators) requires navigating hundreds of AKShare functions with inconsistent parameters, slow endpoints, and frequently broken upstream sources. This Skill provides a structured discover-inspect-call-fallback workflow so you get the right data quickly without trial and error. ## Core Features & Use Cases - Function Discovery: Search 1090+ AKShare functions by keyword (Chinese or English), browse 30 hierarchical categories, or use shortcut commands for common queries like stock history, ETF data, and macro indicators. - Lightweight-First Querying: Avoid slow full-market endpoints (e.g., 59s spot calls) by using fast alternatives like stock_individual_info_em (0.1s), with a documented table of broken and slow interfaces plus their replacements. - Three-Level Failure Fallback: When an interface fails, automatically switch data sources (Eastmoney → THS → Sina), then scrape the target URL with browser_use, then fall back to web search. - Use Case: A user asks "show me Kweichow Moutai's recent trend" — the Skill resolves the code 600519, fetches basic info in 0.1s and recent daily K-lines in 0.2s, returning sorted latest data as JSON. ## Quick Start Ask the assistant to look up the recent price trend and latest quotes for a specific stock such as Moutai (600519) using the akshare data skill.

Frequently Asked Questions about akshare-data

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

FAQPage Schema
How do I get Chinese A-share stock data with AKShare?▼

Use akshare-cli with the stock hist shortcut, for example `akshare-cli stock hist 600519 --period daily`, or call `stock_zh_a_hist` directly with a 6-digit symbol. For a single stock's basic info, use `stock_individual_info_em` which returns in about 0.1 seconds.

How do I find the right AKShare function for a data query?▼

Use `akshare-cli search <keyword>` with English keywords matching function names or Chinese keywords matching descriptions. You can also browse 30 top-level categories with `akshare-cli browse` and drill down, then inspect parameters with `akshare-cli call --full-help <function>`.

What markets and data types does AKShare cover?▼

AKShare covers A-shares, Hong Kong stocks, US stocks, funds and ETFs, futures, bonds and convertibles, forex rates, indices, options, financial news, and macroeconomic indicators like GDP, CPI, and PMI through 1090+ functions.

Why is stock_zh_a_spot_em so slow and what should I use instead?▼

The full-market spot endpoint takes around 59 seconds because it fetches all listed stocks. For a single stock, use `stock_individual_info_em` (0.1s) plus `stock_zh_a_hist` (0.2s); for name-to-code lookup use `stock_info_sh_name_code` or `stock_info_sz_name_code`.

What should I do when an AKShare interface fails or returns empty data?▼

Follow the three-level fallback: first switch data source suffix (e.g., `_em` to `_ths` or `_sina`), then open the target URL shown in `--full-help` with browser_use to scrape the page, and finally use web search as a last resort. Check references/known-issues.md first for documented broken interfaces.

How do I get the most recent records instead of the oldest ones?▼

Add `--sort desc --limit N` to the call, since many history interfaces return data starting from the earliest date. Without `--sort desc`, a limit of 10 returns the oldest 10 rows rather than the latest 10.