mpquant/Ashare
股票行情实时数据接口-A股,完全免费的沪深证券股票数据-中国股市,python最简封装的API接口,包含日线,历史K线,分时线,分钟线,全部实时采集,系统包括新浪腾讯双数据核心采集获取,自动故障切换,STOCK数据格式成DataFrame格式,可用来查询研究量化分析,股票程序自动化交易系统.为量化研究者在数据获取方面极大地减轻工作量,更加专注于策略和模型的研究与实现。 observed · 2026-08-28
Health v2 · maintenance only
58/100
- Activity 58
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1909
- days_rel: n/a
- days_push: 252
- n_releases_24m: 0
Adoption not part of the score
3777 stars · 656 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
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
library · maturity active
sdk data-science developer-tools fintech data-science python cross-platform stock-market-data a-shares quantitative-trading sina tencent dataframe market-data free-data-api quant
1 source
- readme: https://github.com/mpquant/Ashare · fetched 2026-08-28 · 9a132aefc8b5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mpquant/Ashare | main | 58 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem