akshare is the widest free Chinese-market scraper (1,103 public interfaces) and it purges its own PyPI history, so you cannot pin it. TRIGGER - akshare, "import akshare as ak", pip install akshare, stock_zh_a_hist, stock_zh_a_daily, index_stock_cons_csindex, stock_zt_pool_em, stock_zh_a_stop_em, adjust="qfq"/"hfq", 复权, 前复权, 后复权, 涨跌停, 东方财富, 新浪财经, A股数据, 沪深300成分股, "No matching distribution found for akshare==", akshare 报错, akshare 封 IP. akshare ships roughly 2.3 releases a week and deletes the old ones, so any signature, column name or version pin you remember is probably already gone. SKIP for lib-tushare, which is the skill for point-in-time fundamentals and dated index membership. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
Ships in fin-libraries. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The widest free Chinese-market coverage by a large margin, and a pure scraper you cannot pin, cannot use for point-in-time anything, and cannot legally redistribute the data from.
| pip / import | akshare / import akshare as ak |
| Version | 1.18.94 (2026-08-21) · 219 releases · ~29 releases in the last 90 days |
| Licence | MIT — code only, not the scraped data |
| Python | requires_python >=3.11 — hard-blocked on 3.10 and below; pure-python wheel + sdist |
| Status | Firehose maintenance. ~85% of changes are scraper fixes; the cadence is the model |
Surface verified by ast-parsing __init__.py: 1,103 public interfaces. The scraper tells are in
the dependency list — curl_cffi (TLS-fingerprint impersonation), mini-racer (embedded JS engine),
bs4/lxml/html5lib. Upstreams: 东方财富 · 新浪 · 同花顺 · 金十 · 和讯 plus the exchange sites.
You cannot pin a version, because akshare deletes its own PyPI history. 219 releases are listed
but the oldest surviving release is 1.16.72 (2025-04-05). pip install akshare==1.12.x fails
outright, so a requirements.txt written a year ago no longer resolves. Combined with ~2.3
releases/week, function signatures and returned column names move under you between installs.
There is no fix inside akshare. Vendor the data you need to Parquet. Do not plan to reproduce a result by pinning the library — plan to reproduce it from the bytes you saved.
ak.index_stock_cons_csindex(symbol=...) has no date parameter. It returns today's
HS300/CSI500 membership and nothing else. Backtesting "the HS300" with it means holding, throughout
history, exactly the names that were promoted into the index later — textbook inclusion bias, and
akshare cannot tell you it happened.
Use tushare index_weight / index_member, baostock's dated (HS300/SSE50/CSI500-only) lists, or a
licensed vendor.
stock_zh_a_hist(..., adjust="") returns raw (不复权) prices, verified in source. That is the
correct base for limit-up, tick-size and lot-size logic.
adjust="hfq" — anchored at listing, append-only, reproducible. Use this for signals.adjust="qfq" — anchor is now, so re-running the same query next month returns different
history. Never persist it.stock_zh_a_daily(..., adjust="hfq-factor") — the Sina path uniquely returns the adjustment
factors themselves, which is the right way to keep raw prices and roll your own convention. Its
own docstring warns 大量抓取容易封 IP.Financial statements come back keyed on 报告期 with no usable 公告日. Joining on 报告期 leaks up to four months of future information (the annual-report deadline is 30 April).
There is also no common return type across the 1,103 functions — column names, dtypes and row
ordering differ per upstream page and change when that page changes. Normalize at the boundary and
never index positionally. Suspension and limits are indirect: stock_zh_a_stop_em for 停牌, and the
limit pools (stock_zt_pool_em plus the 跌停/炸板/强势 variants) substitute for real
high_limit/low_limit fields. Delisted price history is unverified — test it for your universe
before claiming survivorship-free coverage.
akshare scrapes 东方财富 / 新浪 / 同花顺 / 腾讯, whose ToS prohibit automated bulk extraction and commercial redistribution. The MIT licence grants nothing regarding the scraped data. akshare's own docs describe the data as for academic research purposes and warn of commercial risk. 反不正当竞争法 Art. 12 and 数据安全法 have both been applied to systematic financial scraping — and Microsoft's own qlib pulled its official China dataset citing data-security policy.
Free scrapers for research, prototyping and personal use. Anything commercial, client-facing or
redistributed needs Wind, Choice, RiceQuant, JQData or tushare's paid tier. And rate-limit from the
first line of code: curl_cffi is in the tree precisely to impersonate a browser, and akshare's own
source warns you will get your IP banned.
import akshare as ak
# raw is the default and the correct base for limit-up / tick-size / lot-size logic
raw = ak.stock_zh_a_hist(symbol="000001", period="daily",
start_date="20200101", end_date="20260901", adjust="")
# hfq for signals: anchored at listing, append-only, reproducible
hfq = ak.stock_zh_a_hist(symbol="000001", period="daily",
start_date="20200101", end_date="20260901", adjust="hfq")
# best of both: raw prices + the factors, so you own the convention (Sina path only)
fct = ak.stock_zh_a_daily(symbol="sz000001", adjust="hfq-factor")
# never do this for anything you store or backtest on:
# ak.stock_zh_a_hist(..., adjust="qfq") # anchor = today; history is rewritten every dividend
# and never build a historical universe from this: it is TODAY's membership, no date parameter
# ak.index_stock_cons_csindex(symbol="000300")
../../../fin-china/skills/china-ashare-data/SKILL.md — 复权, 涨跌停, 停牌, 公告日 vs 报告期../../../fin-china/skills/china-ashare-data/references/akshare.md — the verified reference card../../../fin-china/skills/china-ashare-data/references/_source-matrix.md — capability matrix../lib-tushare/SKILL.md — point-in-time fundamentals and dated index membershipThis file is the deep dive on one library and assumes the choice is already made.
For which library to pick, how it compares with the alternatives, and the traps that span
several of them, the entry point is the domain skill china-ashare-data (../../../fin-china/skills/china-ashare-data/SKILL.md).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
24 skills in this plugin
/lib-alpaca-pyAlpaca's current Python SDK, which defaults to the paper host but lets url_override silently send live orders from a client that believes it is in the sandbox. TRIGGER - import alpaca, pip install alpaca-py, TradingClient, StockHistoricalDataClient, CryptoHistoricalDataClient, submit_order, LimitOrderRequest, MarketOrderRequest, OrderSide, TimeInForce, client_order_id, url_override, paper=True, BaseURL.TRADING_PAPER, paper-api.alpaca.markets, bracket OCO OTO orders, trail_percent, IEX vs SIP feed, Algo Trader Plus, alpaca-trade-api, APCA_API_BASE_URL; an order rejected asynchronously for time-in-force or price precision. Memory is stale here: alpaca-trade-api was deprecated in 2024 and defaulted to LIVE, whereas alpaca-py 0.44.0 (2026-08-11) declares paper=True - the widely repeated warning is inverted. SKIP for Interactive Brokers and for the general order-safety patterns (broker-execution-apis). SKIP for choosing between libraries, or when no library is named - the domain skill's job./lib-alphalensalphalens-reloaded scores cross-sectional factors, and its forward return starts at date t's OWN price - it never lags your factor. TRIGGER - alphalens, alphalens-reloaded, "import alphalens as al", get_clean_factor_and_forward_returns, compute_forward_returns, factor_information_coefficient, mean_return_by_quantile, factor_returns, quantile_turnover, factor_rank_autocorrelation, create_full_tear_sheet, MaxLossExceededError, max_loss=0.35, cumulative_returns, information coefficient, IC decay, quantile spread, "pip install alphalens". The original quantopian package is dead at 0.4.0 (2020-04-27) and most snippets you recall target it or its removed pandas internals. SKIP for lib-qlib, which is the skill for the feature pipeline and model. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill./fin-libraries:lib-aksharefrom fin-libraries
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-libraries