# mpquant/Ashare

股票行情实时数据接口-A股,完全免费的沪深证券股票数据-中国股市,python最简封装的API接口,包含日线,历史K线,分时线,分钟线,全部实时采集，系统包括新浪腾讯双数据核心采集获取，自动故障切换，STOCK数据格式成DataFrame格式,可用来查询研究量化分析，股票程序自动化交易系统.为量化研究者在数据获取方面极大地减轻工作量，更加专注于策略和模型的研究与实现。

Repository: https://github.com/mpquant/Ashare
Canonical: https://ross.abutalabs.com/products/ashare
Language: Python
License Family: other
Topics: stock, quant, tushare, python
Last push: 2025-12-24T02:41:10+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 58, release rhythm 35, longevity 100
- inputs: {"age_days": 1909, "days_push": 252, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3777, forks 656 (observed 2026-08-28T04:08:18.302835+00:00)

## What it is
Ashare is a minimal single-file Python library that fetches free real-time and historical Chinese A-share stock market data from Sina and Tencent, returning pandas DataFrames. It supports daily, weekly, monthly, and intraday K-lines with automatic failover between the two data sources.

## Use cases
- fetch real-time A-share stock quotes in python
- get historical daily K-line data for Chinese stocks
- download minute-level intraday data for backtesting
- build a quantitative trading data feed without paid APIs
- get stock data as pandas DataFrames for analysis
- redundant market data source with automatic failover

## When to choose
- you need free, no-registration access to China A-share market data
- you want a lightweight single-file library with zero installation
- you need both real-time and historical K-lines in DataFrame format
- you want automatic failover between Sina and Tencent data sources

## When to avoid
- you need markets outside mainland China A-shares
- you require guaranteed SLAs or official licensed data feeds
- you need tick-level or order-book depth data
- your project requires a maintained library with a formal license

## Facets
- artifact type: library
- maturity: active
- function: sdk, data-science, developer-tools
- domain: fintech, data-science
- platform: python, cross-platform
- tags: stock-market-data, a-shares, quantitative-trading, sina, tencent, dataframe, market-data, free-data-api, quant

## Member repositories
- mpquant/Ashare (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:18.302835+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:27:48.863152+00:00, confidence not recorded.
  - readme: https://github.com/mpquant/Ashare (fetched 2026-08-28T04:08:18.302835+00:00, sha 9a132aefc8b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
