A-Share Quant AkShare Data API
Paste the following prompt into your AI chat to install this skill:
Please install @user_d1b2bd87/test111 according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem Addressed
When building A-share quant workflows, analysts often need real-time quotes, historical K-lines, financial fields, sector activity, fund flow, Dragon-Tiger lists, new listings, and margin trading data in one code path. Manual scraping is brittle because field names, date formats, missing values, and target-site changes can break a pipeline.
Capabilities and Workflow
The skill centers on the AkShare data interface and highlights:
- Real-time quote lookup: fetch current price and trading state
- Historical K-line data: retrieve periodic bars for backtesting
- Financial data: read basic financial fields for company screening
- Sector / industry analysis: inspect sector and concept performance
- Fund flow, Dragon-Tiger lists, IPO, margin trading: add capital-flow and trading-behavior signals
A typical usage starts from a stock code or sector name, requests the relevant endpoint, then normalizes dates, handles missing values, and adds retries for unstable calls. Example codes such as 000001, 600519, and 300750 are useful for checking connectivity.
Boundaries and Notes
It is intended for research, teaching, and local backtesting, not investment advice. AkShare depends on external site structures, so fields and endpoints may change; the source notes Baostock as a lighter fallback. In cross-network testing, keep error handling, retries, and logs so temporary connectivity issues are not mistaken for strategy failures.
Use Cases
- Fetch A-share K-lines for local backtesting.
- Screen stocks using financials, sectors, and fund flow.
- Track IPOs, margin trading, and Dragon-Tiger lists.
- Switch to Baostock when AkShare calls are unstable.
Best For
- Quant engineers building A-share strategies who need reliable quote, K-line, and financial fields.
- Indie developers writing backtests who want to normalize AkShare dates and missing values.
- Finance interns studying sector and fund flow who need Dragon-Tiger and margin-trading data.
- Tech staff maintaining research setups who can switch to Baostock when AkShare fails.
Related Skills
Systematically scans national strategy, technology trends, capital flows, and regional capacity to identify future industries, priority tracks, and actionable deployment pathways.
Recognizes plant growth stages from images or videos and outputs structured agronomic analysis, risk notes, suggestions, and cloud report history.
Analyzes child images or videos for ASD-related social, behavioral, and stereotyped traits, then produces a structured report with early intervention suggestions.
Prepare, submit, and verify enterprise tax filings through Qixiangyun MCP, including roster checks, initialization, PDF download, and missing-declaration checks.