--- id: akshare version: "1.18.91" license: MIT license_treatment: permissive maintenance: active --- # akshare — AKShare is an elegant and simple financial data interface library for Python, built for human beings! License: permissive · Maintenance: active · Downloads: 3.0M/mo ## What it is and what it does AKShare is a Python library that simplifies fetching financial market data from multiple Chinese and international sources—stocks, options, futures, bonds, funds, indices—by wrapping them under a single, consistent API. It aggregates data from exchanges and financial websites (Sina Finance, East Money, Jin10, and others) and returns results as pandas DataFrames, making it easy to load historical prices, real-time quotes, and market metadata into analysis workflows. The library includes an offline interface registry and search function, so you can discover available data endpoints by keyword without network calls—useful for programmatic resolution of data requests. It is designed for quantitative researchers, traders, and data analysts who work primarily with Chinese markets but also need access to US stock data. All data is provided for academic and research purposes only, and the maintainers note that some interfaces may be removed due to external factors. Use it for: - Fetch historical daily OHLCV data for Chinese A-shares to backtest trading strategies or analyze price patterns. - Retrieve real-time convertible bond quotes and metadata (conversion price, premium rate, yield-to-maturity) for bond trading analysis. - Build a quantitative research pipeline that discovers available data endpoints by keyword search, then loads them into pandas for analysis. - Aggregate options and futures data from multiple exchanges for portfolio risk modeling or derivative pricing studies. - Populate a local database with daily market snapshots (stocks, funds, indices) for offline research without repeated API calls. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. AKShare fetches financial market data (stocks, options, futures, bonds, funds) from multiple Chinese and international sources via a unified Python API, with built-in interface search and metadata lookup. Yes. AKShare is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It is well-suited for quantitative research and trading workflows focused on Chinese markets. The main caveat is that data availability depends on third-party sources and interfaces may be removed; verify that the specific endpoints you need are currently available before building production systems on it. ## Install pip install akshare uv add akshare poetry add akshare ## Installing akshare Before you install: Low friction installation with a pure-Python wheel. Actively maintained with recent commits and 22028 GitHub stars. Supports current Python versions (3.11–3.14) and has no known vulnerabilities. License in practice: MIT license permits commercial and private use with minimal restrictions; suitable for proprietary projects and closed-source applications. Quickstart: pip install akshare import akshare as ak stock_data = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20170301", end_date="20231022") print(stock_data) Requires Python 3.11 or higher (64-bit). Verify before relying: - Whether all data sources remain consistently available or if interface removal (mentioned in statement) is frequent. - Real-world latency and rate-limiting behavior when fetching large historical datasets. - Whether the search and interface_info functions work reliably for LLM-driven discovery workflows. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 3.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags financial data api python, stock market data fetcher, chinese stock data, quantitative trading data, futures options bonds data, financial market data aggregator, quant research data library, financial-data, quantitative-research, market-data-aggregator [View on SkillFed](https://skillfed.io/packages/akshare) · [View on PyPI](https://pypi.org/project/akshare/)