Comparison
alpaca-py vs alpaca-trade-api vs dhanhq
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The Official Python SDK for Alpaca APIs
Actively maintained. Last release 4 weeks ago, commits in 22 of the last 26 weeks. A safe choice.
$
pip install alpaca-pyAlpaca API python client
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install alpaca-trade-apiThe official Python client for communicating with the DhanHQ API
Actively maintained. Last release 6 days ago. A safe choice.
$
pip install dhanhqIn short
- alpaca-trade-api is archived: avoid it for new projects.
- alpaca-py is the most used: 1.4M downloads a month, 17× more than alpaca-trade-api.
- Maintenance is comparable: alpaca-py 87, dhanhq 82 on Pythie’s Index.
- alpaca-py is growing fastest: downloads +20% over the last month.
- Safe default for a new project: alpaca-py.
Side by side
| Metric | alpaca-py | alpaca-trade-api | dhanhq |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 87 | Pythie’s Index: 5 | Pythie’s Index: 82 |
| Verdict | Actively maintained | Archived | Actively maintained |
| Downloads / month | 1.4M | 84K | 56.3K |
| Downloads, month over month | +20% | -14% | -18% |
| GitHub stars | 1.6K | 1.9K | – |
| Stars, last 7 days | – | – | – |
| Direct dependents | 46 | 29 | 4 |
| Last release | Nov 5, 2026 | Jan 12, 2024 | Nov 26, 2026 |
| Releases, 12 months | 5 | 0 | 5 |
| Weeks with commits | 22 / 26 | 0 / 26 | – |
| Recent contributors | 17 | 22 | – |
| First release | Apr 2022 | May 2018 | Sep 2022 |
| Python versions | 3.10 – 3.15 | – | – |
| License | Apache-2.0 | Apache-2.0 | MIT |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.