Comparison
akshare vs baostock vs pytdx vs twelvedata
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
AKShare is an elegant and simple financial data interface library for Python, built for human beings!
Actively maintained. Last release 2 days ago, commits in 15 of the last 26 weeks. A safe choice.
pip install akshareA tool for obtaining historical data of China stock market
Actively maintained. Last release 2 months ago. A safe choice.
pip install baostockA Python Interface to TDX protocol
Archived. The repository is read-only: no more fixes or releases will come.
pip install pytdxPython client for Twelve Data
Low maintenance activity. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and security practices.
pip install twelvedataIn short
- pytdx is archived: avoid it for new projects.
- akshare is the most used: 1.3M downloads a month, 4.7× more than baostock.
- Maintenance is comparable: akshare 88, baostock 79, twelvedata 38 on Pythie’s Index.
- twelvedata is growing fastest: downloads +27% over the last month.
- Safe default for a new project: akshare.
Side by side
| Metric | akshare | baostock | pytdx | twelvedata |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 88 | Pythie’s Index: 79 | Pythie’s Index: 4 | Pythie’s Index: 38 |
| Verdict | Actively maintained | Actively maintained | Archived | Low maintenance activity |
| Downloads / month | 1.3M | 283K | 93.6K | 108.2K |
| Downloads, month over month | +25% | 0% | +3% | +27% |
| GitHub stars | 23.6K | – | 1.6K | 802 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 0 | 46 | 20 | 6 |
| Last release | Dec 1, 2026 | Sep 21, 2026 | Aug 26, 2019 | Apr 27, 2026 |
| Releases, 12 months | 180 | 4 | 0 | 3 |
| Weeks with commits | 15 / 26 | – | 0 / 26 | 0 / 26 |
| Recent contributors | 8 | – | 9 | 6 |
| First release | Apr 2025 | Jan 2018 | Jun 2017 | Jan 2020 |
| Python versions | 3.11 – 3.15 | 3.6 – 3.9 | – | – |
| License | MIT | non-standard | unknown | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.